Skip to content

chore(deps): bump @sanity/client from 7.26.2 to 8.1.0 - #254

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/sanity/client-8.1.0
Open

chore(deps): bump @sanity/client from 7.26.2 to 8.1.0#254
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/sanity/client-8.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 24, 2026

Copy link
Copy Markdown
Contributor

Bumps @sanity/client from 7.26.2 to 8.1.0.

Release notes

Sourced from @​sanity/client's releases.

v8.1.0

Minor Changes

  • add client.functions.invoke() for calling deployed functions on demand (#1258) (4c2f718)

    Invoke a Sanity Pubsub Function by the name. Only sanity.function.pubsub functions can be invoked on demand.

    Available in two forms, client.functions.invoke() resolves with the function's return value, client.observable.functions.invoke() emits it and accepts an event.data payload, a per-call timeout and an AbortSignal.

    Names are only unique within a stack, so resolving one requires a stackId, either from the new stackId client config option or from the request. That resolution costs one extra request per call. A function that returns nothing resolves to undefined.

    Stacks deployed at organization scope are reached with the new organizationId client config option, or a per-call organizationId. It takes precedence over projectId, which becomes optional in that case.

  • add request handler for client integrations (#1286) (a9db52f)

  • add variant definition actions (#1278) (7c98361)

    Adds CreateVariantDefinitionAction, EditVariantDefinitionAction and DeleteVariantDefinitionAction, along with a VariantDefinitionAction union, covering the sanity.action.variant.definition.* actions. They are included in the Action union, so client.action() accepts them.

    Note that Action widening is a breaking change for code that exhaustively switches on Action['actionType'] with a never fallthrough, which will need to handle the new cases.

Patch Changes

  • route the live-events CORS probe through the configured transport (#1282) (aaada67)

    The /check/cors probe that client.live.events() uses to distinguish a CORS rejection from other connection failures called the global fetch directly, so a custom resolveFetch or an explicit proxy was not applied to it. It now resolves the same fetch the EventSource connection uses.

  • reword the createVersion() warning about baseId (#1282) (aaada67)

    createVersion({document}) warned that "the recommended approach is to provide a baseId and releaseId instead", which reads as a correction even when the caller had no other option: baseId creates a version of a document that already exists, so creating a genuinely new document inside a release can only be done by passing document.

    The client cannot tell those two cases apart, so the warning is now phrased as a condition rather than a correction: "If you are creating a version of a document that already exists, prefer providing baseId and releaseId instead." No behavior changed, and both forms remain supported.

  • correct the return type of delete() and mutate() when called with no options (#1282) (aaada67)

    client.delete(id) and client.mutate(mutations) were typed to resolve to a document (SanityDocument<R>) when called without an options argument, but they actually resolve to a mutation result object

... (truncated)

Changelog

Sourced from @​sanity/client's changelog.

8.1.0

Minor Changes

  • add client.functions.invoke() for calling deployed functions on demand (#1258) (4c2f718)

    Invoke a Sanity Pubsub Function by the name. Only sanity.function.pubsub functions can be invoked on demand.

    Available in two forms, client.functions.invoke() resolves with the function's return value, client.observable.functions.invoke() emits it and accepts an event.data payload, a per-call timeout and an AbortSignal.

    Names are only unique within a stack, so resolving one requires a stackId, either from the new stackId client config option or from the request. That resolution costs one extra request per call. A function that returns nothing resolves to undefined.

    Stacks deployed at organization scope are reached with the new organizationId client config option, or a per-call organizationId. It takes precedence over projectId, which becomes optional in that case.

  • add request handler for client integrations (#1286) (a9db52f)

  • add variant definition actions (#1278) (7c98361)

    Adds CreateVariantDefinitionAction, EditVariantDefinitionAction and DeleteVariantDefinitionAction, along with a VariantDefinitionAction union, covering the sanity.action.variant.definition.* actions. They are included in the Action union, so client.action() accepts them.

    Note that Action widening is a breaking change for code that exhaustively switches on Action['actionType'] with a never fallthrough, which will need to handle the new cases.

Patch Changes

  • route the live-events CORS probe through the configured transport (#1282) (aaada67)

    The /check/cors probe that client.live.events() uses to distinguish a CORS rejection from other connection failures called the global fetch directly, so a custom resolveFetch or an explicit proxy was not applied to it. It now resolves the same fetch the EventSource connection uses.

  • reword the createVersion() warning about baseId (#1282) (aaada67)

    createVersion({document}) warned that "the recommended approach is to provide a baseId and releaseId instead", which reads as a correction even when the caller had no other option: baseId creates a version of a document that already exists, so creating a genuinely new document inside a release can only be done by passing document.

    The client cannot tell those two cases apart, so the warning is now phrased as a condition rather than a correction: "If you are creating a version of a document that already exists, prefer providing baseId and releaseId instead." No behavior changed, and both forms remain supported.

  • correct the return type of delete() and mutate() when called with no options (#1282) (aaada67)

    client.delete(id) and client.mutate(mutations) were typed to resolve to a document (SanityDocument<R>) when called without an options argument, but

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​sanity/client since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@sanity/client](https://github.com/sanity-io/client) from 7.26.2 to 8.1.0.
- [Release notes](https://github.com/sanity-io/client/releases)
- [Changelog](https://github.com/sanity-io/client/blob/main/CHANGELOG.md)
- [Commits](sanity-io/client@v7.26.2...v8.1.0)

---
updated-dependencies:
- dependency-name: "@sanity/client"
  dependency-version: 8.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: automated, dependencies. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@socket-security

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
Added@​sanity/​client@​8.1.010010010097100

View full report

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.

1 participant