github cloudflare/workers-sdk @cloudflare/workers-utils@0.25.1

latest releases: @cloudflare/pages-shared@0.13.154, wrangler@4.108.0, @cloudflare/deploy-helpers@0.3.2...
5 hours ago

Patch Changes

  • #14530 aad35b7 Thanks @Partha-Shankar! - Validate optional configuration fields for D1 database bindings

    Enforce type checks for the optional D1 database properties database_name, migrations_dir, migrations_table, and database_internal_env to ensure consistency with other binding types.

  • #14492 1ac96a1 Thanks @penalosa! - Replace the CommonJS xdg-app-paths dependency with a vendored pure-ESM implementation

    xdg-app-paths (and its xdg-portable/os-paths dependencies) 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-utils that 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 transitive fsevents optional dependency that xdg-app-paths pulled in.

    Miniflare and create-cloudflare now consume the shared helpers from @cloudflare/workers-utils instead 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 1ca8d8f Thanks @penalosa! - Upgrade signal-exit from v3 to v4

    The bundled signal-exit dependency 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 (SIGUNUSED on Linux; SIGABRT/SIGALRM on Windows).

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.