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

Add support for Version Metadata Binding #598

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

GoncaloGarcia
Copy link
Contributor

Allows users to fetch the version metadata fron the worker environment. This is useful when using Gradual Deployments.

Allows users to fetch the version metadata fron the worker environment. This is useful when using Gradual Deployments.
extern "C" {
#[wasm_bindgen(extends=js_sys::Object)]
#[derive(Clone, PartialEq, Eq)]
pub type CfVersionMetadata;
Copy link
Collaborator

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.

Copy link
Contributor Author

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

@Al3676
Copy link

Al3676 commented Jul 23, 2024

Guidance good
Workers

Copy link

@Al3676 Al3676 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved Exxelent srvice

@kflansburg kflansburg merged commit 611ac93 into cloudflare:main Jul 23, 2024
3 checks passed
renovate bot added a commit to spiraldb/vortex that referenced this pull request Jul 25, 2024
[![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
[@&#8203;ramnivas](https://togithub.com/ramnivas) in
[cloudflare/workers-rs#584
- Add a binding to meta object for `D1Result`. by
[@&#8203;langyo](https://togithub.com/langyo) in
[cloudflare/workers-rs#591
- Use `wasm-pack` as crate dependency by
[@&#8203;kflansburg](https://togithub.com/kflansburg) in
[cloudflare/workers-rs#592
- Support sha256 cert fingerprints in TlsClientAuth by
[@&#8203;fisherdarling](https://togithub.com/fisherdarling) in
[cloudflare/workers-rs#601
- Add support for Version Metadata Binding by
[@&#8203;GoncaloGarcia](https://togithub.com/GoncaloGarcia) in
[cloudflare/workers-rs#598

#### New Contributors

- [@&#8203;ramnivas](https://togithub.com/ramnivas) made their first
contribution in
[cloudflare/workers-rs#584
- [@&#8203;langyo](https://togithub.com/langyo) made their first
contribution in
[cloudflare/workers-rs#591
- [@&#8203;GoncaloGarcia](https://togithub.com/GoncaloGarcia) made their
first contribution in
[cloudflare/workers-rs#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>
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.

4 participants