mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 06:31:28 +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 +0,0 @@
|
||||
---
|
||||
'slate-dom': minor
|
||||
---
|
||||
|
||||
- Add `splitDecorationsByChild` to split an array of decorated ranges by child index.
|
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'slate': patch
|
||||
---
|
||||
|
||||
- PERF: Use pure JS instead of Immer for applying operations and transforming points and ranges. Immer is now used only for producing fragments.
|
@@ -1,14 +0,0 @@
|
||||
---
|
||||
'slate-react': minor
|
||||
---
|
||||
|
||||
- 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.
|
Reference in New Issue
Block a user