summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-08-28fix(napi): Fix worker threads importing already-loaded NAPI addon (#25245)Nathan Whitaker
Part of #20613. If a node addon is using the legacy `napi_module_register` on ctor approach to module registration, we have to store the registered module so that other threads can load the addon (because `napi_module_register` will only be called once per process).
2024-08-28fix(ext/node): import RSA JWK keys (#25267)Divy Srivastava
Fixes https://github.com/denoland/deno/issues/24129
2024-08-28fix(ext/node): export JWK public key (#25239)Divy Srivastava
Fixes https://github.com/denoland/deno/issues/18928 Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-08-28build: Allow building 'rc' release from source (#25227)Bartek Iwańczuk
We're not gonna use it, but this might help distribution tools like Homebrew to also release Deno 2.0 RC releases.
2024-08-28fix(ext/node): import EC JWK keys (#25266)Divy Srivastava
2024-08-28tests: fix wpt_epoch job (#25264)Luca Casonato
2024-08-28fix(fmt): fix incorrect quotes in components (#25249)Pig Fang
Unlike in dprint, `single_quote` option is shared between all formatters, so we shouldn't change this option when formatting attributes in components. This PR fixes this. This problem doesn't affect formatting HTML.
2024-08-28fix(ext/node): update aead-gcm-stream to 0.3 (#25261)Divy Srivastava
Fixes https://github.com/denoland/deno/issues/25260 Fixes https://github.com/denoland/deno/issues/25254 Fixes https://github.com/denoland/deno/issues/23693 Verified that `web-push` GCM decryption works in the browser. See `aead-gcm-stream` changes [here](https://github.com/littledivy/aead-gcm-stream/commit/a9ffd0c07c14e4b566c87bf51a20ff799b9e7f5e)
2024-08-28fix(ext/node): throw when loading `cpu-features` module (#25257)Divy Srivastava
It crashes because of NAN usage, we want to trigger the fallback case in ssh2 by throwing an error. Fixes https://github.com/denoland/deno/issues/25236
2024-08-28fix(lsp): panic on url_to_uri() (#25238)Nayeem Rahman
2024-08-28feat: remove `--lock-write` flag (#25214)Bartek Iwańczuk
This commit remove `--lock-write` that was deprecated in v1.45 release. Closes https://github.com/denoland/deno/issues/24167. --------- Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-28fix(ext/node): emit `online` event after worker thread is initialized (#25243)Nathan Whitaker
Fixes #23281. Part of #20613. We were emitting the `online` event in the constructor, so the caller could never receive it (since there was no time for them to add a listener). Instead, emit the event where it's intended – after the worker is initialized. --- After this parcel no longer freezes, but still will fail due to other bugs (which will be fixed in other PRs)
2024-08-28fix: replace `npm install` hint with `deno install` hint (#25244)Bartek Iwańczuk
Needed for https://github.com/denoland/deno/pull/25213. With Deno 2, we should suggest using `deno install` instead of `npm install`.
2024-08-27fix(permissions): disallow launching subprocess with LD_PRELOAD env var ↵David Sherret
without full run permissions (#25221) Ref https://github.com/denoland/deno/pull/25215 Closes https://github.com/denoland/deno/issues/11964
2024-08-28test: add supporting for ignoring spec tests (#25242)Bartek Iwańczuk
You can now specify `"ignore": true` for either the whole file, concrete test, or concrete step.
2024-08-27fix(ext/fetch): percent decode userinfo when parsing proxies (#25229)Sean McArthur
Fixes #24691
2024-08-27fix: removed unstable-htttp from deno help (#25216)HasanAlrimawi
Closes #25210 . Removed --unstable-http from being displayed on deno run --help=unstable --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-08-27fix(task): support tasks with colons in name in `deno run` (#25233)Marvin Hagemeister
Fix task names containing a colon not being found with `deno run`. We were only checking for a `module not found` error message, but strings containing a colon throw a different error. Fixes https://github.com/denoland/deno/issues/25232
2024-08-27chore: ignore lint warning in test (#25234)Marvin Hagemeister
Noticed this when working on another PR. The test code predates the addition of our `no-console` rule.
2024-08-27feat(ext/kv): configurable limit params (#25174)Yusuke Tanaka
This commit makes various limit parameters in `deno_kv` configurable. Currently these values are declared as constants and thus can't be modified from outside. However, there may be situations where we want to change it. This commit makes this possible by introducing a new struct `KvConfig` that needs to be given as the 2nd param in `init_ops`.
2024-08-26perf(cache): single cache file for remote modules (#24983)David Sherret
This changes the global cache to store the cache file for remote modules in one file instead of two.
2024-08-26feat: lockfile v4 by default (#25165)David Sherret
This won't be fully stabilized until 2.0 is released.
2024-08-26Reland "test: run unit tests with DENO_FUTURE=1" (#25212)Bartek Iwańczuk
Reverted in https://github.com/denoland/deno/pull/25060
2024-08-26fix(fmt/markdown): fix regression with multi-line footnotes and inline math ↵David Sherret
(#25222) What happened in this specific case was the parser used to actually treat these as code block. Now it treats it as a multi-paragraph footnote and that caused the issue - https://github.com/dprint/dprint-plugin-markdown/pull/121/files
2024-08-26perf(cache): single cache file for typescript emit (#24994)David Sherret
2024-08-26perf(ext/node): reduce some allocations in require (#25197)David Sherret
2024-08-26Revert "feat(fetch): accept async iterables for body" (#25207)Luca Casonato
Unfortunately this caused a regression: https://github.com/denoland/deno/issues/25203. Need to do some more upstream spec work to fix this before this can be re-landed. Reverts denoland/deno#24623
2024-08-26fix(bench): Fix table column alignments and NO_COLOR=1 (#25190)Armaan Salam
Fix table layout for `deno bench` command with and without color (`NO_COLOR=1`). Fixes issue in #25156
2024-08-26fix(node/cluster): improve stubs to make log4js work (#25146)Marvin Hagemeister
- Add missing exports to `node:cluster` - Fix default export not being an instance of `EventEmitter` - Fix aliasing of properties - Fix `disconnected` -> `disconnect` export naming This makes `log4js` work in Deno. `karma` starts too, but somehow the server isn't responding. That looks like a different issue. Fixes https://github.com/denoland/deno/issues/24858
2024-08-25fix(ext/webgpu): allow to build on unsupported platforms (#25202)cions
2024-08-23chore(ext/node): use array instead of Vec to avoid wrong capacity allocation ↵Yusuke Tanaka
(#25183) This commit gets deno_node's customizer to use fixed-length array instead of `Vec` to avoid wrong capacity allocation. In the previous code we reserve a capacity of 14 for `external_references`. However, after pushing all the necessary `ExternalReference`s, it ends up with a length of 21, not 14. This means another allocation happens even though we reserve some space. To make sure that there will no longer be extra allocation, it should be a good idea to use fixed-length array here.
2024-08-24refactor(lsp): changes for lsp_types 0.97.0 (#25169)Nayeem Rahman
2024-08-23fix: handle showing warnings while the progress bar is shown (#25187)David Sherret
2024-08-23fix(ext/crypto): throw DataError for invalid EC key import (#25181)Divy Srivastava
Fixes https://github.com/denoland/deno/issues/20931
2024-08-23fix(ext/node): import JWK octet key pairs (#25180)Divy Srivastava
Ref https://github.com/denoland/deno/issues/24129 `kty: "okp"` is defined in [rfc8037](https://www.rfc-editor.org/rfc/rfc8037.html)
2024-08-22chore: enable `log` feature for tracing crate (#25078)Yusuke Tanaka
This commit enables the `log` feature for the `tracing` crate. This allows us to examine additional detailed logs emitted by third party crates that use `tracing` crate for logging by setting `RUST_LOG` env var or passing `-L` option in command line. Closes #25045
2024-08-22chore(ext/node): bump minimum required version of `dsa` to 0.6.3 (#25154)Yusuke Tanaka
This commit bumps the minimum required version of `dsa` crate to 0.6.3. This is preferable because `SigningKey::sign_prehashed_rfc6979` function we use in `deno_node` is available from this version. Ref: [dsa's CHANGELOG.md](https://github.com/RustCrypto/signatures/blob/132b04631409db1ca805aba2f62830c8e359b29f/dsa/CHANGELOG.md#063-2024-01-28)
2024-08-22fix(install): Use relative symlinks in deno install (#25164)Nathan Whitaker
Fixes https://github.com/denoland/deno/issues/25161
2024-08-22chore: update config-file.v1.json (#25163)Kenta Moriuchi
2024-08-22refactor: remove unused AllowAllNodePermissions (#25159)David Sherret
2024-08-22chore(build): deno_kv - remove dep on deno_node (#25158)David Sherret
This will help with build perf a bit.
2024-08-22chore: forward v1.46.1 release commit to main (#25155)denobot
2024-08-22fix: trim space around DENO_AUTH_TOKENS (#25147)Luca Casonato
2024-08-22fix(urlpattern): fallback to empty string for undefined group values (#25151)Leo Kettmeir
This change was introduced in #24741, but due to the change in behaviour, we will revert it and re-introduce it in 2.0
2024-08-22fix(ext/node): http2session ready state (#25143)Caleb Lloyd
Fixes #25142 Signed-off-by: Caleb Lloyd <caleblloyd@gmail.com>
2024-08-22fix(ext/node): register `node:wasi` built-in (#25134)Divy Srivastava
Fixes https://github.com/denoland/deno/issues/23531
2024-08-221.46.0 (#25139)denobot
Bumped versions for 1.46.0 Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-08-22fix(fmt/markdown): metadata header sometimes missing trailing blank line ↵David Sherret
(#25141) * https://github.com/dprint/dprint-plugin-markdown/pull/119
2024-08-21feat: Upgrade V8 to 12.9 (#25138)Bartek Iwańczuk
2024-08-21fix(add): Handle packages without root exports (#25102)Nathan Whitaker
Fixes #24607. This PR makes the logic that caches top level dependencies (things present in import map) smarter, so we handle JSR dependencies without root exports.