Skip to content

Commit 6ef6073

Browse files
deprecate useTextExtract (#737)
* deprecate useTextExtract * return domExtract even if useTextExtract defined * docs
1 parent f23abdb commit 6ef6073

18 files changed

+33
-1935
lines changed

.changeset/quiet-rooms-relate.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@browserbasehq/stagehand-lib": minor
3+
"@browserbasehq/stagehand": minor
4+
---
5+
6+
deprecate useTextExtract and remove functionality

docs/reference/extract.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ const apartments = await stagehand.page.extract({
107107
Defines the structure of the data to extract
108108
</ParamField>
109109
110-
<ParamField path="useTextExtract" type="boolean" optional>
111-
112-
This method converts the page to text, which is much cleaner for LLMs than the DOM. However, it may not work for use cases that involve DOM metadata elements.
110+
<ParamField path="useTextExtract" type="boolean" deprecated>
111+
This field is now **deprecated** and has no effect.
113112
</ParamField>
114113
115114
<ParamField path="selector" type="string" optional>

lib/dom/DomChunk.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

lib/dom/ElementContainer.ts

Lines changed: 0 additions & 98 deletions
This file was deleted.

lib/dom/GlobalPageContainer.ts

Lines changed: 0 additions & 91 deletions
This file was deleted.

lib/dom/StagehandContainer.ts

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)