Skip to content

Releases: sanity-io/sdk

sdk-react: v0.0.0-alpha.27

22 Apr 16:26
e9449a5
Compare
Choose a tag to compare

0.0.0-alpha.27 (2025-04-22)

Bug Fixes

  • react: allow sdk-react to work in react 18 (#389) (783b2f9)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/sdk bumped to 0.0.0-alpha.27

sdk-react-internal: v0.0.0-alpha.28

22 Apr 19:24
c7c82aa
Compare
Choose a tag to compare

0.0.0-alpha.28 (2025-04-22)

Bug Fixes

  • core: refactor calculatePermissions to fix initialization error (#443) (e59d6e5)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/sdk-react bumped to 0.0.0-alpha.28

sdk-react-internal: v0.0.0-alpha.27

22 Apr 16:26
e9449a5
Compare
Choose a tag to compare

0.0.0-alpha.27 (2025-04-22)

Miscellaneous

  • sdk-react-internal: Synchronize sdk versions

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/sdk-react bumped to 0.0.0-alpha.27

sdk: v0.0.0-alpha.26

21 Apr 20:40
7675556
Compare
Choose a tag to compare

0.0.0-alpha.26 (2025-04-21)

Features

  • auth: don't store tokens in localstorage if running in dashboard (#409) (637f17c)

Bug Fixes

  • auth: ensure initial url does not contain an sid and improve error handling (#418) (4d76bfc)
  • authentication: use web lock to ensure only one token refresh process runs over multiple tabs (#398) (64aa9fa)
  • auth: fix bug with incorrect refreshing with newly acquired tokens (#422) (1218361)
  • core: allow multiple projections per doc (#403) (d30c5ae)
  • deps: update dependency @sanity/client to ^6.29.0 (#435) (c6c7b35)
  • deps: update dependency @sanity/types to ^3.83.0 (#412) (b40b289)
  • deps: update dependency rxjs to ^7.8.2 (#427) (cbbf964)

Documentation

  • fix duplication/entrypoints; add SDK Core note (#430) (f1046fa)

sdk-react: v0.0.0-alpha.26

21 Apr 20:40
7675556
Compare
Choose a tag to compare

0.0.0-alpha.26 (2025-04-21)

Bug Fixes

  • auth: ensure initial url does not contain an sid and improve error handling (#418) (4d76bfc)
  • deps: update dependency @sanity/types to ^3.83.0 (#412) (b40b289)
  • deps: update dependency rxjs to ^7.8.2 (#427) (cbbf964)
  • docs: fix navigateToStudioDocument doc & type (#417) (e49e799)
  • prevent bridge script addition if already loaded (#428) (7425a97)

Documentation

  • fix duplication/entrypoints; add SDK Core note (#430) (f1046fa)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/sdk bumped to 0.0.0-alpha.26

sdk-react-internal: v0.0.0-alpha.26

21 Apr 20:40
7675556
Compare
Choose a tag to compare

0.0.0-alpha.26 (2025-04-21)

Bug Fixes

  • deps: update dependency @sanity/ui to ^2.15.13 (#426) (ec2cbc5)

Documentation

  • fix duplication/entrypoints; add SDK Core note (#430) (f1046fa)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/sdk-react bumped to 0.0.0-alpha.26

v0.0.0-alpha.25

09 Apr 20:04
ccabf24
Compare
Choose a tag to compare

0.0.0-alpha.25 (2025-04-09)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/sdk-react bumped to 0.0.0-alpha.25

v0.0.0-alpha.24

09 Apr 16:02
82eee35
Compare
Choose a tag to compare

0.0.0-alpha.24 (2025-04-09)

⚠ BREAKING CHANGES

  • use hosted login for standalone apps (#386)
  • replace sanityConfigs prop with config prop in and
  • replace resourceId concept with explicit projectId and dataset fields in handles
  • rename _type to documentType in DocumentHandle interface and related usages
  • rename _id to documentId in DocumentHandle interface and related usages
  • update document hooks and actions to expect DocumentHandle props
  • update project and dataset hooks to use ProjectHandle or DatasetHandle
  • remove , introduce for configuration
  • rename usePermissions → useDocumentPermissions (#365)
  • rename useActions → useDocumentActions and useActions → useDocumentActions (#362)
  • rename useHandleCallback → useHandleAuthCallback and HandleCallback → HandleAuthCallback (#358)
  • rename results to data for useProjection hook (#335)
  • rename result to data for usePreview hook (#325)
  • react: flatten sdk-react imports (#319)
  • remove schema from sanity config
  • remove schema state and schema manager
  • remove useDocuments and useSearch hooks
  • allow multiple resources via instances (#271)
  • renames org auth scope to global (#187)

Features

  • createStore prototype (#46) (d3d69f8)
  • useProjects, useProject, useDatasets (#235) (cc95dfd)
  • add useQuery, useInfiniteList, usePaginatedList hooks (1a3f4ad)
  • add authorization (#52) (59501f1)
  • add document list store (#58) (b66ea04)
  • add hooks for AuthStore (#91) (4367719)
  • add preview store (#62) (c343f1e)
  • add React and Vitest (#3) (e55dc32)
  • add session hooks and store (#59) (65ac911)
  • add storybook and dev affordances (#6) (15b45e8)
  • add turborepo (#2) (19c53e1)
  • add TypeDoc (#43) (2274873)
  • add useClient hook (#96) (c50883b)
  • add useDashboardOrganizationId hook (#339) (401468e)
  • add useProjection hook (#257) (fbaafe0)
  • add useUsers hook (#239) (b89bcf0)
  • add versions information to all packages (#275) (afb2fec)
  • allow multiple resources via instances (#271) (6f4d541)
  • auth: fetch current user when token is present (#92) (f38008c)
  • auth: refresh stamped tokens (#225) (10b2745)
  • AuthStore (#79) (f52e68e)
  • client: add a global api client (#209) (5898b1d)
  • core: add comlink controller and channel store (#141) (cf1e5d5)
  • core: add comlink node store (#156) (a080357)
  • core: add README and npm keywords (#115) (8a3c492)
  • core: create client store (#38) (8545333)
  • core: update client store to subscribe to changes in auth (#85) (a42d58d)
  • core: use separate client for auth and refresh client store with token (#64) (9d18fbf)
  • create sanity instance and store map (#40) (a7bf3e1)
  • document hooks: update the documentation for the Document hook s an optional resourceId (#280) (eb65378)
  • document permissions (#226) (107f434)
  • document store (#197) (497bb26)
  • export the SanityDocument type (#221) (dc6dbc8)
  • introduce consistent Handle pattern (ProjectHandle, DatasetHandle, DocumentHandle) across the SDK (969d70e)
  • kitchen-sink: add routing to kitchen-sink (#99) (50483ea)
  • make packages public (#320) (8c94c29)
  • react: add AuthBoundary (#102) (bd657a0)
  • react: add react compiler to the build process (#298) (bfb74eb)
  • react: add useDocuments hook (#98) (d0f0c1a)
  • react: flatten sdk-react imports (#319) (3922025)
  • refactor to internal auth store (#95) (5807a2b)
  • remove , introduce for configuration (969d70e)
  • remove schema from sanity config (6257fe3)
  • remove useDocuments and useSearch hooks (9f37daf)
  • remove schema state and schema manager (6257fe3)
  • rename _id to documentId in DocumentHandle interface and related usages (969d70e)
  • rename _type to documentType in DocumentHandle interface and related usages ([9...
Read more

sdk: v0.0.0-alpha.23

03 Apr 23:22
3d213d5
Compare
Choose a tag to compare

0.0.0-alpha.23 (2025-04-03)

⚠ BREAKING CHANGES

  • use hosted login for standalone apps (#386)
  • replace sanityConfigs prop with config prop in and
  • replace resourceId concept with explicit projectId and dataset fields in handles
  • rename _type to documentType in DocumentHandle interface and related usages
  • rename _id to documentId in DocumentHandle interface and related usages
  • update document hooks and actions to expect DocumentHandle props
  • update project and dataset hooks to use ProjectHandle or DatasetHandle
  • remove , introduce for configuration

Features

  • introduce consistent Handle pattern (ProjectHandle, DatasetHandle, DocumentHandle) across the SDK (969d70e)
  • remove , introduce for configuration (969d70e)
  • rename _id to documentId in DocumentHandle interface and related usages (969d70e)
  • rename _type to documentType in DocumentHandle interface and related usages (969d70e)
  • replace resourceId concept with explicit projectId and dataset fields in handles (969d70e)
  • replace sanityConfigs prop with config prop in and (969d70e)
  • update document hooks and actions to expect DocumentHandle props (969d70e)
  • update project and dataset hooks to use ProjectHandle or DatasetHandle (969d70e)
  • update query and list hooks to accept optional DatasetHandle for configuration (969d70e)
  • use hosted login for standalone apps (#386) (9c1ad58)

Bug Fixes

sdk-react: v0.0.0-alpha.23

03 Apr 23:22
3d213d5
Compare
Choose a tag to compare

0.0.0-alpha.23 (2025-04-03)

⚠ BREAKING CHANGES

  • use hosted login for standalone apps (#386)
  • replace sanityConfigs prop with config prop in and
  • replace resourceId concept with explicit projectId and dataset fields in handles
  • rename _type to documentType in DocumentHandle interface and related usages
  • rename _id to documentId in DocumentHandle interface and related usages
  • update document hooks and actions to expect DocumentHandle props
  • update project and dataset hooks to use ProjectHandle or DatasetHandle
  • remove , introduce for configuration

Features

  • introduce consistent Handle pattern (ProjectHandle, DatasetHandle, DocumentHandle) across the SDK (969d70e)
  • remove , introduce for configuration (969d70e)
  • rename _id to documentId in DocumentHandle interface and related usages (969d70e)
  • rename _type to documentType in DocumentHandle interface and related usages (969d70e)
  • replace resourceId concept with explicit projectId and dataset fields in handles (969d70e)
  • replace sanityConfigs prop with config prop in and (969d70e)
  • update document hooks and actions to expect DocumentHandle props (969d70e)
  • update project and dataset hooks to use ProjectHandle or DatasetHandle (969d70e)
  • update query and list hooks to accept optional DatasetHandle for configuration (969d70e)
  • use hosted login for standalone apps (#386) (9c1ad58)

Bug Fixes

  • deps: update message-protocol to 0.7.0 (#379) (553b2f5)
  • deps: update pkg-utils to v7 (#384) (ce9a952)
  • ensure usePreview and useProjection hooks subscribe if no ref is passed (#366) (6da3fd1)
  • react: update app redirect url to new dashboard (#377) (86ec07e)