-
Notifications
You must be signed in to change notification settings - Fork 284
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
Add support for Version Metadata Binding #598
Add support for Version Metadata Binding #598
Conversation
Allows users to fetch the version metadata fron the worker environment. This is useful when using Gradual Deployments.
f244bef
to
7510220
Compare
extern "C" { | ||
#[wasm_bindgen(extends=js_sys::Object)] | ||
#[derive(Clone, PartialEq, Eq)] | ||
pub type CfVersionMetadata; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This type also has a timestamp
field defined for when the Worker was uploaded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, had no idea this page existed! I've added the timestamp
3edf9f6
to
0d9d770
Compare
Guidance good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved Exxelent srvice
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [worker](https://togithub.com/cloudflare/workers-rs) | workspace.dependencies | patch | `0.3.0` -> `0.3.1` | --- ### Release Notes <details> <summary>cloudflare/workers-rs (worker)</summary> ### [`v0.3.1`](https://togithub.com/cloudflare/workers-rs/releases/tag/v0.3.1) [Compare Source](https://togithub.com/cloudflare/workers-rs/compare/v0.3.0...v0.3.1) #### What's Changed - Expose `Hyperdrive` from the worker crate by [@​ramnivas](https://togithub.com/ramnivas) in [https://github.com/cloudflare/workers-rs/pull/584](https://togithub.com/cloudflare/workers-rs/pull/584) - Add a binding to meta object for `D1Result`. by [@​langyo](https://togithub.com/langyo) in [https://github.com/cloudflare/workers-rs/pull/591](https://togithub.com/cloudflare/workers-rs/pull/591) - Use `wasm-pack` as crate dependency by [@​kflansburg](https://togithub.com/kflansburg) in [https://github.com/cloudflare/workers-rs/pull/592](https://togithub.com/cloudflare/workers-rs/pull/592) - Support sha256 cert fingerprints in TlsClientAuth by [@​fisherdarling](https://togithub.com/fisherdarling) in [https://github.com/cloudflare/workers-rs/pull/601](https://togithub.com/cloudflare/workers-rs/pull/601) - Add support for Version Metadata Binding by [@​GoncaloGarcia](https://togithub.com/GoncaloGarcia) in [https://github.com/cloudflare/workers-rs/pull/598](https://togithub.com/cloudflare/workers-rs/pull/598) #### New Contributors - [@​ramnivas](https://togithub.com/ramnivas) made their first contribution in [https://github.com/cloudflare/workers-rs/pull/584](https://togithub.com/cloudflare/workers-rs/pull/584) - [@​langyo](https://togithub.com/langyo) made their first contribution in [https://github.com/cloudflare/workers-rs/pull/591](https://togithub.com/cloudflare/workers-rs/pull/591) - [@​GoncaloGarcia](https://togithub.com/GoncaloGarcia) made their first contribution in [https://github.com/cloudflare/workers-rs/pull/598](https://togithub.com/cloudflare/workers-rs/pull/598) **Full Changelog**: cloudflare/workers-rs@v0.3.0...v0.3.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/spiraldb/vortex). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Allows users to fetch the version metadata fron the worker environment. This is useful when using Gradual Deployments.