1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-19 05:31:56 +02:00

update changelogs

This commit is contained in:
Ian Storm Taylor
2019-05-01 19:49:51 -07:00
parent a220cd5ae1
commit 4af9a8b345
7 changed files with 94 additions and 3 deletions

View File

@@ -2,6 +2,35 @@
This document maintains a list of changes to the `slate-hyperscript` 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.12.0` — May 1, 2019
###### BREAKING
**Updated to work with `slate@0.46`.** The hyperscript creators have been updated to work alongside the new text data model in the latest version of slate.
**The `<text>` and `<mark>` hyperscript tags must now return a single text node.** Previously they were more lenient, and might return an array of text nodes. This made it hard to be explicit in tests, and made certain configurations impossible. This new restriction makes it easier to reason about what the tags return, even if it makes certain cases slightly more verbose. For example:
```jsx
<paragraph>
<b>a few <i>italic</i> and bold words.</b>
</paragraph>
```
Must now be written as:
```jsx
<paragraph>
<b>a few </b>
<b><i>italic</i></b>
<b> and bold words.</b>
</paragraph>
```
Slightly more verbose, but with the benefit of being easy to tell exactly how many text nodes you will receive in your resulting document. And it allows setting `key=` values on the mark tags directly, since they map `1:1` to text nodes.
---
### `0.11.0` — October 9, 2018

View File

@@ -16,7 +16,7 @@
"is-plain-object": "^2.0.4"
},
"peerDependencies": {
"slate": ">=0.42.0"
"slate": ">=0.46.0"
},
"devDependencies": {
"mocha": "^2.5.3",