github cloudflare/workers-sdk wrangler@4.54.0

one day ago

Minor Changes

  • #11512 c15e99e Thanks @emily-shen! - Enable using ctx.exports with containers

    You can now use containers with Durable Objects that are accessed via ctx.exports.

    Now your config file can look something like this:

    {
    	"name": "container-app",
    	"main": "src/index.ts",
    	"compatibility_date": "2025-12-01",
    	"compatibility_flags": ["enable_ctx_exports"], // compat flag needed for now.
    	"containers": [
    		{
    			"image": "./Dockerfile",
    			"class_name": "MyDOClassname",
    			"name": "my-container"
    		},
    	],
    	"migrations": [
    		{
    			"tag": "v1",
    			"new_sqlite_classes": ["MyDOClassname"],
    		},
    	],
    	// no need to declare your durable object binding here
    }
    

    Note that when using ctx.exports, where you previously accessed a Durable Object via something like env.DO, you should now access with ctx.exports.MyDOClassname.

    Refer to the docs for more information on using ctx.exports.

  • #11508 b17797c Thanks @dario-piotrowicz! - Wrangler will no longer try to add additional configuration to projects using @cloudflare/vite-plugin when deploying or running wrangler setup

  • #11508 b17797c Thanks @dario-piotrowicz! - When a Vite project is detected, install @cloudflare/vite-plugin

  • #11576 bb47e20 Thanks @dario-piotrowicz! - Support Analog projects in autoconfig

  • #10582 991760d Thanks @flakey5! - Add containers ssh command

Patch Changes

  • #11467 235d325 Thanks @edmundhung! - fix: prevent reporting SQLite error from wrangler d1 execute to Sentry

  • #11414 41103f5 Thanks @petebacondarwin! - add extra logging to user log-in flow for diagnosing failed login requests

  • #11559 ea6fbec Thanks @nikitassharma! - Remove image validation for containers on wrangler deploy.

    Internal customers are able to use additional image registries and will run into failures with this validation. Image registry validation will now be handled by the API.

  • Updated dependencies [31c162a, bd5f087, c6dd86f]:

    • miniflare@4.20251210.0

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.