Commit graph

14322 commits

Author SHA1 Message Date
Asher Gomez
656bec8652
chore: remove deprecated Deno.OpMetrics (#29559) 2025-06-02 12:30:43 +02:00
Andy Vu
90528fa9c9
fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_symlink.ts (#29547)
Towards #24236.
2025-06-02 11:15:21 +02:00
James Bronder
1d72dcac25
fix(ext/node): use primordials in ext/node/polyfills/internal/process/per_thread.mjs (#29550)
Towards #24236. Replaces JS builtins with equivalent primordial
versions.
2025-06-02 11:14:44 +02:00
Yoshiya Hinosawa
01a6379505
fix(ext/node): print warnings to stderr (#29527)
Some checks are pending
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
2025-06-02 11:36:47 +09:00
Yoshiya Hinosawa
0a5bf5efd0
fix(ext/node): improve getaddrinfo compatibility (#29501)
This commit improves the compatibility of `cares_wrap` internal binding and
`getaddrinfo` function.

`cares_wrap.getaddrinfo` needs to be mocked in test case. This commit
enables it, and also fixes the 5th argument of `getaddrinfo`.
2025-06-02 11:34:36 +09:00
Asher Gomez
2cab60f90d
refactor(coverage): cleanup CSS output in explorer (--html) output (#29496) 2025-06-02 10:57:28 +09:00
Yoshiya Hinosawa
32234e8815
test(ext/node): respect --allow-natives-syntax v8 flag in compat test runner (#29529)
Some checks failed
ci / pre-build (push) Has been cancelled
ci / test debug macos-x86_64 (push) Has been cancelled
ci / test release macos-x86_64 (push) Has been cancelled
ci / test debug windows-x86_64 (push) Has been cancelled
ci / test release windows-x86_64 (push) Has been cancelled
ci / test debug linux-aarch64 (push) Has been cancelled
ci / test release linux-aarch64 (push) Has been cancelled
ci / test debug macos-aarch64 (push) Has been cancelled
ci / test release macos-aarch64 (push) Has been cancelled
ci / bench release linux-x86_64 (push) Has been cancelled
ci / lint debug linux-x86_64 (push) Has been cancelled
ci / lint debug macos-x86_64 (push) Has been cancelled
ci / lint debug windows-x86_64 (push) Has been cancelled
ci / test debug linux-x86_64 (push) Has been cancelled
ci / test release linux-x86_64 (push) Has been cancelled
ci / build wasm32 (push) Has been cancelled
ci / publish canary (push) Has been cancelled
2025-05-31 22:41:02 +09:00
Nathan Whitaker
e2e4919347
fix(zlib): don't return a smi from crc32 (#29546)
Some checks are pending
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
Fixes https://github.com/denoland/deno/issues/29545.
2025-05-30 17:27:58 -07:00
David Sherret
173f26f391
chore: fix deno_lib version bump for release and verify Deno binary version outputs expected version (#29540)
Some checks are pending
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
2025-05-30 17:11:26 +00:00
Leo Kettmeir
5b0da88619
feat(unstable): deploy subcommand (#29407) 2025-05-30 16:28:49 +00:00
Bartek Iwańczuk
f27329132d
chore: update Releases.md (#29534)
Missed during the release of 2.3.5
2025-05-30 18:23:37 +02:00
Heyang Zhou
ebccb8a6ba
fix(ext/http): handle vsock streams in extract_network_stream (#29518)
Fixes https://github.com/denoland/deno/issues/29517
2025-05-30 07:38:15 -07:00
David Sherret
75762194ff
refactor: move CliFileFetcher and DenoGraphLoader into deno_resolver::file_fetcher (#29473) 2025-05-30 10:10:33 -04:00
Bartek Iwańczuk
4794dc147e
v2.3.5 (#29531)
Closes https://github.com/denoland/deno/issues/29522
2025-05-30 13:01:49 +02:00
Divy Srivastava
ba9c80eda8
fix(ext/node): fix function error message in invalidArgTypeHelper (#29526)
Some checks are pending
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
Fixes `parallel/test-buffer-from.js` in daily Node compat tests runs.
The test was already enabled in CI but that used a different helper than
the daily Node compat tests runners - updated now.

```
divy@divy-macbook deno % deno -A ./tools/node_compat_tests.js -f parallel/test-buffer-from
Found 0 sequential tests and 1 parallel tests
Running 1 tests
   1 FAIL parallel/test-buffer-from.js
    FAIL parallel/test-buffer-from.js
    exit code: 1
    error: Uncaught (in promise) AssertionError: Values are not equal:


    [Diff] Actual / Expected


-   The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received type function ([Function (anonymous)])
+   The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received function


    at new AssertionError (ext:deno_node/assertion_error.ts:412:11)
    at toNode (node:assert:48:15)
    at deepStrictEqual (node:assert:267:3)
    at validateThrownError (node:assert:622:9)
    at throws (node:assert:104:9)
    at file:///Users/divy/gh/deno/tests/node_compat/runner/suite/test/parallel/test-buffer-from.js:59:3
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (file:///Users/divy/gh/deno/tests/node_compat/runner/suite/test/parallel/test-buffer-from.js:51:3)
    at Object.<anonymous> (file:///Users/divy/gh/deno/tests/node_compat/runner/suite/test/parallel/test-buffer-from.js:146:4)
    at Module._compile (node:module:745:34)

Filtered tests: 0/1 (0.00%)
Elapsed time: 0.20s
divy@divy-macbook deno % target/debug/deno -A ./tools/node_compat_tests.js -f parallel/test-buffer-from
Found 0 sequential tests and 1 parallel tests
Running 1 tests
   1 PASS parallel/test-buffer-from.js
    PASS parallel/test-buffer-from.js
Filtered tests: 1/1 (100.00%)
Elapsed time: 0.40s
```
2025-05-30 12:13:22 +05:30
Divy Srivastava
342ea09135
fix(ext/node): stub getFipsCrypto to false (#29485)
This makes Deno act as a non-FIPS compliant build of Node.js to node
modules.
2025-05-30 15:15:03 +09:00
Divy Srivastava
b2f668550d
fix(ext/node): Buffer write OOB checks (#29524)
Enables `parallel/test-buffer-write.js` test
2025-05-30 11:28:22 +05:30
David Sherret
2831e5c510
fix(vendor): store remote version metadata checksum in vendor folder to ensure lockfile uses that (#29433) 2025-05-29 23:46:15 -04:00
Yoshiya Hinosawa
3930dc112c
chore(ext/node): ignore parallel/test-buffer-backing-arraybuffer.js (#29505) 2025-05-30 11:38:02 +09:00
Yoshiya Hinosawa
4a80e1d29b
fix(ext/node): correct kMaxLength value of node:buffer (#29504) 2025-05-30 11:37:34 +09:00
Bartek Iwańczuk
b27f88239d
ci: update release template (#29519)
Some checks are pending
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
Changes URL of GH release - the one used previously doesn't
work correctly, since GH uses something like 
`<org>/<repo>/releases/tag/untagged-<hash>` for draft releases. 

AFAICT it's too cumbersome to figure this hash programatically.
2025-05-30 00:46:00 +00:00
Bartek Iwańczuk
248d038ef6
fix(otel): flush data when terminating signal is received (#29515)
This commit adds signal handlers that flush telemetry data
before the process is terminated.
2025-05-30 01:42:33 +02:00
Bartek Iwańczuk
dacfd23b87
ci: update release template (#29512) 2025-05-29 23:29:06 +00:00
Nayeem Rahman
37ba6223b6
ci: only check git changes on pull requests (#29516)
See
4314661727.
2025-05-30 00:48:52 +02:00
Nayeem Rahman
f146e27993
ci: fix features for sys_traits in deno_npm_installer (#29514)
See
4314369899.

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2025-05-29 23:17:15 +02:00
Nayeem Rahman
833fbfd3ad
ci: fix features for nix in permissions/Cargo.toml (#29511) 2025-05-29 20:26:37 +00:00
denobot
644efa157e
2.3.4 (#29510) 2025-05-29 20:00:31 +01:00
David Sherret
6f831d1035
fix: --frozen flag missing from several subcommands (#29508)
Some checks are pending
ci / publish canary (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
Closes https://github.com/denoland/deno/issues/29498
2025-05-29 15:26:24 +00:00
Scott Kyle
17a628379d
fix(ext/console): console.group indents two spaces (#29486)
Since `DEFAULT_INDENT` is already two spaces, incrementing `indentLevel`
by 2 was causing each group to indent by **four** spaces. Indenting by
two spaces matches the behavior Node and Bun.
2025-05-29 10:20:43 -04:00
David Sherret
0f7d15dc86
refactor: extract CLI's deno_graph::source::Locker to deno_resolver (#29491) 2025-05-29 09:39:27 -04:00
Leo Kettmeir
8ec14ae133
fix: support numerical properties for deno_errors (#29489)
Some checks are pending
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
2025-05-29 15:10:46 +05:30
Asher Gomez
f9bb8241ca
fix(coverage): HTML validation errors in coverage explorer (#29497)
Closes #29493
2025-05-29 09:48:11 +02:00
Nayeem Rahman
ab9673dcc1
feat(unstable): --allow-net subdomain wildcards (#29327) 2025-05-29 04:05:37 +01:00
David Sherret
cb23193f74
refactor: allow deno_permissions to compile to wasm32-unknown-unknown (#29487)
Some checks are pending
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
2025-05-28 18:27:42 +00:00
snek
437afebf5c
fix: don't unwrap in global interceptor (#29484)
Some checks are pending
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
Handle other contexts gracefully instead of panicking.

Fixes: https://github.com/denoland/deno/issues/29482
2025-05-28 17:22:18 +02:00
Yoshiya Hinosawa
f1fd29aba0
fix(ext/node): fix getEventListeners in node:events (#29480) 2025-05-28 21:47:31 +09:00
Yoshiya Hinosawa
e56dc01cb8
fix(ext/node): add "internal/http2/util" module (#29474) 2025-05-28 21:46:36 +09:00
Luca Casonato
a88c61de3d
fix(ext/node): return values in node:domain (#29440)
When using Domain#bind, Domain#intercept, and Domain#run we were
invoking the callback but then not actually returning the value returned
from that callback.

This makes Gulp work with async functions as tasks.
2025-05-28 13:50:46 +02:00
Bartek Iwańczuk
32db2db121
fix(ext/node): createInterface doesn't require env permission (#29472)
Closes https://github.com/denoland/deno/issues/29441
2025-05-28 11:59:26 +02:00
Yoshiya Hinosawa
4823f2b9e8
chore(ext/node): ignore some node test cases (#29462)
Some checks are pending
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
2025-05-28 14:19:42 +09:00
Yoshiya Hinosawa
077f0c5665
fix(ext/node): ignore some Node.js specific flags (#29461) 2025-05-28 12:02:26 +09:00
Yoshiya Hinosawa
d8879ee3fd
chore: simplify node test script (#29459) 2025-05-28 11:18:22 +09:00
Bartek Iwańczuk
1b6736d3f9
fix(ext/node): node:buffer validates INSPECT_MAX_BYTES (#29469)
Some checks are pending
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2025-05-27 23:31:35 +00:00
David Sherret
e3bf5ee5db
refactor: remove deno_core dependency from deno_permissions (#29467)
For making this code more usable without deno_core. Will be useful in
deno_resolver.
2025-05-27 16:00:04 +00:00
David Sherret
7a86ee086f
fix(lsp): do not warn about unscoped package name (#29463)
It's useful to just use a bare specifier for the package name in a
workspace when not publishing to JSR.
2025-05-27 11:07:58 -04:00
JasperVanEsveld
bca0a9a6bf
fix(compile): init dummy stdin after debug env is initialized (#29144)
This should be the last change to fix
https://github.com/denoland/deno/issues/27730 and
https://github.com/denoland/deno/issues/21091

The dummy stdin needed when using `--no-terminal` instantly closes, but
closing can't be done until the debug environment is initialized.

This PR delays creation (and closing) of the stdin until after the debug
environment is initialized.

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2025-05-27 12:10:20 +05:30
Nayeem Rahman
280f5985f5
fix(lsp): lookup patched jsr packages for auto-import (#29437) 2025-05-27 05:16:53 +01:00
David Sherret
ff74f54161
chore: don't run "test release linux-aarch64" on PRs (#29455) 2025-05-26 22:29:12 +00:00
David Sherret
e7bb7cca24
fix: load changed non-remote dynamic imports at runtime (#29413) 2025-05-26 21:38:51 +00:00
Nayeem Rahman
15f9368ace
fix(lsp): lookup mapped npm specifier resolutions for auto-import (#29388) 2025-05-26 22:11:16 +01:00