@cloudflare/workers-utils@0.21.1
📦 cloudflare-workersView on GitHub →
✨ 2 features🐛 1 fixes🔧 1 symbols
Summary
This patch improves tree-shaking for @cloudflare/workers-utils by marking it as side-effect-free and correctly declares undici as a runtime dependency, fixing unresolved import issues.
Migration Steps
- Consumers of @cloudflare/workers-utils that import from the `./test-helpers` sub-export must now ensure `vitest` is installed as a peer dependency.
✨ New Features
- Marked @cloudflare/workers-utils as side-effect-free to enable better tree-shaking by bundlers.
- Moved undici from devDependencies to dependencies in @cloudflare/workers-utils to resolve unresolved imports.
🐛 Bug Fixes
- Fixed an issue in @cloudflare/workers-utils where undici was incorrectly listed as a devDependency, leading to unresolved imports in published modules.