miniflare@4.20260317.3
📦 cloudflare-workersView on GitHub →
✨ 2 features🐛 1 fixes🔧 22 symbols
Summary
This release introduces new AI Search bindings and enables local development support for Cloudflare Stream bindings. A critical bug fix was also implemented to correctly anchor glob patterns, preventing incorrect file matching in module rules.
Migration Steps
- If using Stream bindings locally, be aware that `createDirectUpload()`, caption upload via `File`, and watermark generation via `File` are not yet supported locally and will throw errors.
- To disable local persistence for Stream bindings in Miniflare, set `streamPersist: false` in Miniflare options.
✨ New Features
- Added two new binding types for AI Search: `ai_search_namespaces` (namespace binding, requires namespace which is auto-provisioned if missing) and `ai_search` (single instance binding to a pre-existing instance). Both are remote-only in local development.
- Added local mode support for Stream bindings in Miniflare and `wrangler dev`, supporting operations like `upload()`, video manipulation (`details()`, `.update()`, `.delete()`, `.generateToken()`), listing videos, and caption/download/watermark management. Data persistence is enabled by default locally.
🐛 Bug Fixes
- Fixed an issue where glob patterns for module rules incorrectly matched double-extension filenames (e.g., `foo.wasm.js`) because the compiled regex lacked a trailing `$` anchor. This specifically fixes cases where `.wasm` files were incorrectly loaded as WebAssembly binaries during testing when using `@cloudflare/vitest-pool-workers`.
Affected Symbols
ai_search_namespacesai_searchupload()video(id).details()video(id).update()video(id).delete()video(id).generateToken()videos.list()captions.generate()captions.list()captions.delete()downloads.generate()downloads.get()downloads.delete()watermarks.generate()watermarks.list()watermarks.get()watermarks.delete()createDirectUpload()getPlatformProxyglobsToRegExpsCompiledWasm