From 14db60f2727f0f665648446209b0f6f756dafc22 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 2 Mar 2024 15:21:16 +0000 Subject: [PATCH] Version Packages --- .changeset/dirty-clocks-hide.md | 18 ------------------ packages/diff/CHANGELOG.md | 21 +++++++++++++++++++++ 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, 31 insertions(+), 24 deletions(-) delete mode 100644 .changeset/dirty-clocks-hide.md diff --git a/.changeset/dirty-clocks-hide.md b/.changeset/dirty-clocks-hide.md deleted file mode 100644 index 599ad987e0..0000000000 --- a/.changeset/dirty-clocks-hide.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"@udecode/plate-diff": minor ---- - -- Remove `shouldDiffDescendants` option in favour of `elementsAreRelated`. -- The `elementsAreRelated` option controls whether `computeDiff` treats a given pair of elements as "related" and thus tries to diff them. By default, elements are related if they have the same `children` OR they differ only in their `children`. Return null to use the default logic for a pair of elements. - - - Use case: In addition to supporting the same use case as the deprecated `shouldDiffDescendants`, `elementsAreRelated` can be used to ensure that `computeDiff` compares the correct pair of paragraphs. - - For example, by default, `computeDiff` would compare `My slightly modified paragraph.` with `New paragraph` in the following diff. - - ```diff - - My slightly modified paragraph. - + New paragraph - + My slightly modified paragraph! - ``` - - If a custom `elementsAreRelated` function is provided that returns true for mostly similar paragraphs, `computeDiff` would instead compare `My slightly modified paragraph.` with `My slightly modified paragraph!`. diff --git a/packages/diff/CHANGELOG.md b/packages/diff/CHANGELOG.md index f254625aad..c4ac2f9310 100644 --- a/packages/diff/CHANGELOG.md +++ b/packages/diff/CHANGELOG.md @@ -1,5 +1,26 @@ # @udecode/plate-diff +## 30.9.0 + +### Minor Changes + +- [#3011](https://github.com/udecode/plate/pull/3011) by [@12joan](https://github.com/12joan) – + + - Remove `shouldDiffDescendants` option in favour of `elementsAreRelated`. + - The `elementsAreRelated` option controls whether `computeDiff` treats a given pair of elements as "related" and thus tries to diff them. By default, elements are related if they have the same `children` OR they differ only in their `children`. Return null to use the default logic for a pair of elements. + + - Use case: In addition to supporting the same use case as the deprecated `shouldDiffDescendants`, `elementsAreRelated` can be used to ensure that `computeDiff` compares the correct pair of paragraphs. + + For example, by default, `computeDiff` would compare `My slightly modified paragraph.` with `New paragraph` in the following diff. + + ```diff + - My slightly modified paragraph. + + New paragraph + + My slightly modified paragraph! + ``` + + If a custom `elementsAreRelated` function is provided that returns true for mostly similar paragraphs, `computeDiff` would instead compare `My slightly modified paragraph.` with `My slightly modified paragraph!`. + ## 30.8.0 ### Minor Changes diff --git a/packages/diff/package.json b/packages/diff/package.json index cc2a389bc2..e5b6b9750b 100644 --- a/packages/diff/package.json +++ b/packages/diff/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-diff", - "version": "30.8.0", + "version": "30.9.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 a45665f9cd..9932bae12e 100644 --- a/packages/plate/CHANGELOG.md +++ b/packages/plate/CHANGELOG.md @@ -1,5 +1,7 @@ # @udecode/plate +## 30.9.0 + ## 30.8.0 ## 30.7.0 diff --git a/packages/plate/package.json b/packages/plate/package.json index c22ac4f132..e2724760e5 100644 --- a/packages/plate/package.json +++ b/packages/plate/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate", - "version": "30.8.0", + "version": "30.9.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.8.0", + "@udecode/plate-diff": "30.9.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.8.0", + "@udecode/plate-suggestion": "30.9.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 d645e90be4..ef0c686c00 100644 --- a/packages/suggestion/CHANGELOG.md +++ b/packages/suggestion/CHANGELOG.md @@ -1,5 +1,7 @@ # @udecode/plate-suggestion +## 30.9.0 + ## 30.8.0 ## 30.6.1 diff --git a/packages/suggestion/package.json b/packages/suggestion/package.json index cd07803e8f..7644a9f688 100644 --- a/packages/suggestion/package.json +++ b/packages/suggestion/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-suggestion", - "version": "30.8.0", + "version": "30.9.0", "description": "Plate plugin for suggestions", "homepage": "https://platejs.org", "repository": { @@ -38,7 +38,7 @@ "typecheck": "yarn p:typecheck" }, "dependencies": { - "@udecode/plate-diff": "30.8.0", + "@udecode/plate-diff": "30.9.0", "lodash": "^4.17.21" }, "devDependencies": {