Repository navigation
[lexical-extension] Chore: Update signals-core to 1.14.4 - #9248
Merged
Merged
Conversation
## Description @lexical/extension currently allows @preact/signals-core 1.14.1, which can return stale computed values after a batch changes a signal and restores its original value. A subsequent write can reuse a version observed during the batch, leaving the computed's cached value stale. Raise the dependency minimum to ^1.14.4 and update pnpm-lock.yaml to pick up the fix in preactjs/signals#947. This also includes the intervening bundle-size improvements and the model effect-capture fix. No Lexical APIs change. ## Test plan ### Before Ran this probe through Lexical's signal exports with signals-core 1.14.1: ```sh node --input-type=module <<'JS' import {batch, computed, signal} from './packages/lexical-extension/src/signals.ts'; for (const method of ['value', 'peek']) { const source = signal('A'); const derived = computed(() => source.value + '!'); const read = () => method === 'value' ? derived.value : derived.peek(); read(); batch(() => { source.value = 'B'; read(); source.value = 'A'; }); source.value = 'C'; const actual = read(); console.log(`${method}: expected C!, received ${actual} (${actual === 'C!' ? 'PASS' : 'FAIL'})`); if (actual !== 'C!') process.exitCode = 1; } JS ``` ```text value: expected C!, received B! (FAIL) peek: expected C!, received B! (FAIL) ``` ### After The same probe with signals-core 1.14.4: ```text value: expected C!, received C! (PASS) peek: expected C!, received C! (PASS) ``` `pnpm exec vitest run --project unit packages/lexical-extension packages/lexical-react/src/__tests__/unit/useExtensionSignalValue.test.tsx packages/lexical/src/__tests__/unit/LexicalExtensionCore.test.ts`: ```text Test Files 14 passed (14) Tests 178 passed (178) ``` `pnpm exec prettier --check packages/lexical-extension/package.json pnpm-lock.yaml`: ```text Checking formatting... All matched files use Prettier code style! ``` `pnpm install --frozen-lockfile`, `pnpm run tsc`, and `git diff --check` also completed successfully (exit 0). Browser and E2E suites were not run for this dependency-only update.
etrepum
requested review from
acywatson,
fantactuka,
ivailop7,
potatowagon and
zurfyx
as code owners
September 27, 2026 18:45
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
trueadm
approved these changes
Sep 27, 2026
trueadm
approved these changes
Sep 27, 2026
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
@lexical/extension currently allows @preact/signals-core 1.14.1, which can return stale computed values after a batch changes a signal and restores its original value. A subsequent write can reuse a version observed during the batch, leaving the computed's cached value stale.
Raise the dependency minimum to ^1.14.4 and update pnpm-lock.yaml to pick up the fix in preactjs/signals#947. This also includes the intervening bundle-size improvements and the model effect-capture fix. No Lexical APIs change.
Test plan
No tests were added, but the upstream bug is reproducible from our API with a contrived probe.
Before
Ran this probe through Lexical's signal exports with signals-core 1.14.1:
After
The same probe with signals-core 1.14.4:
pnpm exec vitest run --project unit packages/lexical-extension packages/lexical-react/src/__tests__/unit/useExtensionSignalValue.test.tsx packages/lexical/src/__tests__/unit/LexicalExtensionCore.test.ts:pnpm exec prettier --check packages/lexical-extension/package.json pnpm-lock.yaml:pnpm install --frozen-lockfile,pnpm run tsc, andgit diff --checkalso completed successfully (exit 0).