1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-13 18:53:59 +02:00

update changelogs

This commit is contained in:
Ian Storm Taylor
2017-10-14 15:40:48 -07:00
parent f57b53c219
commit 8dceea3c67
6 changed files with 75 additions and 0 deletions

View File

@@ -7,6 +7,16 @@ This document maintains a list of changes to the `slate-html-serializer` package
---
### `0.2.0` — October 14, 2017
###### BREAKING
- **Updated work with `slate@0.27.0`.** The new version of Slate renames the old `Range` model to `Leaf`, and the old `Selection` model to `Range`.
---
### `0.1.0` — September 17, 2017
:tada:

View File

@@ -7,6 +7,16 @@ This document maintains a list of changes to the `slate-hyperscript` package wit
---
### `0.2.0` — October 14, 2017
###### BREAKING
- **Updated work with `slate@0.27.0`.** The new version of Slate renames the old `Range` model to `Leaf`, and the old `Selection` model to `Range`.
---
### `0.1.0` — September 17, 2017
:tada:

View File

@@ -7,6 +7,16 @@ This document maintains a list of changes to the `slate-plain-serializer` packag
---
### `0.2.0` — October 14, 2017
###### BREAKING
- **Updated work with `slate@0.27.0`.** The new version of Slate renames the old `Range` model to `Leaf`, and the old `Selection` model to `Range`.
---
### `0.1.0` — September 17, 2017
:tada:

View File

@@ -7,6 +7,16 @@ This document maintains a list of changes to the `slate-prop-types` package with
---
### `0.2.0` — October 14, 2017
###### BREAKING
- **Updated work with `slate@0.27.0`.** The new version of Slate renames the old `Range` model to `Leaf`, and the old `Selection` model to `Range`.
---
### `0.1.0` — September 17, 2017
:tada:

View File

@@ -7,6 +7,24 @@ This document maintains a list of changes to the `slate-react` package with each
---
### `0.4.0` — October 14, 2017
###### BREAKING
- **Updated work with `slate@0.27.0`.** The new version of Slate renames the old `Range` model to `Leaf`, and the old `Selection` model to `Range`.
###### NEW
- **Added a new `findDOMRange` helper.** Give a Slate `Range` object, it will return a DOM `Range` object with the correct start and end points, making it easier to work with lower-level DOM selections.
- **Added a new `findRange` helper.** Given either a DOM `Selection` or DOM `Range` object and a Slate `State`, it will return a Slate `Range` representing the same part of the document, making it easier to work with DOM selection changes.
- **Added a new `findNode` helper.** Given a DOM `Element`, it will find the closest Slate `Node` that it represents, making
---
### `0.3.0` — October 13, 2017
###### BREAKING

View File

@@ -4,6 +4,23 @@
This document maintains a list of changes to the `slate` package with each new version. Until `1.0.0` is released, breaking changes will be added as minor version bumps, and smaller changes won't be accounted for since the library is moving quickly.
---
### `0.27.0` — October 14, 2017
###### BREAKING
- **The `Range` model is now called `Leaf`.** This is to disambiguate with the concept of "ranges" that is used throughout the codebase to be synonymous to selections. For example in methods like `getBlocksAtRange(selection)`.
###### DEPRECATED
- **The `Selection` model is now called `Range`.** This is to make it more clear what a "selection" really is, to make many of the other methods that act on "ranges" make sense, and to more closely parallel the native DOM API for selections and ranges. A mock `Selection` object is still exported with deprecated `static` methods, to make the transition to the new API easier.
- **The `text.ranges` property in the JSON representation is now `text.leaves`.** When passing in JSON with `text.ranges` you'll now receive a deprecation warning in the console in development.
- **The `Text.getRanges()` method is now `Text.getLeaves()`.** It will still work, and it will return a list of leaves, but you will see a deprecation warning in the console in development.
---