Skip to content

Commit bcbc64d

Browse files
Version Packages (#5896)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent fb87646 commit bcbc64d

12 files changed

Lines changed: 42 additions & 39 deletions

File tree

.changeset/chatty-flies-pay.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/silly-crabs-sort.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tiny-scissors-yell.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/slate-dom/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# slate-dom
22

3+
## 0.116.0
4+
5+
### Minor Changes
6+
7+
- [#5871](https://github.com/ianstormtaylor/slate/pull/5871) [`fb87646e`](https://github.com/ianstormtaylor/slate/commit/fb87646e8643e1d0547134cea9d1f57912f06a92) Thanks [@12joan](https://github.com/12joan)! - - Add `splitDecorationsByChild` to split an array of decorated ranges by child index.
8+
39
## 0.114.0
410

511
### Patch Changes

packages/slate-dom/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "slate-dom",
33
"description": "Tools for building completely customizable richtext editors with React.",
4-
"version": "0.114.0",
4+
"version": "0.116.0",
55
"license": "MIT",
66
"repository": "git://github.com/ianstormtaylor/slate.git",
77
"main": "dist/index.js",
@@ -29,7 +29,7 @@
2929
"@types/jsdom": "^21.1.4",
3030
"@types/lodash": "^4.14.200",
3131
"@types/resize-observer-browser": "^0.1.8",
32-
"slate": "^0.115.0",
32+
"slate": "^0.116.0",
3333
"slate-hyperscript": "^0.115.0",
3434
"source-map-loader": "^4.0.1"
3535
},

packages/slate-history/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"devDependencies": {
1717
"@babel/runtime": "^7.23.2",
1818
"lodash": "^4.17.21",
19-
"slate": "^0.115.0",
19+
"slate": "^0.116.0",
2020
"slate-hyperscript": "^0.115.0",
2121
"source-map-loader": "^4.0.1"
2222
},

packages/slate-hyperscript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"devDependencies": {
1717
"@babel/runtime": "^7.23.2",
18-
"slate": "^0.115.0",
18+
"slate": "^0.116.0",
1919
"source-map-loader": "^4.0.1"
2020
},
2121
"peerDependencies": {

packages/slate-react/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# slate-react
22

3+
## 0.116.0
4+
5+
### Minor Changes
6+
7+
- [#5871](https://github.com/ianstormtaylor/slate/pull/5871) [`fb87646e`](https://github.com/ianstormtaylor/slate/commit/fb87646e8643e1d0547134cea9d1f57912f06a92) Thanks [@12joan](https://github.com/12joan)! - - Implement experimental chunking optimization (disabled by default, see https://docs.slatejs.org/walkthroughs/09-performance).
8+
- Add `useElement` and `useElementIf` hooks to get the current element.
9+
- **BREAKING CHANGE:** Decorations are no longer recomputed when a node's parent re-renders, only when the node itself re-renders or when the `decorate` function is changed.
10+
- Ensure that `decorate` is a pure function of the node passed into it. Depending on the node's parent may result in decorations not being recomputed when you expect them to be.
11+
- If this change impacts you, consider changing your `decorate` function to work on the node's parent instead.
12+
- For example, if your `decorate` function decorates a `code-line` based on the parent `code-block`'s language, decorate the `code-block` instead.
13+
- This is unlikely to result in any performance detriment, since in previous versions of `slate-react`, the decorations of all siblings were recomputed when one sibling was modified.
14+
- Increase minimum `slate-dom` version to `0.116.0`.
15+
- Deprecate the `useSlateWithV` hook
16+
- PERF: Use subscribable pattern for `useSlate`, `useSelected` and decorations to reduce re-renders.
17+
318
## 0.115.0
419

520
### Patch Changes

packages/slate-react/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "slate-react",
33
"description": "Tools for building completely customizable richtext editors with React.",
4-
"version": "0.115.0",
4+
"version": "0.116.0",
55
"license": "MIT",
66
"repository": "git://github.com/ianstormtaylor/slate.git",
77
"main": "dist/index.js",
@@ -34,8 +34,8 @@
3434
"@types/resize-observer-browser": "^0.1.8",
3535
"react": "^18.2.0",
3636
"react-dom": "^18.2.0",
37-
"slate": "^0.115.0",
38-
"slate-dom": "^0.114.0",
37+
"slate": "^0.116.0",
38+
"slate-dom": "^0.116.0",
3939
"slate-hyperscript": "^0.115.0",
4040
"source-map-loader": "^4.0.1"
4141
},

packages/slate/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# slate
22

3+
## 0.116.0
4+
5+
### Patch Changes
6+
7+
- [#5871](https://github.com/ianstormtaylor/slate/pull/5871) [`fb87646e`](https://github.com/ianstormtaylor/slate/commit/fb87646e8643e1d0547134cea9d1f57912f06a92) Thanks [@12joan](https://github.com/12joan)! - - PERF: Use pure JS instead of Immer for applying operations and transforming points and ranges. Immer is now used only for producing fragments.
8+
39
## 0.115.1
410

511
### Patch Changes

0 commit comments

Comments
 (0)