v1.7.0

browserbase/stagehandv1.7.0Dec 17, 2024by github-actions[bot]

AI Summary

Refactors initialization parameters and introduces a new text-based extraction method alongside improvements to session management and type exposure.

Key Highlights

  • Rename browserbaseResumeSessionID -> browserbaseSessionID
  • Add textExtract: an optional, text based approach to the existing extract method
  • Deprecate initFromPage in favor of browserbaseResumeSessionID in constructor
  • Add sessionId to public params

Breaking Changes

  • Deprecate initFromPage in favor of browserbaseResumeSessionID in constructor
  • Rename browserBaseSessionCreateParams -> browserbaseSessionCreateParams

New Features

  • Text extraction method
  • Session ID exposure
  • Constructor option refactoring

Full Release Notes

### Minor Changes

-   [#316](https://github.com/browserbase/stagehand/pull/316) [`902e633`](https://github.com/browserbase/stagehand/commit/902e633e126a58b80b757ea0ecada01a7675a473) Thanks [@kamath](https://github.com/kamath)! - rename browserbaseResumeSessionID -> browserbaseSessionID

-   [#296](https://github.com/browserbase/stagehand/pull/296) [`f11da27`](https://github.com/browserbase/stagehand/commit/f11da27a20409c240ceeea2003d520f676def61a) Thanks [@kamath](https://github.com/kamath)! - - Deprecate fields in `init` in favor of constructor options

    -   Deprecate `initFromPage` in favor of `browserbaseResumeSessionID` in constructor
    -   Rename `browserBaseSessionCreateParams` -> `browserbaseSessionCreateParams`

-   [#304](https://github.com/browserbase/stagehand/pull/304) [`0b72f75`](https://github.com/browserbase/stagehand/commit/0b72f75f6a62aaeb28b0c488ae96db098d6a2846) Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - add textExtract: an optional, text based approach to the existing extract method. textExtract often performs better on long form extraction tasks. By default `extract` uses the existing approach `domExtract`.

-   [#298](https://github.com/browserbase/stagehand/pull/298) [`55f0cd2`](https://github.com/browserbase/stagehand/commit/55f0cd2fe7976e800833ec6e41e9af62d88d09d5) Thanks [@kamath](https://github.com/kamath)! - Add sessionId to public params

### Patch Changes

-   [#283](https://github.com/browserbase/stagehand/pull/283) [`b902192`](https://github.com/browserbase/stagehand/commit/b902192bc7ff8eb02c85150c1fe6f89c2a95b211) Thanks [@sameelarif](https://github.com/sameelarif)! - allowed customization of eval config via .env

-   [#299](https://github.com/browserbase/stagehand/pull/299) [`fbe2300`](https://github.com/browserbase/stagehand/commit/fbe23007176488043c2415519f25021612fff989) Thanks [@sameelarif](https://github.com/sameelarif)! - log playwright actions for better debugging