Skip to content

Commit

Permalink
[block-tools] Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsmaskin committed Sep 7, 2020
1 parent 82cf2d9 commit 2a48481
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/@sanity/block-tools/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
2018-12-13: BREAKING: Changed params for `htmlToBlocks` from `(html, options={blockContentType})` to `(html, blockContentType, options={}` as blockContentType is now required.

2019-10-16: `normalizeBlock` now takes a second parameter `options`. You can send in `options.decorators` which are the allowed decorator names. If you send in this, `normalizeBlock` will remove any span marks that are neither a decorator or exists in `block.markDefs`.
2019-10-16: `normalizeBlock` now takes a second parameter `options`. You can send in `options.allowedDecorators` which are the allowed decorator names. If you send in this, `normalizeBlock` will remove any span marks that are neither a decorator or exists in `block.markDefs`.

2020-02-13: NEW: `htmlToBlocks` will not normalize all the blocks (give them a _key and merge sibling spans with same set of marks together)

2020-09-03: BREAKING: removed deprecated editor specific methods `blocksToEditorValue` and `editorValueToBlock`. Please use an older version if you need these.

2020-09-03: NEW: `htmlToBlocks` will now support hoisted block type names.

2020-09-03: NEW: `normalizeBlock` now support naming your block type through `options.blockTypeName`

1 comment on commit 2a48481

@vercel
Copy link

@vercel vercel bot commented on 2a48481 Sep 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.