Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crate worker to 0.4.0 #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 5, 2024

This PR contains the following updates:

Package Type Update Change
worker dependencies minor 0.0.18 -> 0.4.0

Release Notes

cloudflare/workers-rs (worker)

v0.4.2

Compare Source

What's Changed

New Contributors

Full Changelog: cloudflare/workers-rs@v0.4.1...v0.4.2

v0.4.1

Compare Source

What's Changed

Full Changelog: cloudflare/workers-rs@v0.4.0...v0.4.1

v0.4.0

Compare Source

What's Changed

[!CAUTION]
Breaking: Make R2 Object::size return u64 by @​lkolbly in https://github.com/cloudflare/workers-rs/pull/625

New Contributors

Full Changelog: cloudflare/workers-rs@v0.3.4...v0.4.0

v0.3.4

Compare Source

What's Changed

Full Changelog: cloudflare/workers-rs@v0.3.3...v0.3.4

v0.3.3

Compare Source

What's Changed

New Contributors

Full Changelog: cloudflare/workers-rs@v0.3.2...v0.3.3

v0.3.2

Compare Source

What's Changed

Full Changelog: cloudflare/workers-rs@v0.3.1...v0.3.2

v0.3.1

Compare Source

What's Changed

New Contributors

Full Changelog: cloudflare/workers-rs@v0.3.0...v0.3.1

v0.3.0

Compare Source

What's Changed

[!TIP]
You can now get started in seconds by running cargo generate cloudflare/workers-rs!

[!TIP]
You can now use Workers Hyperdrive to speed up connections to your SQL database using tokio-postgres. Check out our updated example.

[!CAUTION]
Rust 1.75 or greater is now required due to use of impl Trait in trait method return type.

[!CAUTION]
In order to support range requests larger than 4GB, worker_sys::R2Range now accepts f64 instead of u32. worker::Range options have changed to make the functionality more clear and now accept u64 instead of u32.

[!CAUTION]
This change removes ResponseInit, which is replaced by an idiomatic ResponseBuilder pattern, all other APIs should remain unchanged. In addition, the encodeBody property is now available to support returning pre-compressed data.

New Contributors

Full Changelog: cloudflare/workers-rs@v0.2.0...v0.3.0

v0.2.0

Compare Source

What's Changed

R2 Improvements
API Flexibility

[!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>> (including worker::Error).
  • Introduces FromRequest trait, and handler request type can be any type that implements this trait. Implementations are provided for web_sys::Request, worker::Request, and http::Request<worker::Body>.
  • Introduces IntoResponse trait, and handler response type can be any type that implements this trait. Implementations are provided for web_sys::Response, worker::Response, and http::Response<B> where B: http_body::Body.
Workers RPC
General

[!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

Full Changelog: cloudflare/workers-rs@v0.1.0...v0.2.0

v0.1.0

Compare Source

New Versioning Pattern

We will be using 0.x.y as our version pattern going forward so that we can better use semantic versioning. Minor version (x) changes will be used to indicate breaking changes, and patch version (y) changes will indicate non-breaking changes. We will continue be using 0 for our major version.

What's Changed

Sockets
Binary Size

[!CAUTION]
Breaking: You will now need the timezone feature to access Cf.timezone.

[!CAUTION]
Breaking: You will now need axum feature to have From<worker::Response> for http::Response<axum::body::Body>

D1
HTTP
Other Fixes
Dependabot

New Contributors

Full Changelog: cloudflare/workers-rs@v0.0.24...v0.1.0

v0.0.24

Compare Source

Major Changes to Queues API

In https://github.com/cloudflare/workers-rs/pull/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 like body, timestamp, and id are no longer public, and Message can no longer be created from a struct literal. Instead, these fields must be accessed via methods body(), timestamp(), and id().
  • iter() on MessageBatch no longer has a lifetime.
  • MessageBatch::new() has been removed.

New features:

  • ack() and retry() are now available on the individual message
  • retry_with_options() was added to allow specifying the QueueRetryOptions
  • ack_all() is now available on MessageBatch
  • retry_all_with_options() was added to MessageBatch to allow specifying the QueueRetryOptions
  • send_batch() is now available on Queue
  • It's now possible to set QueueSendOptions when sending a message
    • New builder structs MessageBuilder, BatchMessageBuilder, and RawMessageBuilder added to allow for the creation of messages with options.
  • Allow for sending and receiving of the raw JsValue (either Text or V8 content types):
    • Message now has a raw_body function that returns a JsValue.
    • raw_iter() fn has been added to MessageBatch.
    • Queue now has a send_raw and send_raw_batch function that allows sending of JsValue.

Thanks to @​jdon !

Other Changes

Full Changelog: cloudflare/workers-rs@v0.0.23...v0.0.24

v0.0.23

Compare Source

What's Changed

New Contributors

Full Changelog: cloudflare/workers-rs@v0.0.22...v0.0.23

v0.0.22

Compare Source

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

New Contributors

Full Changelog: cloudflare/workers-rs@v0.0.21...v0.0.22

v0.0.21

Compare Source

New http feature flag

A feature flag (http) was introduced to begin migrating from custom request and response types to widely used types in the http crate. See the README for more information.

What's Changed

New Contributors

Full Changelog: cloudflare/workers-rs@v0.0.20...v0.0.21

v0.0.20

Compare Source

What's Changed

New Contributors

Full Changelog: cloudflare/workers-rs@v0.0.19...v0.0.20

v0.0.19

Compare Source

Highlights

What's Changed

New Contributors

Full Changelog: cloudflare/workers-rs@v0.0.18...v0.0.19


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title fix(deps): update rust crate worker to 0.0.19 fix(deps): update rust crate worker to 0.0.20 Mar 8, 2024
@renovate renovate bot changed the title fix(deps): update rust crate worker to 0.0.20 fix(deps): update rust crate worker to 0.0.21 Mar 15, 2024
@renovate renovate bot changed the title fix(deps): update rust crate worker to 0.0.21 fix(deps): update rust crate worker to 0.0.22 Mar 26, 2024
@renovate renovate bot changed the title fix(deps): update rust crate worker to 0.0.22 fix(deps): update rust crate worker to 0.0.23 Mar 27, 2024
@renovate renovate bot changed the title fix(deps): update rust crate worker to 0.0.23 fix(deps): update rust crate worker to 0.0.24 Mar 29, 2024
@renovate renovate bot force-pushed the renovate/worker-0.x branch 2 times, most recently from f6a19d4 to 1bdf22d Compare April 4, 2024 22:41
@renovate renovate bot changed the title fix(deps): update rust crate worker to 0.0.24 fix(deps): update rust crate worker to 0.1.0 Apr 4, 2024
@renovate renovate bot changed the title fix(deps): update rust crate worker to 0.1.0 fix(deps): update rust crate worker to 0.2.0 Apr 29, 2024
@renovate renovate bot changed the title fix(deps): update rust crate worker to 0.2.0 fix(deps): update rust crate worker to 0.3.0 May 19, 2024
@renovate renovate bot changed the title fix(deps): update rust crate worker to 0.3.0 fix(deps): update rust crate worker to 0.4.0 Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants