Skip to content

fix(deps): update starter-peer-deps#746

Merged
justinvdm merged 44 commits intomainfrom
renovate/starter-peer-deps
Sep 22, 2025
Merged

fix(deps): update starter-peer-deps#746
justinvdm merged 44 commits intomainfrom
renovate/starter-peer-deps

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Sep 19, 2025

Manual Changes and Fixes

Vite Upgrade (7.1.5 -> 7.1.6) and Directive Scanner Failures

Problem

We have a custom directive scanner that discovers "use client" and "use server" files. To minimize user dependencies and ensure consistent behavior, this scanner relies on the esbuild binary that ships with Vite.

The upgrade to Vite 7.1.6 introduced a breaking change via its internal esbuild dependency, which was updated from ^0.23.0 to ^0.24.0. The new esbuild version changed its API behavior, making it an error to use write: false with bundle: true for multiple entry points without specifying an outdir. This caused our directive scanner to fail. A follow-up issue also occurred where the scanner failed on virtual modules provided by Vite's config.

Solution

The scanner's esbuild configuration was updated to be compatible with the new API. This involved two changes:

  1. Adding a temporary outdir to the configuration. Since write: false is still set, no files are written to disk.
  2. Adding a filter to ignore virtual modules (e.g., virtual:cloudflare/worker-entry) before passing entry points to esbuild.

@cloudflare/vite-plugin (1.12.4 -> 1.13.3) and Build Process Conflict

Problem

Our production build is a multi-pass process orchestrated by buildApp.mts. It first builds an intermediate worker bundle, then "links" it with an SSR bridge to produce the final single-file artifact. This process must work in harmony with the Cloudflare plugin.

The updated @cloudflare/vite-plugin now requires the main worker entry chunk to be named index. This requires a Rollup input config like { index: '...' }. However, to create a single-file worker bundle, we need inlineDynamicImports: true, and a recent Rollup update requires this option to be used with a simple string input, not an object. This created a deadlock, preventing a successful build.

Solution

The solution was to adapt our build process to cooperate with the plugin:

  1. The manual rollupOptions for the worker build were removed from our configPlugin.mts, allowing the @cloudflare/vite-plugin to take control and generate a valid intermediate build with an index.js chunk.
  2. The "linker" pass in buildApp.mts was updated to hook into the plugin-generated configuration. It now modifies the existing config, re-pointing the input to the intermediate index.js artifact from the first pass.

This resolves the conflict by letting the plugin manage the build while still allowing our orchestrator to perform its essential multi-pass logic.


Dev Server Directive Scan Regression

Problem

The fix for the production build involved removing the manual rollupOptions from the worker's Vite configuration, allowing the Cloudflare plugin to manage the build. This change, while correct for production, had an unintended side-effect on the development server. The dev server failed because the directive scanner, which runs on startup, no longer had an entry point. It relied on the rollupOptions that had been removed, and it was executing before the full Vite configuration for the worker environment was resolved.

Solution

The dependency on the implicit Vite configuration was removed. The runDirectivesScan function was updated to accept an explicit entries parameter. This entry point is now passed directly from the main redwoodPlugin (for the dev command) and the buildApp function (for the build command), ensuring the scanner always has the correct starting point.


CI Infrastructure Changes: Switching to Tarball-Based Testing

Problem

The investigation into the build failures revealed that the existing CI setup, which relied on workspace linking, was running tests against stale dependencies from the monorepo's node_modules. This meant the CI was not testing against the newly upgraded package versions, which hid the build and type errors.

Solution

To ensure the CI accurately validates the project against the upgraded dependencies, the test environments for both smoke tests and E2E tests were switched to use a tarball-based installation. This process involves:

  1. Packing the SDK into a tarball.
  2. Copying the test project (e.g., a starter or playground app) to a clean, temporary directory.
  3. Installing dependencies in the isolated environment using the SDK tarball.

This approach guarantees that tests run in a clean environment with the correct, newly-updated dependencies, accurately simulating a real user installation. As part of this change, the redundant check-starters.yml workflow was removed, as its type-checking coverage is now handled more reliably by the playground E2E tests.

Automated changes

This PR contains the following updates:

Package Change Age Confidence
@cloudflare/vite-plugin (source) 1.12.4 -> 1.13.3 age confidence
@cloudflare/workers-types 4.20250913.0 -> 4.20250921.0 age confidence
react (source) 19.2.0-canary-3fb190f7-20250908 -> 19.2.0-canary-d415fd3e-20250919 age confidence
react-dom (source) 19.2.0-canary-3fb190f7-20250908 -> 19.2.0-canary-d415fd3e-20250919 age confidence
react-server-dom-webpack (source) 19.2.0-canary-3fb190f7-20250908 -> 19.2.0-canary-d415fd3e-20250919 age confidence
vite (source) 7.1.5 -> 7.1.6 age confidence
wrangler (source) 4.35.0 -> 4.38.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

This PR updates the following dependencies:


Release Notes

cloudflare/workers-sdk (@​cloudflare/vite-plugin)

v1.13.3

Compare Source

Patch Changes

v1.13.2

Compare Source

Patch Changes

v1.13.1

Compare Source

Patch Changes

v1.13.0

Compare Source

Minor Changes
  • #​10212 0837a8d Thanks @​jamesopstad! - Support packages and virtual modules in the main field of the Worker config. The primary use case is to enable users to directly provide a file exported by a framework as the Worker entry module.

  • #​10604 135e066 Thanks @​penalosa! - Enable Remote Bindings without the need for the experimental: { remoteBindings: true } property

Patch Changes
cloudflare/workerd (@​cloudflare/workers-types)

v4.20250921.0

Compare Source

v4.20250920.0

Compare Source

v4.20250919.0

Compare Source

v4.20250918.0

Compare Source

v4.20250917.0

Compare Source

facebook/react (react)

v19.2.0-canary-d415fd3e-20250919

Compare Source

v19.2.0-canary-cee7939b-20250625

Compare Source

v19.2.0-canary-c498bfce-20250426

Compare Source

v19.2.0-canary-c4676e72-20250520

Compare Source

v19.2.0-canary-c44e4a25-20250409

Compare Source

v19.2.0-canary-c260b38d-20250731

Compare Source

v19.2.0-canary-c129c242-20250505

Compare Source

v19.2.0-canary-c0464aed-20250523

Compare Source

v19.2.0-canary-befc1246-20250708

Compare Source

v19.2.0-canary-be11cb5c-20250804

Compare Source

v19.2.0-canary-bdb4a96f-20250801

Compare Source

v19.2.0-canary-bc6184dd-20250417

Compare Source

v19.2.0-canary-bbc13fa1-20250624

Compare Source

v19.2.0-canary-bb6f0c8d-20250901

Compare Source

v19.2.0-canary-b9cfa0d3-20250505

Compare Source

v19.2.0-canary-b9a04536-20250904

Compare Source

v19.2.0-canary-b94603b9-20250513

Compare Source

v19.2.0-canary-b7e2de63-20250611

Compare Source

v19.2.0-canary-b6c0aa88-20250609

Compare Source

v19.2.0-canary-b4477d38-20250605

Compare Source

v19.2.0-canary-b1b0955f-20250901

Compare Source

v19.2.0-canary-b10cb4c0-20250403

Compare Source

v19.2.0-canary-b07717d8-20250528

Compare Source

v19.2.0-canary-b04254fd-20250415

Compare Source

v19.2.0-canary-ac7820a9-20250811

Compare Source

v19.2.0-canary-ab859e31-20250606

Compare Source

v19.2.0-canary-aad7c664-20250829

Compare Source

v19.2.0-canary-a96a0f39-20250815

Compare Source

v19.2.0-canary-a7a11657-20250708

Compare Source

v19.2.0-canary-a00ca6f6-20250611

Compare Source

v19.2.0-canary-9be531cd-20250729

Compare Source

v19.2.0-canary-99efc627-20250523

Compare Source

v19.2.0-canary-97cdd5d3-20250710

Compare Source

v19.2.0-canary-9784cb37-20250730

Compare Source

v19.2.0-canary-96c61b7f-20250709

Compare Source

v19.2.0-canary-93d7aa69-20250912

Compare Source

v19.2.0-canary-914319ae-20250423

Compare Source

v19.2.0-canary-8e60cb7e-20250902

Compare Source

v19.2.0-canary-8d7b5e49-20250827

Compare Source

v19.2.0-canary-8ce15b0f-20250522

Compare Source

v19.2.0-canary-8a8e9a7e-20250912

Compare Source

v19.2.0-canary-89a803fc-20250828

Compare Source

v19.2.0-canary-886b3d36-20250910

Compare Source

v19.2.0-canary-873f7112-20250821

Compare Source

v19.2.0-canary-84af9085-20250917

Compare Source

v19.2.0-canary-7deda941-20250804

Compare Source

v19.2.0-canary-7a2c7045-20250506

Compare Source

v19.2.0-canary-79d9aed7-20250620

Compare Source

v19.2.0-canary-7513996f-20250722

Compare Source

v19.2.0-canary-73aa744b-20250702

Compare Source

v19.2.0-canary-7216c0f0-20250630

Compare Source

v19.2.0-canary-72135096-20250421

Compare Source

v19.2.0-canary-6eda5347-20250918

Compare Source

v19.2.0-canary-6de32a5a-20250822

Compare Source

v19.2.0-canary-6b70072c-20250909

Compare Source

v19.2.0-canary-6a7650c7-20250405

Compare Source

v19.2.0-canary-67a44bcd-20250915

Compare Source

v19.2.0-canary-66f09bd0-20250806

Compare Source

v19.2.0-canary-65c4decb-20250630

Compare Source

v19.2.0-canary-63779030-20250328

Compare Source

v19.2.0-canary-60b5271a-20250709

Compare Source

v19.2.0-canary-5e0c951b-20250916

Compare Source

v19.2.0-canary-5dc00d6b-20250428

Compare Source

v19.2.0-canary-5d87cd22-20250704

Compare Source

v19.2.0-canary-56408a5b-20250610

Compare Source

v19.2.0-canary-540cd652-20250403

Compare Source

v19.2.0-canary-534bed5f-20250813

Compare Source

v19.2.0-canary-526dd340-20250602

Compare Source

v19.2.0-canary-4db4b21c-20250626

Compare Source

v19.2.0-canary-4a45ba92-20250515

Compare Source

v19.2.0-canary-4a36d3ea-20250416

Compare Source

v19.2.0-canary-462d08f9-20250517

Compare Source

v19.2.0-canary-4448b187-20250515

Compare Source

v19.2.0-canary-4123f6b7-20250826

Compare Source

v19.2.0-canary-408d055a-20250430

Compare Source

v19.2.0-canary-3fbfb9ba-20250409

Compare Source

facebook/react (react-dom)

v19.2.0-canary-d415fd3e-20250919

Compare Source

v19.2.0-canary-cee7939b-20250625

Compare Source

v19.2.0-canary-c498bfce-20250426

Compare Source

v19.2.0-canary-c4676e72-20250520

Compare Source

v19.2.0-canary-c44e4a25-20250409

Compare Source

v19.2.0-canary-c260b38d-20250731

Compare Source

v19.2.0-canary-c129c242-20250505

Compare Source

v19.2.0-canary-c0464aed-20250523

Compare Source

v19.2.0-canary-befc1246-20250708

Compare Source

v19.2.0-canary-be11cb5c-20250804

Compare Source

v19.2.0-canary-bdb4a96f-20250801

Compare Source

v19.2.0-canary-bc6184dd-20250417

Compare Source

v19.2.0-canary-bbc13fa1-20250624

Compare Source

v19.2.0-canary-bb6f0c8d-20250901

Compare Source

v19.2.0-canary-b9cfa0d3-20250505

Compare Source

v19.2.0-canary-b9a04536-20250904

Compare Source

v19.2.0-canary-b94603b9-20250513

Compare Source

v19.2.0-canary-b7e2de63-20250611

Compare Source

v19.2.0-canary-b6c0aa88-20250609

Compare Source

v19.2.0-canary-b4477d38-20250605

Compare Source

v19.2.0-canary-b1b0955f-20250901

Compare Source

v19.2.0-canary-b10cb4c0-20250403

Compare Source

