github cloudflare/workers-sdk @cloudflare/config@0.16.0

latest releases: @cloudflare/unenv-preset@2.16.2, wrangler@4.136.1, @cloudflare/vitest-plugin@1.2.1...
5 hours ago

Minor Changes

  • #15713 3c75cad Thanks @jamesopstad! - Identify experimental Build Output resource configs by filename and location

    The root remains config.json, Worker configs are now worker.config.json, and Container configs are now container.config.json. Resource configs no longer contain top-level type discriminators, while settings and build context are stored together in the root config.

  • #15713 3c75cad Thanks @jamesopstad! - Define experimental Cloudflare configuration with a single default export

    Experimental cloudflare.config.ts files now define settings and resources together in a default-exported defineConfig() call. Add a Worker under worker, add Containers to the containers array, or omit both to provide settings only.

    import * as entrypoint from "./src/index.ts" with { type: "cf-worker" };
    
    export default defineConfig({
    	accountId: "...",
    	complianceRegion: "public",
    	worker: {
    		name: "my-worker",
    		compatibilityDate: "2026-09-18",
    		entrypoint,
    	},
    });

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.