From bd3399f362a5378041af6a54cec014bcb75a295e Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Thu, 8 Nov 2018 13:14:11 -0800 Subject: [PATCH] update changelog --- packages/slate/Changelog.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/slate/Changelog.md b/packages/slate/Changelog.md index bbe4a07dd..8b06ed80d 100644 --- a/packages/slate/Changelog.md +++ b/packages/slate/Changelog.md @@ -4,6 +4,24 @@ A list of changes to the `slate` package with each new version. Until `1.0.0` is --- +### `0.44.0` — November 8, 2018 + +###### NEW + +**Introducing the `child_min_invalid` and `child_max_invalid` schema errors.** These new schema errors map directly to the `mix` and `max` schema rule definitions, and make it easier to determine exactly what your normalization logic needs to do to fix the document. + +**Added new node retrieval methods.** There are three new methdos for node retrieval. The first is `getNodesAtRange` which will retrieve _all_ of the nodes in the tree in a given range. And the second two are `getRootBlocksAtRange` and `getRootInlinesAtRange` for retrieving the top-most blocks or inlines in a given range. These should be helpful in defining your own command logic. + +###### BREAKING + +**Schema errors for `min` and `max` rules have changed.** Previously they would result in errors of `child_required`, `child_object_invalid`, `child_type_invalid` and `child_unknown`. Now that we have the new `child_min_invalid` and `child_max_invalid` errors, these schema rules will return them instead, making it much easier to determine exactly which rule is causing a schema error. + +###### DEPRECATED + +**The `getBlocksAtRange` and `getInlinesAtRange` methods have been renamed.** To clear up confusion about which blocks and inlines are retrieve in the case of nesting, these two methods have been renamed to `getLeafBlocksAtRange` and `getLeafInlinesAtRange` to clarify that they retrieve the bottom-most nodes. And now there are two additional methods called `getRootBlocksAtRange` and `getRootInlinesAtRange` for cases where you want the top-most nodes instead. + +--- + ### `0.43.0` — October 27, 2018 ###### NEW