Skip to content

Conversation

@emily-shen
Copy link
Contributor

Fixes #11956

Previously we warned on this only:

{
  "main": "src/index.ts",
  "name": "worker",
   "unexpected": "field"
}

Now we also warn on this:

{
  "main": "src/index.ts",
  "name": "worker",
  "env": {
    "prod": {
      "unexpected": "field"
    }
  },
}

  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: bugfix

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

@emily-shen emily-shen requested a review from a team as a code owner January 19, 2026 13:17
@changeset-bot
Copy link

changeset-bot bot commented Jan 19, 2026

🦋 Changeset detected

Latest commit: b625384

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 19, 2026

create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

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

commit: b625384

Copy link
Member

@dario-piotrowicz dario-piotrowicz left a comment

Choose a reason for hiding this comment

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

LGTM 🙂

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

Labels

None yet

Projects

Status: Approved

Development

Successfully merging this pull request may close these issues.

wrangler only validates unexpected fields in the top level environment

2 participants