Skip to content

Release v0.0.22

Compare
Choose a tag to compare
@github-actions 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 when http 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 arbitrary async functions as Send (useful for axum handler methods).
    • Introduce SendFuture wrapper for marking a specific Future as Send.
    • Introduce SendWrapper for marking a particular object as Send. This is useful for axum router state.
  • 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 and batch_bind which does not take ownership of arguments, and enables more ergonomic and performant use of the D1 API. It also introduces D1Type which provides better type safety for these arguments than the previous API which allowed arbitrary JsValue. @kflansburg in #493
  • Expose DurableObject Storage's transaction function by @TannerRogalsky in #487

New Contributors

Full Changelog: v0.0.21...v0.0.22