Releases: sanity-io/sdk
Releases · sanity-io/sdk
sdk-react: v0.0.0-alpha.27
0.0.0-alpha.27 (2025-04-22)
Bug Fixes
Dependencies
- The following workspace dependencies were updated
- dependencies
- @sanity/sdk bumped to 0.0.0-alpha.27
- dependencies
sdk-react-internal: v0.0.0-alpha.28
0.0.0-alpha.28 (2025-04-22)
Bug Fixes
Dependencies
- The following workspace dependencies were updated
- dependencies
- @sanity/sdk-react bumped to 0.0.0-alpha.28
- dependencies
sdk-react-internal: v0.0.0-alpha.27
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
- dependencies
sdk: v0.0.0-alpha.26
0.0.0-alpha.26 (2025-04-21)
Features
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
sdk-react: v0.0.0-alpha.26
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
Dependencies
- The following workspace dependencies were updated
- dependencies
- @sanity/sdk bumped to 0.0.0-alpha.26
- dependencies
sdk-react-internal: v0.0.0-alpha.26
0.0.0-alpha.26 (2025-04-21)
Bug Fixes
Documentation
Dependencies
- The following workspace dependencies were updated
- dependencies
- @sanity/sdk-react bumped to 0.0.0-alpha.26
- dependencies
v0.0.0-alpha.25
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
- dependencies
v0.0.0-alpha.24
0.0.0-alpha.24 (2025-04-09)
⚠ BREAKING CHANGES
- use hosted login for standalone apps (#386)
- replace
sanityConfigs
prop withconfig
prop inand
- replace
resourceId
concept with explicitprojectId
anddataset
fields in handles - rename
_type
todocumentType
in DocumentHandle interface and related usages - rename
_id
todocumentId
in DocumentHandle interface and related usages - update document hooks and actions to expect
DocumentHandle
props - update project and dataset hooks to use
ProjectHandle
orDatasetHandle
- remove
, introduce
for configuration - rename usePermissions → useDocumentPermissions (#365)
- rename useActions → useDocumentActions and useActions → useDocumentActions (#362)
- rename useHandleCallback → useHandleAuthCallback and HandleCallback → HandleAuthCallback (#358)
- rename
results
todata
for useProjection hook (#335) - rename
result
todata
for usePreview hook (#325) - react: flatten sdk-react imports (#319)
- remove
schema
from sanity config - remove schema state and schema manager
- remove
useDocuments
anduseSearch
hooks - allow multiple resources via instances (#271)
- renames
org
auth scope toglobal
(#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
anduseSearch
hooks (9f37daf) - remove schema state and schema manager (6257fe3)
- rename
_id
todocumentId
in DocumentHandle interface and related usages (969d70e) - rename
_type
todocumentType
in DocumentHandle interface and related usages ([9...
sdk: v0.0.0-alpha.23
0.0.0-alpha.23 (2025-04-03)
⚠ BREAKING CHANGES
- use hosted login for standalone apps (#386)
- replace
sanityConfigs
prop withconfig
prop inand
- replace
resourceId
concept with explicitprojectId
anddataset
fields in handles - rename
_type
todocumentType
in DocumentHandle interface and related usages - rename
_id
todocumentId
in DocumentHandle interface and related usages - update document hooks and actions to expect
DocumentHandle
props - update project and dataset hooks to use
ProjectHandle
orDatasetHandle
- remove
, introduce
for configuration
Features
- introduce consistent Handle pattern (
ProjectHandle
,DatasetHandle
,DocumentHandle
) across the SDK (969d70e) - remove
, introduce
for configuration (969d70e) - rename
_id
todocumentId
in DocumentHandle interface and related usages (969d70e) - rename
_type
todocumentType
in DocumentHandle interface and related usages (969d70e) - replace
resourceId
concept with explicitprojectId
anddataset
fields in handles (969d70e) - replace
sanityConfigs
prop withconfig
prop inand
(969d70e) - update document hooks and actions to expect
DocumentHandle
props (969d70e) - update project and dataset hooks to use
ProjectHandle
orDatasetHandle
(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
0.0.0-alpha.23 (2025-04-03)
⚠ BREAKING CHANGES
- use hosted login for standalone apps (#386)
- replace
sanityConfigs
prop withconfig
prop inand
- replace
resourceId
concept with explicitprojectId
anddataset
fields in handles - rename
_type
todocumentType
in DocumentHandle interface and related usages - rename
_id
todocumentId
in DocumentHandle interface and related usages - update document hooks and actions to expect
DocumentHandle
props - update project and dataset hooks to use
ProjectHandle
orDatasetHandle
- remove
, introduce
for configuration
Features
- introduce consistent Handle pattern (
ProjectHandle
,DatasetHandle
,DocumentHandle
) across the SDK (969d70e) - remove
, introduce
for configuration (969d70e) - rename
_id
todocumentId
in DocumentHandle interface and related usages (969d70e) - rename
_type
todocumentType
in DocumentHandle interface and related usages (969d70e) - replace
resourceId
concept with explicitprojectId
anddataset
fields in handles (969d70e) - replace
sanityConfigs
prop withconfig
prop inand
(969d70e) - update document hooks and actions to expect
DocumentHandle
props (969d70e) - update project and dataset hooks to use
ProjectHandle
orDatasetHandle
(969d70e) - update query and list hooks to accept optional
DatasetHandle
for configuration (969d70e) - use hosted login for standalone apps (#386) (9c1ad58)