Skip to content

Releases: coreyward/react-portable-text

v0.6.0

20 Jan 17:36
9b1226b
Compare
Choose a tag to compare

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

  • @p810 made their first contribution in #32

Full Changelog: v0.5.1...v0.6.0

v0.5.1

24 Aug 16:57
541f9e1
Compare
Choose a tag to compare

Actually includes the built code in the release, unlike 0.5.0, which was empty. 😓

v0.5.0

24 Aug 16:25
dd483f4
Compare
Choose a tag to compare

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, and unknownMark support to accepted serializers
  • v0.3.0 added container to the accepted serializers

New Contributors

Full Changelog: v0.2.2...v0.5.0

v0.2.2

26 Feb 17:22
481556a
Compare
Choose a tag to compare

Fixes to mark type serializers to ensure that properties on the mark (e.g. an href for a link type) get passed to the serializer.