All notable changes will be documented in this file.
- Exports the
Aborter
interface used inAbortController
to support stricter TypeScript setups. - Allows stricter TypeScript setups by re-exporting
SanityClient
andClientConfig
from@sanity/client
- Bumps
@sanity/client
tov3.3.0
,@sanity/groq-store
tov0.3.1
andgroq
tov2.29.3
- Typo in readme (#44)
- Export the
SubscriptionOptions
interface inuseSubscription
- Upgraded
@sanity/groq-store
tov0.3.0
which includes a new beta ofgroq-js
that improves performance, especially when using projections.
- Upgraded
@sanity/client
tov3
, see its CHANGELOG for details. createPortableTextComponent
is removed.createImageUrlBuilder
is removed.
See the README for migration instructions.
- Portable Text: When encountering unknown block types, the serializer will no longer throw by default - instead if will render a hidden
div
with a message noting that a serializer is missing. A message will also be logged to the console. To use the old behavior of throwing on unknown types, passignoreUnknownTypes: false
as a property to thecreatePortableTextComponent()
function. - Portable Text: The
markFallback
serializer has been renamed tounknownMark
to align with the newunknownType
serializer for blocks.