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

Update Rust crate worker to 0.5.0 #11

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 17, 2023

This PR contains the following updates:

Package Type Update Change
worker dependencies minor 0.0.11 -> 0.5.0

Release Notes

cloudflare/workers-rs (worker)

v0.5.0

Compare Source

What's Changed

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

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

v0.0.18

Compare Source

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

v0.0.17

Compare Source

Full Changelog: cloudflare/workers-rs@v0.0.16...v0.0.17

v0.0.16

Compare Source

Full Changelog: cloudflare/workers-rs@v0.0.15...v0.0.16

v0.0.15

Compare Source

Full Changelog: cloudflare/workers-rs@v0.0.14...v0.0.15

v0.0.14

Compare Source

Full Changelog: cloudflare/workers-rs@v0.0.13...v0.0.14

v0.0.13

Compare Source

Full Changelog: cloudflare/workers-rs@v0.0.12...v0.0.13

v0.0.12

Compare Source

Full Changelog: cloudflare/workers-rs@v0.0.11...v0.0.12


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 becomes conflicted, 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 force-pushed the renovate/worker-0.x branch from a67f202 to 7659428 Compare March 20, 2023 23:07
@renovate renovate bot changed the title Update Rust crate worker to 0.0.14 Update Rust crate worker to 0.0.15 Mar 20, 2023
@renovate renovate bot force-pushed the renovate/worker-0.x branch from 7659428 to 3f6555e Compare April 12, 2023 21:05
@renovate renovate bot changed the title Update Rust crate worker to 0.0.15 Update Rust crate worker to 0.0.16 Apr 12, 2023
@renovate renovate bot changed the title Update Rust crate worker to 0.0.16 Update Rust crate worker to 0.0.17 Jun 2, 2023
@renovate renovate bot force-pushed the renovate/worker-0.x branch from 3f6555e to 4870cf3 Compare June 2, 2023 02:36
@renovate renovate bot changed the title Update Rust crate worker to 0.0.17 Update Rust crate worker to 0.0.18 Aug 9, 2023
@renovate renovate bot force-pushed the renovate/worker-0.x branch from 4870cf3 to db5459a Compare August 9, 2023 05:34
@renovate renovate bot force-pushed the renovate/worker-0.x branch from db5459a to fb1e2fa Compare March 7, 2024 20:38
@renovate renovate bot changed the title Update Rust crate worker to 0.0.18 Update Rust crate worker to 0.0.19 Mar 7, 2024
@renovate renovate bot force-pushed the renovate/worker-0.x branch from fb1e2fa to cdeaa19 Compare March 8, 2024 17:57
@renovate renovate bot changed the title Update Rust crate worker to 0.0.19 Update Rust crate worker to 0.0.20 Mar 8, 2024
@renovate renovate bot force-pushed the renovate/worker-0.x branch from cdeaa19 to d53d3f8 Compare March 16, 2024 02:38
@renovate renovate bot changed the title Update Rust crate worker to 0.0.20 Update Rust crate worker to 0.0.21 Mar 16, 2024
@renovate renovate bot force-pushed the renovate/worker-0.x branch from d53d3f8 to 162a3d8 Compare March 28, 2024 23:36
@renovate renovate bot changed the title Update Rust crate worker to 0.0.21 Update Rust crate worker to 0.0.23 Mar 28, 2024
@renovate renovate bot force-pushed the renovate/worker-0.x branch from 162a3d8 to 73fd100 Compare March 29, 2024 17:58
@renovate renovate bot changed the title Update Rust crate worker to 0.0.23 Update Rust crate worker to 0.0.24 Mar 29, 2024
@renovate renovate bot force-pushed the renovate/worker-0.x branch from 73fd100 to eed69f6 Compare April 5, 2024 03:00
@renovate renovate bot changed the title Update Rust crate worker to 0.0.24 Update Rust crate worker to 0.1.0 Apr 5, 2024
@renovate renovate bot force-pushed the renovate/worker-0.x branch from eed69f6 to ad13177 Compare April 29, 2024 23:43
@renovate renovate bot changed the title Update Rust crate worker to 0.1.0 Update Rust crate worker to 0.2.0 Apr 29, 2024
@renovate renovate bot force-pushed the renovate/worker-0.x branch from ad13177 to 3accb07 Compare May 22, 2024 20:46
@renovate renovate bot changed the title Update Rust crate worker to 0.2.0 Update Rust crate worker to 0.3.0 May 22, 2024
@renovate renovate bot force-pushed the renovate/worker-0.x branch 2 times, most recently from 84dc13d to a567ae1 Compare August 6, 2024 13:32
@renovate renovate bot force-pushed the renovate/worker-0.x branch from a567ae1 to 9cdf672 Compare September 13, 2024 19:47
@renovate renovate bot changed the title Update Rust crate worker to 0.3.0 Update Rust crate worker to 0.4.0 Sep 13, 2024
@renovate renovate bot force-pushed the renovate/worker-0.x branch from 9cdf672 to 163f540 Compare December 12, 2024 02:08
@renovate renovate bot changed the title Update Rust crate worker to 0.4.0 Update Rust crate worker to 0.5.0 Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants