Jim Buzbee
1feb2b6421
fix(ext/node): honor flags with respect to reuseAddress when binding to a UDP socket ( #28156 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2025-04-22 17:49:14 +09:00
denobot
9591c11633
chore: forward v2.2.11 release commit to main ( #28958 )
...
This is the release commit being forwarded back to main for 2.2.11
---------
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2025-04-18 17:21:06 +02:00
David Sherret
16d305449d
feat(compile): support for ffi and node native addons ( #28934 )
...
This extracts out the shared libraries and `.node` native modules to a
temp file and opens them from there. **This means that this
implementation will not work in every scenario.** For example, a library
could require other files that only exist in the in-memory file system.
To solve that, we'll introduce
https://github.com/denoland/deno/issues/28918 later or adapt this
solution to solve more issues.
Additionally, this will not work when run on readonly file systems.
2025-04-17 16:01:12 -04:00
Luca Casonato
c12709196c
fix: support vsock in DENO_SERVE_ADDRESS ( #28941 )
2025-04-17 13:49:47 +02:00
Yoshiya Hinosawa
016b02d374
fix(ext/node): add assert
property to test context object ( #28904 )
2025-04-17 14:32:48 +09:00
Leo Kettmeir
066a205d5f
feat(unstable/webgpu): add deviceStartCapture
and deviceStopCapture
( #28192 )
...
This is achieved by adding a new `Deno.webgpu` namespace which will be
used for non-spec functionality, which for now will be marked as
unstable
2025-04-16 17:26:28 +00:00
Marvin Hagemeister
a5b407c390
chore: make node test-process-cpuUsage pass ( #28912 )
...
We used a different error message by referring to the first parameter as
`previousValue` instead of `prevValue`. Node uses `prevValue` in the
error message.
2025-04-16 08:28:18 +02:00
Bartek Iwańczuk
27651d3c77
refactor(ext/node): use Promise.withResolvers ( #28917 )
2025-04-15 17:33:53 -04:00
Divy Srivastava
5867988bae
fix(ext/node): Fix Writable.toWeb()
( #28914 )
...
Fixes https://github.com/denoland/deno/issues/28905
2025-04-15 20:10:48 +02:00
denobot
2e826dfc9d
chore: forward v2.2.10 release commit to main ( #28897 )
...
This is the release commit being forwarded back to main for 2.2.10
Co-authored-by: nathanwhit <nathanwhit@users.noreply.github.com>
Co-authored-by: Nathan Whitaker <nathan@deno.com>
2025-04-14 16:10:16 -07:00
Divy Srivastava
01b6da9d9b
fix(ext/node): upgrade node:stream
( #28855 )
...
Ref https://github.com/denoland/deno/issues/28836
This PR replaces the _stream.mjs bundle with a file-by-file port instead. A codemod transpiles Node.js internals to ESM. The codemod performs three tasks: translating CJS to ESM, remapping internal dependencies, and hoisting lazy requires as imports.
The process is fully automated through the `update_node_stream.ts` script, simplifying future internal updates. The script checks out Node.js from a specific tag defined in the `tests/node_compat/runner`.
Additionally, the update enables new tests in our Node test runner and adds features (like compose()) that were missing from the outdated bundle.
## Performance
There is a 140KB+ binary size increase on aarch64-apple-darwin and nop startup time stays the same.
2025-04-14 21:35:34 +05:30
Ryan Dahl
9c201aee7d
feat(serve): env var DENO_SERVE_ADDRESS for configuring default listen address ( #28877 )
2025-04-14 12:15:26 +00:00
Divy Srivastava
cc8b5217f3
fix(ext/node): querystring fallback to default decoder ( #28838 )
...
Enables the full `tests/node_compat/test/parallel/test-querystring.js`
test
2025-04-14 15:17:28 +05:30
Yoshiya Hinosawa
1dfd444901
fix(ext/node): add basic support of suite/describe in node:test ( #28847 )
2025-04-14 15:44:03 +09:00
Yoshiya Hinosawa
372705a4d7
fix(ext/node): export test as property of default export ( #28881 )
2025-04-14 14:19:22 +09:00
Nayeem Rahman
98b7554aaf
chore: forward v2.2.9 release commit to main ( #28859 )
2025-04-11 22:45:54 +00:00
snek
e73ed03373
fix: vsock nits ( #28851 )
2025-04-11 12:11:03 -07:00
Divy Srivastava
d74a6943a5
fix(ext/node): verbose zlib error messages ( #28831 )
2025-04-11 17:17:32 +05:30
snek
9da231dc7a
feat: support linux vsock ( #28725 )
...
impl support for vsock
https://man7.org/linux/man-pages/man7/vsock.7.html
2025-04-11 07:35:05 +02:00
Divy Srivastava
cedf5c4f6a
fix(ext/node): implement Buffer.copyBytesFrom
( #28829 )
...
Enables the full `parallel/test-buffer-from.js` test
2025-04-10 12:05:49 +00:00
Divy Srivastava
0d72316fbf
fix(ext/node): implement finished() for web streams ( #28600 )
...
Fixes https://github.com/denoland/deno/issues/28590
2025-04-10 17:23:50 +05:30
Divy Srivastava
1e50c7981b
refactor(ext/node): rewrite HandleWrap in Rust ( #28765 )
...
Ports `HandleWrap` and `AsyncWrap` to Rust.
2025-04-10 17:20:25 +05:30
Divy Srivastava
b26c30d938
fix(ext/node): return Buffer
from crypto cipher APIs ( #28826 )
...
Fixes https://github.com/denoland/deno/issues/28633
2025-04-10 08:01:30 +00:00
Arsh
447b5038c0
fix(ext/node): alias shake-128
and shake-256
hash algorithms ( #28451 )
...
Fixes #28442
---------
Signed-off-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2025-04-10 07:58:44 +00:00
Divy Srivastava
561097dd63
fix(ext/node): implement process.loadEnvFile
( #28824 )
...
Fixes https://github.com/denoland/deno/issues/28017
2025-04-10 07:43:29 +00:00
Hajime-san
1513550d66
fix(ext/canvas): handle integer overflow in createImageBitmap
( #28764 )
...
fixes https://github.com/denoland/deno/issues/28732
2025-04-10 11:16:14 +05:30
Yoshiya Hinosawa
cb00561e97
fix(ext/node): support input option in spawnSync ( #28792 )
2025-04-09 13:42:12 +09:00
0hmX
9bc9faff49
fix(ext/node): add support for --no- prefix (allowNegative option) in parseArgs() ( #28811 )
2025-04-09 12:24:02 +09:00
Bartek Iwańczuk
c8291e6926
feat: enable explicit resource management for JavaScript ( #28119 )
...
This commit enabled [explicit resource management]
(https://github.com/tc39/proposal-explicit-resource-management )
proposal for JavaScript code.
This is done by upgrading `deno_ast` to a version that no longer
transpiles TS files with `using` keyword, and instead enables
a V8 flag that provides native support.
Closes https://github.com/denoland/deno/issues/20821
---------
Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2025-04-08 15:12:10 -07:00
Nathan Whitaker
6d33141d8d
fix(node): add reset method to event loop delay histogram ( #28788 )
...
Fixes https://github.com/denoland/deno/issues/28767
Don't love the `RefCell`, but don't really see a (safe) way around it.
2025-04-07 22:05:53 -07:00
Asher Gomez
52d9fc1499
fix(ext/node): use primordials in ext/node/polyfills/path/separator.ts
( #28669 )
2025-04-08 10:42:58 +09:00
Sebastien Guillemot
e2341c7949
fix(ext/node): add createReadStream & createWriteStream methods to the FileHandle class ( #28700 )
...
Co-authored-by: Nikolay Karadzhov <nkaradzhov89@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2025-04-07 17:13:32 +09:00
Asher Gomez
ec8e4af85b
fix(ext/node): use primordials in ext/node/polyfills/path/_win32.ts
( #28668 )
2025-04-07 16:54:54 +09:00
Asher Gomez
0934841fcc
fix(ext/node): use primordials in ext/node/polyfills/path/_posix.ts
( #28665 )
2025-04-07 16:49:52 +09:00
denobot
1086a75cc9
chore: forward v2.2.8 release commit to main ( #28762 )
...
Co-authored-by: dsherret <dsherret@users.noreply.github.com>
2025-04-05 03:09:25 +00:00
Divy Srivastava
88b1f4a29a
chore: upgrade v8 to 135.1.0 ( #28697 )
2025-04-04 18:52:19 +05:30
denobot
08274e0621
chore: forward v2.2.7 release commit to main ( #28746 )
...
This is the release commit being forwarded back to main for 2.2.7
Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2025-04-04 16:14:30 +05:30
snek
ebc4f82eca
feat: v8js metrics ( #28592 )
...
Implement
https://opentelemetry.io/docs/specs/semconv/runtime/v8js-metrics/
2025-04-03 15:18:54 +02:00
Yoshiya Hinosawa
f2d73abdd7
fix(ext/node): better dns.lookup compatibility ( #27936 )
2025-04-02 11:38:07 +09:00
chirsz
1e62ba12bb
fix(ext/webgpu): release current texture of surface after present ( #28691 )
...
Fixes #28207 .
2025-04-01 10:07:28 -04:00
Divy Srivastava
5bc4266101
fix(ext/node): sqlite handle empty blob being NULL ( #28674 )
...
Fixes https://github.com/denoland/deno/issues/28672
2025-04-01 13:50:26 +00:00
Jake Champion
0f40ee7ff4
fix(ext/node): support the optional previousValue
parameter for process.cpuUsage() ( #28550 )
2025-04-01 20:48:09 +09:00
Benjamin Swerdlow
cf4afb9c9c
refactor(ext/node): export GlobalsStorage
( #28683 )
2025-03-31 14:00:05 -04:00
Asher Gomez
3aaa86b5c8
fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_lstat.ts
( #28644 )
...
Towards #24236
2025-03-28 10:52:33 -07:00
Kenta Moriuchi
f2299353a0
fix(webgpu): move isFallbackAdapter
from GPUAdapter
to GPUAdapterInfo
( #28650 )
...
fix #28618
I also fixed `Deno.privateCustomInspect`, which was defined as static
methods of the classes and was not working properly.
2025-03-28 03:08:57 -07:00
Asher Gomez
9a13bafa0e
fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_realpath.ts
( #28652 )
...
Towards #24236
2025-03-28 09:48:19 +01:00
Asher Gomez
512cf558d4
fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_readv.ts
( #28645 )
...
Towards #24236
2025-03-28 09:47:36 +01:00
denobot
a1724f5d5a
chore: forward v2.2.6 release commit to main ( #28657 )
...
This is the release commit being forwarded back to main for 2.2.6
Co-authored-by: littledivy <littledivy@users.noreply.github.com>
2025-03-28 13:32:27 +05:30
Divy Srivastava
66e03a39a3
fix(ext/websocket): cancel in-flight handshake on close() ( #28598 )
...
Fixes https://github.com/denoland/deno/issues/25126
---------
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2025-03-28 03:43:32 +00:00
Yoshiya Hinosawa
6c2f7835c0
fix(ext/node): emit 'close' event on ServerResponse object when client aborted the request ( #28601 )
2025-03-27 10:45:04 +09:00