Skip to content

[chore]: bump zod across monorepo - #3330

Merged
seanmcguire12 merged 4 commits into
mainfrom
bump-zod
Oct 27, 2026
Merged

seanmcguire12 merged 4 commits into
mainfrom
bump-zod

Conversation

@seanmcguire12

@seanmcguire12 seanmcguire12 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

what changed

  • bumps catalog zod version which bumps zod in the extension, ts sdk, cli, and eve integration

Summary by cubic

Bumps zod to 4.6.6 across the monorepo via the pnpm catalog, upgrading the TS SDK, extension, CLI, integrations, and eve. This also makes the generated V4 protocol schema compatible with the new zod version.

  • Unpins zod in the CLI and middleware packages in favor of the catalog: reference.
  • Adjusts protocol schema generation so metadata ids are no longer extracted into $defs; the standalone default extract schema now uses a fresh registry.
  • Regenerated stagehand.v4.json emits two union types as type arrays instead of anyOf blocks.
  • Updates the scoped release test to expect the middleware package in the release scope.

Written for commit 6e1420c. Summary will update on new commits.

View guided diff Turn on auto-fix

@changeset-bot

changeset-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6e1420c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages
Name Type
@browserbasehq/stagehand Patch
@browserbasehq/stagehand-python Patch
@browserbasehq/stagehand-extension Patch
@browserbasehq/stagehand-protocol Patch
@browserbasehq/eve Patch
browse Patch
@browserbasehq/stagehand-examples Patch
@browserbasehq/stagehand-integrations-claude-cua-sdk Patch
@browserbasehq/stagehand-integrations Patch
@browserbasehq/stagehand-integrations-gemini-cua-sdk Patch
@browserbasehq/stagehand-integrations-example-pi-facade Patch
@browserbasehq/stagehand-integrations-claude-agent-sdk Patch
@browserbasehq/stagehand-integrations-example-claude-code-facade Patch
@browserbasehq/stagehand-integrations-codex-sdk Patch
@browserbasehq/stagehand-integrations-example-codex-facade Patch
@browserbasehq/stagehand-integrations-cursor-sdk Patch
@browserbasehq/stagehand-integrations-example-cursor-facade Patch
@browserbasehq/stagehand-integrations-deepagents-sdk Patch
@browserbasehq/stagehand-integrations-eve-sdk Patch
@browserbasehq/stagehand-integrations-fx-sdk Patch
@browserbasehq/stagehand-integrations-mastra-sdk Patch
@browserbasehq/stagehand-integrations-example-mastra-facade Patch
@browserbasehq/stagehand-integrations-pi-sdk Patch
@browserbasehq/stagehand-integrations-example-vercel-ai-facade Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@socket-security

socket-security Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​zod@​4.6.610010010095100

View full report

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 9 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.
Architecture diagram
sequenceDiagram
    participant Catalog as pnpm Catalog
    participant CLI as browse CLI
    participant MW as Middleware Package
    participant SDK as TS SDK
    participant Ext as Browser Extension
    participant Eve as Eve Integration
    participant Proto as Protocol Package
    participant Schema as Schema Builder
    participant JSON as stagehand.v4.json

    Note over Catalog,JSON: Dependency Resolution & Schema Generation

    Catalog->>Catalog: zod 4.6.6 (catalog entry)
    Catalog-->>CLI: CHANGED: zod via catalog:
    Catalog-->>MW: CHANGED: zod via catalog:
    Catalog-->>SDK: zod 4.6.6 (transitive)
    Catalog-->>Ext: zod 4.6.6 (transitive)
    Catalog-->>Eve: zod 4.6.6 (transitive)
    Catalog-->>Proto: zod 4.6.6 (transitive)

    Proto->>Schema: Build protocol document schema
    Schema->>Schema: Register schemas in metadata registry
    alt Root document schema
        Schema->>Schema: Omit id for StagehandProtocolDocument
        Schema->>JSON: Inline document root (no $defs extraction)
    end
    Schema->>Schema: Build DefaultExtractDataSchema
    alt Standalone default extract schema
        Schema->>Schema: Use fresh z.registry() for metadata
        Schema->>JSON: Inline default extract schema
    else Schema with metadata id
        Schema->>JSON: Extract into $defs (avoided)
    end
    Schema->>JSON: Generate V4 protocol JSON
    JSON->>JSON: Emit union types as "type" arrays

    Note over CLI,Proto: Runtime Usage of Generated Schema

    CLI->>Proto: Load protocol schema
    Proto-->>CLI: CHANGED: schema with type arrays (zod 4.6.6)
    CLI->>CLI: Parse/validate with zod 4.6.6
Loading

View guided diff | Turn on auto-fix | Re-trigger cubic

