Skip to content

Commit a76dda8

Browse files
release: 3.21.0 (#36)
* codegen metadata * codegen metadata * feat: [feat]: add `ignoreSelectors` to `observe()` * fix: guzzle requires special handling to enable streaming * ci: pin GitHub Actions to commit SHAs Pin all GitHub Actions referenced in generated workflows (both first-party `actions/*` and third-party) to immutable commit SHAs. Updating pinned actions is now a deliberate codegen-side bump rather than implicit on every workflow run. * feat: STG-1756 add Vertex auth params to Stagehand spec * feat: Add `screenshot` option to Extract * feat: [STG-1756] forward Vertex model config * release: 3.21.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent ceb99e6 commit a76dda8

82 files changed

Lines changed: 7089 additions & 216 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2323

2424
steps:
25-
- uses: actions/checkout@v6
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626

2727
- name: Set up PHP
28-
uses: 'shivammathur/setup-php@v2'
28+
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
2929
with:
3030
php-version: '8.3'
3131

@@ -40,10 +40,10 @@ jobs:
4040
runs-on: ${{ github.repository == 'stainless-sdks/stagehand-php' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
4141
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
4242
steps:
43-
- uses: actions/checkout@v6
43+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4444

4545
- name: Set up PHP
46-
uses: 'shivammathur/setup-php@v2'
46+
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
4747
with:
4848
php-version: '8.3'
4949

.github/workflows/publish-packagist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515

1616
- name: Publish to Packagist
1717
run: |-

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.repository == 'browserbase/stagehand-php' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
15-
- uses: actions/checkout@v6
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616

1717
- name: Check release environment
1818
run: |

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.20.0"
2+
".": "3.21.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 8
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/stagehand-6f6bfb81d092f30a5e2005328c97d61b9ea36132bb19e9e79e55294b9534ce20.yml
3-
openapi_spec_hash: f3fc1e3688a38dc2c28f7178f7d534e5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/stagehand-c7910965e66e73ad8b65b6cc391d431094b2a6c6577c3e9d82feaa8138e74cff.yml
3+
openapi_spec_hash: 37748bb69c22a9ce721d9b5a5861f964
44
config_hash: 1fb12ae9b478488bc1e56bfbdc210b01

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 3.21.0 (2026-05-27)
4+
5+
Full Changelog: [v3.20.0...v3.21.0](https://github.com/browserbase/stagehand-php/compare/v3.20.0...v3.21.0)
6+
7+
### Features
8+
9+
* [feat]: add `ignoreSelectors` to `observe()` ([872590f](https://github.com/browserbase/stagehand-php/commit/872590fe228fd2f0ce70d7cbefdddbf3c22fe147))
10+
* [STG-1756] forward Vertex model config ([f72af00](https://github.com/browserbase/stagehand-php/commit/f72af008c8601ebf6266e699800c9fbb6fb1cd9d))
11+
* Add `screenshot` option to Extract ([944e2e3](https://github.com/browserbase/stagehand-php/commit/944e2e3a0a55618c9742a0defa3e06f9778719a4))
12+
* STG-1756 add Vertex auth params to Stagehand spec ([786c9fd](https://github.com/browserbase/stagehand-php/commit/786c9fda24ea073f57bde1ec3cc6e332c7d50300))
13+
14+
15+
### Bug Fixes
16+
17+
* guzzle requires special handling to enable streaming ([9d1c43a](https://github.com/browserbase/stagehand-php/commit/9d1c43a1435dc0ba0f66094ffaf4c3e6d463b17a))
18+
319
## 3.20.0 (2026-05-06)
420

521
Full Changelog: [v3.19.3...v3.20.0](https://github.com/browserbase/stagehand-php/compare/v3.19.3...v3.20.0)

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The REST API documentation can be found on [docs.stagehand.dev](https://docs.sta
8080
<!-- x-release-please-start-version -->
8181

8282
```
83-
composer require "browserbase/stagehand 3.20.0"
83+
composer require "browserbase/stagehand 3.21.0"
8484
```
8585

8686
<!-- x-release-please-end -->
@@ -258,6 +258,15 @@ foreach ($stream as $response) {
258258
}
259259
```
260260

261+
Streaming requests are dispatched through a separate `streamingTransporter` PSR-18 HTTP client. When unset, the SDK uses the configured `transporter`.
262+
Some PSR-18 HTTP clients will by default try to read the entire response, so you may need to specify a streaming capable implementation.
263+
264+
```php
265+
$client = new Stagehand\Client(
266+
requestOptions: Stagehand\RequestOptions::with(streamingTransporter: $myStreamingClient),
267+
);
268+
```
269+
261270
### Handling errors
262271

263272
When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of `Stagehand\Core\Exceptions\APIException` will be thrown:

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
},
3939
"require-dev": {
4040
"friendsofphp/php-cs-fixer": "^3",
41+
"guzzlehttp/guzzle": "^7",
4142
"nyholm/psr7": "^1",
4243
"pestphp/pest": "^3",
4344
"php-http/mock-client": "^1",

0 commit comments

Comments
 (0)