Bartek Iwańczuk
cdc0b6958d
chore: release crates ( #9731 )
2021-03-09 20:12:13 +01:00
crowlKats
1621d78623
fix(webgpu): Add Uint32Array type for code in ShaderModuleDescriptor ( #9730 )
2021-03-09 11:43:58 -05: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
Divy Srivastava
4b56537ea9
chore: move crypto types to op_crates/crypto ( #9609 )
2021-02-26 12:06:26 -05:00
DjDeveloper
fe1b512820
fix(op_crates/websocket): default to close code 1005 ( #9339 )
...
Currently if WebSocket is closed without code, it will error
while on Chrome it would close with code 1005 instead.
Co-authored-by: crowlKats <13135287+crowlKats@users.noreply.github.com>
2021-02-21 17:51:46 +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
Preta Crowz
7f8b44a60d
fix(cli): fix WebSocket close ( #8776 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-02-12 14:50:08 +09: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
Kitson Kelly
b77fcbc518
feat(lsp): add TS quick fix code actions ( #9396 )
2021-02-05 05:53:02 +11:00
Ryan Dahl
644a7ff2d7
fetch optimizations ( #9402 )
...
Release deno_fetch 0.20.2
2021-02-04 13:08:41 -05:00
Luca Casonato
25b35be50d
refactor: rewrite File implementation ( #9334 )
2021-02-04 15:05:36 +01:00
Ben Noordhuis
fb358380c0
fix: improve http client builder error message ( #9380 )
...
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-02-03 11:40:43 +01:00
Luca Casonato
fa975a9bae
refactor: rewrite Blob implementation ( #9309 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-01-30 19:22:24 +01:00
Yusuke Tanaka
ef46bc88bd
chore: upgrade tokio to 1.1.1 ( #9327 )
2021-01-29 21:18:31 -05: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
Kitson Kelly
f9949a3170
fix(op_crates/fetch): fix ReadableStream.pipeThrough() ( #9265 )
...
Fixes #9252
2021-01-26 21:56:29 +11: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
Luca Casonato
7a30d1a3d8
fix: redirect in --location relative fetch ( #9150 )
2021-01-18 13:59:29 +01:00
Kitson Kelly
2077864a8d
fix(op_crate/fetch): add back ReadableStream.getIterator and deprecate ( #9146 )
2021-01-18 10:40:39 +11: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
Yacine Hmito
836e22112a
refactor(op_crates/crypto): Prefix ops with "op_crypto_" ( #9067 )
2021-01-15 01:24:38 +01:00
Kitson Kelly
b8303c7812
refactor(op_crate/fetch): align streams to spec ( #9103 )
...
Fixes #8814
2021-01-15 08:57:19 +11: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
gorogoroumaru
b0821fe9ce
fix(op_crate/web): fix atob to throw spec aligned DOMException ( #8798 )
2021-01-11 09:15:32 +11:00
Luca Casonato
1a6ce29f3d
feat(fetch): req streaming + 0-copy resp streaming ( #9036 )
...
* feat(fetch): req streaming + 0-copy resp streaming
* lint
* lint
* fix test
* rm test.js
* explicitly use CancelHandle::default()
* Apply review suggestions
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
* fix test
* Merge remote-tracking branch 'origin/master' into fetch_real_streaming
* fix test
* retrigger ci
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
2021-01-10 20:54:29 +01:00
crowlKats
2c1f74402c
refactor(op_crates/websocket): refactor event loop ( #9079 )
2021-01-10 14:05:24 -05:00
Yacine Hmito
f7e09c6a55
Test crypto.getRandomValues() with wpt ( #9016 )
2021-01-10 11:27:15 -05:00
Yacine Hmito
9637209765
fix(web): implement DOMException#code ( #9015 )
...
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-01-09 07:27:46 +01:00
Nayeem Rahman
e61e81eb57
feat: add --location=<href> and globalThis.location ( #7369 )
2021-01-07 19:06:08 +01:00
Luca Casonato
2e18fcebcc
refactor: move WebSocket API to an op_crate ( #9026 )
2021-01-06 16:57:28 +01:00
Luca Casonato
7704839039
fix: align AbortSignal to spec using WPT ( #9007 )
2021-01-05 22:43:25 +01:00
Luca Casonato
0d41e21b0e
fix: align encoding APIs to spec using WPT ( #9004 )
2021-01-05 19:50:40 +01:00
Rich Trott
e568ddf996
fix(op_crates/fetch): correct regexp for fetch header ( #8927 )
...
Fix bug in regular expression and make the regular expression more
strict.
In a string passed to new RegExp(), '[\t\s]' is identical to '[ts]' and
not `/[\t\s]/`. For that, the backslash needs to be escaped in the
string. Futhermore, `\t` is the tab character and is included in the
special regexp value `\s` so is unnecessary.
That would reduce the RegExp to new RegExp(`^${value}\\s*;?`) but
there's no point in matching 0 or more space characters followed by 0 or
one semi-colons as that will match no matter what follows `value`.
To make it more strict, require one of space, semicolon, or
end-of-string after value.
2020-12-30 23:46:08 +01:00
Bartek Iwańczuk
4997f426c3
chore: release crates ( #8931 )
2020-12-30 15:29:17 +01:00
Luca Casonato
9419c06ab5
chore: move ProgressEvent type to deno.web lib ( #8878 )
2020-12-26 18:15:30 +01:00
Yosi Pramajaya
c1fdb30394
fix: fetch bad URL will not panic ( #8884 )
2020-12-26 08:06:00 -05:00
Bartek Iwańczuk
6ce310fa27
chore: release crates ( #8854 )
2020-12-22 14:50:13 +01:00
Luca Casonato
ddda669a02
fix: implement ReadableStream fetch body handling ( #8855 )
2020-12-22 14:14:23 +01:00
yonatan ben avraham
afbd19ed9b
feat(unstable): support in memory certificate data for Deno.createHttpClient ( #8739 )
2020-12-19 23:13:48 +01:00
Bartek Iwańczuk
6984b63f2f
refactor: rewrite ops to use ResourceTable2 ( #8512 )
...
This commit migrates all ops to use new resource table
and "AsyncRefCell".
Old implementation of resource table was completely
removed and all code referencing it was updated to use
new system.
2020-12-16 17:14:12 +01:00
Bartek Iwańczuk
025c0a1d37
chore: release crates ( #8765 )
2020-12-14 19:47:28 +01:00
Bartek Iwańczuk
8f8749095c
chore: release crates ( #8760 )
2020-12-14 17:11:17 +01:00
Bartek Iwańczuk
389f492551
chore: release crates ( #8744 )
2020-12-13 22:34:54 +01:00
Anh Hong
b8bc24d167
chore: fixed various misspellings and other typos ( #8691 )
2020-12-11 06:45:45 +11:00
Jae-Heon Ji
d492fb0eac
fix(op_crates/fetch): support non-ascii response headers value ( #8600 )
2020-12-09 16:48:06 +01:00
Bartek Iwańczuk
656caa2d4f
chore: release crates ( #8662 )
2020-12-08 13:54:19 +01:00
Benjamin Gruenbaum
71ef5a9cd3
feat(op_crates/web) EventTarget signal support ( #8616 )
...
Fixes: https://github.com/denoland/deno/issues/8606
2020-12-04 12:47:08 -05:00
Bert Belder
8d12653738
core: implement 'AsyncRefCell' and 'ResourceTable2' ( #8273 )
2020-11-25 01:15:14 +01:00
Luca Casonato
501a31fcf3
fix(op_crates/fetch): redirect: "manual"
fetch should return type: "default"
response ( #8353 )
2020-11-24 21:00:35 +01:00
Bartek Iwańczuk
bc79d55649
v1.5.4
2020-11-23 15:10:58 +01:00
Anonymous
27dd786016
fix: "cloneValue" should return a Set when given a Set ( #7972 )
2020-11-21 17:29:18 +01:00
Bartek Iwańczuk
ab7b8ba8d1
v1.5.3
2020-11-16 11:14:00 +01:00
Yusuke Tanaka
9029003046
build: update dlint to v0.2.10 ( #8284 )
...
Update prebuilt "dlint" binary to v0.2.10 and fix diagnostics
for "require-await" rule.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-11-14 20:27:37 +01:00
Benjamin Gruenbaum
3d65e57d7c
fix: fix various global objects constructor length ( #8373 )
...
This commit changes various Web APIs constructors to
match their signature in the browser.
2020-11-14 13:10:23 +01:00
Divy Srivastava
d5661f677e
refactor: deno_crypto op crate ( #7956 )
...
This commit factors out "deno_crypto" op crate.
"rand" crate dependency was consequently moved to
"deno_crypto" crate and reexported.
2020-11-13 22:01:57 +01:00
Benjamin Gruenbaum
a55e689e38
fix(op_crates/web): FileReader event handler order ( #8348 )
2020-11-11 16:59:49 +01:00
Benjamin Gruenbaum
c7804c06ad
fix(op_crates/web) make isTrusted not constructable ( #8337 )
2020-11-10 15:26:58 -05:00
Benjamin Gruenbaum
94b68f9069
fix(cli/rt): dom handler order in websocket ( #8320 )
2020-11-10 14:34:42 +11:00
Benjamin Gruenbaum
996a87b168
fix(op_crates/web): handler order when reassign ( #8264 )
2020-11-09 17:49:19 +01:00
Kitson Kelly
71d7482577
v1.5.2 ( #8301 )
2020-11-09 10:58:21 +11:00
Benjamin Gruenbaum
bfa00bef22
fix(op_crates/web): define abort event handler on prototype ( #8230 )
2020-11-06 12:40:36 +11:00
Bartek Iwańczuk
8e914be742
build: migrate to dlint ( #8176 )
...
This commit migrates repository from using "eslint"
to "dlint" for linting JavaScript code.
2020-11-03 16:19:29 +01:00
Benjamin Gruenbaum
1c1889851d
fix(op_crate/web): make onabort event handler web compatible ( #8225 )
2020-11-03 10:42:40 +11:00
Yoshiya Hinosawa
397fec63d1
fix(op_crates/web): fix URLSearchParams, malformed url handling ( #8092 )
...
Co-authored-by: Evan <c4t@tuta.io>
2020-11-02 18:58:29 +01:00
Benjamin Gruenbaum
a8ca9fe7bb
test(op_crates/web): add EventTarget tests ( #8205 )
2020-11-02 18:42:22 +01:00
Benjamin Gruenbaum
9397cf508e
fix(op_crates/web): make TextEncoder work with forced non-strings ( #8206 )
...
Fixes: #8201
2020-11-02 10:57:18 +11:00
Luca Casonato
03769f11b5
v1.5.1
2020-10-31 15:32:43 +01:00
Bartek Iwańczuk
dd01f206da
v1.5.0
...
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-10-27 16:00:23 +01:00
Ross Weir
9fb4931a95
fix(op_crates/web): Expose event properties in console output ( #8103 )
...
Fixes #8073
2020-10-27 09:22:03 +11:00
Kid
4c41ba5ad7
fix(op_crates/fetch): ensure Request.method to be string ( #8100 )
...
Ensure "Request.method" to be the default value ("GET") if
"init.method" is not defined, which follows browser's behavior.
2020-10-26 15:02:08 +01:00
Ryan Dahl
9e2e2dfb20
bump versions for op crates ( #8048 )
2020-10-20 10:31:20 -04:00
aca
9cf06f76fd
fix(op_crates/web): TextEncoder should return error message with original input ( #8005 )
2020-10-20 13:47:38 +02:00
Nayeem Rahman
7aba07cc77
fix(cli/worker): Print error stacks from the origin Worker ( #7987 )
...
Fixes #4728
2020-10-20 15:05:42 +11:00
Leonard Ginters
623ac9e6df
fix(op_crates/web): TextEncoder should throw RangeError ( #8039 )
...
This commit changes error type thrown by TextEncoder, when
provided encoding is not supported matching Chromium behavior.
2020-10-19 23:56:29 +02:00
Luca Casonato
08441b855d
fix(op_crates/fetch): Body.body should be stream of Uint8Array ( #8030 )
2020-10-19 17:01:36 +02:00
Ryan Dahl
fb2cae9687
deno_core 0.64.0 ( #8025 )
2020-10-19 06:35:09 -04:00
Nayeem Rahman
d0c2714c03
fix(op_crates/web/url): apply backslash replacement to the pathname setter ( #7937 )
2020-10-13 17:16:10 +02:00
Bartek Iwańczuk
527628e186
reland JsRuntime/Worker is not a Future ( #7924 )
2020-10-11 13:20:40 +02:00