Skip to content

Releases: sanity-io/preview-kit

v2.2.4

28 Jun 23:15
Compare
Choose a tag to compare

2.2.4 (2023-06-28)

Bug Fixes


This release is also available on:

v2.2.3

27 Jun 12:03
Compare
Choose a tag to compare

2.2.3 (2023-06-27)

Bug Fixes


This release is also available on:

v2.2.2

21 Jun 16:23
Compare
Choose a tag to compare

2.2.2 (2023-06-21)

Bug Fixes

  • make sure cancelled requests don't throw (27143f1)

This release is also available on:

v2.2.1

21 Jun 00:02
Compare
Choose a tag to compare

2.2.1 (2023-06-21)

Bug Fixes

  • apply includeTypes to count query (3eefa35)

This release is also available on:

v2.2.0

20 Jun 13:36
Compare
Choose a tag to compare

2.2.0 (2023-06-20)

Features

  • add LiveQueryProvider & useLiveQuery (1e460b3)

Bug Fixes

  • deps: update dependency lru-cache to v10 (#383) (2cb326c)

This release is also available on:

v2.1.1

10 Jun 00:36
Compare
Choose a tag to compare

2.1.1 (2023-06-10)

Bug Fixes

  • throw error if initialSnapshot is undefined (1ed2bf6)

This release is also available on:

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: