summaryrefslogtreecommitdiff
path: root/op_crates/fetch
AgeCommit message (Collapse)Author
2021-04-30Rename crate_ops to extensions (#10431)Andy Hayden
2021-04-29fix(op_crate/fetch): infinite loop on fill headers (#10406)William Perron
Fixes a pesky bug in the fetch implementation where if the init part is specified in `fetch` instead of the `Request` constructor, the fillHeaders function receives two references to the same object, causing it to append to the same list being iterated over.
2021-04-28refactor(extensions): reintroduce builder (#10412)Aaron O'Mullan
2021-04-28core: introduce extensions (#9800)Aaron O'Mullan
Extensions allow declarative extensions to "JsRuntime" (ops, state, JS or middleware). This allows for: - `op_crates` to be plug-and-play & self-contained, reducing complexity leaked to consumers - op middleware (like metrics_op) to be opt-in and for new middleware (unstable, tracing,...) - `MainWorker` and `WebWorker` to be composable, allowing users to extend workers with their ops whilst benefiting from the other infrastructure (inspector, etc...) In short extensions improve deno's modularity, reducing complexity and leaky abstractions for embedders and the internal codebase.
2021-04-28chore: upgrade dprint plugins (#10397)Satya Rohith
2021-04-26remove #![deny(warnings)] (#10376)Ryan Dahl
Prefer RUSTFLAGS="-D warnings" to prevent warnings, but cannot enable yet due to #10378.
2021-04-23fix(op_crates/fetch): Prevent throwing when inspecting a request (#10335)Jesse Jackson
Fixes: #10334
2021-04-23chore: release crates (#10327)Luca Casonato
Release crates for the cli 1.9.2 release.
2021-04-21fix(fetch): Response inspect regression (#10295)Aaron O'Mullan
2021-04-21chore: release crates (#10269)Bartek Iwańczuk
* Revert "tooling(bench_util): benching and profiling utilities (#10223)" This reverts commit 733a00030582375c43fa156e978f25df6ecc9e9a. * Upgrade notify
2021-04-20chore: align fetch to spec (#10203)Luca Casonato
This commit aligns the `fetch` API and the `Request` / `Response` classes belonging to it to the spec. This commit enables all the relevant `fetch` WPT tests. Spec compliance is now at around 90%. Performance is essentially identical now (within 1% of 1.9.0).
2021-04-19chore: align `Headers` to spec (#10199)Luca Casonato
This commit aligns `Headers` to spec. It also removes the now unused 03_dom_iterable.js file. We now pass all relevant `Headers` WPT. We do not implement any sort of header filtering, as we are a server side runtime. This is likely not the most efficient implementation of `Headers` yet. It is however spec compliant. Once all the APIs in the `HTTP` hot loop are correct we can start optimizing them. It is likely that this commit reduces bench throughput temporarily.
2021-04-14chore: align FormData to spec (#10169)Luca Casonato
This PR aligns `FormData` to spec. All WPT tests are passing.
2021-04-13chore: release crates (#10164)Bartek Iwańczuk
2021-04-13perf: lazy header instantiation for HTTP requests (#10150)Luca Casonato
This commit introduces a performance optimization for the native HTTP server. From my testing it is about 2-6% faster than `main`. Request headers in the HTTP servers are now lazilly instatated when they are accessed, rather than being preemptively wrapped in the `Headers` class.
2021-04-13perf(fetch): optimize normalizeMethod() (#10154)Aaron O'Mullan
2021-04-12refactor(deno): remove concept of bin & json ops (#10145)Aaron O'Mullan
2021-04-12feat(runtime/permissions): prompt fallback (#9376)crowlKats
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-04-11feat: blob URL support in fetch (#10120)Luca Casonato
This commit adds blob URL support in `fetch`. Tested via WPT. This is the first op_crate to have a rust dependency on a different op_crate.
2021-04-10feat: data URL support in fetch (#10054)Luca Casonato
This commit adds data URL support in `fetch`. Tested via wpt.
2021-04-08chore: update deps (#10058)Luca Casonato
This commit updates crate dependencies.
2021-04-06refactor: add deno_file op crate (#10019)Luca Casonato
Also enables WPT for FileReader.
2021-04-05refactor: convert ops to use serde_v8 (#10009)Aaron O'Mullan
This commit rewrites most of the ops to use "serde_v8" instead of "json" serialization.
2021-04-02refactor(ops): remove variadic buffers (#9944)Aaron O'Mullan
2021-04-02chore: bump dependent crates for cli (#9964)Kitson Kelly
2021-03-21chore: release crates (#9847)Bartek Iwańczuk
2021-03-20upgrade: tokio 1.4.0 (#9842)Ryan Dahl
2021-03-19chores: enforce type ResourceId across codebase (#9837)Divy Srivastava
2021-03-18normalize rids (#9832)crowlKats
2021-03-18fix: fallback to default UA and CA data for Deno.createHttpClient() (#9830)Aaron O'Mullan
2021-03-17refactor: use serde ops more (#9817)crowlKats
2021-03-14chore: upgrade to tokio 1.3.0 (#9778)Yusuke Tanaka
2021-03-12chore: bump crates (#9769)Luca Casonato
2021-03-12refactor: move Console to op_crates/console (#9770)Luca Casonato
2021-03-12chore: split web op crate (#9635)Luca Casonato
This commit starts splitting out the deno_web op crate into multiple smaller crates. This commit splits out WebIDL and URL API, but in the future I want to split out each spec into its own crate. That means we will have (in rough order of loading): `webidl`, `dom`, `streams`, `console`, `encoding`, `url`, `file`, `fetch`, `websocket`, and `webgpu` crates.
2021-03-09chore: release crates (#9731)Bartek Iwańczuk
2021-03-02Bump crates again (#9653)Ryan Dahl
2021-03-02Bump crate versions (#9651)Ryan Dahl
2021-02-12chore: release crates (#9481)Bartek Iwańczuk
2021-02-09fix(op_crates): Don't use `Deno.inspect` in op crates (#9332)Nayeem Rahman
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-02-09chore: update dependencies (#9455)Luca Casonato
2021-02-05chore: release crates (#9410)Bartek Iwańczuk
2021-02-04chore: use strict mode for internal runtime, core, and op_crates js (#9391)Developing
2021-02-05feat(lsp): add TS quick fix code actions (#9396)Kitson Kelly
2021-02-04fetch optimizations (#9402)Ryan Dahl
Release deno_fetch 0.20.2
2021-02-04refactor: rewrite File implementation (#9334)Luca Casonato
2021-02-03fix: improve http client builder error message (#9380)Ben Noordhuis
Include the lower-level error message in the generic error message. No test because I can't actually make it fail by passing it bad PEM. I checked and `reqwest::Certificate::from_pem()` always returns `Ok()`. Fixes #9364.
2021-01-30refactor: rewrite Blob implementation (#9309)Luca Casonato
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-01-29chore: upgrade tokio to 1.1.1 (#9327)Yusuke Tanaka
2021-01-29v1.7.1Ryan Dahl