Skip to content

Conversation

@penalosa
Copy link
Contributor

@penalosa penalosa commented Nov 28, 2025

Cut the node_modules size for a fresh install of workers-sdk by 400MB from 2.3G to 1.9G. This should speed up CI install times, but there's definitely more work to do. This is a combination of changes to deps and running pnpm dedupe


  • Tests
    • Tests included/updated
    • Tests not necessary because: existing tests should not fail
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: internal detail
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: not user facing

@penalosa penalosa requested review from a team as code owners November 28, 2025 16:20
@changeset-bot
Copy link

changeset-bot bot commented Nov 28, 2025

⚠️ No Changeset found

Latest commit: 0702c18

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +41 to +43
# CAUTION: Most usage of @cloudflare/vitest-pool-workers in this mono repo should use workspace:* instead of this catalog version
# However, some packages (pages-shared, workers-shared, etc...) need to be tested using vitest-pool-workers but are themselves
# ultimately included in vitest-pool-workers (through Wrangler), causing a circular dependency.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this comment!

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 28, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@11464

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@11464

miniflare

npm i https://pkg.pr.new/miniflare@11464

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@11464

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@11464

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@11464

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@11464

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@11464

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@11464

wrangler

npm i https://pkg.pr.new/wrangler@11464

commit: 7965855

Comment on lines +191 to +194
// Get a new stub since we've just aborted the durable object
const newStub = env.ENGINE.get(env.ENGINE.idFromName("MOCK-INSTANCE-ID"));

await newStub.receiveEvent({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these other changes meant to be in this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, they're to adapt to the vitest-pool-workers update for workflows-shared

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Approved

Development

Successfully merging this pull request may close these issues.

3 participants