Skip to content

Commit

Permalink
feat(richtext-lexical)!: upgrade lexical from 0.18.0 to 0.20.0 (#9126)
Browse files Browse the repository at this point in the history
I'm needing facebook/lexical#6693

I'm going to keep the dependency bump and feature updates in separate
PRs unless they're breaking changes.*

**BREAKING:**

This upgrades our lexical dependencies from 0.18.0 to 0.20.0. If you
have lexical dependencies installed in your project, you will have to
upgrade those.

Additionally, the lexical team may introduce breaking changes in this
upgrade. If you use lexical APIs directly, please consult their
changelog for more information:
https://github.com/facebook/lexical/releases
  • Loading branch information
GermanJablo authored Nov 12, 2024
1 parent 2ad9917 commit 7767c94
Show file tree
Hide file tree
Showing 6 changed files with 5,965 additions and 4,851 deletions.
44 changes: 22 additions & 22 deletions packages/richtext-lexical/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,22 @@
"translateNewKeys": "node --no-deprecation --import @swc-node/register/esm-register scripts/translateNewKeys.ts"
},
"dependencies": {
"@lexical/headless": "0.18.0",
"@lexical/link": "0.18.0",
"@lexical/list": "0.18.0",
"@lexical/mark": "0.18.0",
"@lexical/markdown": "0.18.0",
"@lexical/react": "0.18.0",
"@lexical/rich-text": "0.18.0",
"@lexical/selection": "0.18.0",
"@lexical/utils": "0.18.0",
"@lexical/headless": "0.20.0",
"@lexical/link": "0.20.0",
"@lexical/list": "0.20.0",
"@lexical/mark": "0.20.0",
"@lexical/markdown": "0.20.0",
"@lexical/react": "0.20.0",
"@lexical/rich-text": "0.20.0",
"@lexical/selection": "0.20.0",
"@lexical/utils": "0.20.0",
"@payloadcms/translations": "workspace:*",
"@payloadcms/ui": "workspace:*",
"@types/uuid": "10.0.0",
"bson-objectid": "2.0.4",
"dequal": "2.0.3",
"escape-html": "1.0.3",
"lexical": "0.18.0",
"lexical": "0.20.0",
"react-error-boundary": "4.0.13",
"ts-essentials": "10.0.3",
"uuid": "10.0.0"
Expand All @@ -82,7 +82,7 @@
"@babel/preset-env": "^7.24.5",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@lexical/eslint-plugin": "0.18.0",
"@lexical/eslint-plugin": "0.20.0",
"@payloadcms/eslint-config": "workspace:*",
"@types/escape-html": "1.0.4",
"@types/json-schema": "7.0.15",
Expand All @@ -100,18 +100,18 @@
"peerDependencies": {
"@faceless-ui/modal": "3.0.0-beta.2",
"@faceless-ui/scroll-info": "2.0.0-beta.0",
"@lexical/headless": "0.18.0",
"@lexical/link": "0.18.0",
"@lexical/list": "0.18.0",
"@lexical/mark": "0.18.0",
"@lexical/markdown": "0.18.0",
"@lexical/react": "0.18.0",
"@lexical/rich-text": "0.18.0",
"@lexical/selection": "0.18.0",
"@lexical/table": "0.18.0",
"@lexical/utils": "0.18.0",
"@lexical/headless": "0.20.0",
"@lexical/link": "0.20.0",
"@lexical/list": "0.20.0",
"@lexical/mark": "0.20.0",
"@lexical/markdown": "0.20.0",
"@lexical/react": "0.20.0",
"@lexical/rich-text": "0.20.0",
"@lexical/selection": "0.20.0",
"@lexical/table": "0.20.0",
"@lexical/utils": "0.20.0",
"@payloadcms/next": "workspace:*",
"lexical": "0.18.0",
"lexical": "0.20.0",
"payload": "workspace:*",
"react": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
"react-dom": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020"
Expand Down
2 changes: 1 addition & 1 deletion packages/richtext-lexical/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function lexicalEditor(props?: LexicalEditorProps): LexicalRichTextAdapte
'@lexical/selection',
'@lexical/utils',
],
targetVersion: '0.18.0',
targetVersion: '0.20.0',
},
],
})
Expand Down
Loading

0 comments on commit 7767c94

Please sign in to comment.