@cloudflare/workers-utils@0.25.1
📦 cloudflare-workersView on GitHub →
🐛 3 fixes🔧 3 symbols
Summary
This patch release improves ESM compatibility by replacing a CJS dependency with a pure-ESM implementation and upgrades another dependency to support dual ESM/CJS builds. It also adds validation for optional D1 database configuration fields.
Migration Steps
- If you rely on specific behavior related to signals `SIGUNUSED` (Linux) or `SIGABRT`/`SIGALRM` (Windows) during process exit, note that these are no longer handled due to the upgrade of `signal-exit` to v4.
🐛 Bug Fixes
- Enforce type checks for optional D1 database configuration fields: `database_name`, `migrations_dir`, `migrations_table`, and `database_internal_env`.
- Replaced CommonJS dependency `xdg-app-paths` (and its dependencies) with a vendored pure-ESM implementation in `@cloudflare/workers-utils` to resolve "Dynamic require of 'path' is not supported" errors during ESM bundling.
- Dropped the transitive `fsevents` optional dependency previously pulled in by `xdg-app-paths`.