All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
All notable changes to this project will be documented in this file.
- fix(typings):
fetch()
does not need to return record
- feat: allow setting
allowReconfigure
tofalse
to prevent reconfiguration of existing client instance
- fix(typings): make typings compatible with TypeScript 4.8
- fix(typings): add missing
params
toMutationSelection
- fix(typings): missing class extend for
ObservableTransaction
- fix: regression introduced in #24. Partially exporting ESM breaks environments that bundle for the browser, such as Next.js. Remove
pkg.exports
until what we ship there is 100% compatible with the ecosystem.
- fix: removed
@sanity/generate-help-url
dependency which threwTypeError: generateHelpUrl is not a function
errors in some cases
- fix(typings): observable client emits observables on transaction/patch commit
- fix(typings): add missing
operation
property on mutation result
- docs: fix typo in readme (#10)
- chore: upgrade eventsource dependency
- feat: add
dryRun
,autoGenerateArrayKeys
mutation options
- fix: use named import for
@sanity/generate-help-url
module
- chore(deps): upgrade dependencies
- fix(typings): add missing
timeout
config option - feat: support passing custom headers to http methods (#5)
- feat: add new polyfill for event source (#2)
- feat: make
request()
return value generic - feat: add
skipCrossDatasetReferenceValidation
flag to mutations
- fix(typings): add missing
clone()
method on requester
- feat(http): request compressed responses
- fix(typings): add missing
maxRedirects
option
- fix(typings): use rxjs for observable type
- BREAKING: Passing a
token
anduseCdn: true
will now use the API CDN for queries, where it previously used the uncached, "live" API - BREAKING: Client now only supports Node.js v12 and higher
- BREAKING: Remove deprecated
merge
patch operator - BREAKING: Remove deprecated
document
property onassets.upload
response - BREAKING: Make sure
client.observable.fetch()
returns a cold observable