Releases: coreyward/react-portable-text
Releases · coreyward/react-portable-text
v0.6.0
What's Changed
@sanity/block-content-to-react has been updated to v3.0. This includes breaking changes:
- 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 un known types, pass ignoreUnknownTypes: false as a property.
- The markFallback serializer has been renamed to unknownMark to align with the new unknownType serializer for blocks.
- Bump json5 from 1.0.1 to 1.0.2 by @dependabot in #30
- Bump minimatch from 3.0.4 to 3.1.2 by @dependabot in #31
- Fixes a couple issues with unknownType and ignoreUnknownTypes by @p810 in #32
New Contributors
Full Changelog: v0.5.1...v0.6.0
v0.5.1
v0.5.0
Version 0.5.0 is a change in the license only (MPL 2.0 → MIT).
Edit: Use v0.5.1 instead if you update your dependencies. The NPM release of v0.5.0 did not include the actual compiled files. 😬
I missed releases for versions in between v0.2.2 and v0.5.0, unfortunately. Changes for each are summarized below.
- v0.4.3 fixed issues with Typescript types
- v0.4.0 added
block
,span
,hardBreak
,unknownType
, andunknownMark
support to accepted serializers - v0.3.0 added
container
to the accepted serializers
New Contributors
- @Hahlh made their first contribution in #1
- @dependabot made their first contribution in #3
- @prince-appiah made their first contribution in #15
Full Changelog: v0.2.2...v0.5.0