Repository navigation
Release v0.0.24
Major Changes to Queues API
In #335, major changes were made to the Queues API to bring it to parity with new features that have been introduced to the JavaScript API over time. This includes things like content type, delaying messages, and explicit acknowledgement and retries.
This comes with a few breaking changes:
Messagefields likebody,timestamp, andidare no longer public, andMessagecan no longer be created from a struct literal. Instead, these fields must be accessed via methodsbody(),timestamp(), andid().iter()onMessageBatchno longer has a lifetime.MessageBatch::new()has been removed.
New features:
ack()andretry()are now available on the individual messageretry_with_options()was added to allow specifying theQueueRetryOptionsack_all()is now available onMessageBatchretry_all_with_options()was added toMessageBatchto allow specifying theQueueRetryOptionssend_batch()is now available onQueue- It's now possible to set
QueueSendOptionswhen sending a message- New builder structs
MessageBuilder,BatchMessageBuilder, andRawMessageBuilderadded to allow for the creation of messages with options.
- New builder structs
- Allow for sending and receiving of the raw
JsValue(eitherTextorV8content types):Messagenow has araw_bodyfunction that returns aJsValue.raw_iter()fn has been added toMessageBatch.Queuenow has asend_rawandsend_raw_batchfunction that allows sending ofJsValue.
Thanks to @jdon !
Other Changes
- Add worker-kv crate to repository. by @Kakapio in #494
- chore(deps-dev): bump ansi-regex from 5.0.0 to 5.0.1 in /worker-kv/tests by @dependabot in #506
- chore(deps-dev): bump the npm_and_yarn group group in /worker-kv/tests with 1 update by @dependabot in #508
- Add semver checks and sanity-check build to create-release-pr by @kflansburg in #512
Full Changelog: v0.0.23...v0.0.24