Skip to content

Filter entry Worker config when passing to config function#11735

Merged
jamesopstad merged 3 commits intomainfrom
james/filter-entry-worker-config
Dec 22, 2025
Merged

Filter entry Worker config when passing to config function#11735
jamesopstad merged 3 commits intomainfrom
james/filter-entry-worker-config

Conversation

@jamesopstad
Copy link
Copy Markdown
Contributor

Remove topLevelName and name when passing entryWorkerConfig to the config function for auxiliary Workers.

The name for each Worker should be unique and the topLevelName is computed rather than provided directly.


  • Tests
    • Tests included/updated
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: bug fix

A picture of a cute animal (not mandatory, but encouraged)

@jamesopstad jamesopstad requested a review from a team as a code owner December 22, 2025 10:20
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Dec 22, 2025

🦋 Changeset detected

Latest commit: e2a1678

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

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

@claude
Copy link
Copy Markdown
Contributor

claude Bot commented Dec 22, 2025

Claude finished @jamesopstad's task —— View job


Reviewing Changesets

  • Read changeset guidelines from .changeset/README.md
  • Review .changeset/modern-cougars-wash.md
  • Validate version type, changelog quality, and markdown headers
  • Check for cute animal images
  • Provide final assessment

✅ All changesets look good

The changeset follows all guidelines:

  • Version Type: Correctly uses patch for a bug fix
  • Changelog Quality: Clear description explaining what was removed and why (unique names and computed topLevelName)
  • Markdown Headers: No h1/h2/h3 headers present
  • Package: Correctly targets @cloudflare/vite-plugin

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Dec 22, 2025

create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

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

commit: e2a1678

function filterEntryWorkerConfig(
config: ResolvedAssetsOnlyConfig
): FilteredEntryWorkerConfig {
// eslint-disable-next-line unused-imports/no-unused-vars
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think there's a way to disable this rule for destructured object entries

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

e2a1678 Removed eslint disable and added regression tests.

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Dec 22, 2025
@jamesopstad jamesopstad merged commit dd66dcd into main Dec 22, 2025
40 of 41 checks passed
@jamesopstad jamesopstad deleted the james/filter-entry-worker-config branch December 22, 2025 12:33
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants