GeezerVison is showing github.com — v22.6.0 proposal by RafaelGSS · Pull Request #54123 · nodejs/node
Conversation
RafaelGSS
commented
Jul 30, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
2024-08-06, Version 22.6.0 (Current), @RafaelGSS
Experimental TypeScript support via strip types
Node.js introduces the --experimental-strip-types flag for initial TypeScript support.
This feature strips type annotations from .ts files, allowing them to run
without transforming TypeScript-specific syntax. Current limitations include:
- Supports only inline type annotations, not features like
enums or namespaces.
- Requires explicit file extensions in import and require statements.
- Enforces the use of the type keyword for type imports to avoid runtime errors.
- Disabled for TypeScript in node_modules by default.
Thanks Marco Ippolito for working on this.
Experimental Network Inspection Support in Node.js
This update introduces the initial support for network inspection in Node.js.
Currently, this is an experimental feature, so you need to enable it using the --experimental-network-inspection flag.
With this feature enabled, you can inspect network activities occurring within a JavaScript application.
To use network inspection, start your Node.js application with the following command:
$ node --inspect-wait --experimental-network-inspection index.js
Please note that the network inspection capabilities are in active development.
We are actively working on enhancing this feature and will continue to expand its functionality in future updates.
Thanks Kohei Ueno for working on this.
Other Notable Changes
- [
15a94e67b1] - lib,src: drop --experimental-network-imports (Rafael Gonzaga) #53822
- [
68e444d2d8] - (SEMVER-MINOR) http: add diagnostics channel http.client.request.error (Kohei Ueno) #54054
- [
2d982d3dee] - (SEMVER-MINOR) deps: V8: backport 7857eb34db42 (Stephen Belanger) #53997
- [
15816bd0dd] - (SEMVER-MINOR) stream: expose DuplexPair API (Austin Wright) #34111
- [
893c864542] - (SEMVER-MINOR) test_runner: fix support watch with run(), add globPatterns option (Matteo Collina) #53866
- [
048d421ad1] - meta: add jake to collaborators (jakecastelli) #54004
- [
6ad6e01bf3] - (SEMVER-MINOR) test_runner: refactor snapshots to get file from context (Colin Ihrig) #53853
- [
698e44f8e7] - (SEMVER-MINOR) test_runner: add context.filePath (Colin Ihrig) #53853
Commits
- [
063f46dc2a] - assert: use isError instead of instanceof in innerOk (Pietro Marchini) #53980
- [
10bea42f81] - build: update gcovr to 7.2 and codecov config (Benjamin E. Coe) #54019
- [
7c417c6cf4] - build: avoid compiling with VS v17.10 (Hüseyin Açacak) #53863
- [
ee97c045b4] - build: ensure v8_pointer_compression_sandbox is enabled on 64bit (Shelley Vohr) #53884
- [
bfbed0afd5] - build: fix conflict gyp configs (Chengzhong Wu) #53605
- [
0f1fe63e32] - build: trigger coverage ci when updating codecov (Yagiz Nizipli) #53929
- [
ad62b945f0] - build: update codecov coverage build count (Yagiz Nizipli) #53929
- [
3c40868fd3] - build: disable test-asan workflow (Michaël Zasso) #53844
- [
2a62d6ca57] - build, tools: drop leading / from r2dir (Richard Lau) #53951
- [
9c7b009f47] - build,tools: simplify upload of shasum signatures (Michaël Zasso) #53892
- [
057bd44f9f] - child_process: fix incomplete prototype pollution hardening (Liran Tal) #53781
- [
66f7c595c7] - cli: document --inspect port 0 behavior (Aviv Keller) #53782
- [
fad3e74b47] - console: fix issues with frozen intrinsics (Vinicius Lourenço) #54070
- [
e685ecd7ae] - deps: update corepack to 0.29.3 (Node.js GitHub Bot) #54072
- [
e5f7250e6d] - deps: update amaro to 0.0.6 (Node.js GitHub Bot) #54199
- [
2c1e9082e8] - deps: update amaro to 0.0.5 (Node.js GitHub Bot) #54199
- [
2d982d3dee] - (SEMVER-MINOR) deps: V8: backport 7857eb34db42 (Stephen Belanger) #53997
- [
1061898462] - deps: update c-ares to v1.32.3 (Node.js GitHub Bot) #54020
- [
f4a7ac5e18] - deps: V8: cherry-pick 35888fee7bba (Joyee Cheung) #53728
- [
1176310226] - deps: add gn build files for ncrypto (Cheng) #53940
- [
7a1d5a4f84] - deps: update c-ares to v1.32.2 (Node.js GitHub Bot) #53865
- [
66f6a2aec9] - deps: V8: cherry-pick 9812cb486e2b (Michaël Zasso) #53966
- [
8e66a18ef0] - deps: start working on ncrypto dep (James M Snell) #53803
- [
c114082b12] - deps: fix include_dirs of nbytes (Cheng) #53862
- [
b7315281be] - doc: move numCPUs require to top of file in cluster CJS example (Alfredo González) #53932
- [
8e7c30c2a4] - doc: update security-release process to automated one (Rafael Gonzaga) #53877
- [
52a4206be2] - doc: fix typo in technical-priorities.md (YoonSoo_Shin) #54094
- [
30e18a04a3] - doc: fix typo in diagnostic tooling support tiers document (Taejin Kim) #54058
- [
58aebfd31e] - doc: move GeoffreyBooth to TSC regular member (Geoffrey Booth) #54047
- [
c1634c7213] - doc: correct typescript stdin support (Marco Ippolito) #54036
- [
64812d5c22] - doc: fix typo in recognizing-contributors (Marco Ippolito) #53990
- [
6b35994b6f] - doc: fix documentation for --run (Aviv Keller) #53976
- [
04d203a233] - doc: update boxstarter README (Aviv Keller) #53785
- [
86fa46db1c] - doc: add info about prefix-only modules to module.builtinModules (Grigory) #53954
- [
defdc3c568] - doc: remove scroll-behavior: smooth; (Cloyd Lau) #53942
- [
e907236dd9] - doc: move --test-coverage-{ex,in}clude to proper location (Colin Ihrig) #53926
- [
8bf9960b98] - doc: add --experimental-sqlite note (Aviv Keller) #53907
- [
d7615004d8] - doc: update api_assets README for new files (Aviv Keller) #53676
- [
63cf715aa0] - doc: add MattiasBuelens to collaborators (Mattias Buelens) #53895
- [
5b8dd78112] - doc: fix release date for 22.5.0 (Antoine du Hamel) #53889
- [
dd2c0f349a] - doc: fix casing of GitHub handle for two collaborators (Antoine du Hamel) #53857
- [
b47c2308e1] - doc: update release-post nodejs.org script (Rafael Gonzaga) #53762
- [
88539527d5] - doc, test: tracing channel hasSubscribers getter (Thomas Hunter II) #52908
- [
44a08f75b0] - doc,tools: enforce use of node: prefix (Antoine du Hamel) #53950
- [
87bab76df2] - doc,tty: add documentation for ReadStream and WriteStream (jakecastelli) #53567
- [
dcca9ba560] - esm: refactor get_format (Antoine du Hamel) #53872
- [
5e03c17aae] - fs: optimize fs.cpSync js calls (Yagiz Nizipli) #53614
- [
e0054ee0a7] - fs: ensure consistency for mkdtemp in both fs and fs/promises (YieldRay) #53776
- [
8086337ea9] - fs: remove unnecessary option argument validation (Jonas) #53861
- [
b377b93a3f] - fs: correctly pass dirent to exclude withFileTypes (RedYetiDev) #53823
- [
68e444d2d8] - (SEMVER-MINOR) http: add diagnostics channel http.client.request.error (Kohei Ueno) #54054
- [
de1fbc292f] - (SEMVER-MINOR) inspector: add initial support for network inspection (Kohei Ueno) #53593
- [
744df0be24] - lib: support dynamic trace events on debugWithTimer (Vinicius Lourenço) #53913
- [
546dab29c1] - lib: optimize copyError with ObjectAssign in primordials (HEESEUNG) #53999
- [
494df9835a] - lib: improve cluster/primary code (Ehsan Khakifirooz) #53756
- [
03f353293b] - lib: improve error message when index not found on cjs (Vinicius Lourenço) #53859
- [
d8375d6236] - lib: decorate async stack trace in source maps (Chengzhong Wu) #53860
- [
15a94e67b1] - lib,src: drop --experimental-network-imports (Rafael Gonzaga) #53822
- [
a6eedc401d] - meta: add sqlite to js subsystems (Alex Yang) #53911
- [
21098856de] - meta: move tsc member to emeritus (Michael Dawson) #54029
- [
048d421ad1] - meta: add jake to collaborators (jakecastelli) #54004
- [
20a8c96c41] - meta: remove license for hljs (Aviv Keller) #53970
- [
2fd4ac4859] - meta: make more bug-report information required (Aviv Keller) #53718
- [
b312ec0b0c] - meta: reword linter messages (Aviv Keller) #53949
- [
d2526126a9] - meta: store actions secrets in environment (Aviv Keller) #53930
- [
1688f00dce] - meta: move anonrig to tsc voting members (Yagiz Nizipli) #53888
- [
c20e8418de] - module: fix strip-types interaction with detect-module (Marco Ippolito) #54164
- [
ab1f0b415f] - module: fix extensionless typescript in cjs loader (Marco Ippolito) #54062
- [
92439fc160] - (SEMVER-MINOR) module: add --experimental-strip-types (Marco Ippolito) #53725
- [
f755d31bec] - node-api: add property keys benchmark (Chengzhong Wu) #54012
- [
7382eefae5] - node-api: rename nogc to basic (Gabriel Schulhof) #53830
- [
2c4470625b] - process: unify experimental warning messages (Aviv Keller) #53704
- [
98a7ad2e0d] - src: expose LookupAndCompile with parameters (Shelley Vohr) #53886
- [
dd3c66be0a] - src: simplify AESCipherTraits::AdditionalConfig (Tobias Nießen) #53890
- [
ee82f224ff] - src: remove redundant RsaPointer (use RSAPointer) (James M Snell) #54003
- [
2d77bd2929] - src: fix -Wshadow warning (Shelley Vohr) #53885
- [
bd4a9ffe8c] - src: start using ncrypto for CSPRNG calls (James M Snell) #53984
- [
3fdcf7a47d] - src: return undefined if no rows are returned in SQLite (Deokjin Kim) #53981
- [
ca6854443d] - src: fix slice of slice of file-backed Blob (Josh Lee) #53972
- [
c457f9ed5a] - src: cache invariant code motion (Rafael Gonzaga) #53879
- [
fd0da6c2cf] - src: avoid strcmp in ImportJWKAsymmetricKey (Tobias Nießen) #53813
- [
fbf74bcf99] - src: switch from ToLocalChecked to ToLocal in node_webstorage (James M Snell) #53959
- [
04bb6778e5] - src: move ToNamespacedPath call of webstorage (Yagiz Nizipli) #53875
- [
9ffaf763e9] - src: use Maybe<void> in SecureContext (Tobias Nießen) #53883
- [
a94c3ae06f] - src: replace ToLocalChecked uses with ToLocal in node-file (James M Snell) #53869
- [
55461be05f] - src: refactor webstorage implementation (Yagiz Nizipli) #53876
- [
c53cf449a6] - src: fix env-file flag to ignore spaces before quotes (Mohit Malhotra) #53786
- [
bac3a485f6] - src: fix potential segmentation fault in SQLite (Tobias Nießen) #53850
- [
df5083e5f9] - src,lib: expose getCategoryEnabledBuffer to use on node.http (Vinicius Lourenço) #53602
- [
8664b9ad60] - src,test: disallow unsafe integer coercion in SQLite (Tobias Nießen) #53851
- [
15816bd0dd] - (SEMVER-MINOR) stream: expose DuplexPair API (Austin Wright) #34111
- [
718f6bc78c] - test: do not swallow uncaughtException errors in exit code tests (Meghan Denny) #54039
- [
c6656c9251] - test: move shared module to test/common (Rich Trott) #54042
- [
e471e32d46] - test: skip sea tests with more accurate available disk space estimation (Chengzhong Wu) #53996
- [
61971ec929] - test: remove unnecessary console log (KAYYY) #53812
- [
1344bd2d6f] - test: add comments and rename test for timer robustness (Rich Trott) #54008
- [
da3573409c] - test: add test for one arg timers to increase coverage (Carlos Espa) #54007
- [
fc67abd97e] - test: mark 'test/parallel/test-sqlite.js' as flaky (Colin Ihrig) #54031
- [
aa0ac3b57c] - test: mark test-pipe-file-to-http as flaky (jakecastelli) #53751
- [
52bc8ec360] - test: compare paths on Windows without considering case (Early Riser) #53993
- [
7e8a609579] - test: skip sea tests in large debug builds (Chengzhong Wu) #53918
- [
30a94ca0c4] - test: skip --title check on IBM i (Abdirahim Musse) #53952
- [
5cea7ed706] - test: reduce flakiness of test-assert-esm-cjs-message-verify (Antoine du Hamel) #53967
- [
58cb0dd8a6] - test: use PYTHON executable from env in assertSnapshot (Antoine du Hamel) #53938
- [
c247582591] - test: deflake test-blob-file-backed (Luigi Pinca) #53920
- [
3999021653] - test_runner: switched to internal readline interface (Emil Tayeb) #54000
- [
3fb97a90ee] - test_runner: remove redundant bootstrap boolean (Colin Ihrig) #54013
- [
edd80e2bdc] - test_runner: do not throw on mocked clearTimeout() (Aksinya Bykova) #54005
- [
893c864542] - (SEMVER-MINOR) test_runner: fix support watch with run(), add globPatterns option (Matteo Collina) #53866
- [
4887213f2e] - test_runner: added colors to dot reporter (Giovanni) #53450
- [
c4848c53e6] - test_runner: cleanup global event listeners after run (Eddie Abbondanzio) #53878
- [
876e7b3226] - test_runner: refactor coverage to pass in config options (Colin Ihrig) #53931
- [
f45edb4b5e] - test_runner: refactor and simplify internals (Colin Ihrig) #53921
- [
6ad6e01bf3] - (SEMVER-MINOR) test_runner: refactor snapshots to get file from context (Colin Ihrig) #53853
- [
698e44f8e7] - (SEMVER-MINOR) test_runner: add context.filePath (Colin Ihrig) #53853
- [
97da7ca11b] - test_runner: consolidate option parsing (Colin Ihrig) #53849
- [
43afcbf9dd] - tools: fix SLACK_TITLE in invalid commit workflow (Antoine du Hamel) #53912
- [
eed0963391] - typings: apply lint (1ilsang) #54065
- [
e8ea49b256] - typings: fix typo on quic onSessionDatagram (1ilsang) #54064
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
lirantal, MCprotein, mfdebian, bricss, cola119, and imranbarbhuiya reacted with hooray emoji
Instead call the C++ code every time we need to check for a
trace category, now we get the C++ pointer to the flag that
holds the info if the trace is enabled and return this pointer
inside a buffer that we can use to call/check if the value is
enabled. With this change, no C++ call is made and the access
to the info happens in JS side, which has no perf penalty.
PR-URL: #53602
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
This commit consolidates all option parsing for the test runner
in the parseCommandLine() internal helper function. The exception
is a couple of temporary flags used for feature gating which
will eventually become no-ops. This consolidation is prep work
for supporting running test files in the test runner process.
PR-URL: #53849
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
The Local<Value> returned from ColumnToValue() and ColumnNameToValue()
may be empty (if a JavaScript exception is pending), in which case a
segmentation fault may occur at the call sites, which do not check if
the Local<Value> is empty. Fix this bug returning early if an exception
is pending (as indicated by the Local being empty).
In the long term, these functions should return MaybeLocal instead of
Local, but this patch is supposed to be a minimal bug fix only.
PR-URL: #53850
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
This commit adds a filePath getter to the TestContext and
SuiteContext classes. This allows a context to be mapped back to
the original test file that created it, even if it was imported
from another file. This is useful for mapping features like test
snapshots to the correct test file. This is also prep work for
supporting running test files in the test runner process.
PR-URL: #53853
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
This commit refactors the internals of snapshot tests to get the
name of the test file from the test context instead of passing
it to the SnapshotManager constructor. This is prep work for
supporting running test files in the test runner process.
PR-URL: #53853
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Start moving src/crypto functionality out to a separate dep that
can be shared with other projects that need to emulate Node.js
crypto behavior.
PR-URL: #53803
Reviewed-By: Yagiz Nizipli <[email protected]>
With recent versions of V8, it is not necessary to use Maybe<bool>
anymore. This changes member functions of SecureContext to use
Maybe<void> instead.
PR-URL: #53883
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Notable changes:
deps:
* (SEMVER-MINOR) V8: backport 7857eb34db42 (Stephen Belanger) #53997
http:
* (SEMVER-MINOR) add diagnostics channel `http.client.request.error` (Kohei Ueno) #54054
inspector:
* (SEMVER-MINOR) add initial support for network inspection (Kohei Ueno) #53593
lib,src:
* drop --experimental-network-imports (Rafael Gonzaga) #53822
meta:
* add jake to collaborators (jakecastelli) #54004
module:
* (SEMVER-MINOR) add --experimental-strip-types (Marco Ippolito) #53725
stream:
* (SEMVER-MINOR) expose DuplexPair API (Austin Wright) #34111
test_runner:
* (SEMVER-MINOR) fix support watch with run(), add globPatterns option (Matteo Collina) #53866
* (SEMVER-MINOR) refactor snapshots to get file from context (Colin Ihrig) #53853
* (SEMVER-MINOR) add context.filePath (Colin Ihrig) #53853
PR-URL: #54123
RafaelGSS
added
request-ci
Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review.
release
Issues and PRs related to Node.js releases.
labels
Aug 5, 2024
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
RafaelGSS
added a commit
that referenced
this pull request
Aug 6, 2024
Notable changes:
deps:
* (SEMVER-MINOR) V8: backport 7857eb34db42 (Stephen Belanger) #53997
http:
* (SEMVER-MINOR) add diagnostics channel `http.client.request.error` (Kohei Ueno) #54054
inspector:
* (SEMVER-MINOR) add initial support for network inspection (Kohei Ueno) #53593
lib,src:
* drop --experimental-network-imports (Rafael Gonzaga) #53822
meta:
* add jake to collaborators (jakecastelli) #54004
module:
* (SEMVER-MINOR) add --experimental-strip-types (Marco Ippolito) #53725
stream:
* (SEMVER-MINOR) expose DuplexPair API (Austin Wright) #34111
test_runner:
* (SEMVER-MINOR) fix support watch with run(), add globPatterns option (Matteo Collina) #53866
* (SEMVER-MINOR) refactor snapshots to get file from context (Colin Ihrig) #53853
* (SEMVER-MINOR) add context.filePath (Colin Ihrig) #53853
PR-URL: #54123
Reviewers
mcollina
mcollina approved these changes
aduh95
aduh95 approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
needs-ci
PRs that need a full CI run.
release
Issues and PRs related to Node.js releases.
v22.x
Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|