Simplify constructWranglerConfig to accept a single worker instead of an array#14146
Conversation
🦋 Changeset detectedLatest commit: 316453e The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
|
The change is clean and well-scoped. The only call site already passes a single object, the removed constants imports are still used elsewhere, tests are appropriately updated, and a changeset exists. Let me verify the changeset bot's mention of The refactor is correct and simple: dead code removal of the array/multi-environment branch which no longer has any callers. No logic bugs, no API behavior issues for the remaining single-worker path (it's identical to the prior LGTM |
|
✅ All changesets look good |
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
@cloudflare/wrangler-bundler
commit: |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
@penalosa you have the most context here, could you give this PR a review? 🙏 |
petebacondarwin
left a comment
There was a problem hiding this comment.
Given we have only a single user of this code, it is safe to make this change.
a089923 to
316453e
Compare
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Followup from #14084 (comment) (cc. @petebacondarwin)
constructWranglerConfigaccepts an array of workers, I believe that this functionality was introduced for a specific use case which is no longer present, so I don't think that the function needs to accept an array of workers anymore.For the sake of simplicity and YAGNI I'm proposing to remove it here.
A picture of a cute animal (not mandatory, but encouraged)