Skip to content

revert: react-dom 19 and fetch-mock 12 bumps, fix e2e install - #2603

Merged
josephfusco merged 3 commits into
canaryfrom
revert/react-dom-fetch-mock
Oct 7, 2026
Merged

josephfusco merged 3 commits into
canaryfrom
revert/react-dom-fetch-mock

Conversation

@josephfusco

@josephfusco josephfusco commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Related: #2602, #2600

#2602 rewrote the published react-dom peer range to ^18.3.1 (dropping React 17 and 19 support), so this needs to land before #2588 ships a release; the e2e workflow fix rides along because the example only builds once react-dom is back on 18, and the workflow now also runs when its own file changes.

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Assisting with tracing the canary test and e2e failures, preparing the revert, and fixing the e2e install steps.

This reverts #2602 and #2600.

#2602 narrowed the published react-dom peer range on @faustwp/core,
@faustwp/blocks and @faustwp/block-editor-utils to ^18.3.1, which would
reject React 17 and React 19 installs, and moved the getting-started
example to react-dom 19 while it still uses react 18.

#2600 moved to fetch-mock 12, which removed fetchMock.restore() and the
v9 routing API the core tests use, so the core test suite fails.
@josephfusco josephfusco added dependencies Pull requests that update a dependency file [Area] Core Issues for the @faustwp/core package [Area] Blocks Issues for the @faustwp/blocks package [Area] Block Editor Utils Issues for the @faustwp/block-editor-utils package scope: dependencies labels Oct 7, 2026
The e2e job fetched the example with create-next-app, which calls the
GitHub API unauthenticated and fails when rate limited, then installed
the published @faustwp packages and copied the local builds over them.
npm treated the copied CLI as already installed and never installed its
current dependencies, so the app kept archiver 6 and the CLI failed to
import ZipArchive.

Copy the example from the checkout and point it at the local packages
before its first install instead.
@josephfusco josephfusco added the github_actions Pull requests that update GitHub Actions code label Oct 7, 2026
@josephfusco josephfusco changed the title revert: react-dom 19 and fetch-mock 12 bumps revert: react-dom 19 and fetch-mock 12 bumps, fix e2e install Oct 7, 2026
@josephfusco
josephfusco marked this pull request as ready for review October 7, 2026 15:30
@josephfusco
josephfusco requested review from a team and colinmurphy as code owners October 7, 2026 15:30
@josephfusco
josephfusco merged commit d161eba into canary Oct 7, 2026
19 checks passed
@josephfusco
josephfusco deleted the revert/react-dom-fetch-mock branch October 7, 2026 15:31
@github-actions github-actions Bot mentioned this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Area] Block Editor Utils Issues for the @faustwp/block-editor-utils package [Area] Blocks Issues for the @faustwp/blocks package [Area] Core Issues for the @faustwp/core package dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant