@cloudflare/worker-bundler@0.2.3
cloudflare/agents@cloudflare/worker-bundler@0.2.3Aug 18, 2026by github-actions[bot]
AI Summary
This patch release adds Python package support to the Cloudflare Worker Bundler, handling `pyproject.toml` and `index.py`, alongside fixes for dependency extraction.
Key Highlights
- Added Python package support, accepting `pyproject.toml` or `package.json`.
- Fixed dependency extraction for npm tarballs in non-standard directories.
- Updated `FileSystem.write()` to accept both strings and binary data.
Breaking Changes
- Automatic dependency installation now accepts only one manifest (json or toml).
- `index.py` is now considered before `src/worker.ts` during default entry-point detection.
New Features
- Python package support
Full Release Notes
### Patch Changes
- [#2043](https://github.com/cloudflare/agents/pull/2043) [`38bbf5a`](https://github.com/cloudflare/agents/commit/38bbf5a67efa0bc2a632698289a5086277da2c07) Thanks [@abstractedfox](https://github.com/abstractedfox)! - Add Python package support.
Existing worker-bundler users should note:
- Automatic dependency installation accepts either `package.json` or `pyproject.toml`, not both. Projects that provide both must remove one manifest from the bundler input or install dependencies separately.
- `index.py` is now considered before `src/worker.ts` and `src/worker.js` during default entry-point detection. Set `entryPoint`, `server`, or `wrangler.main` in projects where that is ambiguous.
- Custom `FileSystem.write()` implementations used with Python packages must accept both strings and `{ data: Uint8Array }` binary entries.
- [#2016](https://github.com/cloudflare/agents/pull/2016) [`2ee8424`](https://github.com/cloudflare/agents/commit/2ee842419e022a441a757bc074e38fc127757026) Thanks [@ben-reitz](https://github.com/ben-reitz)! - Fix dependency extraction for npm tarballs whose enclosing directory is not named `package`, including DefinitelyTyped packages.