Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v20.13.0 proposal #52793

Merged
merged 250 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
72aabe1
perf_hooks: reduce overhead of createHistogram
H4ad Oct 6, 2023
32014f5
test: avoid v8 deadcode on performance function
H4ad Oct 18, 2023
b9eb003
test: skip test for dynamically linked OpenSSL
richardlau Apr 15, 2024
ecadd63
deps: V8: remove references to non-existent flags
richardlau Mar 28, 2024
d5ac979
test_runner: format coverage report for tap reporter
pulkit-30 Dec 15, 2023
c530520
fs: add stacktrace to fs/promises
sapphi-red Oct 26, 2023
297368a
build: fix arm64 cross-compilation
targos Dec 27, 2023
f1b7bda
deps: update undici to 6.2.1
nodejs-github-bot Dec 24, 2023
8d20b64
Revert "stream: fix cloned webstreams not being unref'd"
mcollina Jan 16, 2024
0a08c4a
deps: update undici to 6.3.0
nodejs-github-bot Jan 19, 2024
dde9e08
deps: update ngtcp2 to 1.1.0
nodejs-github-bot Jan 22, 2024
7a1e321
deps: update undici to 6.4.0
nodejs-github-bot Feb 1, 2024
256bcba
deps: update undici to 6.6.0
nodejs-github-bot Feb 3, 2024
503c034
deps: update undici to 6.6.2
nodejs-github-bot Feb 15, 2024
fc9ba17
test_runner: add `test:complete` event to reflect execution order
MoLow Mar 1, 2024
29f09f0
report: add `--report-exclude-network` option
Ethan-Arrowood Mar 1, 2024
956ee74
test_runner: add support for null and date value output
malthe Mar 2, 2024
d30cccd
v8: implement v8.queryObjects() for memory leak regression testing
joyeecheung Mar 2, 2024
b3a11b5
src: preload function for Environment
zcbenz Mar 4, 2024
5e78a20
doc: deprecate fs.Stats public constructor
marco-ippolito Mar 5, 2024
53ff3e5
doc: deprecate hmac public constructor
marco-ippolito Mar 6, 2024
b94d119
diagnostics_channel: early-exit tracing channel trace methods
Mar 7, 2024
807c89c
doc: add UlisesGascon as a collaborator
UlisesGascon Mar 6, 2024
912145f
doc: clarify what moderation issues are for
aduh95 Mar 8, 2024
3121949
meta: pass Codecov upload token to codecov action
targos Mar 8, 2024
5cc5400
test: un-set test-emit-after-on-destroyed as flaky
abmusse Mar 8, 2024
f9d9567
node-api: make tsfn accept napi_finalize once more
gabrielschulhof Mar 9, 2024
a223ca4
test_runner: run before hook immediately if test started
MoLow Mar 9, 2024
c00715c
benchmark: add style-text benchmark
RafaelGSS Mar 9, 2024
01aaddd
doc: document that `const c2 = vm.createContext(c1); c1 === c2` is true
DanKaplanSES Mar 9, 2024
18838f2
deps: update simdutf to 4.0.9
nodejs-github-bot Mar 9, 2024
a4cbb61
test_runner: abort unfinished tests on async error
cjihrig Mar 9, 2024
ae7a11c
doc: add some commonly used lables up gront
mhdawson Mar 9, 2024
508e968
watch: batch file restarts
MoLow Mar 9, 2024
5fcc1d3
module: refactor ESM loader initialization and entry point handling
joyeecheung Mar 2, 2024
e216192
src: refactor out FormatErrorMessage for error formatting
joyeecheung Mar 5, 2024
07322b4
src: fix reading empty string views in Blob[De]serializer
joyeecheung Mar 10, 2024
590decf
test_runner: avoid overwriting root start time
cjihrig Mar 11, 2024
4b8b92f
tools: automate gyp-next update
marco-ippolito Mar 11, 2024
1f12534
tools: install manpage to share/man for FreeBSD
sunpoet Mar 11, 2024
e161e62
src: use dedicated routine to compile function for builtin CJS loader
joyeecheung Mar 11, 2024
d891275
deps: update ada to 2.7.7
nodejs-github-bot Mar 12, 2024
882a64e
module: fix detect-module not retrying as esm for cjs-only errors
GeoffreyBooth Mar 12, 2024
e64a25a
test_runner: handle undefined test locations
cjihrig Mar 12, 2024
f551289
deps: update corepack to 0.26.0
nodejs-github-bot Mar 12, 2024
7f575c8
src: add uv_get_available_memory to report and process
theanarkh Mar 13, 2024
a6473a8
doc: remove ArrayBuffer from crypto.hash() data parameter type
fengmk2 Mar 13, 2024
34667c0
fs: validate file mode from cpp
anonrig Mar 14, 2024
33ad86c
fs: validate fd from cpp on `close`
anonrig Mar 12, 2024
51d7cd5
fs: validate fd from cpp on `fchown`
anonrig Mar 12, 2024
ea4905c
lib: fix listen with handle in cluster worker
theanarkh Mar 14, 2024
f2c7408
src: return a number from process.constrainedMemory() constantly
legendecas Mar 11, 2024
0ef2708
doc: mention NodeSource in RafaelGSS steward list
RafaelGSS Mar 14, 2024
48cbd5f
doc: state that removing npm is a non-goal
GeoffreyBooth Mar 15, 2024
5f1e7a0
tools: update gyp-next to 0.16.2
nodejs-github-bot Mar 15, 2024
61e7ae0
test_runner: use source maps when reporting coverage
MoLow Mar 15, 2024
fb100a2
tools: remove gyp-next .github folder
marco-ippolito Mar 15, 2024
2d6b199
util: support array of formats in util.styleText
marco-ippolito Mar 15, 2024
5a92223
watch: mark as stable
MoLow Mar 15, 2024
6930205
events: remove abort listener from signal in `on`
nbbeeken Mar 15, 2024
93bddb5
build,tools: add test-ubsan ci
RafaelGSS Mar 15, 2024
5e69673
events: extract addAbortListener for safe internal use
atlowChemi Mar 14, 2024
9af15cf
child_process: use internal addAbortListener
atlowChemi Mar 14, 2024
27d3644
dgram: use internal addAbortListener
atlowChemi Mar 14, 2024
37abad8
net: use internal addAbortListener
atlowChemi Mar 14, 2024
fb601c3
readline: use internal addAbortListener
atlowChemi Mar 14, 2024
9f88736
http2: use internal addAbortListener
atlowChemi Mar 14, 2024
8442457
stream: use internal addAbortListener
atlowChemi Mar 14, 2024
68187c4
test_runner: use internal addAbortListener
atlowChemi Mar 14, 2024
8ba6f9b
watch: use internal addAbortListener
atlowChemi Mar 14, 2024
f8362b0
doc: update collaborator email
ruyadorno Mar 16, 2024
73b38bf
test_runner: remove redundant report call
cjihrig Mar 16, 2024
af7c55f
doc: remove ableist language from crypto
10xLaCroixDrinker Mar 17, 2024
f8209ff
stream: add `new` when constructing `ERR_MULTIPLE_CALLBACK`
haze Mar 18, 2024
b33eff8
src: add C++ ProcessEmitWarningSync()
joyeecheung Mar 5, 2024
0a9910c
fs: fix edge case in readFileSync utf8 fast path
richardlau Mar 18, 2024
8d7d6ef
doc: update pnpm link
SuperchupuDev Mar 18, 2024
fd1489a
test_runner: skip each hooks for skipped tests
cjihrig Mar 18, 2024
d406976
tools: update github_reporter to 1.7.0
nodejs-github-bot Mar 19, 2024
e4981b3
test: add test for using `--print` with promises
aduh95 Mar 19, 2024
d7bfb4e
test: reduce flakiness of test-runner-output.mjs
cjihrig Mar 19, 2024
d6f9ca3
deps: update zlib to 1.3.0.1-motley-24342f6
nodejs-github-bot Mar 19, 2024
d33fc36
lib: make sure clear the old timer in http server
theanarkh Mar 19, 2024
bda3cde
doc: optimize the doc about Unix abstract socket
theanarkh Mar 19, 2024
41646d9
test_runner: add suite()
cjihrig Mar 19, 2024
d5d6e04
lib: emit listening event once when call listen twice
theanarkh Mar 19, 2024
c5fd193
fs: refactor maybeCallback function
anonrig Mar 19, 2024
caec996
test_runner: emit diagnostics when watch mode drains
MoLow Mar 19, 2024
f5241e2
doc: add spec for contains module syntax
GeoffreyBooth Mar 20, 2024
0b853a7
stream: support typed arrays
IlyasShabi Mar 20, 2024
3b41da9
deps: update simdutf to 5.0.0
lemire Mar 20, 2024
6da446d
test: add `spawnSyncAndAssert` util
aduh95 Mar 20, 2024
cef4b7e
tools: sync ubsan workflow with asan
targos Mar 21, 2024
5bce596
doc: fix typos in maintaining-dependencies.md
RoboSchmied Mar 21, 2024
e5521b5
lib: fix type error for _refreshLine
JacksonTian Mar 21, 2024
a6eede3
crypto: fix `input` validation in `crypto.hash`
aduh95 Mar 21, 2024
dd1f761
test: add missing cctest/test_path.cc
anonrig Mar 21, 2024
2449d26
src: fix move after use reported by coverity
mhdawson Mar 18, 2024
4f19203
doc: clarify what is supported in NODE_OPTIONS
mhdawson Mar 13, 2024
72bd2b0
doc: fix `--env-file` docs for valid quotes for defining values
dygabo Mar 23, 2024
8a0b721
test: fix incorrect test fixture
cjihrig Mar 22, 2024
9771f41
doc: move gabrielschulhof to TSC emeritus
gabrielschulhof Mar 25, 2024
8ba308a
doc: http event order correction
wh0 Mar 25, 2024
07e4a42
test_runner: simplify test start time tracking
cjihrig Mar 21, 2024
5cd3df8
test_runner: simplify test end time tracking
cjihrig Mar 21, 2024
a5204eb
tools: fix error reported by coverity in js2c.cc
mhdawson Mar 18, 2024
3d67b6b
doc: add mold to speeding up section
congzhangzh Mar 25, 2024
bf0ed95
doc: edit `ChildProcess` `'message'` event docs
theanarkh Mar 26, 2024
a1dd92c
test: add test for skip+todo combinations
cjihrig Mar 24, 2024
65618a3
doc: add section explaining todo tests
cjihrig Mar 24, 2024
2abaea3
doc: move TSC members from regular to emeritus
mhdawson Mar 27, 2024
bd3c6a2
deps: update zlib to 1.3.0.1-motley-24c07df
nodejs-github-bot Mar 27, 2024
b36fea0
tools: update lint-md-dependencies to rollup@4.13.0
nodejs-github-bot Mar 27, 2024
c39f15c
tools: install npm PowerShell scripts on Windows
lukekarrys Mar 27, 2024
2509f3b
doc: fix arrow vertical alignment in HTML version
akashyeole Mar 27, 2024
923a77c
deps: update undici to 6.10.2
nodejs-github-bot Mar 29, 2024
ea8e72e
benchmark: add toNamespacedPath bench
RafaelGSS Mar 29, 2024
35588cf
test_runner: run afterEach hooks in correct order
cjihrig Mar 30, 2024
c7238d0
tools: allow local updates for llhttp
ShogunPanda Mar 30, 2024
c2def7d
doc: add release key for marco-ippolito
marco-ippolito Mar 28, 2024
cc67720
doc: update release gpg keyserver
marco-ippolito Mar 28, 2024
f3e8d11
doc: fix email pattern to be wrapped with `<<` instead of single `<`
rluvaton Mar 31, 2024
379535a
test_runner: disable highWatermark on TestsStream
cjihrig Apr 2, 2024
34ab1a3
test_runner: hide new line when no error in spec reporter
MoLow Apr 2, 2024
481420f
meta: move one or more collaborators to emeritus
nodejs-github-bot Apr 3, 2024
197b61f
crypto: validate RSA-PSS saltLength in subtle.sign and subtle.verify
panva Apr 3, 2024
b3dfc62
tools: use Python 3.12 in GitHub Actions workflows
targos Apr 3, 2024
5258b54
deps: update undici to 6.11.1
nodejs-github-bot Apr 2, 2024
5f40fe0
meta: bump codecov/codecov-action from 4.1.0 to 4.1.1
dependabot[bot] Apr 3, 2024
df33099
meta: bump actions/setup-python from 5.0.0 to 5.1.0
dependabot[bot] Apr 3, 2024
542aaf9
meta: bump actions/cache from 4.0.1 to 4.0.2
dependabot[bot] Apr 3, 2024
2760db7
meta: bump github/codeql-action from 3.24.6 to 3.24.9
dependabot[bot] Apr 3, 2024
4dafd3e
meta: bump rtCamp/action-slack-notify from 2.2.1 to 2.3.0
dependabot[bot] Apr 3, 2024
22b7167
meta: bump actions/download-artifact from 4.1.3 to 4.1.4
dependabot[bot] Apr 3, 2024
a86705c
doc: replace "below" with "following"
Trott Apr 3, 2024
8ee20d8
doc: add tips about vcpkg cause build faild on windows
congzhangzh Apr 3, 2024
049cca4
Revert "tools: run `build-windows` workflow only on source changes"
targos Apr 4, 2024
1a843f7
doc: add missing space
AugustinMauroy Apr 4, 2024
cce861e
deps: update c-ares to 1.28.1
nodejs-github-bot Apr 4, 2024
893b5aa
tools: update lint-md-dependencies to rollup@4.13.2
nodejs-github-bot Apr 4, 2024
0f690f0
test_runner: fix recursive run
MoLow Apr 4, 2024
7e35a16
src: stop using `v8::BackingStore::Reallocate`
targos Apr 5, 2024
7bfb0b4
events: rename high & low watermark for consistency
atlowChemi Mar 14, 2024
c55a3be
doc: document missing options of events.on
atlowChemi Mar 14, 2024
6f31cc8
doc: add Rafael to sec release stewards
RafaelGSS Apr 5, 2024
09bd367
stream: make Duplex inherit destroy from Writable
lpinca Apr 5, 2024
e3e0c68
tools: run test-ubsan on ubuntu-latest
targos Apr 5, 2024
ee11b53
lib: .load .save add proper error message when no file passed
thomas-mauran Apr 6, 2024
edecd46
fs,permission: make handling of buffers consistent
tniessen Apr 6, 2024
7508d48
benchmark: conditionally use spawn with taskset for cpu pinning
thisalihassan Apr 6, 2024
bfd4c78
doc: use consistent plural form of "index"
Trott Apr 7, 2024
3ad62f1
doc: reserve 125 for Electron 31
codebytere Apr 7, 2024
392a0d3
doc: update the location of `build_with_cmake`
emmanuel-ferdman Apr 7, 2024
7f3b7fd
watch: fix some node argument not passed to watched process
rluvaton Apr 7, 2024
0a103e9
deps: upgrade npm to 10.5.1
npm-cli-bot Apr 7, 2024
739958e
crypto: reject Ed25519/Ed448 in Sign/Verify prototypes
panva Apr 8, 2024
f71a777
tools: update Ruff to v0.3.4
targos Apr 8, 2024
e010159
http2: fix h2-over-h2 connection proxying
pimterry Apr 8, 2024
1b4d281
src: update branch name in node_revert.h
tniessen Apr 8, 2024
0f784c9
crypto: make timingSafeEqual faster for Uint8Array
tniessen Apr 8, 2024
606c183
deps: update simdutf to 5.2.3
anonrig Apr 4, 2024
e67bc34
buffer: use simdutf for `atob` implementation
anonrig Apr 4, 2024
f3f67ff
doc: call out http(s).globalAgent default
fahrradflucht Apr 8, 2024
b2a3dce
tools: update lint-md-dependencies to rollup@4.14.0
nodejs-github-bot Apr 9, 2024
b9bdb94
doc: update `process.execArg` example to be more useful
JakobJingleheimer Apr 9, 2024
03e05b0
crypto: deprecate implicitly shortened GCM tags
tniessen Apr 10, 2024
74a171f
tools: update stale bot messaging
wesleytodd Apr 10, 2024
93d6840
doc: correct naming convention in C++ style guide
VoltrexKeyva Apr 10, 2024
55a3fbc
tools: change inactive limit to 12 months
anonrig Apr 10, 2024
f8ad300
benchmark: add AbortSignal.abort benchmarks
rluvaton Apr 7, 2024
375c3db
test: fix Windows compiler warnings in overlapped-checker
targos Apr 10, 2024
e2ea984
doc: add Rafael to steward list
RafaelGSS Apr 10, 2024
e8cb29d
doc: accommodate upcoming stricter .md linting
Trott Apr 10, 2024
88adbd0
doc: remove Internet Explorer mention in BUILDING.md
Trott Apr 10, 2024
17d5ba9
doc: add lint-js-fix into BUILDING.md
jakecastelli Apr 10, 2024
5b758b9
test: simplify ASan build checks
targos Apr 11, 2024
9497097
test_runner: fix clearing final timeout in own callback
Benricheson101 Apr 2, 2024
1f7a28c
test: fix watch test with require not testing pid
rluvaton Apr 11, 2024
328bded
buffer: improve `btoa` performance
anonrig Apr 11, 2024
64c2c2a
lib: replace string prototype usage with alternatives
RedYetiDev Apr 11, 2024
0ec4d9d
crypto: enable NODE_EXTRA_CA_CERTS with BoringSSL
codebytere Apr 11, 2024
ecc180f
deps: upgrade npm to 10.5.2
npm-cli-bot Apr 12, 2024
1b2aff7
buffer: improve `base64` and `base64url` performance
anonrig Apr 12, 2024
18ae7a4
lib: refactor lazy loading of undici for fetch method
Apr 12, 2024
8464c02
tools: add a linter for README lists
aduh95 Apr 13, 2024
d34fd21
deps: update simdutf to 5.2.4
nodejs-github-bot Apr 13, 2024
1c1a693
buffer: add missing ARG_TYPE(ArrayBuffer) for isUtf8
Apr 13, 2024
0300598
benchmark: add ipc support to spawn stdio config
thisalihassan Apr 10, 2024
2274d0c
benchmark: inherit stdio/stderr instead of pipe
thisalihassan Apr 10, 2024
befb90d
meta: move one or more collaborators to emeritus
nodejs-github-bot Apr 14, 2024
8fd8130
lib, doc: rename readme.md to README.md
RedYetiDev Apr 14, 2024
c681336
tools: update minimatch index path
marco-ippolito Apr 15, 2024
4ad159b
test: write tests for assertIsArray http2 util
sinansonmez Apr 15, 2024
29d2011
test_runner: better error handing for test hook
himself65 Apr 15, 2024
b4d7032
tools: use stylistic ESLint plugin for formatting
targos Apr 15, 2024
0a225a4
node-api: copy external type tags when they are set
Koromix Apr 15, 2024
a8bc40f
doc: update test runner coverage limitations
MoLow Apr 15, 2024
7c349d7
tools: update lint-md-dependencies to rollup@4.14.2 vfile-reporter@8.1.1
nodejs-github-bot Apr 16, 2024
b42a473
deps: update minimatch to 9.0.4
nodejs-github-bot Apr 16, 2024
7e5bbee
deps: update nghttp2 to 1.61.0
nodejs-github-bot Apr 16, 2024
b05e639
src: fix loadEnvFile ENOENT error
fahrradflucht Apr 17, 2024
27491e5
src: remove regex usage for env file parsing
IlyasShabi Apr 17, 2024
6e85bc4
build: temporary disable ubsan
RafaelGSS Apr 17, 2024
d116fa1
net: add CLI option for autoSelectFamilyAttemptTimeout
ShogunPanda Apr 17, 2024
c0c60d1
tools: fix heading spaces for osx-entitlements.plist
JacksonTian Apr 17, 2024
b6cb74d
test: split wasi poll test for windows
huseyinacacak-janea Apr 17, 2024
4acca8e
dns: add order option and support ipv6first
ShogunPanda Apr 17, 2024
4ed55bf
doc: fix issue detected in markdown lint update
Trott Apr 17, 2024
6fdd748
benchmark: reduce the buffer size for blob
debadree25 Apr 17, 2024
9c330b6
deps: update zlib to 1.3.0.1-motley-7d77fb7
nodejs-github-bot Apr 17, 2024
c871fad
test: fix test-tls-ticket-cluster.js
huseyinacacak-janea Apr 18, 2024
6da558a
test: ensure that all worker servers are ready
lpinca Apr 19, 2024
e7d0d80
fs: fixes recursive fs.watch crash on Linux when deleting files
mcollina Apr 19, 2024
c96f104
deps: update undici to 6.13.0
nodejs-github-bot Apr 19, 2024
9cf47bb
tools: update lint-md-dependencies
Trott Apr 19, 2024
4d051ba
doc: add RedYetiDev to triage team
RedYetiDev Apr 20, 2024
a4847c4
crypto: simplify assertions in Safe*Print
davidben Apr 20, 2024
acd7758
lib: use predefined variable instead of bit operation
deokjinkim Apr 20, 2024
b49464b
doc: correct stream.finished changes
climba03003 Apr 20, 2024
a135027
deps: update icu to 75.1
nodejs-github-bot Apr 21, 2024
7054669
deps: update ada to 2.7.8
nodejs-github-bot Apr 14, 2024
5df34c7
doc: sort options alphabetically
lpinca Apr 21, 2024
69c21a6
doc: replace U+00A0 with U+0020
lpinca Apr 21, 2024
a905eaa
doc: correct unsafe URL example in http docs
mlegenhausen Apr 21, 2024
02a83d8
doc: add info on contributor spotlight program
mhdawson Apr 19, 2024
ca5b827
fs: fix read / readSync positional offset types
ruyadorno Apr 22, 2024
d7434fe
doc: deprecate --experimental-policy
RafaelGSS Apr 19, 2024
bfa4986
deps: update corepack to 0.28.0
nodejs-github-bot Apr 23, 2024
5b22fc3
tools: update lint-md-dependencies to rollup@4.15.0
nodejs-github-bot Apr 23, 2024
235ab4f
events,doc: mark CustomEvent as stable
daeyeon Apr 23, 2024
1d37e77
tools: fix invalid escape sequence in mkssldef
targos Apr 23, 2024
d5a316f
doc: run license-builder
github-actions[bot] Apr 24, 2024
26691e6
meta: move one or more collaborators to emeritus
nodejs-github-bot Apr 24, 2024
1e88e04
test: skip test-fs-watch-recursive-delete.js on IBM i
abmusse Apr 24, 2024
6af7b78
src: add `string_view` overload to snapshot FromBlob
addaleax Apr 24, 2024
6826bbf
build: fix arm64 cross-compilation bug on non-arm machines
devraymondsh Apr 24, 2024
4d5ef4f
doc: fix info string causing duplicated code blocks
mleenhardt Apr 24, 2024
722fe64
lib, url: add a `windows` option to path parsing
RedYetiDev Apr 24, 2024
1ec9e58
typings: fix invalid JSDoc declarations
anonrig Apr 24, 2024
bcc06ac
doc: remove relative limitation to pm
RafaelGSS Apr 24, 2024
7d1f304
build: fix headers install for shared mode on Win
segevfiner Mar 30, 2024
7e6d923
src: cast to v8::Value before using v8::EmbedderGraph::V8Node
joyeecheung Apr 25, 2024
20bb165
build,tools,node-api: fix building node-api tests for Windows Debug
vmoroz Apr 26, 2024
a920489
node-api: address coverity report
mhdawson Apr 26, 2024
c925bc1
tools: take co-authors into account in `find-inactive-collaborators`
aduh95 Apr 26, 2024
d4f1803
test: mark test as flaky
mhdawson Apr 26, 2024
3bcd683
http2: fix excessive CPU usage when using `allowHTTP1=true`
eugene1g Apr 28, 2024
a923adf
test: mark `test-error-serdes` as flaky
aduh95 Apr 28, 2024
5abddb4
build: fix typo in node.gyp
targos Apr 29, 2024
0d0efa4
2024-05-07, Version 20.13.0 'Iron' (LTS)
marco-ippolito May 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
137 changes: 70 additions & 67 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const hacks = [
'eslint-plugin-markdown',
'@babel/eslint-parser',
'@babel/plugin-syntax-import-attributes',
'@stylistic/eslint-plugin-js',
];
Module._findPath = (request, paths, isMain) => {
const r = ModuleFindPath(request, paths, isMain);
Expand All @@ -39,7 +40,7 @@ module.exports = {
es2022: true,
},
extends: ['eslint:recommended', 'plugin:jsdoc/recommended'],
plugins: ['jsdoc', 'markdown', 'node-core'],
plugins: ['jsdoc', 'markdown', 'node-core', '@stylistic/js'],
parser: '@babel/eslint-parser',
parserOptions: {
babelOptions: {
Expand Down Expand Up @@ -133,11 +134,7 @@ module.exports = {
// https://eslint.org/docs/rules/
'accessor-pairs': 'error',
'array-callback-return': 'error',
'arrow-parens': 'error',
'arrow-spacing': 'error',
'block-scoped-var': 'error',
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'capitalized-comments': ['error', 'always', {
line: {
// Ignore all lines that have less characters than 20 and all lines that
Expand All @@ -150,49 +147,17 @@ module.exports = {
ignorePattern: '.*',
},
}],
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': 'error',
'comma-style': 'error',
'computed-property-spacing': 'error',
'default-case-last': 'error',
'dot-location': ['error', 'property'],
'dot-notation': 'error',
'eol-last': 'error',
'eqeqeq': ['error', 'smart'],
'func-call-spacing': 'error',
'func-name-matching': 'error',
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
'indent': ['error', 2, {
ArrayExpression: 'first',
CallExpression: { arguments: 'first' },
FunctionDeclaration: { parameters: 'first' },
FunctionExpression: { parameters: 'first' },
MemberExpression: 'off',
ObjectExpression: 'first',
SwitchCase: 1,
}],
'key-spacing': 'error',
'keyword-spacing': 'error',
'linebreak-style': 'error',
'max-len': ['error', {
code: 120,
ignorePattern: '^// Flags:',
ignoreRegExpLiterals: true,
ignoreTemplateLiterals: true,
ignoreUrls: true,
tabWidth: 2,
}],
'new-parens': 'error',
'no-confusing-arrow': 'error',
'no-constant-condition': ['error', { checkLoops: false }],
'no-constructor-return': 'error',
'no-duplicate-imports': 'error',
'no-else-return': 'error',
'no-extra-parens': ['error', 'functions'],
'no-lonely-if': 'error',
'no-mixed-requires': 'error',
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0, maxBOF: 0 }],
'no-new-require': 'error',
'no-path-concat': 'error',
'no-proto': 'error',
Expand Down Expand Up @@ -257,10 +222,8 @@ module.exports = {
},
],
'no-self-compare': 'error',
'no-tabs': 'error',
'no-template-curly-in-string': 'error',
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-undef': ['error', { typeof: true }],
'no-undef-init': 'error',
'no-unused-expressions': ['error', { allowShortCircuit: true }],
Expand All @@ -276,39 +239,11 @@ module.exports = {
'no-useless-return': 'error',
'no-var': 'error',
'no-void': 'error',
'no-whitespace-before-property': 'error',
'object-curly-newline': 'error',
'object-curly-spacing': ['error', 'always'],
'one-var': ['error', { initialized: 'never' }],
'one-var-declaration-per-line': 'error',
'operator-linebreak': ['error', 'after'],
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: 'function', next: 'function' },
],
'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
'prefer-object-has-own': 'error',
'quotes': ['error', 'single', { avoidEscape: true }],
'quote-props': ['error', 'consistent'],
'rest-spread-spacing': 'error',
'semi': 'error',
'semi-spacing': 'error',
'space-before-blocks': ['error', 'always'],
'space-before-function-paren': ['error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
}],
'space-in-parens': 'error',
'space-infix-ops': 'error',
'space-unary-ops': 'error',
'spaced-comment': ['error', 'always', {
'block': { 'balanced': true },
'exceptions': ['-'],
}],
'strict': ['error', 'global'],
'symbol-description': 'error',
'template-curly-spacing': 'error',
'unicode-bom': 'error',
'valid-typeof': ['error', { requireStringLiterals: true }],

