Skip to content

Releases: sanity-io/client

v7.3.0

20 May 15:21
580a524

Choose a tag to compare

7.3.0 (2025-05-20)

Features

  • pass default headers to createClient for all requests (#1079) (e99c852)

v7.2.2

19 May 08:41
010e75e

Choose a tag to compare

7.2.2 (2025-05-19)

Bug Fixes

  • deps: update dependency get-it to ^8.6.9 (#1080) (7a7c6be)

v7.2.1

09 May 15:58
7db7b9a

Choose a tag to compare

7.2.1 (2025-05-09)

Bug Fixes

  • downgrade nanoid to ensure compatibility with node < 22 (#1076) (368a12d)

v7.2.0

09 May 13:45
3e3f398

Choose a tag to compare

7.2.0 (2025-05-09)

Features

Content Release and Document Version operations (#1067) (9b80bd8)

The client now has complete abstractions and types for all Content Lake release and version actions.

These are available to be used directly interfacing with the server action:

client.action(
  {
    actionType: 'sanity.action.document.version.create',
    publishedId: 'bike-123',
    document: {
      _id: 'versions.new-bike-release.bike-123'
      _type: 'bike'
    }
  }
)

Or additionally through method abstractions which provide more unified concepts such as releaseId and publishedId, in addition to client side guards on mismatching IDs:

client.createVersion(
  {
    publishedId: 'bike-123',
    releaseId: 'new-bike-release',
    document: {
      _type: 'bike'
    }
  }
)

Important

Deprecation notice of some document server actions
The discard and replaceDraft actions now have deprecation notices in the client, to reflect updates on the underlying Content Lake API.

discard is superseded by discardVersion and replaceDraft by replaceVersion

v7.1.0

06 May 08:51
4529e0d

Choose a tag to compare

7.1.0 (2025-05-05)

Features

v7.0.0

30 Apr 13:15
f678b54

Choose a tag to compare

7.0.0 (2025-04-30)

⚠ BREAKING CHANGES

  • Dropping support for Node.js < v20 as Node.js v18 is EOL as of 2025-04-30

Bug Fixes

v6.29.1

25 Apr 00:12
107a380

Choose a tag to compare

6.29.1 (2025-04-25)

Bug Fixes

  • dependency update, import condition (d8109b9)

v6.29.0

11 Apr 14:02
09ed88b

Choose a tag to compare

6.29.0 (2025-04-11)

Features

v6.28.4

27 Mar 19:50
9ac5df1

Choose a tag to compare

6.28.4 (2025-03-27)

Bug Fixes

  • do not set withCredentials if token is set (#1037) (0d0730a)
  • remove client side validation of api perspective (#1036) (f10b170)

v6.28.3

05 Mar 08:21
62f2104

Choose a tag to compare

6.28.3 (2025-03-04)

Bug Fixes