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

v19.5.0 proposal #46286

Merged
merged 107 commits into from
Jan 24, 2023
Merged
Changes from 1 commit
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
679aae2
deps: upgrade npm to 9.3.0
npm-cli-bot Jan 17, 2023
6cd7057
deps: upgrade npm to 9.3.1
npm-cli-bot Jan 18, 2023
ed69a3a
tools: add `prefer-proto` rule
ljharb Jan 10, 2023
069a30b
http: join authorization headers
marco-ippolito Jan 3, 2023
0985ef8
tools: add `ArrayPrototypeConcat` to the list of primordials to avoid
aduh95 Dec 17, 2022
a266dac
deps: update corepack to 0.15.3
nodejs-github-bot Jan 2, 2023
38dd506
dgram: sync the old handle state to new handle
theanarkh Jan 3, 2023
a936eae
src: speed up process.getActiveResourcesInfo()
RaisinTen Jan 3, 2023
961710b
crypto: add KeyObject Symbol.toStringTag
panva Jan 3, 2023
e90a3a6
tools: fix lint rule recommendation
cjihrig Jan 1, 2023
8684dae
lib: fix incorrect use of console intrinsic
cjihrig Jan 1, 2023
3dcdab3
events: check signal before listener
deokjinkim Jan 4, 2023
bd98e5b
node-api: disambiguate napi_add_finalizer
legendecas Nov 10, 2022
8a8b186
test,esm: validate more edge cases for dynamic imports
aduh95 Jan 4, 2023
1996e61
doc: describe argument of `Symbol.for`
deokjinkim Jan 4, 2023
1b557bb
meta: update comment in `CODEOWNERS` to better reflect current policy
aduh95 Jan 6, 2023
2e8750a
tools: make update-eslint.sh work with npm@9
lpinca Jan 4, 2023
750fcf8
tools: move update-eslint.sh to dep_updaters/
lpinca Jan 4, 2023
e1fd2f2
doc: include updating release optional step
RafaelGSS Jan 6, 2023
fafae59
doc: mention how to run ncu-ci citgm
RafaelGSS Jan 6, 2023
a42fc51
doc: add personal pronouns option
panva Jan 6, 2023
ca8ff08
src: keep PipeWrap::Open function consistent with TCPWrap
theanarkh Jan 6, 2023
82023f2
doc: update output of example in inspector
deokjinkim Jan 6, 2023
76408bc
doc: fix `event.cancelBubble` documentation
deokjinkim Jan 7, 2023
7718e82
doc: abort controller emits error in child process
debadree25 Jan 7, 2023
b002330
doc,crypto: fix WebCryptoAPI import keyData and export return
panva Jan 7, 2023
f4559a1
src: fix typo in node_snapshotable.cc
kwarabei Jan 7, 2023
5304c89
events: change status of `event.srcElement` to legacy
deokjinkim Jan 7, 2023
1146f02
crypto: return correct bit length in KeyObject's asymmetricKeyDetails
panva Jan 7, 2023
54896ab
module: fix unintended mutation
aduh95 Jan 7, 2023
e222a2f
doc: fix spelling in SECURITY.md
vchan-in Jan 7, 2023
def3694
assert: remove `assert.snapshot`
MoLow Jan 7, 2023
2e22b29
doc: fix ERR_TLS_RENEGOTIATION_DISABLED text
tniessen Jan 7, 2023
5261560
meta: update AUTHORS
nodejs-github-bot Jan 8, 2023
2e826ad
doc: fix (EC)DHE remark in TLS docs
tniessen Jan 8, 2023
69aafc3
deps: update simdutf to 2.1.0
nodejs-github-bot Jan 8, 2023
0f60bc9
test: add test to once() in event lib
jdiaz-dev Jan 9, 2023
e8eaa49
src: use constant strings for memory info names
legendecas Jan 9, 2023
ac90e41
tools: update lint-md-dependencies to rollup@3.9.1
nodejs-github-bot Jan 10, 2023
28af831
src: use simdutf for converting externalized builtins to UTF-16
addaleax Jan 10, 2023
0c4df83
deps: add simdutf version to metadata
roth-mike Jan 10, 2023
686fe58
doc: remove outdated sections from `maintaining-v8`
aduh95 Jan 10, 2023
c68a043
tools: update eslint to 8.31.0
nodejs-github-bot Jan 10, 2023
f309e2a
test: update Web Events WPT
deokjinkim Jan 10, 2023
f050889
perf_hooks: fix checking range of `options.figures` in createHistogram
deokjinkim Jan 10, 2023
c77b0da
test: fix flaky test-runner-exit-code.js
cjihrig Jan 10, 2023
eef7489
doc: duplex and readable from uncaught execption warning
marco-ippolito Jan 11, 2023
ad7846f
events: change status of `event.cancelBubble` to legacy
deokjinkim Jan 11, 2023
4955624
deps: add /deps/**/.github/ to .gitignore
lpinca Jan 11, 2023
538c53f
doc: add PerformanceObserver.supportedEntryTypes to doc
theanarkh Jan 11, 2023
6e2f722
test: use `os.availableParallelism()`
deokjinkim Dec 29, 2022
e1c56ec
benchmark,tools: use os.availableParallelism()
deokjinkim Jan 2, 2023
fa3e0c8
esm: mark `importAssertions` as required
aduh95 Jan 12, 2023
2eb87f2
lib: reuse invalid state errors on webstreams
RafaelGSS Jan 13, 2023
7dc9a53
src: remove unnecessary semicolons
codebytere Jan 13, 2023
4c88721
doc: make options of readableStream.pipeTo as optional
deokjinkim Jan 13, 2023
1b45713
doc: https update default request timeout
marco-ippolito Jan 13, 2023
c150b31
tools: update create-or-update-pull-request-action
targos Jan 13, 2023
e85f766
src: remove return after abort
codebytere Jan 13, 2023
6e7f9fb
http: refactor to use min of validateNumber for maxTotalSockets
deokjinkim Jan 13, 2023
6c8a81d
vm: refactor to use validate function
deokjinkim Jan 14, 2023
f18ab94
doc: use "file system" instead of "filesystem"
Trott Jan 14, 2023
1aa4534
tools: add automation for updating postject dependency
RaisinTen Jan 14, 2023
1cfa2e6
lib: refactor to use validate function
deokjinkim Jan 14, 2023
d3d62ed
src: distinguish env stopping flags
legendecas Jan 14, 2023
dc0cdaa
crypto: ensure auth tag set for chacha20-poly1305
bnoordhuis Jan 14, 2023
6e355ef
doc: update http.setMaxIdleHTTPParsers arguments
debadree25 Jan 14, 2023
4ff2822
deps: bump googletest to 2023.01.13
gengjiawen Jan 15, 2023
f4465e6
tools: fix macro name in update-undici
almeidx Jan 15, 2023
a4b0c91
tools: update lint-md-dependencies
nodejs-github-bot Jan 15, 2023
d044ed1
meta: update AUTHORS
nodejs-github-bot Jan 15, 2023
1015a60
doc: add Node-API media link
KevinEady Jan 15, 2023
4d73ea7
lib: use kEmptyObject and update JSDoc in webstreams
deokjinkim Jan 15, 2023
9d55a1f
src: hide kMaxDigestMultiplier outside HKDF impl
tniessen Jan 16, 2023
5cf5956
src,lib: the handle keeps loop alive in cluster rr mode
theanarkh Jan 16, 2023
2d32835
doc: update to match changed `--dns-result-order` default
tikotzky Jan 16, 2023
370f621
build: add extra semi check
gengjiawen Jan 13, 2023
3f9fb37
deps: cherrypick simdutf patch
gengjiawen Jan 16, 2023
ae5141c
http: writeHead if statusmessage is undefined dont override headers
marco-ippolito Jan 17, 2023
36ae3cc
src: replace unreachable code with static_assert
tniessen Jan 17, 2023
907d67d
http: refactor to use `validateHeaderName`
deokjinkim Jan 17, 2023
90924ce
doc: add text around collaborative expectations
mhdawson Jan 6, 2023
78be87b
crypto: add cipher update/final methods encoding validation
vitpavlenko Jan 17, 2023
5c35029
doc: add note to tls docs about secureContext availability
tgerk Jan 18, 2023
4f491d3
test: add fix so that test exits if port 42 is unprivileged
7suyash7 Jan 18, 2023
e5f53b5
stream: implement finished() for ReadableStream and WritableStream
debadree25 Jan 18, 2023
8b22310
crypto: add CryptoKey Symbol.toStringTag
panva Jan 18, 2023
58b836f
doc: update events API example to have runnable code
deokjinkim Jan 18, 2023
bbf9da8
test: improve test coverage for WHATWG `TextDecoder`
juanarbol Jan 18, 2023
e2c47cd
src: make BuiltinLoader threadsafe and non-global
addaleax Jan 18, 2023
26cde8e
deps: update simdutf to 3.1.0
nodejs-github-bot Jan 18, 2023
e482d5e
src: fix endianness of simdutf
anonrig Jan 18, 2023
4ac5c71
test: refactor to avoid mutation of global by a loader
targos Jan 19, 2023
5bdfaae
events: change status of `event.returnvalue` to legacy
deokjinkim Jan 19, 2023
f85a8e4
events: add `initEvent` to Event
deokjinkim Jan 19, 2023
9cfdac6
deps: V8: cherry-pick e39af94dd18e
luyahan Jan 19, 2023
4c1c20f
trace_events: refactor to use `validateStringArray`
deokjinkim Jan 19, 2023
1869559
stream: fix pipeline calling end on destination more than once
debadree25 Jan 19, 2023
e36af49
doc: fix mismatched arguments of `NodeEventTarget`
deokjinkim Jan 19, 2023
c09b203
test: update postject to 1.0.0-alpha.4
nodejs-github-bot Jan 14, 2023
255f177
test: enable more case of bad buffer in `fs.write`
deokjinkim Jan 19, 2023
4d37439
test_runner: update comment to comply with eslint no-fallthrough rule
aduh95 Jan 19, 2023
653b108
tools: update eslint to 8.32.0
nodejs-github-bot Jan 18, 2023
476c6f8
crypto: avoid hang when no algorithm available
richardlau Jan 19, 2023
2f23f17
test: reduce `fs-write-optional-params` flakiness
LiviaMedeiros Jan 17, 2023
68cde4c
lib: add webstreams to Duplex.from()
debadree25 Jan 19, 2023
07c9241
2023-01-24, Version 19.5.0 (Current)
RafaelGSS Jan 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
module: fix unintended mutation
Refs: #46061 (comment)
PR-URL: #46108
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
  • Loading branch information
