mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-14 19:24:09 +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.
|
|
@@ -1,5 +1,11 @@
|
|||||||
# slate-dom
|
# slate-dom
|
||||||
|
|
||||||
|
## 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)! - - Add `splitDecorationsByChild` to split an array of decorated ranges by child index.
|
||||||
|
|
||||||
## 0.114.0
|
## 0.114.0
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "slate-dom",
|
"name": "slate-dom",
|
||||||
"description": "Tools for building completely customizable richtext editors with React.",
|
"description": "Tools for building completely customizable richtext editors with React.",
|
||||||
"version": "0.114.0",
|
"version": "0.116.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "git://github.com/ianstormtaylor/slate.git",
|
"repository": "git://github.com/ianstormtaylor/slate.git",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
"@types/jsdom": "^21.1.4",
|
"@types/jsdom": "^21.1.4",
|
||||||
"@types/lodash": "^4.14.200",
|
"@types/lodash": "^4.14.200",
|
||||||
"@types/resize-observer-browser": "^0.1.8",
|
"@types/resize-observer-browser": "^0.1.8",
|
||||||
"slate": "^0.115.0",
|
"slate": "^0.116.0",
|
||||||
"slate-hyperscript": "^0.115.0",
|
"slate-hyperscript": "^0.115.0",
|
||||||
"source-map-loader": "^4.0.1"
|
"source-map-loader": "^4.0.1"
|
||||||
},
|
},
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/runtime": "^7.23.2",
|
"@babel/runtime": "^7.23.2",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"slate": "^0.115.0",
|
"slate": "^0.116.0",
|
||||||
"slate-hyperscript": "^0.115.0",
|
"slate-hyperscript": "^0.115.0",
|
||||||
"source-map-loader": "^4.0.1"
|
"source-map-loader": "^4.0.1"
|
||||||
},
|
},
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/runtime": "^7.23.2",
|
"@babel/runtime": "^7.23.2",
|
||||||
"slate": "^0.115.0",
|
"slate": "^0.116.0",
|
||||||
"source-map-loader": "^4.0.1"
|
"source-map-loader": "^4.0.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
@@ -1,5 +1,20 @@
|
|||||||
# slate-react
|
# 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
|
## 0.115.0
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "slate-react",
|
"name": "slate-react",
|
||||||
"description": "Tools for building completely customizable richtext editors with React.",
|
"description": "Tools for building completely customizable richtext editors with React.",
|
||||||
"version": "0.115.0",
|
"version": "0.116.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "git://github.com/ianstormtaylor/slate.git",
|
"repository": "git://github.com/ianstormtaylor/slate.git",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
@@ -34,8 +34,8 @@
|
|||||||
"@types/resize-observer-browser": "^0.1.8",
|
"@types/resize-observer-browser": "^0.1.8",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"slate": "^0.115.0",
|
"slate": "^0.116.0",
|
||||||
"slate-dom": "^0.114.0",
|
"slate-dom": "^0.116.0",
|
||||||
"slate-hyperscript": "^0.115.0",
|
"slate-hyperscript": "^0.115.0",
|
||||||
"source-map-loader": "^4.0.1"
|
"source-map-loader": "^4.0.1"
|
||||||
},
|
},
|
||||||
|
@@ -1,5 +1,11 @@
|
|||||||
# slate
|
# slate
|
||||||
|
|
||||||
|
## 0.116.0
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#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.
|
||||||
|
|
||||||
## 0.115.1
|
## 0.115.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "slate",
|
"name": "slate",
|
||||||
"description": "A completely customizable framework for building rich text editors.",
|
"description": "A completely customizable framework for building rich text editors.",
|
||||||
"version": "0.115.1",
|
"version": "0.116.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "git://github.com/ianstormtaylor/slate.git",
|
"repository": "git://github.com/ianstormtaylor/slate.git",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
14
yarn.lock
14
yarn.lock
@@ -13325,7 +13325,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"slate-dom@npm:^0.114.0, slate-dom@workspace:*, slate-dom@workspace:packages/slate-dom":
|
"slate-dom@npm:^0.116.0, slate-dom@workspace:*, slate-dom@workspace:packages/slate-dom":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "slate-dom@workspace:packages/slate-dom"
|
resolution: "slate-dom@workspace:packages/slate-dom"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -13341,7 +13341,7 @@ __metadata:
|
|||||||
is-plain-object: "npm:^5.0.0"
|
is-plain-object: "npm:^5.0.0"
|
||||||
lodash: "npm:^4.17.21"
|
lodash: "npm:^4.17.21"
|
||||||
scroll-into-view-if-needed: "npm:^3.1.0"
|
scroll-into-view-if-needed: "npm:^3.1.0"
|
||||||
slate: "npm:^0.115.0"
|
slate: "npm:^0.116.0"
|
||||||
slate-hyperscript: "npm:^0.115.0"
|
slate-hyperscript: "npm:^0.115.0"
|
||||||
source-map-loader: "npm:^4.0.1"
|
source-map-loader: "npm:^4.0.1"
|
||||||
tiny-invariant: "npm:1.3.1"
|
tiny-invariant: "npm:1.3.1"
|
||||||
@@ -13356,7 +13356,7 @@ __metadata:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/runtime": "npm:^7.23.2"
|
"@babel/runtime": "npm:^7.23.2"
|
||||||
lodash: "npm:^4.17.21"
|
lodash: "npm:^4.17.21"
|
||||||
slate: "npm:^0.115.0"
|
slate: "npm:^0.116.0"
|
||||||
slate-hyperscript: "npm:^0.115.0"
|
slate-hyperscript: "npm:^0.115.0"
|
||||||
source-map-loader: "npm:^4.0.1"
|
source-map-loader: "npm:^4.0.1"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -13369,7 +13369,7 @@ __metadata:
|
|||||||
resolution: "slate-hyperscript@workspace:packages/slate-hyperscript"
|
resolution: "slate-hyperscript@workspace:packages/slate-hyperscript"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/runtime": "npm:^7.23.2"
|
"@babel/runtime": "npm:^7.23.2"
|
||||||
slate: "npm:^0.115.0"
|
slate: "npm:^0.116.0"
|
||||||
source-map-loader: "npm:^4.0.1"
|
source-map-loader: "npm:^4.0.1"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
slate: ">=0.114.3"
|
slate: ">=0.114.3"
|
||||||
@@ -13483,8 +13483,8 @@ __metadata:
|
|||||||
react: "npm:^18.2.0"
|
react: "npm:^18.2.0"
|
||||||
react-dom: "npm:^18.2.0"
|
react-dom: "npm:^18.2.0"
|
||||||
scroll-into-view-if-needed: "npm:^3.1.0"
|
scroll-into-view-if-needed: "npm:^3.1.0"
|
||||||
slate: "npm:^0.115.0"
|
slate: "npm:^0.116.0"
|
||||||
slate-dom: "npm:^0.114.0"
|
slate-dom: "npm:^0.116.0"
|
||||||
slate-hyperscript: "npm:^0.115.0"
|
slate-hyperscript: "npm:^0.115.0"
|
||||||
source-map-loader: "npm:^4.0.1"
|
source-map-loader: "npm:^4.0.1"
|
||||||
tiny-invariant: "npm:1.3.1"
|
tiny-invariant: "npm:1.3.1"
|
||||||
@@ -13496,7 +13496,7 @@ __metadata:
|
|||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"slate@npm:^0.115.0, slate@workspace:*, slate@workspace:packages/slate":
|
"slate@npm:^0.116.0, slate@workspace:*, slate@workspace:packages/slate":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "slate@workspace:packages/slate"
|
resolution: "slate@workspace:packages/slate"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
Reference in New Issue
Block a user