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:
Message
fields likebody
,timestamp
, andid
are no longer public, andMessage
can no longer be created from a struct literal. Instead, these fields must be accessed via methodsbody()
,timestamp()
, andid()
.iter()
onMessageBatch
no 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 theQueueRetryOptions
ack_all()
is now available onMessageBatch
retry_all_with_options()
was added toMessageBatch
to allow specifying theQueueRetryOptions
send_batch()
is now available onQueue
- It's now possible to set
QueueSendOptions
when sending a message- New builder structs
MessageBuilder
,BatchMessageBuilder
, andRawMessageBuilder
added to allow for the creation of messages with options.
- New builder structs
- Allow for sending and receiving of the raw
JsValue
(eitherText
orV8
content types):Message
now has araw_body
function that returns aJsValue
.raw_iter()
fn has been added toMessageBatch
.Queue
now has asend_raw
andsend_raw_batch
function 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