# What changed in @sanity/client

> 10 changes in @sanity/client 8 from its official release notes, upgrade guides and advisories: 1 deprecations, 5 new APIs and options. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/@sanity/client/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @sanity/client 8

### Deprecations

- range, top-level fieldValue, and range: null are deprecated; they are still accepted and sent as anchor. (8.8.0) — [release notes](https://github.com/sanity-io/client/releases/tag/v8.8.0)

### New APIs and options

- Comment create and update now accept a typed anchor with type "portable-text" and optional fieldValue. (8.8.0) — [release notes](https://github.com/sanity-io/client/releases/tag/v8.8.0)
- Exported from @sanity/client/collaboration to build a collaboration comment's global document reference from a resource and document ID without a client. (8.8.0) — [release notes](https://github.com/sanity-io/client/releases/tag/v8.8.0)
- Adds a per-resource projection registry with a document-type level because projections resolve against the caller's document handle. (8.7.0) — [release notes](https://github.com/sanity-io/client/releases/tag/v8.7.0)
- Adds a per-resource query registry for consumers that perform resource-aware lookups. (8.7.0) — [release notes](https://github.com/sanity-io/client/releases/tag/v8.7.0)
- Adds a per-resource schema registry so consumers can register different result types for resources whose schemas disagree. (8.7.0) — [release notes](https://github.com/sanity-io/client/releases/tag/v8.7.0)

### Behavior and default changes

- Comment writes now send clientVersion. (8.8.0) — [release notes](https://github.com/sanity-io/client/releases/tag/v8.8.0)

### Tooling

- Types are updated with the latest Context API descriptions, helping developers use the current context API accurately. (8.8.0) — [release notes](https://github.com/sanity-io/client/releases/tag/v8.9.0), [release notes](https://github.com/sanity-io/client/releases/tag/v8.8.0)

### Fixes and other changes

- The underlying EventSource request is aborted when the response fails validation. (8.7.0) — [release notes](https://github.com/sanity-io/client/releases/tag/v8.7.0)
- Requests are retried on React Native. (8.7.0) — [release notes](https://github.com/sanity-io/client/releases/tag/v8.7.0)
