Repository navigation
Generate types during dev and build and output to .cloudflare/types - #15778
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 8e1365a The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 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 |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
Contributor
|
LGTM! |
jamesopstad
force-pushed
the
james/new-config-types-output
branch
2 times, most recently
from
September 22, 2026 15:52
a29094f to
597d81e
Compare
jamesopstad
marked this pull request as ready for review
September 22, 2026 15:59
workers-devprod
requested review from
a team and
dario-piotrowicz
and removed request for
a team
September 22, 2026 16:00
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers |
jamesopstad
marked this pull request as draft
September 22, 2026 16:05
jamesopstad
force-pushed
the
james/new-config-types-output
branch
2 times, most recently
from
September 22, 2026 16:36
013b6e4 to
bcb9045
Compare
jamesopstad
marked this pull request as ready for review
September 22, 2026 16:36
jamesopstad
marked this pull request as draft
September 22, 2026 16:43
jamesopstad
force-pushed
the
james/new-config-types-output
branch
from
September 22, 2026 16:46
bcb9045 to
8e1365a
Compare
jamesopstad
marked this pull request as ready for review
September 22, 2026 16:55
workers-devprod
approved these changes
Sep 22, 2026
workers-devprod
left a comment
Contributor
There was a problem hiding this comment.
Codeowners reviews satisfied
Merged
brandhaug
added a commit
to brandhaug/b2b-saas-starter
that referenced
this pull request
Sep 27, 2026
## pnpm-workspace.yaml (default) ## Dependency Updates | Package | From | To | Type | | --- | --- | --- | --- | | `wrangler` | 4.136.2 | 4.138.0 | minor | ## Release Notes <details> <summary><b>wrangler</b> (4.136.2 → 4.138.0) — 3 releases</summary> <details> <summary><b>4.138.0</b></summary> ### Minor Changes - [#15776](cloudflare/workers-sdk#15776) [`b03f960`](cloudflare/workers-sdk@b03f960) Thanks [@<!---->edevil](https://github.com/edevil)! - Add event-code support to temporary Worker deployments Use `wrangler deploy --temporary --event-code <code>` to provision an account for an event. Wrangler requires explicit server acknowledgement before caching the account and keeps the event code out of its cache and telemetry. - [#15817](cloudflare/workers-sdk#15817) [`6e77c53`](cloudflare/workers-sdk@6e77c53) Thanks [@<!---->jamesopstad](https://github.com/jamesopstad)! - Allow framework commands to produce Preview Build Output with the experimental config When `cf previews deploy` invokes a framework build command, Preview intent is now preserved. Function-based `cloudflare.config.ts` files receive `isPreview: true`, and generated Build Output is marked as a Preview build. ### Patch Changes - [#15806](cloudflare/workers-sdk#15806) [`8fade73`](cloudflare/workers-sdk@8fade73) Thanks [@<!---->NuroDev](https://github.com/NuroDev)! - Standardize Zod validation error output Format validation errors with Zod's built-in `prettifyError()` helper so Miniflare, Wrangler, the Vite plugin, and the Vitest plugin show consistent messages and property paths. - Updated dependencies [[`a71237a`](cloudflare/workers-sdk@a71237a), [`8fade73`](cloudflare/workers-sdk@8fade73)]: - [email protected] </details> <details> <summary><b>4.137.0</b></summary> ### Minor Changes - [#15778](cloudflare/workers-sdk#15778) [`cd7508c`](cloudflare/workers-sdk@cd7508c) Thanks [@<!---->jamesopstad](https://github.com/jamesopstad)! - Generate types during development and supported builds with Vite's `experimental.newConfig` option or Wrangler's `--experimental-new-config` flag (and `--experimental-cf-build-output` for builds) When Wrangler's `--experimental-new-config` flag or Vite's `experimental.newConfig` option is enabled, inferred configuration and runtime declarations are now kept in `.cloudflare/types/index.d.ts`. Vite refreshes them during development and production builds. Wrangler refreshes them during development and when building with both `--experimental-new-config` and `--experimental-cf-build-output`. In the experimental `wrangler.config.ts` format, the `types` option is now top-level because it applies to both commands. ### Patch Changes - [#15765](cloudflare/workers-sdk#15765) [`1bdb96d`](cloudflare/workers-sdk@1bdb96d) Thanks [@<!---->th0m](https://github.com/th0m)! - Prepare the required egress sidecar for local Containers without configured images Wrangler dev and Vite dev/preview now pull the required sidecar for Durable Object-managed Containers that select their application image at start time. Previously, these Containers failed to start unless the sidecar image was already cached in Docker. - [#15712](cloudflare/workers-sdk#15712) [`f5605f5`](cloudflare/workers-sdk@f5605f5) Thanks [@<!---->alsuren](https://github.com/alsuren)! - Match D1 SQL statement splitting to the local SQLite runtime Wrangler now uses SQLite's statement-completion state machine when splitting D1 SQL files. This keeps trigger, quoted identifier, comment, and keyword handling consistent with local exe …[full notes](https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.137.0) </details> <p><i>…and 1 more release(s) not shown</i></p> </details> --- *This PR was auto-generated by [catalog-update-action](https://github.com/brandhaug/catalog-update-action).* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generate types during development and builds with the experimental configuration
Vite and Wrangler now keep the inferred configuration and runtime declarations in
.cloudflare/types/index.d.tsand refresh them during both development and production builds. In the experimentalwrangler.config.tsformat, thetypesoption is now top-level because it applies to both commands.A picture of a cute animal (not mandatory, but encouraged)