From 36117b29dd7cd08bc966dced3255b1cc138d1b2c Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 09:53:27 +0000 Subject: [PATCH 1/5] fix: Aligning lexical deps to 0.35.0 to match Payload 3.74.0 @payloadcms/richtext-lexical@3.74.0 pins lexical@0.35.0. Updated @lexical/headless, @lexical/html and lexical in payload-helper from 0.39.0 to 0.35.0, and synced the root pnpm override to match. https://claude.ai/code/session_01Enp5FVijpX51P4hxTpzpQw --- .changeset/fix-lexical-version-conflict.md | 5 +++++ package.json | 2 +- packages/payload-helper/package.json | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/fix-lexical-version-conflict.md diff --git a/.changeset/fix-lexical-version-conflict.md b/.changeset/fix-lexical-version-conflict.md new file mode 100644 index 00000000..6900ddd6 --- /dev/null +++ b/.changeset/fix-lexical-version-conflict.md @@ -0,0 +1,5 @@ +--- +"@ainsleydev/payload-helper": patch +--- + +Aligning lexical and @lexical/* dependencies to 0.35.0 to match @payloadcms/richtext-lexical@3.74.0. diff --git a/package.json b/package.json index d3024fee..2cc80b1f 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "pnpm": { "onlyBuiltDependencies": ["sharp"], "overrides": { - "lexical": "0.38.2" + "lexical": "0.35.0" } } } diff --git a/packages/payload-helper/package.json b/packages/payload-helper/package.json index 1202c7ff..f1a8473f 100644 --- a/packages/payload-helper/package.json +++ b/packages/payload-helper/package.json @@ -72,8 +72,8 @@ }, "dependencies": { "@ainsleydev/email-templates": "workspace:*", - "@lexical/headless": "0.39.0", - "@lexical/html": "0.39.0", + "@lexical/headless": "0.35.0", + "@lexical/html": "0.35.0", "@nouance/payload-better-fields-plugin": "^2.0.2", "@payloadcms/db-sqlite": "3.74.0", "@payloadcms/plugin-form-builder": "3.74.0", @@ -84,7 +84,7 @@ "commander": "^14.0.2", "dotenv": "16.4.7", "jsdom": "^27.2.0", - "lexical": "0.39.0", + "lexical": "0.35.0", "mime-types": "^3.0.1", "payload": "3.74.0" }, From b115559122fdd03bd59626b9e37d3e9293c0654f Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 09:57:23 +0000 Subject: [PATCH 2/5] chore: Moving lexical deps to peerDependencies in payload-helper Moves lexical, @lexical/headless and @lexical/html from dependencies to peerDependencies with a >=0.35.0 floor. This lets consuming projects inherit whichever lexical version their Payload install resolves, eliminating version conflicts when upgrading Payload across repos. Keeps concrete 0.35.0 pins in devDependencies for local builds. https://claude.ai/code/session_01Enp5FVijpX51P4hxTpzpQw --- .changeset/lexical-peer-deps.md | 5 +++++ packages/payload-helper/package.json | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .changeset/lexical-peer-deps.md diff --git a/.changeset/lexical-peer-deps.md b/.changeset/lexical-peer-deps.md new file mode 100644 index 00000000..152fecab --- /dev/null +++ b/.changeset/lexical-peer-deps.md @@ -0,0 +1,5 @@ +--- +"@ainsleydev/payload-helper": patch +--- + +Moving lexical and @lexical/* to peerDependencies with a >=0.35.0 range so consuming projects inherit whatever version their Payload install resolves, avoiding version conflicts across different Payload releases. diff --git a/packages/payload-helper/package.json b/packages/payload-helper/package.json index f1a8473f..a787bbd3 100644 --- a/packages/payload-helper/package.json +++ b/packages/payload-helper/package.json @@ -72,8 +72,6 @@ }, "dependencies": { "@ainsleydev/email-templates": "workspace:*", - "@lexical/headless": "0.35.0", - "@lexical/html": "0.35.0", "@nouance/payload-better-fields-plugin": "^2.0.2", "@payloadcms/db-sqlite": "3.74.0", "@payloadcms/plugin-form-builder": "3.74.0", @@ -84,17 +82,21 @@ "commander": "^14.0.2", "dotenv": "16.4.7", "jsdom": "^27.2.0", - "lexical": "0.35.0", "mime-types": "^3.0.1", "payload": "3.74.0" }, "peerDependencies": { + "@lexical/headless": ">=0.35.0", + "@lexical/html": ">=0.35.0", "@payloadcms/ui": "3.x", + "lexical": ">=0.35.0", "next": "15.x || 16.x", "react": "^18.0.0 || ^19.0.0" }, "devDependencies": { "@ainsleydev/eslint-config": "workspace:*", + "@lexical/headless": "0.35.0", + "@lexical/html": "0.35.0", "@payloadcms/ui": "3.74.0", "@swc/cli": "^0.7.8", "@swc/core": "^1.7.2", @@ -105,6 +107,7 @@ "@types/react": "19.2.9", "jest": "^30.2.0", "json-schema": "^0.4.0", + "lexical": "0.35.0", "next": "^16.0.1", "react": "^19.2.1", "rimraf": "6.1.0", From d474e6f0829ef437d40747d957219e16edeaddab Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 09:59:47 +0000 Subject: [PATCH 3/5] chore: Consolidating lexical changeset into single entry https://claude.ai/code/session_01Enp5FVijpX51P4hxTpzpQw --- .changeset/fix-lexical-version-conflict.md | 5 ----- .changeset/lexical-peer-deps.md | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 .changeset/fix-lexical-version-conflict.md diff --git a/.changeset/fix-lexical-version-conflict.md b/.changeset/fix-lexical-version-conflict.md deleted file mode 100644 index 6900ddd6..00000000 --- a/.changeset/fix-lexical-version-conflict.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@ainsleydev/payload-helper": patch ---- - -Aligning lexical and @lexical/* dependencies to 0.35.0 to match @payloadcms/richtext-lexical@3.74.0. diff --git a/.changeset/lexical-peer-deps.md b/.changeset/lexical-peer-deps.md index 152fecab..0e8b0db0 100644 --- a/.changeset/lexical-peer-deps.md +++ b/.changeset/lexical-peer-deps.md @@ -2,4 +2,4 @@ "@ainsleydev/payload-helper": patch --- -Moving lexical and @lexical/* to peerDependencies with a >=0.35.0 range so consuming projects inherit whatever version their Payload install resolves, avoiding version conflicts across different Payload releases. +Moving lexical and @lexical/* to peerDependencies with a >=0.35.0 range, aligning with @payloadcms/richtext-lexical@3.74.0 and allowing consuming projects to inherit whatever version their Payload install resolves. From bded8bd4cf80e281c406208e0d01970ba11c4381 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 10:03:47 +0000 Subject: [PATCH 4/5] chore: Updating pnpm lockfile after lexical dependency changes https://claude.ai/code/session_01Enp5FVijpX51P4hxTpzpQw --- pnpm-lock.yaml | 162 ++++++++++++++----------------------------------- 1 file changed, 44 insertions(+), 118 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 44365ffe..a715c995 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,7 +5,7 @@ settings: excludeLinksFromLockfile: false overrides: - lexical: 0.38.2 + lexical: 0.35.0 importers: @@ -177,12 +177,6 @@ importers: '@ainsleydev/email-templates': specifier: workspace:* version: link:../email-templates - '@lexical/headless': - specifier: 0.39.0 - version: 0.39.0 - '@lexical/html': - specifier: 0.39.0 - version: 0.39.0 '@nouance/payload-better-fields-plugin': specifier: ^2.0.2 version: 2.0.2(colord@2.9.3)(date-fns-tz@2.0.1(date-fns@4.1.0))(payload@3.74.0(graphql@16.12.0)(typescript@5.9.3))(react-colorful@5.6.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react-number-format@5.4.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react-phone-number-input@3.4.13(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(slug@10.0.0) @@ -213,9 +207,6 @@ importers: jsdom: specifier: ^27.2.0 version: 27.2.0 - lexical: - specifier: 0.38.2 - version: 0.38.2 mime-types: specifier: ^3.0.1 version: 3.0.1 @@ -226,6 +217,12 @@ importers: '@ainsleydev/eslint-config': specifier: workspace:* version: link:../config-eslint + '@lexical/headless': + specifier: 0.35.0 + version: 0.35.0 + '@lexical/html': + specifier: 0.35.0 + version: 0.35.0 '@payloadcms/ui': specifier: 3.74.0 version: 3.74.0(@types/react@19.2.9)(monaco-editor@0.54.0)(next@16.0.3(@babel/core@7.28.5)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(sass@1.77.4))(payload@3.74.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(typescript@5.9.3) @@ -256,6 +253,9 @@ importers: json-schema: specifier: ^0.4.0 version: 0.4.0 + lexical: + specifier: 0.35.0 + version: 0.35.0 next: specifier: ^16.0.1 version: 16.0.3(@babel/core@7.28.5)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(sass@1.77.4) @@ -1780,9 +1780,6 @@ packages: '@lexical/clipboard@0.35.0': resolution: {integrity: sha512-ko7xSIIiayvDiqjNDX6fgH9RlcM6r9vrrvJYTcfGVBor5httx16lhIi0QJZ4+RNPvGtTjyFv4bwRmsixRRwImg==} - '@lexical/clipboard@0.39.0': - resolution: {integrity: sha512-ylrHy8M+I5EH4utwqivslugqQhvgLTz9VEJdrb2RjbhKQEXwMcqKCRWh6cRfkYx64onE2YQE0nRIdzHhExEpLQ==} - '@lexical/code@0.35.0': resolution: {integrity: sha512-ox4DZwETQ9IA7+DS6PN8RJNwSAF7RMjL7YTVODIqFZ5tUFIf+5xoCHbz7Fll0Bvixlp12hVH90xnLwTLRGpkKw==} @@ -1795,36 +1792,24 @@ packages: '@lexical/dragon@0.35.0': resolution: {integrity: sha512-SL6mT5pcqrt6hEbJ16vWxip5+r3uvMd0bQV5UUxuk+cxIeuP86iTgRh0HFR7SM2dRTYovL6/tM/O+8QLAUGTIg==} - '@lexical/extension@0.39.0': - resolution: {integrity: sha512-mp/WcF8E53FWPiUHgHQz382J7u7C4+cELYNkC00dKaymf8NhS6M65Y8tyDikNGNUcLXSzaluwK0HkiKjTYGhVQ==} - '@lexical/hashtag@0.35.0': resolution: {integrity: sha512-LYJWzXuO2ZjKsvQwrLkNZiS2TsjwYkKjlDgtugzejquTBQ/o/nfSn/MmVx6EkYLOYizaJemmZbz3IBh+u732FA==} '@lexical/headless@0.35.0': resolution: {integrity: sha512-UPmCqOsdGGC7/8Fkae2ADkTQfxTZOKxNEVKuqPfCkFs4Bag3s4z3V61jE+wYzqyU8eJh4DqZYSHoPzZCj8P9jg==} - '@lexical/headless@0.39.0': - resolution: {integrity: sha512-i/rZhFxP2nCF9rakOr3HTpsE7kYCLJv1/HUfOV0KHEHewivpRQdn/mtaQPqouQR9/gx0ZN8AnJLnYlbLzM367g==} - '@lexical/history@0.35.0': resolution: {integrity: sha512-onjDRLLxGbCfHexSxxrQaDaieIHyV28zCDrbxR5dxTfW8F8PxjuNyuaG0z6o468AXYECmclxkP+P4aT6poHEpQ==} '@lexical/html@0.35.0': resolution: {integrity: sha512-rXGFE5S5rKsg3tVnr1s4iEgOfCApNXGpIFI3T2jGEShaCZ5HLaBY9NVBXnE9Nb49e9bkDkpZ8FZd1qokCbQXbw==} - '@lexical/html@0.39.0': - resolution: {integrity: sha512-7VLWP5DpzBg3kKctpNK6PbhymKAtU6NAnKieopCfCIWlMW+EqpldteiIXGqSqrMRK0JWTmF1gKgr9nnQyOOsXw==} - '@lexical/link@0.35.0': resolution: {integrity: sha512-+0Wx6cBwO8TfdMzpkYFacsmgFh8X1rkiYbq3xoLvk3qV8upYxaMzK1s8Q1cpKmWyI0aZrU6z7fiK4vUqB7+69w==} '@lexical/list@0.35.0': resolution: {integrity: sha512-owsmc8iwgExBX8sFe8fKTiwJVhYULt9hD1RZ/HwfaiEtRZZkINijqReOBnW2mJfRxBzhFSWc4NG3ISB+fHYzqw==} - '@lexical/list@0.39.0': - resolution: {integrity: sha512-mxgSxUrakTCHtC+gF30BChQBJTsCMiMgfC2H5VvhcFwXMgsKE/aK9+a+C/sSvvzCmPXqzYsuAcGkJcrY3e5xlw==} - '@lexical/mark@0.35.0': resolution: {integrity: sha512-W0hwMTAVeexvpk9/+J6n1G/sNkpI/Meq1yeDazahFLLAwXLHtvhIAq2P/klgFknDy1hr8X7rcsQuN/bqKcKHYg==} @@ -1852,24 +1837,15 @@ packages: '@lexical/selection@0.35.0': resolution: {integrity: sha512-mMtDE7Q0nycXdFTTH/+ta6EBrBwxBB4Tg8QwsGntzQ1Cq//d838dpXpFjJOqHEeVHUqXpiuj+cBG8+bvz/rPRw==} - '@lexical/selection@0.39.0': - resolution: {integrity: sha512-j0cgNuTKDCdf/4MzRnAUwEqG6C/WQp18k2WKmX5KIVZJlhnGIJmlgSBrxjo8AuZ16DIHxTm2XNB4cUDCgZNuPA==} - '@lexical/table@0.35.0': resolution: {integrity: sha512-9jlTlkVideBKwsEnEkqkdg7A3mije1SvmfiqoYnkl1kKJCLA5iH90ywx327PU0p+bdnURAytWUeZPXaEuEl2OA==} - '@lexical/table@0.39.0': - resolution: {integrity: sha512-1eH11kV4bJ0fufCYl8DpE19kHwqUI8Ev5CZwivfAtC3ntwyNkeEpjCc0pqeYYIWN/4rTZ5jgB3IJV4FntyfCzw==} - '@lexical/text@0.35.0': resolution: {integrity: sha512-uaMh46BkysV8hK8wQwp5g/ByZW+2hPDt8ahAErxtf8NuzQem1FHG/f5RTchmFqqUDVHO3qLNTv4AehEGmXv8MA==} '@lexical/utils@0.35.0': resolution: {integrity: sha512-2H393EYDnFznYCDFOW3MHiRzwEO5M/UBhtUjvTT+9kc+qhX4U3zc8ixQalo5UmZ5B2nh7L/inXdTFzvSRXtsRA==} - '@lexical/utils@0.39.0': - resolution: {integrity: sha512-8YChidpMJpwQc4nex29FKUeuZzC++QCS/Jt46lPuy1GS/BZQoPHFKQ5hyVvM9QVhc5CEs4WGNoaCZvZIVN8bQw==} - '@lexical/yjs@0.35.0': resolution: {integrity: sha512-3DSP7QpmTGYU9bN/yljP0PIao4tNIQtsR4ycauWNSawxs/GQCZtSmAPcLRnCm6qpqsDDjUtKjO/1Ej8FRp0m0w==} peerDependencies: @@ -2232,9 +2208,6 @@ packages: '@polka/url@1.0.0-next.29': resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==} - '@preact/signals-core@1.12.1': - resolution: {integrity: sha512-BwbTXpj+9QutoZLQvbttRg5x3l5468qaV2kufh+51yha1c53ep5dY4kTuZR35+3pAZxpfQerGJiQqg34ZNZ6uA==} - '@react-email/body@0.0.11': resolution: {integrity: sha512-ZSD2SxVSgUjHGrB0Wi+4tu3MEpB4fYSbezsFNEJk2xCWDBkFiOeEsjTmR5dvi+CxTK691hQTQlHv0XWuP7ENTg==} peerDependencies: @@ -5413,8 +5386,8 @@ packages: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} - lexical@0.38.2: - resolution: {integrity: sha512-JJmfsG3c4gwBHzUGffbV7ifMNkKAWMCnYE3xJl87gty7hjyV5f3xq7eqTjP5HFYvO4XpjJvvWO2/djHp5S10tw==} + lexical@0.35.0: + resolution: {integrity: sha512-3VuV8xXhh5xJA6tzvfDvE0YBCMkIZUmxtRilJQDDdCgJCc+eut6qAv2qbN+pbqvarqcQqPN1UF+8YvsjmyOZpw==} lib0@0.2.114: resolution: {integrity: sha512-gcxmNFzA4hv8UYi8j43uPlQ7CGcyMJ2KQb5kZASw6SnAKAf10hK12i2fjrS3Cl/ugZa5Ui6WwIu1/6MIXiHttQ==} @@ -8994,20 +8967,12 @@ snapshots: '@lexical/list': 0.35.0 '@lexical/selection': 0.35.0 '@lexical/utils': 0.35.0 - lexical: 0.38.2 - - '@lexical/clipboard@0.39.0': - dependencies: - '@lexical/html': 0.39.0 - '@lexical/list': 0.39.0 - '@lexical/selection': 0.39.0 - '@lexical/utils': 0.39.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/code@0.35.0': dependencies: '@lexical/utils': 0.35.0 - lexical: 0.38.2 + lexical: 0.35.0 prismjs: 1.30.0 '@lexical/devtools-core@0.35.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': @@ -9017,73 +8982,49 @@ snapshots: '@lexical/mark': 0.35.0 '@lexical/table': 0.35.0 '@lexical/utils': 0.35.0 - lexical: 0.38.2 + lexical: 0.35.0 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) '@lexical/dragon@0.35.0': dependencies: - lexical: 0.38.2 - - '@lexical/extension@0.39.0': - dependencies: - '@lexical/utils': 0.39.0 - '@preact/signals-core': 1.12.1 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/hashtag@0.35.0': dependencies: '@lexical/utils': 0.35.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/headless@0.35.0': dependencies: - lexical: 0.38.2 - - '@lexical/headless@0.39.0': - dependencies: - happy-dom: 20.0.10 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/history@0.35.0': dependencies: '@lexical/utils': 0.35.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/html@0.35.0': dependencies: '@lexical/selection': 0.35.0 '@lexical/utils': 0.35.0 - lexical: 0.38.2 - - '@lexical/html@0.39.0': - dependencies: - '@lexical/selection': 0.39.0 - '@lexical/utils': 0.39.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/link@0.35.0': dependencies: '@lexical/utils': 0.35.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/list@0.35.0': dependencies: '@lexical/selection': 0.35.0 '@lexical/utils': 0.35.0 - lexical: 0.38.2 - - '@lexical/list@0.39.0': - dependencies: - '@lexical/extension': 0.39.0 - '@lexical/selection': 0.39.0 - '@lexical/utils': 0.39.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/mark@0.35.0': dependencies: '@lexical/utils': 0.35.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/markdown@0.35.0': dependencies: @@ -9093,22 +9034,22 @@ snapshots: '@lexical/rich-text': 0.35.0 '@lexical/text': 0.35.0 '@lexical/utils': 0.35.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/offset@0.35.0': dependencies: - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/overflow@0.35.0': dependencies: - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/plain-text@0.35.0': dependencies: '@lexical/clipboard': 0.35.0 '@lexical/selection': 0.35.0 '@lexical/utils': 0.35.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/react@0.35.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(yjs@13.6.27)': dependencies: @@ -9128,7 +9069,7 @@ snapshots: '@lexical/text': 0.35.0 '@lexical/utils': 0.35.0 '@lexical/yjs': 0.35.0(yjs@13.6.27) - lexical: 0.38.2 + lexical: 0.35.0 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) react-error-boundary: 3.1.4(react@19.2.4) @@ -9140,52 +9081,34 @@ snapshots: '@lexical/clipboard': 0.35.0 '@lexical/selection': 0.35.0 '@lexical/utils': 0.35.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/selection@0.35.0': dependencies: - lexical: 0.38.2 - - '@lexical/selection@0.39.0': - dependencies: - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/table@0.35.0': dependencies: '@lexical/clipboard': 0.35.0 '@lexical/utils': 0.35.0 - lexical: 0.38.2 - - '@lexical/table@0.39.0': - dependencies: - '@lexical/clipboard': 0.39.0 - '@lexical/extension': 0.39.0 - '@lexical/utils': 0.39.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/text@0.35.0': dependencies: - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/utils@0.35.0': dependencies: '@lexical/list': 0.35.0 '@lexical/selection': 0.35.0 '@lexical/table': 0.35.0 - lexical: 0.38.2 - - '@lexical/utils@0.39.0': - dependencies: - '@lexical/list': 0.39.0 - '@lexical/selection': 0.39.0 - '@lexical/table': 0.39.0 - lexical: 0.38.2 + lexical: 0.35.0 '@lexical/yjs@0.35.0(yjs@13.6.27)': dependencies: '@lexical/offset': 0.35.0 '@lexical/selection': 0.35.0 - lexical: 0.38.2 + lexical: 0.35.0 yjs: 13.6.27 '@libsql/client@0.14.0': @@ -9622,7 +9545,7 @@ snapshots: dequal: 2.0.3 escape-html: 1.0.3 jsox: 1.2.121 - lexical: 0.38.2 + lexical: 0.35.0 mdast-util-from-markdown: 2.0.2 mdast-util-mdx-jsx: 3.1.3 micromark-extension-mdx-jsx: 3.0.1 @@ -9728,8 +9651,6 @@ snapshots: '@polka/url@1.0.0-next.29': {} - '@preact/signals-core@1.12.1': {} - '@react-email/body@0.0.11(react@19.2.4)': dependencies: react: 19.2.4 @@ -10277,6 +10198,7 @@ snapshots: '@types/node@20.19.25': dependencies: undici-types: 6.21.0 + optional: true '@types/node@24.10.1': dependencies: @@ -10320,7 +10242,8 @@ snapshots: '@types/web-bluetooth@0.0.21': {} - '@types/whatwg-mimetype@3.0.2': {} + '@types/whatwg-mimetype@3.0.2': + optional: true '@types/ws@8.18.1': dependencies: @@ -12634,6 +12557,7 @@ snapshots: '@types/node': 20.19.25 '@types/whatwg-mimetype': 3.0.2 whatwg-mimetype: 3.0.0 + optional: true has-bigints@1.1.0: {} @@ -13575,7 +13499,7 @@ snapshots: prelude-ls: 1.2.1 type-check: 0.4.0 - lexical@0.38.2: {} + lexical@0.35.0: {} lib0@0.2.114: dependencies: @@ -15501,7 +15425,8 @@ snapshots: buffer: 5.7.1 through: 2.3.8 - undici-types@6.21.0: {} + undici-types@6.21.0: + optional: true undici-types@7.16.0: {} @@ -15835,7 +15760,8 @@ snapshots: dependencies: iconv-lite: 0.6.3 - whatwg-mimetype@3.0.0: {} + whatwg-mimetype@3.0.0: + optional: true whatwg-mimetype@4.0.0: {} From 58d303ba473b811ad57124748b3a045d6b13bfdc Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 10:23:49 +0000 Subject: [PATCH 5/5] fix(payload-helper): Mark lexical peer deps as optional in peerDependenciesMeta Prevents install warnings for consumers who don't explicitly list the lexical packages, as they are satisfied transitively by Payload. https://claude.ai/code/session_01Enp5FVijpX51P4hxTpzpQw --- packages/payload-helper/package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/payload-helper/package.json b/packages/payload-helper/package.json index a787bbd3..72cd8122 100644 --- a/packages/payload-helper/package.json +++ b/packages/payload-helper/package.json @@ -93,6 +93,11 @@ "next": "15.x || 16.x", "react": "^18.0.0 || ^19.0.0" }, + "peerDependenciesMeta": { + "@lexical/headless": { "optional": true }, + "@lexical/html": { "optional": true }, + "lexical": { "optional": true } + }, "devDependencies": { "@ainsleydev/eslint-config": "workspace:*", "@lexical/headless": "0.35.0",