45 KiB
@cloudflare/workers-utils
0.26.0
Minor Changes
-
#14591
0283a1fThanks @dario-piotrowicz! - ExportgetInstalledPackageVersion,getPackagePath, andisPackageInstalledutilitiesPackage resolution helpers that were previously internal to
@cloudflare/autoconfigare now exported from@cloudflare/workers-utilsso they can be shared across packages without pulling in the full autoconfig dependency.getPackagePathnow also consistently returns a directory path. Previously the fallback resolution strategy could return a file path (the package entry point) instead of its containing directory.
0.25.1
Patch Changes
-
#14530
aad35b7Thanks @Partha-Shankar! - Validate optional configuration fields for D1 database bindingsEnforce type checks for the optional D1 database properties
database_name,migrations_dir,migrations_table, anddatabase_internal_envto ensure consistency with other binding types. -
#14492
1ac96a1Thanks @penalosa! - Replace the CommonJSxdg-app-pathsdependency with a vendored pure-ESM implementationxdg-app-paths(and itsxdg-portable/os-pathsdependencies) are CommonJS only, which caused "Dynamic require of 'path' is not supported" errors when the surrounding code was bundled to ESM. The global config/cache directory resolution is now provided by a small, dependency-free pure-ESM module in@cloudflare/workers-utilsthat reproduces the previous path resolution exactly (verified against the real package in unit tests), so existing config and credential locations are unchanged. This also drops the transitivefseventsoptional dependency thatxdg-app-pathspulled in.Miniflare and create-cloudflare now consume the shared helpers from
@cloudflare/workers-utilsinstead of maintaining their own copies, importing node-only leaf entry points (@cloudflare/workers-utils/fs-helpers,@cloudflare/workers-utils/global-wrangler-config-path) where ESM bundling is required. -
#14570
1ca8d8fThanks @penalosa! - Upgradesignal-exitfrom v3 to v4The bundled
signal-exitdependency was CJS-only. Upgrading to v4 (which ships a dual ESM/CJS build) unblocks ESM output. Exit-cleanup behaviour is unchanged, though v4 no longer registers handlers for a few signals that are no longer supported by the OS (SIGUNUSEDon Linux;SIGABRT/SIGALRMon Windows).
0.25.0
Minor Changes
-
#14474
aa5d580Thanks @WillTaylorDev! - Add cache options for WorkerEntrypoint exportsYou can now set cache options on
WorkerEntrypointexports and configure cross-version cache behavior globally:// wrangler.json { "cache": { "enabled": true, "cross_version_cache": true }, "exports": { "default": { "type": "worker", "cache": { "enabled": false } }, "Admin": { "type": "worker", "cache": { "enabled": true } } } }Wrangler sends the
exportsconfig to the deploy and version upload APIs alongside the globalcache.enabledandcache.cross_version_cachesettings. The platform resolves those global settings plus cache overrides on exports and validates which entrypoint names are cacheable.
0.24.0
Minor Changes
-
#14295
cfd6205Thanks @dario-piotrowicz! - Moveunstable_getWorkerNameFromProjectfrom wrangler to@cloudflare/workers-utilsThe
unstable_getWorkerNameFromProjectexport has been removed from thewranglerpackage. This function is now available asgetWorkerNameFromProject(without theunstable_prefix) from@cloudflare/workers-utils. If you were importing this function fromwrangler, update your import to use@cloudflare/workers-utilsinstead. -
#14295
cfd6205Thanks @dario-piotrowicz! - Add PackageManager type and constantsAdded the
PackageManagerinterface and package manager constants (NpmPackageManager,PnpmPackageManager,YarnPackageManager,BunPackageManager).
0.23.2
Patch Changes
-
#14347
673b09eThanks @jamesopstad! - Update undici from 7.24.8 to 7.28.0 -
#14269
5dfb788Thanks @mattjohnsonpint! - Supportdev.pluginon typed services bindingsWrangler only honored
dev.pluginonunsafe.bindingsentries, so users authoring a service binding viaservices[]could not wire it to a local Miniflare plugin duringwrangler dev— they had to fall back tounsafe.bindingsand accept a "directly supported by wrangler" warning. Typed services bindings now accept the samedev: { plugin, options? }shape, route the binding through Miniflare's external-plugin pathway inwrangler dev, and strip the field at deploy time. Validation rejects malformeddevshapes.
0.23.1
Patch Changes
-
#14282
ecfdd5aThanks @edmundhung! - Fixwrangler devasset fallback with custom routeswrangler devnow applies Workers Assets fallback behavior consistently when routes are configured, including SPA fallback and404-pagehandling.
0.23.0
Minor Changes
-
#14089
c6c61b5Thanks @alsuren! - Addmigrations_patternto D1 database bindingsThe D1 binding now accepts an optional
migrations_patternfield, allowing you to pointwrangler d1 migrations applyandwrangler d1 migrations listat migration files in nested layouts (e.g. ORM-generated folders likemigrations/0000_init/migration.sql).migrations_patternis a glob (relative to the wrangler config file) and defaults to${migrations_dir}/*.sql, which preserves today's behaviour. Files that do not match the pattern are not executed.{ "d1_databases": [ { "binding": "DB", "database_name": "my-db", "database_id": "...", "migrations_dir": "migrations", "migrations_pattern": "migrations/*/migration.sql" } ] }When no migrations match the configured pattern but files matching the common
migrations/*/migration.sql(drizzle-style) layout do exist, Wrangler logs a hint suggestingmigrations_patternas an opt-in.wrangler d1 migrations createnow returns an actionable error if the generated migration filename would not match the configured pattern. -
#14164
b502d54Thanks @G4brym! - Rename theweb_searchbinding kind towebsearchPre-launch rename of the public binding type from
web_searchtowebsearchso the on-the-wire shape matches the product name (Web Search). The wrangler config key, the binding-type string sent to the Cloudflare API, and the miniflare option key all move fromweb_search/webSearchtowebsearch.Update your wrangler config:
- "web_search": { "binding": "WEBSEARCH" } + "websearch": { "binding": "WEBSEARCH" }The runtime
WebSearchtype exposed onenv.WEBSEARCHis unchanged. -
#14146
c4f45e8Thanks @dario-piotrowicz! - SimplifyconstructWranglerConfigto accept a single worker instead of an arrayThe
constructWranglerConfigfunction now accepts a singleAPIWorkerConfigobject instead ofAPIWorkerConfig | APIWorkerConfig[]. The multi-environment array support has been removed since the array use-case was removed and now the only call site already passes a single worker object. This is a breaking change to the function's public signature.
0.22.1
Patch Changes
-
#14084
e86489aThanks @dario-piotrowicz! - Correctly map JSON bindings inmapWorkerMetadataBindingsThe
jsonbinding case used literal keysnameandjsoninstead of a computed property key[binding.name]: binding.json. This caused JSON bindings to always produce{ name: "<binding_name>", json: <value> }instead of{ <binding_name>: <value> }, clobbering any existing vars with those keys. This is now consistent with howplain_textbindings are mapped. -
#14105
337e912Thanks @dario-piotrowicz! - Remove trailing periods from URLs in terminal outputURLs printed to the terminal with a sentence-ending period (e.g.
https://example.com/path.) would include the period when clicked in some terminal emulators, causing 404 errors. This removes trailing periods from all URLs displayed in CLI output across wrangler, miniflare, vitest-pool-workers, and workers-utils. -
#14063
65b5f9eThanks @emily-shen! - Move fetch helpers into@cloudflare/workers-utilsShared Cloudflare API fetch helper types and plumbing now live in
@cloudflare/workers-utilsso Wrangler and other clients can use the same implementation.
0.22.0
Minor Changes
-
#14087
e3c862aThanks @edmundhung! - Add support for the newweb_searchbinding kind.Cloudflare Web Search is a managed, zero-setup web discovery primitive for agents and Workers. Declare the binding as a single object in
wrangler.jsonc:{ "web_search": { "binding": "WEBSEARCH" } }There is exactly one shared web corpus, so there is no namespace, instance, or other field to specify -- only the variable name. The binding exposes a single
search()method that returns URLs and catalog metadata for a query. Web Search is discovery-only -- to read a result's content the caller invokes the globalfetch()API against the result'surl.The binding is always remote in local development: Miniflare proxies to the production Web Search service via the remote-bindings transport. Adds the
websearch.runOAuth scope towrangler login.Also adds a
wrangler websearch searchcommand for running ad-hoc queries from the CLI:npx wrangler websearch search "cloudflare workers" npx wrangler websearch search "cloudflare workers" --limit 5 npx wrangler websearch search "cloudflare workers" --json--limitis optional (defaults to 10, capped at 20).--jsonprints the raw response; without it the results render as a pretty table. -
#14087
e3c862aThanks @edmundhung! - Renamepipelinefield tostreamin pipeline bindings configurationThe
pipelinefield insidepipelinesbindings has been renamed tostreamto align with the updated API wire format. The oldpipelinefield is still accepted but deprecated and will emit a warning.Before:
// wrangler.json { "pipelines": [ { "binding": "MY_PIPELINE", "pipeline": "my-stream-name" } ] }After:
// wrangler.json { "pipelines": [ { "binding": "MY_PIPELINE", "stream": "my-stream-name" } ] }
Patch Changes
-
#14111
599b27aThanks @nikitacano! - Fix cloudflared SHA256 checksum mismatch on macOSThe update service (
update.argotunnel.com) returns a checksum for the extracted binary, not the.tgztarball. We were computing the SHA256 of the tarball itself, which always mismatched on macOS where cloudflared is distributed as a compressed archive.This aligns with cloudflared's own auto-updater (
cmd/cloudflared/updater/workers_update.go), which decompresses the tarball first, then checksums the resulting binary. We now do the same: extract, then verify. -
#14087
e3c862aThanks @edmundhung! - Filter compatibility date fallback warning when no update is availableThe compatibility date warning from workerd (e.g., "The latest compatibility date supported by the installed Cloudflare Workers Runtime is...") is now only shown when a newer version of
@cloudflare/vite-pluginis available. This matches the behavior in Wrangler and reduces noise when the user is already on the latest version.The update-check logic has been extracted to
@cloudflare/workers-utilsso it can be shared across packages.
0.21.1
Patch Changes
-
#13933
90092c0Thanks @petebacondarwin! - Mark@cloudflare/workers-utilsas side-effect-free and properly declareundicias a runtime dependencyThe package now declares
"sideEffects": falsein itspackage.jsonso that downstream bundlers can tree-shake unused exports. In particular, consumers that only use a subset of the package (for example,getTodaysCompatDatefrom the main entry) will no longer carry thecloudflared/tunnelexports — or their transitive dependencies — in their final bundle.undicihas been moved fromdevDependenciestodependencies. Previously it was incorrectly listed as a devDependency while the bundler config marked it as external, leaving the publisheddist/index.mjswith an unresolvedimport { fetch } from "undici"for anyone installing the package directly.undiciis deliberately kept external (rather than bundled) so that downstream consumers don't end up with two copies ofundiciin their bundle — which would breakinstanceof Request/Response/Headerschecks across the boundary and preventsetGlobalDispatcher/ proxy configuration from applying to the bundled copy.vitesthas been added as an optionalpeerDependencybecause the./test-helperssub-export usesvitest'svi,beforeEach, andafterEachAPIs at runtime; consumers that import from./test-helpersmust havevitestinstalled themselves.
0.21.0
Minor Changes
-
#12279
248bc08Thanks @penalosa! - Add deprecation warning fordelivery_delayin queue producer bindingsThe
delivery_delaysetting in[[queues.producers]]was silently having no effect since 2024. This change adds a deprecation warning when the setting is used, informing users that queue-level settings should be configured usingwrangler queues updateinstead. The setting will be removed in a future version.
0.20.0
Minor Changes
-
#13055
f3fed88Thanks @GregBrimble! - Introducing thecacheconfiguration option for Workers.You can now set
{ cache: { enabled: true } }in your Wrangler configuration file to enable a HTTP cache in front of your Worker'sfetchhandler. This is also supported in[previews]configuration —previews.cacheoverrides the top-levelcachesetting for preview deployments, and falls back to the top-level value when absent. More information can be found in our documentation.
0.19.0
Minor Changes
-
#13810
2b8c0ccThanks @jamesopstad! - Stabilize thesecretsconfiguration propertyThe
secretsproperty in the Wrangler config file is no longer experimental and will no longer emit an experimental warning when used. Required secrets are validated during local development and deploy, and used as the source of truth for type generation.{ "secrets": { "required": ["API_KEY", "DB_PASSWORD"] } }
0.18.0
Minor Changes
-
#13222
5680287Thanks @maxwellpeterson! - Add enabled and previews_enabled support for custom domain routesCustom domain routes can now include optional
enabledandpreviews_enabledboolean fields to control whether a custom domain serves production and/or preview traffic. When omitted, the API defaults apply (production enabled, previews disabled). -
#13651
47ac63fThanks @penalosa! - Publish@cloudflare/cli-shared-helpersand@cloudflare/workers-utilsto npm
0.17.0
Minor Changes
-
#13326
4a9ba90Thanks @mattzcarey! - Add Artifacts binding support to wranglerYou can now configure Artifacts bindings in your wrangler configuration:
// wrangler.jsonc { "artifacts": [{ "binding": "MY_ARTIFACTS", "namespace": "default" }] }Type generation produces the correct
Artifactstype reference from the workerd type definitions:interface Env { MY_ARTIFACTS: Artifacts; } -
#13571
7dc0433Thanks @must108! - Add regional and jurisdictional placement constraints for Containers. Users can now setconstraints.regionsandconstraints.jurisdictionin wrangler config to control where containers run.
Patch Changes
- #13516
4eb1da9Thanks @jonnyparris! - Rename "Browser Rendering" to "Browser Run" in all user-facing strings, error messages, and CLI output.
0.16.1
Patch Changes
-
#13468
051db1fThanks @jamesopstad! - Make all properties inpreviewsoptionalAll properties in
previewswere previously incorrectly typed as required.
0.16.0
Minor Changes
-
#13139
79fd529Thanks @roerohan! - feat: add Flagship feature flag binding supportAdds end-to-end support for the Flagship feature flag binding, which allows Workers to evaluate feature flags from Cloudflare's Flagship service. Configure it in
wrangler.jsonwith aflagshiparray containingbindingandapp_identries. In local dev, the binding returns default values for all flag evaluations; use"remote": truein the binding to evaluate flags against the live Flagship service.
0.15.0
Minor Changes
-
#13011
b9b7e9dThanks @ruifigueira! - Add experimental headful browser rendering support for local developmentExperimental: This feature may be removed or changed without notice.
When developing locally with the Browser Rendering API, you can enable headful (visible) mode via the
X_BROWSER_HEADFULenvironment variable to see the browser while debugging:X_BROWSER_HEADFUL=true wrangler dev X_BROWSER_HEADFUL=true vite devNote: when using
@cloudflare/playwright, two Chrome windows may appear — the initial blank page and the one created bybrowser.newPage(). This is expected behavior due to how Playwright handles browser contexts via CDP. -
#13051
d5bffdeThanks @dario-piotrowicz! - RemoveformatCompatibilityDatefrom the package's public exportsThis utility has been removed from the public API. Callers should use
getTodaysCompatDate()from@cloudflare/workers-utilsinstead. -
#13051
d5bffdeThanks @dario-piotrowicz! - RemovegetLocalWorkerdCompatibilityDatefrom the packageThis utility has been removed because its implementation besides being unreliable is no longer needed. Callers should now use today's date as the compatibility date directly, e.g. via
getTodaysCompatDate()from@cloudflare/workers-utils. -
#12992
48d83caThanks @RiscadoA! - Addvpc_networksbinding support for routing Worker traffic through a Cloudflare Tunnel or network.{ "vpc_networks": [ // Route through a specific Cloudflare Tunnel { "binding": "MY_FIRST_VPC", "tunnel_id": "<tunnel-id>" }, // Route through the Cloudflare One mesh network { "binding": "MY_SECOND_VPC", "network_id": "cf1:network" } ] } -
#13051
d5bffdeThanks @dario-piotrowicz! - AddgetTodaysCompatDate()utility functionReturns today's date as a
YYYY-MM-DDstring.
0.14.0
Minor Changes
-
#13027
9fcdfcaThanks @G4brym! - feat: Addai_search_namespacesandai_searchbinding typesTwo new binding types for AI Search:
ai_search_namespaces: Namespace binding —namespaceis required and auto-provisioned at deploy time if it doesn't exist (like R2 buckets)ai_search: Single instance binding bound directly to a pre-existing instance in the default namespace
Both are remote-only in local dev.
Patch Changes
-
#13018
9c5ebf5Thanks @tgarg-cf! - Validate that queue consumers in wrangler config only use the "worker" typePreviously, non-worker consumer types (e.g.
http_pull) could be specified in thequeues.consumersconfig. Now, wrangler will error if a consumertypeother than"worker"is specified in the config file.To configure non-worker consumer types, use the
wrangler queues consumerCLI commands instead (e.g.wrangler queues consumer http-pull add).
0.13.0
Minor Changes
-
#12957
62545c9Thanks @natewong1313! - Add Stream binding support to Wrangler and workers-utilsWrangler and workers-utils now recognize the
streambinding in configuration, deployment metadata, and generated worker types. This enables projects to declare Stream bindings inwrangler.jsonand have the binding represented consistently across validation, metadata mapping, and type generation.
0.12.0
Minor Changes
-
#12677
eccd014Thanks @jamesopstad! - Add experimentalsecretsproperty to config validation -
#12625
c0e9e08Thanks @WillTaylorDev! - Addcacheconfiguration option for enabling worker cache (experimental)You can now enable cache before worker execution using the new
cacheconfiguration:{ "cache": { "enabled": true } }This setting is environment-inheritable and opt-in. When enabled, cache behavior is applied before your worker runs.
Note: This feature is experimental. The runtime API is not yet generally available.
0.11.2
Patch Changes
-
#12629
603fe18Thanks @petebacondarwin! - AddremoveDirandremoveDirSynchelpers with automatic retry logic for Windows EBUSY errorsThese new helpers wrap
fs.rm/fs.rmSyncwithmaxRetries: 5andretryDelay: 100to handle cases where file handles aren't immediately released (common on Windows with workerd). The async helper also has afireAndForgetoption to silently swallow errors and not await removal.This improves reliability of cleanup operations across the codebase.
0.11.1
Patch Changes
-
#12601
ebdbe52Thanks @43081j! - Switch toempathicfor file-system upwards traversal to reduce dependency bloat. -
#12602
58a4020Thanks @anonrig! - Optimize filesystem operations by using Node.js's throwIfNoEntry: false optionThis reduces the number of system calls made when checking for file existence by avoiding the overhead of throwing and catching errors for missing paths. This is an internal performance optimization with no user-visible behavioral changes.
0.11.0
Minor Changes
-
#12466
caf9b11Thanks @petebacondarwin! - AddWRANGLER_CACHE_DIRenvironment variable and smart cache directory detectionWrangler now intelligently detects where to store cache files:
- Use
WRANGLER_CACHE_DIRenv var if set - Use existing cache directory if found (
node_modules/.cache/wrangleror.wrangler/cache) - Create cache in
node_modules/.cache/wranglerifnode_modulesexists - Otherwise use
.wrangler/cache
This improves compatibility with Yarn PnP, pnpm, and other package managers that don't use traditional
node_modulesdirectories, without requiring any configuration. - Use
0.10.0
Minor Changes
-
#12461
8809411Thanks @penalosa! - Supporttype: inheritbindings when using startWorker()This is an internal binding type that should not be used by external users of the API
0.9.1
Patch Changes
-
#12368
bd4bb98Thanks @KianNH! - Preserve Containers configuration when usingversionscommandsPreviously, commands like
wrangler versions uploadwould inadvertently disable Containers on associated Durable Object namespaces because thecontainersproperty was being omitted from the API request body.
0.9.0
Minor Changes
-
#11803
1bd1488Thanks @dario-piotrowicz! - Add a newsubrequestslimit to thelimitsfield of the Wrangler configuration fileBefore only the
cpu_mslimit was supported in thelimitsfield of the Wrangler configuration file, now asubrequestslimit can be specified as well which enables the user to limit the number of fetch requests that a Worker's invocation can make.Example:
{ "$schema": "./node_modules/wrangler/config-schema.json", "limits": { "cpu_ms": 1000, "subrequests": 150 // newly added field } }
0.8.1
Patch Changes
-
#12156
abd2b71Thanks @irvinebroque! - Fix compatibility date detection failing when creating new projectsPreviously,
getLocalWorkerdCompatibilityDate()would fail to find the locally installedminiflareandworkerdpackages, causingnpm create cloudflare@latestto fall back to a hardcoded date (2025-09-27) instead of using the current workerd compatibility date.The issue was that
module.createRequire()was called with a directory path. Node.js treats this as a filename at that location and looks fornode_modulesin the parent directory rather than the intended directory. This is now fixed by appendingpackage.jsonto the path, which ensures module resolution starts from the correct location.Fixes #12155
-
#11969
9acb24bThanks @emily-shen! - Validate environments for unexpected fields in Wrangler configPreviously, this check only applied to the top-level environment.
0.8.0
Minor Changes
-
#12008
e414f05Thanks @penalosa! - Add support for customising the inspector IP addressAdds a new
--inspector-ipCLI flag anddev.inspector_ipconfiguration option to allow customising the IP address that the inspector server listens on. Previously, the inspector was hardcoded to listen only on127.0.0.1.Example usage:
# CLI flag wrangler dev --inspector-ip 0.0.0.0// wrangler.json { "dev": { "inspector_ip": "0.0.0.0" } } -
#12034
05714f8Thanks @emily-shen! - Add a no-op local explorer worker, which is gated by the experimental flagX_LOCAL_EXPLORER.
0.7.1
Patch Changes
-
#11946
fa39a73Thanks @MattieTK! - FixconfigFileNamereturning wrong filename for.jsoncconfig filesPreviously, users with a
wrangler.jsoncconfig file would see error messages and hints referring towrangler.jsoninstead ofwrangler.jsonc. This was because theconfigFormatfunction collapsed both.jsonand.jsoncfiles into a single"jsonc"value, losing the distinction between them.Now
configFormatreturns"json"for.jsonfiles and"jsonc"for.jsoncfiles, allowingconfigFileNameto return the correct filename for each format.
0.7.0
Minor Changes
- #11755
0f8d69dThanks @nikitassharma! - Users can now specifyconstraints.tiersfor their container applications.tieris deprecated in favor oftiers. If left unset, we will default totiers: [1, 2]. Note thatconstraintsis an experimental feature.
0.6.0
Minor Changes
-
#11702
f612b46Thanks @gpanders! - Add support for trusted_user_ca_keys in WranglerYou can now configure SSH trusted user CA keys for containers. Add the following to your wrangler.toml:
[[containers.trusted_user_ca_keys]] public_key = "ssh-ed25519 AAAAC3..."This allows you to specify CA public keys that can be used to verify SSH user certificates.
-
#11620
25f6672Thanks @dario-piotrowicz! - Expose a newgetLocalWorkerdCompatibilityDateutility that allows callers to get the compatibility date of the locally installedworkerdpackage. -
#11616
fc95831Thanks @NuroDev! - Add type generation support towrangler devYou can now have your worker configuration types be automatically generated when the local Wrangler development server starts.
To use it you can either:
- Add the
--typesflag when runningwrangler dev. - Update your Wrangler configuration file to add the new
dev.generate_typesboolean property.
{ "$schema": "node_modules/wrangler/config-schema.json", "name": "example", "main": "src/index.ts", "compatibility_date": "2025-12-12", "dev": { "generate_types": true } } - Add the
-
#11620
25f6672Thanks @dario-piotrowicz! - Expose newisCompatDateutility that discerns whether a string represents a compatibility date or not
Patch Changes
-
#11737
2cfea12Thanks @NuroDev! - Fix thetriggersJSON schema default value to use valid JSON ({"crons":[]}) instead of an invalid JavaScript literal, which was causing IDE auto-completion to insert a string rather than an object. -
#11651
d123ad0Thanks @dario-piotrowicz! - Surface error in diagnostics when TOML date/time values are used invarsTOML parses unquoted date/time values like
DATE = 2024-01-01as TOML Date, Date-Time, and Time values. The config validation now surfaces an error in the diagnostics result when this type of values are encountered, with a clear message telling you to quote the value as a string, e.g.DATE = "2024-01-01". -
#11693
385ec7fThanks @vicb! - Update the signature of ParseTOML to drop the Generics.Use an explicit cast where required.
0.5.0
Minor Changes
-
#11661
4b3fba2Thanks @edmundhung! - AddgetOpenNextDeployFromEnv()environment variable helper which will be used to signal the current process is being run by the open-next deploy command. -
#11621
90c0676Thanks @dario-piotrowicz! - ExposewriteWranglerConfig,writeDeployRedirectConfig,writeRedirectedWranglerConfigandreadWranglerConfigfrom/test-helpers
0.4.0
Minor Changes
-
#10937
9514c9aThanks @ReppCodes! - Add support for "targeted" placement mode with region, host, and hostname fieldsThis change adds a new mode to
placementconfiguration. You can specify one of the following fields to target specific external resources for Worker placement:region: Specify a region identifier (e.g., "aws:us-east-1") to target a region from another cloud service providerhost: Specify a host with (required) port (e.g., "example.com:8123") to target a TCP servicehostname: Specify a hostname (e.g., "example.com") to target an HTTP resource
These fields are mutually exclusive - only one can be specified at a time.
Example configuration:
[placement] host = "example.com:8123"
0.3.0
Minor Changes
-
#11349
aa4a5f1Thanks @petebacondarwin! - Adds a newtest-helpersentry-point to the workers-utils package -
#11228
43903a3Thanks @petebacondarwin! - SupportCLOUDFLARE_ENVenvironment variable for selecting the active environmentThis change enables users to select the environment for commands such as
CLOUDFLARE_ENV=prod wrangler versions upload. The--envcommand line argument takes precedence.The
CLOUDFLARE_ENVenvironment variable is mostly used with the@cloudflare/vite-pluginto select the environment for building the Worker to be deployed. This build also generates a "redirected deploy config" that is flattened to only contain the active environment. To avoid accidentally deploying a version that is built for one environment to a different environment, there is an additional check to ensure that if the user specifies an environment in Wrangler it matches the original selected environment from the build.
0.2.0
Minor Changes
- #11233
c922a81Thanks @emily-shen! - Addcontainers.unsafeto allow internal users to use additional container features
0.1.2
Patch Changes
-
#11339
dfba912Thanks @dario-piotrowicz! - FixmapWorkerMetadataBindingsandconstructWranglerConfigincorrectly throwing an error when encountering assets bindingsCurrently
mapWorkerMetadataBindingsandconstructWranglerConfigwhen provided data containing an assets binding throw the following error:the error "`wrangler init --from-dash` is not yet supported for Workers with Assets"This is incorrect and
wrangler initspecific, the changes here make sure that such error is not thrown and that the assets binding is instead handled
0.1.1
Patch Changes
-
#11286
8e99766Thanks @dario-piotrowicz! - fix: make sure thatexperimental_patchConfigdoesn't throw if it encounters anullvalue -
#11266
09cb720Thanks @penalosa! - Use the smol-toml library for parsing TOML instead of @iarna/toml -
#11286
8e99766Thanks @dario-piotrowicz! - fix: InconstructWranglerConfigmake sure that if the API value oftail_consumersisnullthat is converted toundefined(sincenullis not a validtail_consumersconfig value)
0.1.0
Minor Changes
- #11146
d7a2037Thanks @penalosa! - Change the input types ofconstructWranglerConfig()to better match the API