Expand All @@ -327,6 +262,74 @@ module.exports = {
'jsdoc/check-tag-names': 'off',
'jsdoc/require-returns': 'off',

// Stylistic rules
'@stylistic/js/arrow-parens': 'error',
'@stylistic/js/arrow-spacing': 'error',
'@stylistic/js/block-spacing': 'error',
'@stylistic/js/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'@stylistic/js/comma-dangle': ['error', 'always-multiline'],
'@stylistic/js/comma-spacing': 'error',
'@stylistic/js/comma-style': 'error',
'@stylistic/js/computed-property-spacing': 'error',
'@stylistic/js/dot-location': ['error', 'property'],
'@stylistic/js/eol-last': 'error',
'@stylistic/js/func-call-spacing': 'error',
'@stylistic/js/indent': ['error', 2, {
ArrayExpression: 'first',
CallExpression: { arguments: 'first' },
FunctionDeclaration: { parameters: 'first' },
FunctionExpression: { parameters: 'first' },
MemberExpression: 'off',
ObjectExpression: 'first',
SwitchCase: 1,
}],
'@stylistic/js/key-spacing': 'error',
'@stylistic/js/keyword-spacing': 'error',
'@stylistic/js/linebreak-style': 'error',
'@stylistic/js/max-len': ['error', {
code: 120,
ignorePattern: '^// Flags:',
ignoreRegExpLiterals: true,
ignoreTemplateLiterals: true,
ignoreUrls: true,
tabWidth: 2,
}],
'@stylistic/js/new-parens': 'error',
'@stylistic/js/no-confusing-arrow': 'error',
'@stylistic/js/no-extra-parens': ['error', 'functions'],
'@stylistic/js/no-multi-spaces': ['error', { ignoreEOLComments: true }],
'@stylistic/js/no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0, maxBOF: 0 }],
'@stylistic/js/no-tabs': 'error',
'@stylistic/js/no-trailing-spaces': 'error',
'@stylistic/js/no-whitespace-before-property': 'error',
'@stylistic/js/object-curly-newline': 'error',
'@stylistic/js/object-curly-spacing': ['error', 'always'],
'@stylistic/js/one-var-declaration-per-line': 'error',
'@stylistic/js/operator-linebreak': ['error', 'after'],
'@stylistic/js/padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: 'function', next: 'function' },
],
'@stylistic/js/quotes': ['error', 'single', { avoidEscape: true }],
'@stylistic/js/quote-props': ['error', 'consistent'],
'@stylistic/js/rest-spread-spacing': 'error',
'@stylistic/js/semi': 'error',
'@stylistic/js/semi-spacing': 'error',
'@stylistic/js/space-before-blocks': ['error', 'always'],
'@stylistic/js/space-before-function-paren': ['error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
}],
'@stylistic/js/space-in-parens': 'error',
'@stylistic/js/space-infix-ops': 'error',
'@stylistic/js/space-unary-ops': 'error',
'@stylistic/js/spaced-comment': ['error', 'always', {
'block': { 'balanced': true },
'exceptions': ['-'],
}],
'@stylistic/js/template-curly-spacing': 'error',

