All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.9.1 (2024-10-30)
2.9.0 (2024-09-27)
2.9.0-alpha.0 (2024-09-10)
- release: 2.8.0 (2f15c25)
2.8.0 (2024-05-30)
- support React 19 (c06d5c1)
2.7.4 (2024-03-27)
2.7.3 (2023-09-18)
- resolve TypeScript build error in projects using
--isolatedModules
(c3628d5)
2.7.2 (2023-08-31)
usePrismicClient()
: accept a type parameter to define which documents are supported by the client (e.g.Content.AllDocumentTypes
) (#197) (b16e968)
2.7.1 (2023-06-16)
2.7.0 (2023-06-13)
- SliceZone: add support for mapped Slice Zones created with
@prismicio/client
'sunstable_mapSliceZone()
(#185) (c1e469d)
- deps: update
@prismicio/mock
(f30c971)
2.6.2 (2023-05-22)
2.6.1 (2023-05-09)
- SliceZone: restore
resolver
prop (#181) (e3604d9) - warn when passing
className
to<PrismicRichText>
or<PrismicText>
(#179) (aac1cc7)
2.6.0 (2023-05-06)
2.6.0-alpha.3 (2023-05-05)
- mark
@prismicio/client
as an optional peer dependency (ebfb24d)
2.6.0-alpha.2 (2023-05-01)
- bundle
@prismicio/client
v7 to preventnpm install
issues (fdff6ce) - update error message for incompatible Server Component APIs (d558c91)
2.6.0-alpha.1 (2023-04-25)
- support projects using
@prismicio/client
v6 (3742685)
2.6.0-alpha.0 (2023-04-24)
- add initial React Server Components experiments (6845370)
- full RSC compatibility (maybe) (935cb40)
- PrismicLink progress (61020b5)
- remove the ability to configure components via
@prismicio/react/config
(180802a)
- PrismicLink: types for
rel
and internal/external component props (ed75718) - remove
[@ts-expect-error](https://github.com/ts-expect-error)
(2b420c0) - type import issue (fe73dc0)
- export non-RSC modules from root (fea9c14)
- deps: update all dependencies (299b701)
- remove reference to
/config
entry (57c836f) - remove references to
/config
entry (03d47b3) - remove unused
jsdom
dependencies (963d21c) - update Size Limit config to include all exports (ffc7e75)
- use consistent
package.json
file paths (e901bc0)
2.5.2 (2023-02-17)
2.5.1 (2022-12-19)
- make
@prismicio/types
a regular dependency (b6caa1f)
2.5.0 (2022-08-23)
2.5.0-alpha.1 (2022-08-02)
- slice
slice_id
>id
(be245ce)
2.5.0-alpha.0 (2022-07-28)
- support slice id (d066399)
2.4.4 (2022-07-30)
2.4.3 (2022-07-21)
2.4.2 (2022-06-09)
- export
SliceLikeRestV2
andSliceLikeGraphQL
(#156) (fcd7a13) - prefer warning over throwing when
<PrismicLink>
is given an invalid prop in development (#157) (4610658) - support untyped or partially typed Slices in
<SliceZone>
(#154) (5ca557a)
2.4.1 (2022-05-26)
- throw a helpful error if
<PrismicText>
receives an incorrect field value (#152) (2e4bab0) - throw when
<PrismicLink>
'sfield
ordocument
prop value is missing required properties (#153) (349529e)
2.4.0 (2022-05-25)
- PrismicLink: automatically set
target="_blank" rel="noopener noreferrer"
whenhref
is external (#147) (add20dd)
- do not execute
<PrismicToolbar>
's script during happy-dom tests (72aaa1e) - provide more detailed warning message for
<PrismicImage>
'salt
,fallbackAlt
,width
, andpixelDensities
props (4eaf529)
- fix Happy DOM spelling [skip ci] (9c18562)
2.3.0 (2022-04-15)
2.2.0 (2022-03-31)
- add
fallback
prop to<PrismicRichText>
which is rendered when given an empty field (#135) (1c6eacb) - support Prismic's GraphQL API in
<SliceZone>
(#141) (3f774db)
- correct types for non-string Link Resolver functions (#142) (50ed2f0)
- support React 18 (#138) (3c09fc3)
- deps: update dependencies (192bdf6)
2.1.2 (2022-03-09)
2.1.1 (2022-03-03)
- detect empty Rich Text fields using
@prismicio/helpers
'sisFilled.richText()
(#130) (fc0d68c) - forward refs to
<PrismicLink>
components (#131) (d7f75ed)
2.1.0 (2022-02-28)
2.0.6 (2022-02-05)
- remove ESM
package.json
declaration (fixes'Element' is not exported from '@prismicio/richtext'
) (#122) (6fab9d5)
2.0.5 (2022-01-28)
- ensure an entry file is available for React Native (f65ae5d)
2.0.4 (2022-01-28)
- add Size Limit support (473d3fe)
- add Size Limit to CI workflow (a7a34d0)
- deps: update dependencies (3a902c6)
- support React Native's Metro bundler (9659a5a)
2.0.3 (2022-01-14)
- correct pascalCase type (cf66443)
- resolve lint error in PrismicToolbar (d0a366a)
- use .mjs module exports (c485fc1)
- use pascalCase Slice type for
<SliceZone>
resolver (#109) (a2f2c23)
- deps: update
@prismicio/client
dev dependency (382a2a9) - deps: update dependencies (f1bb443)
- lint .tsx files (ad91234)
2.0.2 (2021-12-16)
- use correct toolbar URL (
new=true
) (8de749c)
- remove incorrect CHANGELOG entry (60967b8)
2.0.1 (2021-12-16)
- compose
<PrismicRichText>
components with<PrismicProvider>
components (e2d1af4)
- remove
[@beta](https://github.com/beta)
tag from installation command [skip ci] (0957770) - update docs link [skip ci] (8bf355e)
- simplify Rich Text serializer composition (0904a3e)
- use
React.ElementType
overstring | React.ComponentType
(19094f6)
2.0.0 (2021-12-03)
2.0.0-beta.9 (2021-12-03)
- cancel client requests on hook cleanup (2c91305)
- prevent infinite loops in client hooks due to object arguments (4858113)
- re-run hook on argument changes (4b2da91)
2.0.0-beta.8 (2021-12-03)
- re-export Element from
@prismicio/richtext
(ae79fd6)
- inject Prismic Toolbar only once (aa14cbd)
- re-run client hooks on parameter changes (1fd3dad)
- restore default link component types (9d6f366)
- use Link Resolver from context in usePrismicPreviewResolver (ed44fa6)
2.0.0-beta.7 (2021-11-23)
2.0.0-beta.6 (2021-11-22)
2.0.0-beta.5 (2021-11-20)
- identify package as side-effect free (3e3e009)
- resolve hook lint warning (6ff01a8)
2.0.0-beta.4 (2021-11-20)
- add
usePrismicPreviewResolver
(4e64de2)
- infer type of internal/external Link component (891140f)
- omit required LinkProps from PrismicLink (4ea3128)
- rename hooks.ts to clientHooks.ts (28d4a73)
2.0.0-beta.3 (2021-11-19)
- rename useAllPrismicDocuments to useAllPrismicDocumentsDangerously (22d63fe)
- treat @prismicio/client as an optional peer dependency (0e0b0b5)
2.0.0-beta.2 (2021-11-04)
- support null PrismicLink target and rel props (850d9a8)
- update installation command with beta tag (a08ac53)
- add github issue and pull request templates (25f2d4f)
- remove outdated README comment (75b4e3e)
- update dependencies (3542673)
2.0.0-beta.1 (2021-11-01)
- add *BySomeTags and *ByEveryTag hooks (7faa6b3)
- use universal Error object in client hooks (c02a557)
2.0.0-alpha.6 (2021-10-09)
- add
usePrismicDocumentsByUIDs
anduseAllPrismicDocumentsByUIDs
(3a25db8) - support intrinsic props from link components (ab82e96)
- add keys to rendered Rich Text components (b0300d3)
- export PrismicText (87457bf)
- looser SliceZoneComponents type to support non-const
slice_type
(c227fec) - move
@prismicio/client
and@prismicio/helpers
to peer dependencies (91a9381) - only pass external props to rendered PrismicLink component (1f9d9a5)
- render Rich Text line breaks as
(4eaa6dd) - use string union over enum for hook states (fef36bc)
- update PrismicToolbar description (1a96dd6)
- reorganize PrismicLink (9dfc9b9)
- add @prismicio/client and @prismicio/helpers as devDependencies (672454f)
- update dependencies (c342721)
- update package-lock.json (b8abf23)
2.0.0-alpha.5 (2021-09-27)
- export PrismicProvider props type (848cd7d)
2.0.0-alpha.4 (2021-09-15)
- allow undefined SliceZone slices and components (a44bebf)
- proper PrismicRichText serializer fallbacks (ca1d37a)
2.0.0-alpha.3 (2021-08-23)
- render PrismicLink using a document (0768280)
- wording on TODOSliceComponent warning (8abfc9a)
- add tsdocs for hooks (0b1a610)
2.0.0-alpha.2 (2021-08-03)
- support document type on client hooks (0a0427b)
- rename PrismicHookState to PrismicClientHookState (8047f8b)
- add react as a dev dependency for tests (9bac238)
- increase test coverage by restructuring (84c5cde)
2.0.0-alpha.1 (2021-08-02)
- move react to a peer dependency (17d9f08)
- remove private label (8bafde4)
2.0.0-alpha.0 (2021-08-02)
- add SliceZone component (1e13c98)
- complete implementation (530be7d)
- export PrismicHookState (8058fe1)
- export updated types (4eb4973)
- initial v2 commit (c666519)
- refine SliceZone types and TODOSliceComponent (0728187)
- accept provider children (629180d)
- allow href, target overrides in PrismicLink (b0037f5)
- better internal url detection (10d5dc3)
- more specific SliceZone types (a4d5a2d)
- safely polyfill process.env (75d70c7)
- stricter href/field prop types for PrismicLink (5dec44a)
- use more correct internalLinkComponent/externalLinkComponent type (281e27c)
- use production over development for optimization checks (b466791)