mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-24 09:13:24 +01:00
update changelog
This commit is contained in:
parent
33b274636b
commit
14f2d0baea
19
Changelog.md
19
Changelog.md
@ -4,6 +4,25 @@ This is a list of changes to Slate with each new release. Until `1.0.0` is relea
|
||||
|
||||
---
|
||||
|
||||
### `0.53.0` — December 10, 2019
|
||||
|
||||
###### BREAKING
|
||||
|
||||
**The `slate-schema` package has been removed.** This decision was made because with the new helpers on the `Editor.*` interface, and with the changes to `normalizeNode` in the latest version of Slate, adding constraints using `normalizeNode` actually leads to more maintainable code that using `slate-schema`. Previously it was required to keep things from getting too unreadable, but that always came at a large cost of indirection and learning additional APIs. Everything you could do with `slate-schema` you can do with `normalizeNode`, and more.
|
||||
|
||||
**Node matching functions now receive just a `Node`.** Previously they received a `NodeEntry` tuple, which consisted of `[node, path]`. However now they receive only a `node` argument, which makes it easier to write one-off node-checking helpers and pass them in directly as arguments. If you need to ensure a path, lookup the node first.
|
||||
|
||||
**A few unnecessary helpers were removed.** There were a handful of leftovers helpers that were not used anywhere in Slate's core logic, and were very unlikely to be used in userland, so they've been removed to reduce bundle size. You are always free to re-implement them if you truly need them. The list of helpers removed is:
|
||||
|
||||
- `Editor.ancestor`
|
||||
- `Node.closest`
|
||||
- `Node.furthest`
|
||||
- `Range.exists`
|
||||
- `Range.isRangeList`
|
||||
- `Range.isRangeMap`
|
||||
|
||||
---
|
||||
|
||||
### `0.52.0` — December 5, 2019
|
||||
|
||||
###### BREAKING
|
||||
|
Loading…
x
Reference in New Issue
Block a user