// Custom rules from eslint-plugin-node-core
'node-core/no-unescaped-regexp-dot': 'error',
'node-core/no-duplicate-requires': 'error',
Expand Down
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
/doc/api/packages.md @nodejs/loaders
/lib/internal/bootstrap/realm.js @nodejs/loaders
/lib/internal/modules/* @nodejs/loaders
/lib/internal/process/esm_loader.js @nodejs/loaders
/lib/internal/process/execution.js @nodejs/loaders
/lib/module.js @nodejs/loaders
/src/module_wrap* @nodejs/loaders @nodejs/vm
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ concurrency:
cancel-in-progress: true

env:
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'
FLAKY_TESTS: keep_retrying

permissions:
Expand All @@ -43,7 +43,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
Expand All @@ -69,13 +69,13 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
run: npx envinfo
- name: Download tarball
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85 # v4.1.3
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
name: tarballs
path: tarballs
Expand Down
26 changes: 10 additions & 16 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,28 @@ name: Build Windows

on:
pull_request:
paths:
- lib/**/*.js
- Makefile
- src/**/*.cc
- src/**/*.h
- tools/gyp/**
- .github/workflows/build-windows.yml
paths-ignore:
- README.md
- .github/**
- '!.github/workflows/build-windows.yml'
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- main
- canary
- v[0-9]+.x-staging
- v[0-9]+.x
paths:
- lib/**/*.js
- Makefile
- src/**/*.cc
- src/**/*.h
- tools/gyp/**
- .github/workflows/build-windows.yml
paths-ignore:
- README.md
- .github/**
- '!.github/workflows/build-windows.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'
FLAKY_TESTS: keep_retrying

permissions:
Expand All @@ -48,7 +42,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install deps
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/close-stale-feature-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ env:

WARN_MESSAGE: >
There has been no activity on this feature request for
5 months and it is unlikely to be implemented.
It will be closed 6 months after the last non-automated comment.

5 months. To help maintain relevant open issues, please
add the https://github.com/nodejs/node/labels/never-stale
label or close this issue if it should be closed. If not,
the issue will be automatically closed 6 months after the
last non-automated comment.

For more information on how the project manages
feature requests, please consult the
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/coverage-linux-without-intl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ concurrency:
cancel-in-progress: true

env:
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'
FLAKY_TESTS: keep_retrying

permissions:
Expand All @@ -45,7 +45,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
Expand All @@ -68,6 +68,7 @@ jobs:
- name: Clean tmp
run: rm -rf coverage/tmp && rm -rf out
- name: Upload
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
uses: codecov/codecov-action@c16abc29c95fcf9174b58eb7e1abf4c866893bc8 # v4.1.1
with:
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 4 additions & 3 deletions .github/workflows/coverage-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ concurrency:
cancel-in-progress: true

env:
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'
FLAKY_TESTS: keep_retrying

permissions:
Expand All @@ -45,7 +45,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
Expand All @@ -68,6 +68,7 @@ jobs:
- name: Clean tmp
run: rm -rf coverage/tmp && rm -rf out
- name: Upload
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
uses: codecov/codecov-action@c16abc29c95fcf9174b58eb7e1abf4c866893bc8 # v4.1.1
with:
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 4 additions & 3 deletions .github/workflows/coverage-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ concurrency:
cancel-in-progress: true

env:
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'
FLAKY_TESTS: keep_retrying

permissions:
Expand All @@ -45,7 +45,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install deps
Expand All @@ -67,6 +67,7 @@ jobs:
- name: Clean tmp
run: npx rimraf ./coverage/tmp
- name: Upload
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
uses: codecov/codecov-action@c16abc29c95fcf9174b58eb7e1abf4c866893bc8 # v4.1.1
with:
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
Loading