Skip to content

Releases: cloudflare/workers-rs

Release v0.4.2

11 Oct 01:11
Compare
Choose a tag to compare

What's Changed

  • Adding host_metadata to Cloudflare Request Data by @mettke in #348

New Contributors

Full Changelog: v0.4.1...v0.4.2

Release v0.4.1

26 Sep 12:28
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.0...v0.4.1

Release `worker-kv` v0.8.0

25 Sep 14:50
Compare
Choose a tag to compare
  • Move KV test suite to worker-sandbox and fix bug in KV put metadata. by @kflansburg in #550

Release v0.4.0

13 Sep 19:45
Compare
Choose a tag to compare

What's Changed

  • Relax type of callback arguments to Router methods. This uses APIT to allow more types than a function pointer to implement handlers (i.e. async closure) by @compiler-errors in #605
  • Fix typos in CORS argument names by @OliverEvans96 in #629
  • Implement get_all function to return non-folding set-cookie headers by @nakamura-shuta in #597
  • Add FormData conversion into JsValue by @thibmeu in #634

Caution

Breaking: Make R2 Object::size return u64 by @lkolbly in #625

New Contributors

Full Changelog: v0.3.4...v0.4.0

Release v0.3.4

19 Aug 15:35
Compare
Choose a tag to compare

What's Changed

  • Fix breaking change in js-sys / web-sys. Remove HeaderExt and AbortSignalExt by @kflansburg in #621

Full Changelog: v0.3.3...v0.3.4

Release v0.3.3

06 Aug 19:43
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.2...v0.3.3

Release v0.3.2

02 Aug 18:48
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.1...v0.3.2

Release v0.3.1

25 Jul 15:34
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.0...v0.3.1

Release v0.3.0

19 May 13:26
Compare
Choose a tag to compare

What's Changed

Tip

You can now get started in seconds by running cargo generate cloudflare/workers-rs!

  • Implement Send, Sync and Clone for some Durable Object types for better axum ergonomics by @avsaase in #563
  • Hyperdrive binding by @avsaase in #566

Tip

You can now use Workers Hyperdrive to speed up connections to your SQL database using tokio-postgres. Check out our updated example.

Caution

Rust 1.75 or greater is now required due to use of impl Trait in trait method return type.

Caution

In order to support range requests larger than 4GB, worker_sys::R2Range now accepts f64 instead of u32. worker::Range options have changed to make the functionality more clear and now accept u64 instead of u32.

  • Add encodeBody and cf to ResponseInit. Adopt builder pattern. by @kflansburg in #568

Caution

This change removes ResponseInit, which is replaced by an idiomatic ResponseBuilder pattern, all other APIs should remain unchanged. In addition, the encodeBody property is now available to support returning pre-compressed data.

New Contributors

Full Changelog: v0.2.0...v0.3.0

Release v0.2.0

29 Apr 00:01
8454d87
Compare
Choose a tag to compare

What's Changed

R2 Improvements

API Flexibility

  • WorkerRequest/WorkerResponse traits by @dakom in #530
  • Allow returning any error that implements std::error::Error by @kflansburg in #527

Note

These changes should not be breaking: they should only expand the set of request, response, and error types supported by the event macro:

  • The error type returned can now be any type which implements Into<Box<dyn std::error::Error>> (including worker::Error).
  • Introduces FromRequest trait, and handler request type can be any type that implements this trait. Implementations are provided for web_sys::Request, worker::Request, and http::Request<worker::Body>.
  • Introduces IntoResponse trait, and handler response type can be any type that implements this trait. Implementations are provided for web_sys::Response, worker::Response, and http::Response<B> where B: http_body::Body.

Workers RPC

General

  • chore(deps): bump rustls from 0.22.3 to 0.22.4 by @dependabot in #553
  • 🤽 worker-sys Make all methods catch: this greatly improves error reporting for exceptions which originate in JavaScript by @Jasper-Bekkers in #546

Caution

Making worker-sys methods catch changes them all to return Result. worker crate APIs should not have breaking changes, but if you use worker-sys APIs directly (including some user-facing APIs such as D1ExecResult), then you may need update your code to handle this change.

New Contributors

Full Changelog: v0.1.0...v0.2.0