summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2022-01-03feat(ext/crypto): support AES-CTR encrypt/decrypt (#13177)Sean Michael Wykes
Fixes #13201.
2021-12-27fix(ext/crypto) include AES-CTR for deriveKey (#13174)Sean Michael Wykes
2021-12-23docs: update release instructions for M1 build (#13182)Ryan Dahl
2021-12-17docs: update release info for doc.deno.land (#13116)Kitson Kelly
2021-12-16feat(ext/crypto): support importing ECSDA and ECDH (#13088)Sean Michael Wykes
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-12-15feat: Add support for import assertions and JSON modules (#12866)Bartek Iwańczuk
This commit adds proper support for import assertions and JSON modules. Implementation of "core/modules.rs" was changed to account for multiple possible module types, instead of always assuming that the code is an "ES module". In effect "ModuleMap" now has knowledge about each modules' type (stored via "ModuleType" enum). Module loading pipeline now stores information about expected module type for each request and validates that expected type matches discovered module type based on file's "MediaType". Relevant tests were added to "core/modules.rs" and integration tests, additionally multiple WPT tests were enabled. There are still some rough edges in the implementation and not all WPT were enabled, due to: a) unclear BOM handling in source code by "FileFetcher" b) design limitation of Deno's "FileFetcher" that doesn't download the same module multiple times in a single run Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-12-14chore: lint cli/tests/unit/ (#13083)Bartek Iwańczuk
2021-12-14feat(ext/crypto): support exporting RSA JWKs (#13081)Luca Casonato
This commit adds support for exporting RSA JWKs in the Web Crypto API. It also does some minor fixes for RSA JWK imports. Co-authored-by: Sean Michael Wykes <sean.wykes@nascent.com.br>
2021-12-14feat(ext/crypto): support importing RSA JWKs (#13071)Luca Casonato
This commit adds support for importing RSA JWKs in the Web Crypto API. Co-authored-by: Sean Michael Wykes <sean.wykes@nascent.com.br>
2021-12-10feat(ext/web): implement `AbortSignal.prototype.throwIfAborted()` (#13044)Andreu Botella
See whatwg/dom#1034.
2021-12-10chore: update wpt (#13043)Andreu Botella
2021-12-10feat(cli): update to TypeScript 4.5 (#12410)Kitson Kelly
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-12-09feat(crypto): support `importKey` in SPKI format (#12921)Yacine Hmito
This commit adds support for `spki` key format for `crypto.subtle.importKey` for the RSA* algorithms.
2021-12-08feat(streams): support abort reasons in streams (#12991)Andreu Botella
2021-12-06chore: Update WPT (#12987)Andreu Botella
2021-12-05feat(ext/crypto): implement unwrapKey (#12539)Divy Srivastava
2021-11-28feat(ext/crypto): support importing exporting AES JWK keys (#12444)Divy Srivastava
2021-11-25fix(ext/crypto): throw on key & op algo mismatch (#12838)Luca Casonato
2021-11-22fix(ext/crypto): don't panic on decryption failure (#12840)Luca Casonato
2021-11-171.16.2 (#12794)David Sherret
2021-11-10chore: update cut_a_release.md (#12725)Bartek Iwańczuk
2021-11-08chore: disable flaky wpt tests (#12696)Luca Casonato
2021-11-08feat(ext/web): WritableStreamDefaultController.signal (#12654)Leo Kettmeir
2021-11-08chore: update wpt (#12682)Luca Casonato
This commit updates WPT to 3904336d37ed6f480fc8879ea8bd5683a39ede3d.
2021-11-07fix(cli): don't panic when mapping unknown errors (#12659)Aaron O'Mullan
Instead fallback to generic "Error" class, fixes #12590, also update WPT expectations
2021-11-03fix: Deno.emit crashes with BorrowMutError (#12627)Ryan Dahl
Warn on await_holding_refcell_ref clippy rule to avoid this in the future. Fixes #12453
2021-11-03feat(ext/web): BYOB support for ReadableStream (#12616)Leo Kettmeir
This commit introduces support for BYOB readers in the WHATWG Streams API implementation.
2021-11-01chore: upgrade deno_ast to 0.5.0 (#12595)David Sherret
2021-10-29chore(ci): update dependency for upload_wptfyi (#12587)Kitson Kelly
2021-10-29fix(encoding): support additional encoding labels (#12586)Andreu Botella
2021-10-28fix(webidl): Don't throw when converting a detached buffer source (#12585)Andreu Botella
The Web IDL conversion to `BufferSource` and similar types shouldn't check whether the buffer is detached. In the case of `TextDecoder`, our implementation would still throw after the Web IDL conversions because we're creating a new `Uint8Array` from the buffer source's buffer, which throws if it's detached. This change also fixes this bug.
2021-10-27chore: update to rusty_v8 0.33.0 (#12564)Luca Casonato
2021-10-27fix(workers): Make `importScripts()` use the same HTTP client as `fetch` ↵Andreu Botella
(#12540) The initial implementation of `importScripts()` in #11338 used `reqwest`'s default client to fetch HTTP scripts, which meant it would not use certificates or other fetching configuration passed by command line flags. This change fixes it.
2021-10-26docs(cut_a_release): update link to dotland repo (#12546)Yoshiya Hinosawa
2021-10-22chore: add note about BCD to cut_a_release.md (#12513)Luca Casonato
2021-10-20chore: return serde_v8 to main repo (#12500)Aaron O'Mullan
Reduces fragmentation, avoids version drift and facilitates coordinating serde_v8 and op-layer changes
2021-10-19chore: update release script (#12481)Bartek Iwańczuk
2021-10-17chore(wpt): disable broken tests (#12385)Bert Belder
* 'request-upload.h2' and 'redirect-upload.h2' only work with a functional HTTP2 test harness server, otherwise they're flaky. * Fetch request streaming tests require a server that doesn't choke on requests that use 'Transfer-Encoding: chunked'.
2021-10-12feat(ext/crypto): support importing/exporting raw AES keys (#12392)Divy Srivastava
2021-10-12feat: update to V8 9.5 (#12399)Luca Casonato
2021-10-12feat(ext/crypto): implement deriveKey (#12117)Divy Srivastava
2021-10-11fix(runtime): Declare `Window.self` and `DedicatedWorkerGlobalScope.name` ↵Andreu Botella
with `util.writable()` (#12378) `Window`'s `self` property and `DedicatedWorkerGlobalScope`'s `name` property are defined as Web IDL read-only attributes with the `[Replaceable]` extended attribute, meaning that their setter will redefine the property as a data property with the set value, rather than changing some internal state. Deno currently defines them as read-only data properties instead. Given that Web IDL requires all attributes to be accessor properties rather than data properties, but Deno exposes almost all of those properties as either read-only or writable data properties, it makes sense to expose `[Replaceable]` properties as writable as well – as is already the case with `WindowOrWorkerGlobalScope`'s `performance` property.
2021-10-08chore(wpt): Enable WPT worker tests (#12222)Andreu Botella
Classic workers were implemented in denoland#11338, which also enabled the WPT tests in the `workers` directory. However, the rest of WPT worker tests were not enabled because a number of them were hanging due to web-platform-tests/wpt#29777. Now that that WPT issue is fixed, the bulk of worker tests can be enabled. There are still a few tests that hang, and so haven't been enabled. In particular: - The following tests seem to hang because a promise fails to resolve. We can detect such cases in non-worker tests because the process will exit without calling the WPT completion callback, but in worker tests the worker message ops will keep the event loop running. This will be fixed when we add timeouts to WPT tests (denoland#9460). - `/fetch/api/basic/error-after-response.any.worker.html` - `/html/webappapis/microtask-queuing/queue-microtask-exceptions.any.worker.html` - `/webmessaging/message-channels/worker-post-after-close.any.worker.html` - `/webmessaging/message-channels/worker.any.worker.html` - `/websockets/Create-on-worker-shutdown.any.worker.html` - The following tests apparently hang because a promise rejection is never handled, which will kill the process in the main thread but not in workers (denoland#12221). - `/streams/readable-streams/async-iterator.any.worker.html` - `/workers/interfaces/WorkerUtils/importScripts/report-error-setTimeout-cross-origin.sub.any.worker.html` - `/workers/interfaces/WorkerUtils/importScripts/report-error-setTimeout-redirect-to-cross-origin.sub.any.worker.html` - `/workers/interfaces/WorkerUtils/importScripts/report-error-setTimeout-same-origin.sub.any.worker.html`
2021-10-08refactor: deduplicate `defineEventHandler` util (#12367)Andreu Botella
2021-10-07fix(runtime): Getting `navigator.hardwareConcurrency` on workers shouldn't ↵Andreu Botella
throw (#12354)
2021-10-03feat(web): Implement `DOMException`'s `stack` property. (#12294)Andreu Botella
As per WebIDL (https://heycam.github.io/webidl/#es-DOMException-specialness), if `Error` objects have a `stack` property, so should `DOMException` instances.
2021-10-01feat(ext/crypto): implement wrapKey (#12125)Divy Srivastava
2021-10-01tools(bench): rebootstrap (#12281)Aaron O'Mullan
Enable deno devs to bench/profile/test JS code changes without doing a full --release rebuild. Incremental release builds take ~4mn on M1s, often more on other machines ...
2021-09-29fix(ext/fetch): avoid panic when header is invalid (#12244)Ahab
2021-09-29feat: support serializing `WebAssembly.Module` objects (#12140)Andreu Botella