Aaron O'Mullan
0260b488fb
core: introduce extensions ( #9800 )
...
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-28 18:41:50 +02:00
Satya Rohith
2bd087ab1b
chore: upgrade dprint plugins ( #10397 )
2021-04-28 10:08:51 -04:00
Luca Casonato
52d316f143
chore: release crates ( #10327 )
...
Release crates for the cli 1.9.2 release.
2021-04-23 15:05:12 +02:00
Bartek Iwańczuk
3432833574
chore: release crates ( #10269 )
...
* Revert "tooling(bench_util): benching and profiling utilities (#10223 )"
This reverts commit 733a000305
.
* Upgrade notify
2021-04-21 00:15:39 +02:00
Luca Casonato
9e6cd91014
chore: align fetch to spec ( #10203 )
...
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-20 14:47:22 +02:00
Yoshiya Hinosawa
8424647d22
chore: update copyright headers ( #10243 )
2021-04-20 14:27:36 +09:00
Luca Casonato
0552eaf569
chore: align Headers
to spec ( #10199 )
...
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-19 01:00:13 +02:00
Luca Casonato
353e79c796
chore: align FormData to spec ( #10169 )
...
This PR aligns `FormData` to spec. All WPT tests are passing.
2021-04-14 22:49:16 +02:00
Bartek Iwańczuk
1be65bbe4f
chore: release crates ( #10164 )
2021-04-13 18:22:48 +02:00
Thiago de Arruda Padilha
c0b6e09172
refactor(op_crates/web): remove unused code path in TextEncoder ( #10104 )
...
According to
https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder ,
TextEncoder should ignore the "encoding" parameter and always use
"utf-8".
2021-04-11 20:47:06 +09:00
Luca Casonato
4e70ff80c2
chore: update deps ( #10058 )
...
This commit updates crate dependencies.
2021-04-08 18:46:14 +02:00
Luca Casonato
c867c1aa47
fix: enable FileReader wpt and align to spec ( #10063 )
...
This adds some algorithms from the whatwg mimesniff, whatwg infra, and
whatwg encoding specs that FileReader needs to use internally.
2021-04-08 15:05:08 +02:00
Luca Casonato
00e63306cb
refactor: add deno_file op crate ( #10019 )
...
Also enables WPT for FileReader.
2021-04-06 12:55:05 +02:00
Kitson Kelly
df1d36a759
chore: bump dependent crates for cli ( #9964 )
2021-04-02 22:22:08 +11:00
Kitson Kelly
f50385b2a5
Revert "fix(cli): align type definitions to spec ( #9782 )" ( #9961 )
...
This reverts commit f8aff8edcd
.
2021-04-02 12:12:07 +11:00
Casper Beyer
f8aff8edcd
fix(cli): align type definitions to spec ( #9782 )
...
Fixes #5666
2021-04-01 20:23:16 +11:00
crowlKats
b11249647f
fix: update wpt + align AbortController ( #9907 )
2021-03-27 15:49:57 +01:00
Bartek Iwańczuk
c08284ab9d
chore: release crates ( #9847 )
2021-03-21 16:10:08 +01:00
Luca Casonato
fbec6e39c7
chore: bump crates ( #9769 )
2021-03-12 22:29:07 +01:00
Luca Casonato
e83ff62ccb
chore: split web op crate ( #9635 )
...
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-12 16:17:18 +01:00
Bartek Iwańczuk
cdc0b6958d
chore: release crates ( #9731 )
2021-03-09 20:12:13 +01:00
Luca Casonato
c009dad982
fix(webgpu): add webidl records and simple unions ( #9698 )
...
The only functional user facing difference is that this commit allows the
use SPIRV shaders, not just WGSL. This matches FF and Chrome Canary.
2021-03-08 14:22:05 +01:00
Ryan Dahl
25200ce295
Bump crates again ( #9653 )
2021-03-02 16:25:39 -05:00
Ryan Dahl
f1fe6a57ba
Bump crate versions ( #9651 )
2021-03-02 15:15:43 -05:00
Nayeem Rahman
badc88b78a
refactor(op_crates/web): Move URL parsing to Rust ( #9276 )
2021-03-02 02:30:24 +01:00
crowlKats
7cd14f97c9
feat: WebGPU API ( #7977 )
...
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-03-01 11:31:13 +01:00
Luca Casonato
72425ec4ce
chore: improve internal webidl functions ( #9606 )
2021-03-01 01:25:31 +01:00
Leo Chandra
c6b3982e78
typo
2021-02-16 08:00:41 -05:00
Casper Beyer
3f5265b21e
fix: align btoa to spec ( #9053 )
2021-02-16 02:10:59 +01:00
Anonymous
a6beab8248
chore: add internal webidl helpers for enums and nullables ( #9504 )
...
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-02-16 00:13:46 +01:00
Luca Casonato
af460fc464
fix: webidl utils and align Event
to spec ( #9470 )
2021-02-13 15:58:12 +01:00
Bartek Iwańczuk
39f3aaaa72
chore: release crates ( #9481 )
2021-02-12 16:23:39 +01:00
Nayeem Rahman
900953a65a
fix(op_crates): Don't use Deno.inspect
in op crates ( #9332 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-02-09 16:31:46 +01:00
Luca Casonato
a195c75033
chore: update dependencies ( #9455 )
2021-02-09 15:34:34 +01:00
Bartek Iwańczuk
64f06be0eb
chore: release crates ( #9410 )
2021-02-05 15:08:18 +01:00
Developing
923214c537
chore: use strict mode for internal runtime, core, and op_crates js ( #9391 )
2021-02-04 23:18:32 +01:00
Ryan Dahl
11dd6f2013
v1.7.1
2021-01-29 09:53:03 -05:00
Nayeem Rahman
f3122442db
fix(op_crates/web): Add customInspect for Location ( #9290 )
2021-01-29 08:08:22 -05:00
Luca Casonato
6ecc86cf2a
chore: add jsdoc to 26_fetch.js and enable some fetch tests ( #9305 )
2021-01-28 21:37:21 +01:00
Luca Casonato
40fc5f55ea
chore: update crates ( #9251 )
...
Updates SWC, dprint, deno_lint, deno_doc, serde, and Tokio (to 1.1.0).
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-01-26 17:00:40 +01:00
ali ahmed
feff6361b1
feat(op_crates/web): adding gb18030 and GBK encodings ( #9242 )
2021-01-24 20:08:01 +01:00
Ryan Dahl
bfaa121cd2
v1.7.0
2021-01-19 23:17:20 -05:00
ali ahmed
973c33c899
feat(web): add utf-16 and big5 to TextEncoder/TextDecoder ( #8108 )
2021-01-19 21:58:57 +01:00
Anonymous
db3a1d6633
fix(op_crates/web) let TextEncoder#encodeInto accept detached ArrayBuffers ( #9143 )
2021-01-18 10:04:46 -05:00
Nayeem Rahman
7db0605d45
fix(op_crates/web): Use WorkerLocation for location in workers ( #9084 )
2021-01-17 16:28:54 +01:00
Bartek Iwańczuk
b26dcbc69d
chore: Enforce ban-untagged-todo lint rule ( #9135 )
2021-01-17 00:32:59 +01:00
Yoshiya Hinosawa
c75f92c4e2
fix: align DOMException API to the spec and add web platform testing of it. ( #9106 )
...
* fix: align DOMException API to the spec
* test: fix test case 070_location
* test(DOMException): disable "does not inherit from Error: class-side"
test of WPT
* test: remove test cases in deno codebase
* docs: add note about skipped test
2021-01-14 22:08:49 +09:00
Ryan Dahl
8fc29f224d
release crates
2021-01-13 14:00:13 -05:00
Bartek Iwańczuk
275a5c65a2
upgrade: tokio 1.0 ( #8779 )
...
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2021-01-11 23:50:02 -08:00
Yusuke Tanaka
d8fd71afdf
chore: update copyright to 2021 ( #9092 )
2021-01-11 18:13:41 +01:00