版本发布 8
## What's Changed * Fixed leptos template by @Sushi-Mampfer in https://github.com/cloudflare/workers-rs/pull/945 * Fixed leptos template (again) by @Sushi-Mampfer in https://github.com/cloudflare/workers-rs/pull/955 * feat(worker-build): change default out-dir from pkg to build by @aquilacf in https://github.com/cloudflare/workers-rs/pull/958 * feat(kv): Add streaming support for `ReadableStream` in KV bindings by @qaz741wsd856 in https://github.com/cloudflare/workers-rs/pull/957 * fix: suppress semgrep false positive on lockfile path by @guybedford in https://github.com/cloudflare/workers-rs/pull/961 * Minor R2/Hyperdrive/Service Bindings related changes by @fisherdarling in https://github.com/cloudflare/workers-rs/pull/930 * Add get_bulk support to KV store bindings by @rorychatterton in https://github.com/cloudflare/workers-rs/pull/949 * deps: bump miniflare to 4.20260329.0 and remove undici dependency by @connyay in https://github.com/cloudflare/workers-rs/pull/959 * Add validation for the signatures of functions annotated with `#[event(fetch)]`, `#[event(start)]` etc. by @jakubadamw in https://github.com/cloudflare/workers-rs/pull/940 * feat(d1): add typed session API and tests by @jihuayu in https://github.com/cloudflare/workers-rs/pull/943 * deps: update wasm-bindgen to 0.2.117, esbuild to 0.27.4, wasm-opt to 129 by @guybedford in https://github.com/cloudflare/workers-rs/pull/963 * chore(deps-dev): bump vite from 7.1.11 to 7.3.2 by @dependabot[bot] in https://github.com/cloudflare/workers-rs/pull/965 * chore: upgrade remaining crates to Rust 2021 edition by @mvanhorn in https://github.com/cloudflare/workers-rs/pull/966 * Init inlining & panic=unwind reinitialization by @guybedford in https://github.com/cloudflare/workers-rs/pull/964 * Update readme by @irvinebroque in https://github.com/cloudflare/workers-rs/pull/968 * deps: update wasm-bindgen to 0.2.118 by @guybedford in https://github.com/cloudflare/workers-rs/pull/969 ## New Contributors * @Sushi-Mampfer made their first contribution in https://github.com/cloudflare/workers-rs/pull/945 * @qaz741wsd856 made their first contribution in https://github.com/cloudflare/workers-rs/pull/957 * @rorychatterton made their first contribution in https://github.com/cloudflare/workers-rs/pull/949 * @jihuayu made their first contribution in https://github.com/cloudflare/workers-rs/pull/943 * @mvanhorn made their first contribution in https://github.com/cloudflare/workers-rs/pull/966 **Full Changelog**: https://github.com/cloudflare/workers-rs/compare/v0.7.5...v0.8.0
## What's Changed * feat: support using older wasm bindgen versions by @guybedford in https://github.com/cloudflare/workers-rs/pull/908 * cacheTtl can be negative by @danlapid in https://github.com/cloudflare/workers-rs/pull/909 **Full Changelog**: https://github.com/cloudflare/workers-rs/compare/v0.7.3...v0.7.4
## What's Changed * fix(build): correct esbuild binary path on Windows by @Sabourifar in https://github.com/cloudflare/workers-rs/pull/889 * Allow `Result<T, E>` while `use worker::*` and add ok::Ok helper by @ryo33 in https://github.com/cloudflare/workers-rs/pull/890 * worker-build: fix output path resolution when CWD differs from crate root by @Summpot in https://github.com/cloudflare/workers-rs/pull/892 ## New Contributors * @Sabourifar made their first contribution in https://github.com/cloudflare/workers-rs/pull/889 * @ryo33 made their first contribution in https://github.com/cloudflare/workers-rs/pull/890 * @Summpot made their first contribution in https://github.com/cloudflare/workers-rs/pull/892 **Full Changelog**: https://github.com/cloudflare/workers-rs/compare/v0.7.1...v0.7.2
## Breaking Changes - The `DurableObject` trait now needs to be explicitly imported and won't be brought into scope automatically, which was stopping multiple durable objects in the same file from working correctly (https://github.com/cloudflare/workers-rs/pull/872) - As of version `worker@0.7.0` and `worker-build@0.7.0`, these toolchains now are majorly versioned together and will throw when using unexpected versions. Attempting to use `worker@0.6` with `worker-build@0.7.0` will throw an error. It is instead recommended to lock the version of worker-build to the expected semver via `cargo install worker-build@0.7`. ## Deprecations - worker-kv is no longer published, and is instead available as `worker::kv` - `data()` and `get_env()` on `RouteContext` for instead using these fields directly ## Features - feat: add Send+Sync+Display traits to KvError by @omarabid in https://github.com/cloudflare/workers-rs/pull/847 - IntoSend Trait by @omarabid in https://github.com/cloudflare/workers-rs/pull/676 ## Bug Fixes & Refactoring - fix: better macro hygiene for durable objects by @guybedford in https://github.com/cloudflare/workers-rs/pull/869 - refactor: internalize more of wasm pack implementation by @guybedford in https://github.com/cloudflare/workers-rs/pull/873 ## New Contributors * @omarabid made their first contribution in https://github.com/cloudflare/workers-rs/pull/847 **Full Changelog**: https://github.com/cloudflare/workers-rs/compare/v0.6.7...v0.7.0
## What's Changed * fix: queue and scheduled handlers by @guybedford in https://github.com/cloudflare/workers-rs/pull/856 **Full Changelog**: https://github.com/cloudflare/workers-rs/compare/v0.6.7...worker-build-v0.1.13
## What's Changed * feat: support --no-panic-recovery flag to disable panic reinitialization by @guybedford in https://github.com/cloudflare/workers-rs/pull/835
## Fixes * worker-build fixes by @guybedford in https://github.com/cloudflare/workers-rs/pull/819 **Full Changelog**: https://github.com/cloudflare/workers-rs/compare/v0.6.4...v0.6.5
## Features * Add Containers bindings by @hr567 in https://github.com/cloudflare/workers-rs/pull/797 * Add support for the `cf.image` field in `fetch()` properties by @jakubadamw in https://github.com/cloudflare/workers-rs/pull/351 * wasm-bindgen@0.2.103 by @guybedford in https://github.com/cloudflare/workers-rs/pull/809 ## Bug Fixes * fix worker-build backwards compatibility by @guybedford in https://github.com/cloudflare/workers-rs/pull/810 **Full Changelog**: https://github.com/cloudflare/workers-rs/compare/v0.6.2...v0.6.3