Release v0.2.0
What's Changed
R2 Improvements
- 💡 Expose
uploadId
for multipart uploads by @Jasper-Bekkers in #542 - 🎏 Add ReadableStream to Data by @Jasper-Bekkers in #548
- feat: Allow instantiating an UploadPart from its constituent parts by @lwansbrough in #552
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>>
(includingworker::Error
). - Introduces
FromRequest
trait, and handler request type can be any type that implements this trait. Implementations are provided forweb_sys::Request
,worker::Request
, andhttp::Request<worker::Body>
. - Introduces
IntoResponse
trait, and handler response type can be any type that implements this trait. Implementations are provided forweb_sys::Response
,worker::Response
, andhttp::Response<B> where B: http_body::Body
.
Workers RPC
- Experimental RPC Support (see README for details) by @kflansburg in #551
General
- chore(deps): bump rustls from 0.22.3 to 0.22.4 by @dependabot in #553
- 🤽
worker-sys
Make all methodscatch
: 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
- @Jasper-Bekkers made their first contribution in #542
- @lwansbrough made their first contribution in #552
Full Changelog: v0.1.0...v0.2.0