From 74228a2b0a5d0941e61ff65ad2120f49fa357beb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 1 Mar 2024 16:46:39 +0000 Subject: [PATCH] Version Packages --- .changeset/fluffy-donuts-roll.md | 21 --------------------- packages/diff/CHANGELOG.md | 23 +++++++++++++++++++++++ packages/diff/package.json | 2 +- packages/plate/CHANGELOG.md | 2 ++ packages/plate/package.json | 6 +++--- packages/suggestion/CHANGELOG.md | 2 ++ packages/suggestion/package.json | 4 ++-- 7 files changed, 33 insertions(+), 27 deletions(-) delete mode 100644 .changeset/fluffy-donuts-roll.md diff --git a/.changeset/fluffy-donuts-roll.md b/.changeset/fluffy-donuts-roll.md deleted file mode 100644 index 23dd3bfb19..0000000000 --- a/.changeset/fluffy-donuts-roll.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -"@udecode/plate-diff": minor ---- - -- Add `shouldDiffDescendants` option to `computeDiff` to control whether a pair of descendant lists should be diffed. If false, the parent node will be deleted and re-inserted. Defaults to `() => true`. - - Example use case: To prevent `computeDiff` from diffing the text of unrelated paragraphs, use a text similarity checking algorithm to determine whether the paragraphs are sufficiently similar, and return false if not. -- When multiple consecutive nodes have been deleted and inserted, `computeDiff` now groups all consecutive deletions together and does the same with all consecutive insertions. - - Example of a diff prior to this change: - ```diff - - Old paragraph 1 - + New paragraph 1 - - Old paragraph 2 - + New paragraph 2 - ``` - - Example of a diff after this change: - ```diff - - Old paragraph 1 - - Old paragraph 2 - + New paragraph 1 - + New paragraph 2 - ``` diff --git a/packages/diff/CHANGELOG.md b/packages/diff/CHANGELOG.md index 2cbd304c39..f254625aad 100644 --- a/packages/diff/CHANGELOG.md +++ b/packages/diff/CHANGELOG.md @@ -1,5 +1,28 @@ # @udecode/plate-diff +## 30.8.0 + +### Minor Changes + +- [#3009](https://github.com/udecode/plate/pull/3009) by [@12joan](https://github.com/12joan) – + - Add `shouldDiffDescendants` option to `computeDiff` to control whether a pair of descendant lists should be diffed. If false, the parent node will be deleted and re-inserted. Defaults to `() => true`. + - Example use case: To prevent `computeDiff` from diffing the text of unrelated paragraphs, use a text similarity checking algorithm to determine whether the paragraphs are sufficiently similar, and return false if not. + - When multiple consecutive nodes have been deleted and inserted, `computeDiff` now groups all consecutive deletions together and does the same with all consecutive insertions. + - Example of a diff prior to this change: + ```diff + - Old paragraph 1 + + New paragraph 1 + - Old paragraph 2 + + New paragraph 2 + ``` + - Example of a diff after this change: + ```diff + - Old paragraph 1 + - Old paragraph 2 + + New paragraph 1 + + New paragraph 2 + ``` + ## 30.6.1 ### Patch Changes diff --git a/packages/diff/package.json b/packages/diff/package.json index 8b57be65b1..cc2a389bc2 100644 --- a/packages/diff/package.json +++ b/packages/diff/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-diff", - "version": "30.6.1", + "version": "30.8.0", "description": "Compute a diff of two Slate documents", "homepage": "https://platejs.org", "repository": { diff --git a/packages/plate/CHANGELOG.md b/packages/plate/CHANGELOG.md index 316ddc050a..a45665f9cd 100644 --- a/packages/plate/CHANGELOG.md +++ b/packages/plate/CHANGELOG.md @@ -1,5 +1,7 @@ # @udecode/plate +## 30.8.0 + ## 30.7.0 ## 30.6.1 diff --git a/packages/plate/package.json b/packages/plate/package.json index f6d4d84987..c22ac4f132 100644 --- a/packages/plate/package.json +++ b/packages/plate/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate", - "version": "30.7.0", + "version": "30.8.0", "description": "Plate – a plugin system for slate", "license": "MIT", "homepage": "https://platejs.org", @@ -52,7 +52,7 @@ "@udecode/plate-combobox": "30.5.3", "@udecode/plate-comments": "30.5.3", "@udecode/plate-common": "30.4.5", - "@udecode/plate-diff": "30.6.1", + "@udecode/plate-diff": "30.8.0", "@udecode/plate-find-replace": "30.5.3", "@udecode/plate-floating": "30.5.3", "@udecode/plate-font": "30.5.3", @@ -77,7 +77,7 @@ "@udecode/plate-serializer-docx": "30.5.3", "@udecode/plate-serializer-html": "30.5.3", "@udecode/plate-serializer-md": "30.7.0", - "@udecode/plate-suggestion": "30.6.1", + "@udecode/plate-suggestion": "30.8.0", "@udecode/plate-tabbable": "30.5.3", "@udecode/plate-table": "30.5.3", "@udecode/plate-toggle": "30.5.3", diff --git a/packages/suggestion/CHANGELOG.md b/packages/suggestion/CHANGELOG.md index 8f897ec880..d645e90be4 100644 --- a/packages/suggestion/CHANGELOG.md +++ b/packages/suggestion/CHANGELOG.md @@ -1,5 +1,7 @@ # @udecode/plate-suggestion +## 30.8.0 + ## 30.6.1 ## 30.6.0 diff --git a/packages/suggestion/package.json b/packages/suggestion/package.json index cf2e826a44..cd07803e8f 100644 --- a/packages/suggestion/package.json +++ b/packages/suggestion/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-suggestion", - "version": "30.6.1", + "version": "30.8.0", "description": "Plate plugin for suggestions", "homepage": "https://platejs.org", "repository": { @@ -38,7 +38,7 @@ "typecheck": "yarn p:typecheck" }, "dependencies": { - "@udecode/plate-diff": "30.6.1", + "@udecode/plate-diff": "30.8.0", "lodash": "^4.17.21" }, "devDependencies": {