Release v0.0.22
github-actions
released this
26 Mar 17:21
·
0 commits
to d33aa989f103d8e6a579cdca21bc43877041cbb8
since this release
This release continues our conversion to the http
crate. In a number of key ways:
- Convert test suite to use
axum
whenhttp
feature is enabled. This was a great dogfooding exercise and helped to identify ergonomics issues. Based on this we developed the utilities (see documentation):- Introduce
worker::send
to mark arbitraryasync
functions asSend
(useful foraxum
handler methods). - Introduce
SendFuture
wrapper for marking a specificFuture
asSend
. - Introduce
SendWrapper
for marking a particular object asSend
. This is useful foraxum
router state.
- Introduce
- Implement Send, Sync, and Clone for Queue, making it easier to use with
axum
. Thanks @avsaase!
We will continue to make ergonomic improvements to simplify usage of axum
and other frameworks which generally expect objects to be Send
, Sync
, and Clone
.
Other Changes
- implement get_tags for hibernatable websockets by @eric-seppanen in #484
- Add tests for Durable + Websocket + Hibernation API by @j-white in #495
- Introduce
D1PreparedStatement.bind_refs
andbatch_bind
which does not take ownership of arguments, and enables more ergonomic and performant use of the D1 API. It also introducesD1Type
which provides better type safety for these arguments than the previous API which allowed arbitraryJsValue
. @kflansburg in #493 - Expose DurableObject Storage's transaction function by @TannerRogalsky in #487
New Contributors
- @avsaase made their first contribution in #483
- @TannerRogalsky made their first contribution in #487
Full Changelog: v0.0.21...v0.0.22