mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 10:44:02 +02:00
Version Packages (#5896)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
fb87646e86
commit
bcbc64d944
@@ -1,5 +1,20 @@
|
||||
# slate-react
|
||||
|
||||
## 0.116.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#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).
|
||||
- Add `useElement` and `useElementIf` hooks to get the current element.
|
||||
- **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.
|
||||
- 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.
|
||||
- If this change impacts you, consider changing your `decorate` function to work on the node's parent instead.
|
||||
- For example, if your `decorate` function decorates a `code-line` based on the parent `code-block`'s language, decorate the `code-block` instead.
|
||||
- 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.
|
||||
- Increase minimum `slate-dom` version to `0.116.0`.
|
||||
- Deprecate the `useSlateWithV` hook
|
||||
- PERF: Use subscribable pattern for `useSlate`, `useSelected` and decorations to reduce re-renders.
|
||||
|
||||
## 0.115.0
|
||||
|
||||
### Patch Changes
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "slate-react",
|
||||
"description": "Tools for building completely customizable richtext editors with React.",
|
||||
"version": "0.115.0",
|
||||
"version": "0.116.0",
|
||||
"license": "MIT",
|
||||
"repository": "git://github.com/ianstormtaylor/slate.git",
|
||||
"main": "dist/index.js",
|
||||
@@ -34,8 +34,8 @@
|
||||
"@types/resize-observer-browser": "^0.1.8",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"slate": "^0.115.0",
|
||||
"slate-dom": "^0.114.0",
|
||||
"slate": "^0.116.0",
|
||||
"slate-dom": "^0.116.0",
|
||||
"slate-hyperscript": "^0.115.0",
|
||||
"source-map-loader": "^4.0.1"
|
||||
},
|
||||
|
Reference in New Issue
Block a user