aduh95 authored and RafaelGSS committed Jan 20, 2023
commit 54896ab011b6cb631a9d1f0154e9aa060f55be13
10 changes: 5 additions & 5 deletions lib/internal/modules/cjs/loader.js
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@ const {
ArrayPrototypeJoin,
ArrayPrototypeMap,
ArrayPrototypePush,
ArrayPrototypePushApply,
ArrayPrototypeSlice,
ArrayPrototypeSplice,
ArrayPrototypeUnshift,
@@ -667,12 +668,11 @@ Module._findPath = function(request, paths, isMain) {
return filename;
}

if (exts === undefined) {
exts = [''];
} else {
ArrayPrototypeUnshift(exts, '');
const extensions = [''];
if (exts !== undefined) {
ArrayPrototypePushApply(extensions, exts);
}
reportModuleNotFoundToWatchMode(basePath, exts);
reportModuleNotFoundToWatchMode(basePath, extensions);
}

return false;
5 changes: 5 additions & 0 deletions test/fixtures/require-resolve.js
Original file line number Diff line number Diff line change
@@ -98,3 +98,8 @@ assert.strictEqual(
require.resolve('./printA.js', {}),
require.resolve('./printA.js')
);

assert.strictEqual(
require.resolve('no_index/'),
path.join(__dirname, 'node_modules', 'no_index', 'lib', 'index.js'),
)