Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] Version packages #3012

Merged
merged 1 commit into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .changeset/dirty-clocks-hide.md

This file was deleted.

21 changes: 21 additions & 0 deletions packages/diff/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/diff/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions packages/plate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @udecode/plate

## 30.9.0

## 30.8.0

## 30.7.0
Expand Down
6 changes: 3 additions & 3 deletions packages/plate/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/suggestion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @udecode/plate-suggestion

## 30.9.0

## 30.8.0

## 30.6.1
Expand Down
4 changes: 2 additions & 2 deletions packages/suggestion/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down