@seanmcguire12
seanmcguire12 merged commit dc8eb40 into main Oct 27, 2026
60 checks passed
@seanmcguire12
seanmcguire12 deleted the bump-zod branch October 27, 2026 18:41
This was referenced Oct 27, 2026
miguelg719 pushed a commit that referenced this pull request Nov 4, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @browserbasehq/[email protected]

### Minor Changes

- [#3305](#3305)
[`aeb1ba0`](aeb1ba0)
Thanks [@miguelg719](https://github.com/miguelg719)! - add
`browser.disconnect()`, which closes an attached Stagehand instance and
the connection to a browser without closing the browser or releasing its
Browserbase session (Browserbase still ends sessions without `keepAlive`
on disconnect). `browser.close()` after `disconnect()` now throws
(connect again to close the browser), a launched local browser receives
`Browser.close` before it is terminated, browser handles expose `cdpUrl`
(`cdp_url` in Python) for local browsers, and `connected` reports
whether the handle still has a live connection

- [#3325](#3325)
[`d59afde`](d59afde)
Thanks [@miguelg719](https://github.com/miguelg719)! - Add an extension
watchdog for lost SDK clients

### Patch Changes

- [#3339](#3339)
[`44d99df`](44d99df)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Adopt
cross-origin iframes that were already loaded when Stagehand attached,
or that are nested inside another cross-origin iframe, so snapshots and
actions can reach them.

- [#3330](#3330)
[`dc8eb40`](dc8eb40)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - bump zod to
4.6.6

- [#3340](#3340)
[`edb76b0`](edb76b0)
Thanks [@akeimach](https://github.com/akeimach)! - Fix act, observe and
extract with Claude Opus 5.5 by bumping `@ai-sdk/anthropic` and `ai` in
the extension.

- [#3387](#3387)
[`066e875`](066e875)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - fixed
domain policy bypasses involving URLs with credentials, background
requests, and speculative page loads

- [#3383](#3383)
[`1e50db6`](1e50db6)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - skip
variable substitution for drag-and-drop arguments in act().

- [#3388](#3388)
[`18b96f2`](18b96f2)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - fix issue
where calling act() prevents cross-origin iframes from loading
## @browserbasehq/[email protected]

### Patch Changes

- [#3330](#3330)
[`dc8eb40`](dc8eb40)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - bump zod to
4.6.6

- [#3350](#3350)
[`b7a4b89`](b7a4b89)
Thanks [@miguelg719](https://github.com/miguelg719)! - Save run
screenshots only as PNG or JPEG files, under ./stagehand-artifacts by
default

- Updated dependencies
[[`44d99df`](44d99df),
[`dc8eb40`](dc8eb40),
[`edb76b0`](edb76b0),
[`066e875`](066e875),
[`1e50db6`](1e50db6),
[`aeb1ba0`](aeb1ba0),
[`18b96f2`](18b96f2),
[`d59afde`](d59afde)]:
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Minor Changes

- [#3325](#3325)
[`d59afde`](d59afde)
Thanks [@miguelg719](https://github.com/miguelg719)! - Add an extension
watchdog for lost SDK clients

### Patch Changes

- [#3339](#3339)
[`44d99df`](44d99df)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Adopt
cross-origin iframes that were already loaded when Stagehand attached,
or that are nested inside another cross-origin iframe, so snapshots and
actions can reach them.

- [#3330](#3330)
[`dc8eb40`](dc8eb40)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - bump zod to
4.6.6

- [#3340](#3340)
[`edb76b0`](edb76b0)
Thanks [@akeimach](https://github.com/akeimach)! - Fix act, observe and
extract with Claude Opus 5.5 by bumping `@ai-sdk/anthropic` and `ai` in
the extension.

- [#3387](#3387)
[`066e875`](066e875)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - fixed
domain policy bypasses involving URLs with credentials, background
requests, and speculative page loads

- [#3383](#3383)
[`1e50db6`](1e50db6)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - skip
variable substitution for drag-and-drop arguments in act().

- [#3388](#3388)
[`18b96f2`](18b96f2)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - fix issue
where calling act() prevents cross-origin iframes from loading
## @browserbasehq/[email protected]

### Minor Changes

- [#3305](#3305)
[`aeb1ba0`](aeb1ba0)
Thanks [@miguelg719](https://github.com/miguelg719)! - add
`browser.disconnect()`, which closes an attached Stagehand instance and
the connection to a browser without closing the browser or releasing its
Browserbase session (Browserbase still ends sessions without `keepAlive`
on disconnect). `browser.close()` after `disconnect()` now throws
(connect again to close the browser), a launched local browser receives
`Browser.close` before it is terminated, browser handles expose `cdpUrl`
(`cdp_url` in Python) for local browsers, and `connected` reports
whether the handle still has a live connection

- [#3325](#3325)
[`d59afde`](d59afde)
Thanks [@miguelg719](https://github.com/miguelg719)! - Add an extension
watchdog for lost SDK clients

### Patch Changes

- [#3339](#3339)
[`44d99df`](44d99df)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Adopt
cross-origin iframes that were already loaded when Stagehand attached,
or that are nested inside another cross-origin iframe, so snapshots and
actions can reach them.

- [#3330](#3330)
[`dc8eb40`](dc8eb40)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - bump zod to
4.6.6

- [#3340](#3340)
[`edb76b0`](edb76b0)
Thanks [@akeimach](https://github.com/akeimach)! - Fix act, observe and
extract with Claude Opus 5.5 by bumping `@ai-sdk/anthropic` and `ai` in
the extension.

- [#3387](#3387)
[`066e875`](066e875)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - fixed
domain policy bypasses involving URLs with credentials, background
requests, and speculative page loads

- [#3383](#3383)
[`1e50db6`](1e50db6)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - skip
variable substitution for drag-and-drop arguments in act().

- [#3388](#3388)
[`18b96f2`](18b96f2)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - fix issue
where calling act() prevents cross-origin iframes from loading
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies
[[`44d99df`](44d99df),
[`dc8eb40`](dc8eb40),
[`edb76b0`](edb76b0),
[`066e875`](066e875),
[`1e50db6`](1e50db6),
[`aeb1ba0`](aeb1ba0),
[`18b96f2`](18b96f2),
[`d59afde`](d59afde)]:
  - @browserbasehq/[email protected]
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
##
@browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies
[[`44d99df`](44d99df),
[`dc8eb40`](dc8eb40),
[`edb76b0`](edb76b0),
[`066e875`](066e875),
[`1e50db6`](1e50db6),
[`aeb1ba0`](aeb1ba0),
[`18b96f2`](18b96f2),
[`d59afde`](d59afde)]:
  - @browserbasehq/[email protected]
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies
[[`44d99df`](44d99df),
[`dc8eb40`](dc8eb40),
[`edb76b0`](edb76b0),
[`066e875`](066e875),
[`1e50db6`](1e50db6),
[`aeb1ba0`](aeb1ba0),
[`18b96f2`](18b96f2),
[`d59afde`](d59afde)]:
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies
[[`44d99df`](44d99df),
[`dc8eb40`](dc8eb40),
[`edb76b0`](edb76b0),
[`066e875`](066e875),
[`1e50db6`](1e50db6),
[`aeb1ba0`](aeb1ba0),
[`18b96f2`](18b96f2),
[`d59afde`](d59afde)]:
  - @browserbasehq/[email protected]
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies
[[`44d99df`](44d99df),
[`dc8eb40`](dc8eb40),
[`edb76b0`](edb76b0),
[`066e875`](066e875),
[`1e50db6`](1e50db6),
[`aeb1ba0`](aeb1ba0),
[`18b96f2`](18b96f2),
[`d59afde`](d59afde)]:
  - @browserbasehq/[email protected]
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- Updated dependencies []:
  - @browserbasehq/[email protected]
## @browserbasehq/[email protected]

### Patch Changes

- [#3330](#3330)
[`dc8eb40`](dc8eb40)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - bump zod to
4.6.6

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
shrey150 pushed a commit that referenced this pull request Nov 13, 2026
Release Browse independently of the Stagehand SDKs. Merging this PR
publishes the CLI from the merged commit.

## 0.11.4

### Patch Changes

- [#3426](#3426)
[`f93e6d1`](f93e6d1)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Report an
error when an active browser session disconnects during command startup
instead of automatically starting a replacement.

- [#3379](#3379)
[`73fdba0`](73fdba0)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - remove
unused deepmerge dependency

- [#3330](#3330)
[`dc8eb40`](dc8eb40)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - bump zod to
4.6.6

- [#3289](#3289)
[`aa67fee`](aa67fee)
Thanks [@shrey150](https://github.com/shrey150)! - Add `--stagehand`
flag to `browse cloud extensions upload`.

- [#3439](#3439)
[`2fe947c`](2fe947c)
Thanks [@github-actions](https://github.com/apps/github-actions)! - Make
`browse doctor` fail and show the cause when the session's last browser
start failed

- [#3400](#3400)
[`ce298c6`](ce298c6)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Add token
validation to internal local Functions runtime requests

- [#3408](#3408)
[`6a56cbb`](6a56cbb)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Fix Windows
package-manager command launching for Functions and templates, and
terminate child processes when skill installation times out.

- [#3391](#3391)
[`3fbda6b`](3fbda6b)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Validate
daemon directory locations before connecting to a session.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants