717 Commits

Author SHA1 Message Date
Zeb
d10c6b9fe1 wip debug alloc 2024-11-15 08:59:57 -05:00
github-actions[bot]
636d76047f
chore: bump versions (#650)
Co-authored-by: kflansburg <6134007+kflansburg@users.noreply.github.com>
2024-10-10 20:44:08 -04:00
Marc Mettke
b5de9b534a
Adding host_metadata to Cloudflare Request Data (#348)
* Adding host_metadata to Cloudflare Request Data

* Update incoming_request_cf_properties.rs

Make `host_metadata` method `catch`

* Update cf.rs

---------

Co-authored-by: Kevin Flansburg <kflansburg@cloudflare.com>
Co-authored-by: Kevin Flansburg <kevin.flansburg@gmail.com>
2024-10-10 20:06:18 -04:00
github-actions[bot]
c81a753dc7
chore: bump versions (#642)
Co-authored-by: kflansburg <6134007+kflansburg@users.noreply.github.com>
2024-09-26 08:24:41 -04:00
Kevin Flansburg
9fc2fbd0f3
Implement Rate Limiter Binding (#603)
* Implement Rate Limiter binding

* Make success field public
2024-09-26 08:10:55 -04:00
Kevin Flansburg
566166f7b2
POC: Leptos with Workers Assets (#640)
* Add assets test and Leptos generate template

* Update readme

* Use production binding name
2024-09-25 11:39:41 -04:00
hrushikeshdeshpande
b207361e83
Update semgrep.yml (#639)
Updating Semgrep.yml file - Semgrep is a tool that will be used to scan Cloudflare's public repos for Supply chain, code and secrets. This work is part of Application & Product Security team's initiative.
2024-09-20 21:04:37 -06:00
Hrushikesh Deshpande
7f6adbce6a Adding semgrep yaml file 2024-09-19 21:55:36 -04:00
github-actions[bot]
af6ee9a99c
chore: bump versions (#637)
Co-authored-by: kflansburg <6134007+kflansburg@users.noreply.github.com>
2024-09-13 15:37:08 -04:00
Kevin Flansburg
5b9f106a57
Do not amend commit when creating release PR.
`cargo release` does not actually commit changes, so amending the commit was not necessary and instead applied to the last commit from `main`, which broke history.
2024-09-13 15:25:12 -04:00
Thibault
535e103974
[worker] Add FormData conversion into JsValue (#634)
This allows FormData to be constructed and passed as JsValue later on.
For instance, `RequestInit::new().with_body(Some(formdata.into()))`
2024-09-12 15:09:50 -04:00
nakamura shuta
5100f4e5d5
Implement get_all function to return non-folding set-cookie headers (#597)
* Add `get_all` function. (#423)

* Implement get_all using wasm-bindgen

* Refactor Headers get_all method and improve error handling

- Update HeadersExt trait to return js_sys::Array directly
- Modify Headers::get_all to handle potential invalid values
- Adjust import order in ext.rs for consistency

* Included in glue module along with other modules
2024-09-02 06:28:15 -04:00
Kevin Flansburg
ca61ce5dd0
Fix quotes (#632) 2024-08-30 18:28:58 +01:00
dependabot[bot]
9e619e8e8c
chore(deps): bump micromatch from 4.0.5 to 4.0.8 (#631)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-30 18:25:34 +01:00
Kevin Flansburg
42a319db70
Automatically update crate version in generate templates (#630) 2024-08-30 18:18:16 +01:00
Oliver Evans
d0d33183fb
Fix typos in CORS argument names (#629) 2024-08-30 16:08:08 +01:00
Michael Goulet
51e1feb77e
Relax type of callback arguments to Router methods (#605) 2024-08-27 14:25:44 +01:00
Lane Kolbly
ba9c868309
Make R2 Object::size return u64 (#625)
Co-authored-by: Lane Kolbly <lkolbly@cloudflare.com>
2024-08-27 08:59:18 +01:00
github-actions[bot]
aaf5c672c0
chore: bump versions (#622)
Co-authored-by: kflansburg <6134007+kflansburg@users.noreply.github.com>
2024-08-19 11:29:49 -04:00
Kevin Flansburg
c7e966cf2b
Remove HeaderExt and AbortSignalExt (#621)
* Remove HeaderExt

Closes #617

* Fix deprecation warnings

* feature
2024-08-19 11:15:05 -04:00
github-actions[bot]
6a5bfc1c8d
chore: bump versions (#615)
Co-authored-by: kflansburg <6134007+kflansburg@users.noreply.github.com>
2024-08-06 15:41:52 -04:00
Noah Kennedy
1e8183a38b
durable: add location hint support (#614) 2024-08-06 14:35:42 -04:00
github-actions[bot]
488e1b7b45
chore: bump versions (#611)
Co-authored-by: kflansburg <6134007+kflansburg@users.noreply.github.com>
2024-08-02 13:15:22 -04:00
Mendes
b243b3ebbd
Fix broken durable object jurisdiction link (#610) 2024-08-02 11:36:35 -04:00
Gonçalo
bd2a034f59
Publicly expose VersionMetadataBinding (#606)
Co-authored-by: GoncaloGarcia <ggarcia@cloudflare.com>
2024-07-31 12:58:00 -04:00
Gonçalo
87dd6b4ea5
clippy for 1.80 (#607)
Co-authored-by: Kevin Flansburg <kflansburg@cloudflare.com>
2024-07-31 11:36:49 -04:00
github-actions[bot]
59e551edca
chore: bump versions (#602)
Co-authored-by: kflansburg <6134007+kflansburg@users.noreply.github.com>
2024-07-25 11:26:09 -04:00
dependabot[bot]
a5e5bca0e0
chore(deps): bump openssl from 0.10.64 to 0.10.66 (#600)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.64 to 0.10.66.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.64...openssl-v0.10.66)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 15:22:40 -04:00
Gonçalo
611ac9368d
Add support for Version Metadata Binding (#598)
* Add support for Version Metadata Binding

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

* Add timestamp field to version object

---------

Co-authored-by: GoncaloGarcia <ggarcia@cloudflare.com>
2024-07-23 12:54:36 -04:00
Fisher Darling
80d1c6ca33
Support sha256 cert fingerprints in TlsClientAuth (#601)
This adds support for getting a client sha256 fingerprint.
2024-07-23 12:24:34 -04:00
dependabot[bot]
ff2e6a0fd5
chore(deps): bump braces from 3.0.2 to 3.0.3 (#593)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-07 07:27:10 -04:00
Kevin Flansburg
c42e76a738
Use wasm-pack as crate dependency (#592)
Closes #589
2024-07-07 07:21:55 -04:00
伊欧
d0a40f1bac
Add a binding to meta object for D1Result. (#591)
* fix: Add a binding to meta object for `D1Result`.

* Fix typo.
2024-07-05 11:39:53 -04:00
dependabot[bot]
e0a8cddb97
chore(deps): bump ws from 8.16.0 to 8.17.1 in /examples/custom-req (#588)
Bumps [ws](https://github.com/websockets/ws) from 8.16.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.16.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 10:05:47 -04:00
dependabot[bot]
fec47da903
chore(deps): bump braces from 3.0.2 to 3.0.3 in /examples/custom-req (#587)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 10:05:27 -04:00
dependabot[bot]
a7e766b4f9
chore(deps-dev): bump ws from 8.13.0 to 8.17.1 (#586)
Bumps [ws](https://github.com/websockets/ws) from 8.13.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.13.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 08:05:46 -04:00
Ramnivas Laddad
c577e4c0ec
Expose Hyperdrive from the worker crate (#584)
This allows users to pass around the instance of `Hyperdrive`.
2024-06-07 15:12:46 -05:00
Kevin Flansburg
803914aa97
Switch Hyperdrive example to with note (#583) 2024-06-06 10:19:43 -05:00
Supachai Kheawjuy
078d15bb60
chore: typo response in response.rs (#581) 2024-05-22 16:37:42 -04:00
Kevin Flansburg
235bffa7ed Fix missing error behind feature flag 2024-05-19 10:01:35 -04:00
github-actions[bot]
8a52472e55
chore: bump versions (#579)
Co-authored-by: kflansburg <6134007+kflansburg@users.noreply.github.com>
2024-05-19 08:58:32 -04:00
Kevin Flansburg
bfe6d566ab
Add encodeBody and cf to ResponseInit. Adopt builder pattern. (#568)
* Add `encodeBody` and `cf` to ResponseInit. Adopt builder pattern.

Closes #567

* Refine builder pattern

* address comments

* Response.clone, test, http extensions

* Do not check content-type in Response.json

Closes #577
2024-05-19 08:33:57 -04:00
Kevin Flansburg
6bf6cf7e30
Use u64 for R2 range requests (#564)
* Use u64 for R2 range requests

Closes #560

* address comment

* Clarify  options
2024-05-19 08:24:34 -04:00
Kevin Wang
8e24a87b93
README: add serde imports (#575) 2024-05-12 09:07:25 -04:00
Takumasa Sakao
5b06a8e1f0
Add some files to gitignore template (#574) 2024-05-09 13:24:41 -04:00
Kevin Flansburg
5c4048f923
Update tokio-postgres example to demonstrate Hyperdrive (#569)
* Update tokio-postgres to demonstrate Hyperdrive

* Use simple_query
2024-05-07 11:08:37 -04:00
Kian
64f1e9c6b3
Add MSRV to worker crate (#570) 2024-05-07 08:53:34 -04:00
Takumasa Sakao
c071f4bc68
Fix generated code error (#572) 2024-05-07 08:53:25 -04:00
Alexander van Saase
a2b50b728d
Hyperdrive binding (#566)
* Starting to add hyperdrive binding

* Add Hyperdrive getters

* Expose getters from worker crate
2024-05-03 16:58:28 -04:00
Alexander van Saase
53b2ebc3ae
Implement Send, Sync and Clone for some Durable Object types (#563) 2024-05-03 16:58:14 -04:00