Skip to content

Releases: sanity-io/sdk

sdk: v2.5.0

31 Dec 00:17
1f4e8cb

Choose a tag to compare

2.5.0 (2025-12-31)

Features

  • add useAgentResourceContext hook (#690) (ffe4e88)
  • implement liveEdit document handling (#678) (e3c8050)
  • make applyDocumentActions more similar to the rest (#630) (440ce84)
  • support using the same instance for different datasets (#632) (1e22eed)

sdk-react: v2.5.0

31 Dec 00:17
1f4e8cb

Choose a tag to compare

2.5.0 (2025-12-31)

Features

  • add useAgentResourceContext hook (#690) (ffe4e88)
  • make applyDocumentActions more similar to the rest (#630) (440ce84)
  • support using the same instance for different datasets (#632) (1e22eed)

Documentation

  • update README and package documentation with quickstart , examples, and package descriptions (#675) (93018bb)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/sdk bumped to 2.5.0

sdk: v2.4.0

16 Dec 16:05
f108f7f

Choose a tag to compare

2.4.0 (2025-12-15)

Features

  • add agent actions (#654) (cb70f89)
  • add canvas as a source for useQuery and useDispatchIntent (#665) (60de2d1)
  • document: add support for initial values in document creation actions (#676) (6329f69)
  • Introduce "source" concept (#626) (92340b9)

Bug Fixes

  • client: improve error handling for missing or invalid options in getClient and useClient (#677) (61eaf6b)
  • handle projectUserNotFoundErrors and display the error message (#651) (1668657)

sdk-react: v2.4.0

16 Dec 16:05
f108f7f

Choose a tag to compare

2.4.0 (2025-12-15)

Features

  • add agent actions (#654) (cb70f89)
  • add canvas as a source for useQuery and useDispatchIntent (#665) (60de2d1)
  • document: add support for initial values in document creation actions (#676) (6329f69)
  • react: create useDispatchIntent hook (#595) (3d5f45c)

Bug Fixes

  • client: improve error handling for missing or invalid options in getClient and useClient (#677) (61eaf6b)
  • handle projectUserNotFoundErrors and display the error message (#651) (1668657)
  • react: ensure useDocumentProjection reuses state source for all strings (#669) (474ff5d)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/sdk bumped to 2.4.0

sdk: v2.3.1

21 Oct 18:41
c4b6885

Choose a tag to compare

2.3.1 (2025-10-17)

Bug Fixes

  • auth race condition when using the SDK in the Studio structure (#646) (a5d0875)

sdk-react: v2.3.1

21 Oct 18:41
c4b6885

Choose a tag to compare

2.3.1 (2025-10-17)

Bug Fixes

  • auth race condition when using the SDK in the Studio structure (#646) (a5d0875)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/sdk bumped to 2.3.1

sdk: v2.3.0

15 Oct 20:32
8ed0524

Choose a tag to compare

2.3.0 (2025-10-15)

Features

  • present a link to add CORS Manage setting when a CORS error occurs (#625) (7610ec2)
  • upgrade groq-js with support for synchronous evaluation (#637) (60996a7)

Bug Fixes

  • auth: do not clear the entire hash during login, only a token value (#648) (5267e18)
  • core: change ValidProjection to string type (#627) (2079b36)
  • deps: update dependency @sanity/client to ^7.12.0 (#649) (eec856f)
  • styling for error messaging (#647) (3bf96f2)

sdk-react: v2.3.0

15 Oct 20:32
8ed0524

Choose a tag to compare

2.3.0 (2025-10-15)

Features

  • present a link to add CORS Manage setting when a CORS error occurs (#625) (7610ec2)
  • upgrade groq-js with support for synchronous evaluation (#637) (60996a7)

Bug Fixes

  • core: change ValidProjection to string type (#627) (2079b36)
  • deps: update dependency @sanity/client to ^7.12.0 (#649) (eec856f)
  • styling for error messaging (#647) (3bf96f2)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/sdk bumped to 2.3.0

sdk: v2.2.0

05 Sep 20:44
df62564

Choose a tag to compare

2.2.0 (2025-09-03)

Features

  • projects: add organizationId and includeMembers parameters to useProjects hook (#607) (df4f69c)

Bug Fixes

  • core: add perspective to cache key to avoid collisions (#609) (c68f9b7)
  • deps: update dependency @sanity/client to v7.10.0 (#605) (6ef5b6c)

sdk-react: v2.2.0

05 Sep 20:44
df62564

Choose a tag to compare

2.2.0 (2025-09-03)

Features

  • projects: add organizationId and includeMembers parameters to useProjects hook (#607) (df4f69c)

Bug Fixes

  • deps: update dependency @sanity/client to v7.10.0 (#605) (6ef5b6c)
  • error message display when a ResourceProvider is missing (#602) (3d7e1fe)
  • projects: properly type the includeMembers option (#610) (f8d9369)
  • react: find correct instance for hooks that use config (#598) (3183c23)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/sdk bumped to 2.2.0