v19.2.0-canary-b07717d8-20250528

Compare Source

v19.2.0-canary-b04254fd-20250415

Compare Source

v19.2.0-canary-ac7820a9-20250811

Compare Source

v19.2.0-canary-ab859e31-20250606

Compare Source

v19.2.0-canary-aad7c664-20250829

Compare Source

v19.2.0-canary-a96a0f39-20250815

Compare Source

v19.2.0-canary-a7a11657-20250708

Compare Source

v19.2.0-canary-a00ca6f6-20250611

Compare Source

v19.2.0-canary-9be531cd-20250729

Compare Source

v19.2.0-canary-99efc627-20250523

Compare Source

v19.2.0-canary-97cdd5d3-20250710

Compare Source

v19.2.0-canary-9784cb37-20250730

Compare Source

v19.2.0-canary-96c61b7f-20250709

Compare Source

v19.2.0-canary-93d7aa69-20250912

Compare Source

v19.2.0-canary-914319ae-20250423

Compare Source

v19.2.0-canary-8e60cb7e-20250902

Compare Source

v19.2.0-canary-8d7b5e49-20250827

Compare Source

v19.2.0-canary-8ce15b0f-20250522

Compare Source

v19.2.0-canary-8a8e9a7e-20250912

Compare Source

v19.2.0-canary-89a803fc-20250828

Compare Source

v19.2.0-canary-886b3d36-20250910

Compare Source

v19.2.0-canary-873f7112-20250821

Compare Source

v19.2.0-canary-84af9085-20250917

Compare Source

v19.2.0-canary-7deda941-20250804

Compare Source

v19.2.0-canary-7a2c7045-20250506

Compare Source

v19.2.0-canary-79d9aed7-20250620

Compare Source

v19.2.0-canary-7513996f-20250722

Compare Source

v19.2.0-canary-73aa744b-20250702

Compare Source

v19.2.0-canary-7216c0f0-20250630

Compare Source

v19.2.0-canary-72135096-20250421

Compare Source

v19.2.0-canary-6eda5347-20250918

Compare Source

v19.2.0-canary-6de32a5a-20250822

Compare Source

v19.2.0-canary-6b70072c-20250909

Compare Source

v19.2.0-canary-6a7650c7-20250405

Compare Source

v19.2.0-canary-67a44bcd-20250915

Compare Source

v19.2.0-canary-66f09bd0-20250806

Compare Source

v19.2.0-canary-65c4decb-20250630


Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/starter-peer-deps branch from 3bd92a9 to 42b852e Compare September 19, 2025 01:09
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Sep 19, 2025

Deploying redwood-sdk-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7568e06
Status: ✅  Deploy successful!
Preview URL: https://18ae38a8.redwood-sdk-docs.pages.dev
Branch Preview URL: https://renovate-starter-peer-deps.redwood-sdk-docs.pages.dev

View logs

@renovate renovate bot force-pushed the renovate/starter-peer-deps branch from 42b852e to 22d30c7 Compare September 19, 2025 03:27
@renovate renovate bot changed the title fix(deps): update starter-peer-deps fix(deps): update starter-peer-deps to v19.2.0-canary-fa3feba6-20250623 Sep 19, 2025
@renovate renovate bot force-pushed the renovate/starter-peer-deps branch from 22d30c7 to b303655 Compare September 19, 2025 03:41
@renovate renovate bot changed the title fix(deps): update starter-peer-deps to v19.2.0-canary-fa3feba6-20250623 fix(deps): update starter-peer-deps Sep 19, 2025
@renovate renovate bot force-pushed the renovate/starter-peer-deps branch 6 times, most recently from d961a4b to fe28c2d Compare September 21, 2025 02:31
@justinvdm justinvdm force-pushed the renovate/starter-peer-deps branch from fe28c2d to 0b65bf4 Compare September 21, 2025 03:31
@renovate
Copy link
Copy Markdown
Contributor Author

renovate bot commented Sep 21, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@justinvdm justinvdm marked this pull request as draft September 21, 2025 04:48
@justinvdm justinvdm marked this pull request as ready for review September 22, 2025 16:03
@justinvdm justinvdm merged commit d19d070 into main Sep 22, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant