Skip to content

Releases: sanity-io/preview-kit

v2.1.0

09 Jun 16:19
Compare
Choose a tag to compare

2.1.0 (2023-06-09)

Features

Bug Fixes

  • remove unused groq dependency (5159973)

This release is also available on:

v2.0.0

09 Jun 02:41
7a86ccf
Compare
Choose a tag to compare

2.0.0 (2023-06-09)

⚠ BREAKING CHANGES

  • definePreview and <PreviewSuspense> are replaced by <GroqStoreProvider>.
  • usePreview is replaced by useListeningQuery.
  • @sanity/client is now a peer dependency.

The migration guide outlines every breaking change and how to migrate your code

Features

  • Live previews are now easier to build, have a much shorter bootup time and you no longer need separate preview versions of components as useListeningQuery can be disabled for production modes.
  • token are set in a single location, <GroqStoreProvider>, instead of prop-drilled to every preview component.
  • Suspense boundaries now optional, you only need them if you're code-splitting GroqStoreProvider with React.lazy

Bug Fixes

  • Preview hooks no longer perform queries while the initial dataset export is streaming, as this could lead to incomplete query results and unexpected cases of null.

This release is also available on:

v1.5.4

24 May 02:40
3972e30
Compare
Choose a tag to compare

1.5.4 (2023-05-24)

Bug Fixes

  • less verbose logger paths (#348)
  • improve Portable Text support (#349)
  • skip encoding URLs and ISO dates (#350)

This release is also available on:

v1.5.3

16 May 15:09
faf40f1
Compare
Choose a tag to compare

1.5.3 (2023-05-16)

Bug Fixes

  • deps: update dependencies (faf40f1)

This release is also available on:

v1.5.2

03 May 16:35
Compare
Choose a tag to compare

1.5.2 (2023-05-03)

Introducing Content Source Maps

Note

Content Source Maps are available for select Sanity enterprise customers. Contact our sales team for more information.

Content Source Maps are an optional layer of contextual metadata sent with queries to enable use cases such as Visual Editing, tracing content lineage, and more. Our implementation of Content Source Maps are based on an open standard posted on GitHub, and you can read the API documentation here.

Bug Fixes

  • make encodeSourceMap optional (d03717b)

This release is also available on:

v1.5.1

03 May 15:46
Compare
Choose a tag to compare

1.5.1 (2023-05-03)

Bug Fixes


This release is also available on:

v1.5.0

03 May 14:01
0b5b5b3
Compare
Choose a tag to compare

1.5.0 (2023-05-03)

Introducing Content Source Maps

Note

Content Source Maps are available for select Sanity enterprise customers. Contact our sales team for more information.

Content Source Maps are an optional layer of contextual metadata sent with queries to enable use cases such as Visual Editing, tracing content lineage, and more. Our implementation of Content Source Maps are based on an open standard posted on GitHub, and you can read the API documentation here.


This release is also available on:

v1.4.1

03 May 00:42
Compare
Choose a tag to compare

1.4.1 (2023-05-03)

Bug Fixes

  • docs: add README.md to published package (fdf29af)

This release is also available on:

v1.4.0

11 Apr 09:07
Compare
Choose a tag to compare

1.4.0 (2023-04-11)

Features

  • expose listen config for non-live previews (#298) (e5a1d56)

v1.3.8

24 Mar 16:55
Compare
Choose a tag to compare

1.3.8 (2023-03-24)

Bug Fixes

  • deps: update dependency @sanity/groq-store to v2.1.0 (#283) (e94fce2)
  • replace event-source-polyfill with @sanity/eventsource (#286) (11eac9e)

This release is also available on: