Skip to content

[lexical-website] Documentation Update: Backfill breaking changes, behavior changes and deprecations into CHANGELOG.md for v0.23 to v0.52, add an Upgrading page - #9359

Merged
zurfyx merged 1 commit into
mainfrom
zurfyx/changelog-backfill
Oct 28, 2026

Conversation

@zurfyx

@zurfyx zurfyx commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Depends on #9357 (stacked on its branch; review that first).

Description

Past versions in CHANGELOG.md only list commits, so someone upgrading from an older version cannot find what broke, or how to migrate, without reading every GitHub release. #9357 gives future versions curated sections from changesets. This PR gives v0.23.0 to v0.52.0 the same sections, so the changelog works from any version since v0.23.0.

Test plan

Before

$ pnpm run changelog:range -- --from 0.49.0 --breaking
Note: v0.50.0, v0.51.0, v0.52.0 have no curated sections (the changelog only lists their commits), so --breaking cannot show what changed there. Run without --breaking to read them in full.
No breaking changes, behavior changes or deprecations recorded after 0.49.0.

After

$ git diff --numstat --diff-algorithm=patience zurfyx/upgrade-guide -- CHANGELOG.md
1412	0	CHANGELOG.md

$ pnpm run changelog:range -- --from 0.49.0 --breaking | grep '^## \|^### '
## v0.50.0 (2026-09-02)
### Breaking changes
### Behavior changes
### Deprecations
## v0.51.0 (2026-09-17)
### Breaking changes
### Deprecations
## v0.52.0 (2026-09-27)
### Breaking changes
### Behavior changes
### Deprecations

$ pnpm run test-unit --maxWorkers=4 --testTimeout=30000   # the machine was heavily loaded; default timeouts flaked
 Test Files  383 passed (383)
      Tests  9385 passed | 1 skipped (9386)

$ pnpm -C packages/lexical-website run docusaurus build
[SUCCESS] Generated static files in "build".

@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lexical Ready Ready Preview Oct 28, 2026 3:53pm UTC
lexical-playground Ready Ready Preview Oct 28, 2026 3:53pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 15, 2026
@zurfyx
zurfyx force-pushed the zurfyx/upgrade-guide branch from 00c7eee to 52ba6ec Compare October 15, 2026 20:44
@zurfyx
zurfyx force-pushed the zurfyx/changelog-backfill branch from 1215dd4 to f332023 Compare October 15, 2026 20:44
@zurfyx zurfyx changed the title [lexical-website] Documentation Update: Backfill breaking changes and deprecations into CHANGELOG.md for v0.23 to v0.52, add an Upgrading page [lexical-website] Documentation Update: Backfill breaking changes, behavior changes and deprecations into CHANGELOG.md for v0.23 to v0.52, add an Upgrading page Oct 15, 2026
@zurfyx
zurfyx force-pushed the zurfyx/upgrade-guide branch from 52ba6ec to ac5bcf7 Compare October 15, 2026 20:47
@zurfyx
zurfyx force-pushed the zurfyx/changelog-backfill branch from f332023 to 8162d6a Compare October 15, 2026 20:47
@zurfyx
zurfyx marked this pull request as ready for review October 27, 2026 20:22
…havior changes and deprecations into CHANGELOG.md for v0.23 to v0.52, add an Upgrading page

Depends on the changesets tooling in #9357.

Past versions in CHANGELOG.md only list commits, so someone upgrading from
an older version cannot find what broke, or how to migrate, without reading
every GitHub release. Future versions get curated sections from changesets;
this gives v0.23.0 to v0.52.0 the same sections.

- Every version from v0.23.0 to v0.52.0 now starts with `### Breaking
  changes` (35 entries), `### Behavior changes` (43) and `### Deprecations`
  (29), each with packages and a PR link. The existing lines are kept,
  unchanged, under `### All changes` (the diff only adds lines).
- Rule, stated in the preamble: a breaking change needs a code change (an
  API removed or renamed, a type that no longer checks, a call that now
  throws) and has `Detect:` and `Migration:`. A behavior change keeps
  building but behaves or renders differently and has `Verify:`. The entries
  come from a verified inventory of those releases, which marked each change
  as manual, mechanical, or runtime-only ("no type or build error points at
  it"). Runtime-only entries are behavior changes, except #7341 (now throws)
  and #8603 (a signature change), which stay breaking.
- v0.50.0: the items its release notes list as "Behavior Changes to Watch"
  (#8765, #8908, #8884, #9059, #9061, #8940, #8283) are behavior changes;
  the listener return-type tightening (#8990), the new invariants (#6483)
  and the two items the release called breaking (#8938, #8995) stay
  breaking. Checked against the v0.50.0 release notes.
- Added the v0.42.0 removal of `@lexical/react/LexicalContextMenuPlugin`
  (#8199; present in the v0.41.0 tag, absent in v0.42.0).
- Deprecations come from a pass over every `@deprecated` tag added between
  consecutive tags v0.22.0 to v0.52.0, each checked against the previous tag
  and attributed with `git log -S`. Each has `Replacement:` and `Removal:`:
  the version that removed it, "no earlier than v0.53.0" for the ones #9316
  removes after v0.52.0, otherwise "not scheduled". Skipped: tags that only
  moved (`trimTextContentFromAnchor`, deprecated before v0.23.0) or restated
  earlier ones (v0.46.0 `HorizontalRulePlugin`, v0.51.0 `getScrollParent`),
  and the v0.47.0 `applyFormatToDom` deprecation that v0.48.0 reversed.
- Entries that mixed a breaking change and a deprecation are split with no
  double counting (#7357, #8360, #8661); #8350 and #8662 only deprecated
  aliases, so they are listed under Deprecations alone.
- `docs/upgrading.md` ("Upgrading" in the sidebar) is a short page: upgrade
  all packages together, read CHANGELOG.md between your version and the
  target (also at `node_modules/lexical/CHANGELOG.md`) or print that range,
  and a copy-paste `AGENTS.md` snippet that points coding agents at the
  installed changelog. Nothing is installed automatically.
- The repository CHANGELOG.md test checks every backfilled entry: `Detect:`
  and `Migration:` on breaking changes, `Verify:` on behavior changes,
  `Replacement:` and a valid `Removal:` on deprecations, a PR link on all.

```
$ pnpm run changelog:range -- --from 0.49.0 --breaking
Note: v0.50.0, v0.51.0, v0.52.0 have no curated sections (the changelog only lists their commits), so --breaking cannot show what changed there. Run without --breaking to read them in full.
No breaking changes, behavior changes or deprecations recorded after 0.49.0.
```

```
$ git diff --numstat --diff-algorithm=patience HEAD~1 -- CHANGELOG.md
1412	0	CHANGELOG.md

$ pnpm run changelog:range -- --from 0.49.0 --breaking | grep '^## \|^### '

$ pnpm run changelog:range -- --from 0.49.0 --to 0.50.0 --breaking --json   # (kind, [(pr, behavior)])
[('breaking', [(8938, False), (8995, False), (8990, False), (6483, False)]), ('behavior', [(8765, True), (8908, True), (8884, True), (9059, True), (9061, True), (8940, True), (8283, True)]), ('deprecation', [(8918, False)])]

$ pnpm run test-unit scripts/__tests__/unit/changelog.test.ts scripts/__tests__/unit/changesets.test.ts
      Tests  63 passed (63)

$ pnpm -C packages/lexical-website run docusaurus build
[SUCCESS] Generated static files in "build".
```
@pkg-pr-new

pkg-pr-new Bot commented Oct 28, 2026

Copy link
Copy Markdown
lexical

npm i https://pkg.pr.new/lexical@9359

@lexical/a11y

npm i https://pkg.pr.new/@lexical/a11y@9359

@lexical/clipboard

npm i https://pkg.pr.new/@lexical/clipboard@9359

@lexical/code

npm i https://pkg.pr.new/@lexical/code@9359

@lexical/code-core

npm i https://pkg.pr.new/@lexical/code-core@9359

@lexical/code-prism

npm i https://pkg.pr.new/@lexical/code-prism@9359

@lexical/code-shiki

npm i https://pkg.pr.new/@lexical/code-shiki@9359

@lexical/compiler

npm i https://pkg.pr.new/@lexical/compiler@9359

@lexical/devtools-core

npm i https://pkg.pr.new/@lexical/devtools-core@9359

@lexical/dragon

npm i https://pkg.pr.new/@lexical/dragon@9359

@lexical/eslint-plugin

npm i https://pkg.pr.new/@lexical/eslint-plugin@9359

@lexical/extension

npm i https://pkg.pr.new/@lexical/extension@9359

@lexical/fast-check

npm i https://pkg.pr.new/@lexical/fast-check@9359

@lexical/file

npm i https://pkg.pr.new/@lexical/file@9359

@lexical/hashtag

npm i https://pkg.pr.new/@lexical/hashtag@9359

@lexical/headless

npm i https://pkg.pr.new/@lexical/headless@9359

@lexical/history

npm i https://pkg.pr.new/@lexical/history@9359

@lexical/html

npm i https://pkg.pr.new/@lexical/html@9359

@lexical/internal

npm i https://pkg.pr.new/@lexical/internal@9359

@lexical/link

npm i https://pkg.pr.new/@lexical/link@9359

@lexical/list

npm i https://pkg.pr.new/@lexical/list@9359

@lexical/mark

npm i https://pkg.pr.new/@lexical/mark@9359

@lexical/markdown

npm i https://pkg.pr.new/@lexical/markdown@9359

@lexical/mdast

npm i https://pkg.pr.new/@lexical/mdast@9359

@lexical/offset

npm i https://pkg.pr.new/@lexical/offset@9359

@lexical/overflow

npm i https://pkg.pr.new/@lexical/overflow@9359

@lexical/plain-text

npm i https://pkg.pr.new/@lexical/plain-text@9359

@lexical/react

npm i https://pkg.pr.new/@lexical/react@9359

@lexical/rich-text

npm i https://pkg.pr.new/@lexical/rich-text@9359

@lexical/selection

npm i https://pkg.pr.new/@lexical/selection@9359

@lexical/table

npm i https://pkg.pr.new/@lexical/table@9359

@lexical/tailwind

npm i https://pkg.pr.new/@lexical/tailwind@9359

@lexical/text

npm i https://pkg.pr.new/@lexical/text@9359

@lexical/utils

npm i https://pkg.pr.new/@lexical/utils@9359

@lexical/yjs

npm i https://pkg.pr.new/@lexical/yjs@9359

commit: f9b5174

@zurfyx
zurfyx added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 5bd2907 Oct 28, 2026
48 of 56 checks passed

This branch was successfully deployed

2 active deployments
Preview – lexical — f9b51746 Deployed Oct 28, 2026 by vercel[bot]
Preview – lexical-playground — f9b51746 Deployed Oct 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants