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

2024-11-29, Version 23.3.1 (Current), @RafaelGSS #8

Closed
wants to merge 62 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
1f2fcf1
doc: add history entries for JSON modules stabilization
aduh95 Nov 16, 2024
00e092b
util: fix util.getCallSites plurality
legendecas Nov 2, 2024
d4e7926
util: add sourcemap support to getCallSites
marco-ippolito Nov 4, 2024
7814669
tools: fix c-ares updater script for Node.js 18
richardlau Nov 6, 2024
bbb8f59
lib: use `Promise.withResolvers()` in timers
anonrig Nov 6, 2024
e147935
deps: update icu to 76.1
nodejs-github-bot Nov 7, 2024
cfe28b1
lib: remove unnecessary optional chaining
gurgunday Nov 7, 2024
d1ad43e
test: improve test coverage for `ServerResponse`
juanarbol Nov 7, 2024
5767b76
doc: enforce strict policy to semver-major releases
RafaelGSS Nov 7, 2024
e1b42e7
test: add buffer to fs_permission tests
RafaelGSS Nov 7, 2024
1568733
lib: prefer symbol to number in webidl `type` function
aduh95 Nov 7, 2024
9862912
assert: differentiate cases where `cause` is `undefined` or missing
aduh95 Nov 8, 2024
e1f54e2
test: ensure that test priority is not higher than current priority
LiviaMedeiros Nov 8, 2024
8576ca9
doc: clarify removal of experimental API does not require a deprecation
aduh95 Nov 8, 2024
db0d648
fs: fix bufferSize option for opendir recursive
Ethan-Arrowood Nov 8, 2024
3a9733c
util: do not mark experimental feature as deprecated
aduh95 Nov 8, 2024
84c4747
test: improve test coverage for child process message sending
juanarbol Nov 8, 2024
ccb69bb
src: add cli option to preserve env vars on dr
RafaelGSS Nov 8, 2024
16786a6
src: improve `node:os` userInfo performance
anonrig Nov 8, 2024
aa12de0
doc: sort --report-exclude alphabetically
RafaelGSS Nov 9, 2024
419ea06
tools: remove non-existent file from eslint config
RedYetiDev Nov 10, 2024
8111a76
tools: make commit-queue check blocked label
marco-ippolito Nov 10, 2024
3cfacd3
tools: fix exclude labels for commit-queue
richardlau Nov 10, 2024
bba7323
build: apply cpp linting and formatting to ncrypto
RedYetiDev Nov 10, 2024
7773567
build: use glob for dependencies of out/Makefile
richardlau Nov 10, 2024
df5ea1a
doc: clarify triager role
gireeshpunathil Nov 10, 2024
472d55e
build: implement node_use_amaro flag in GN build
zcbenz Nov 11, 2024
9aeb671
doc: run license-builder
github-actions[bot] Nov 11, 2024
83ba688
esm: fix import.meta.resolve crash
marco-ippolito Nov 11, 2024
9c99255
permission: ignore internalModuleStat on module loading
RafaelGSS Nov 11, 2024
c210335
benchmark: add `test_runner/mock-fn`
RedYetiDev Nov 11, 2024
e0db9ed
deps: update c-ares to v1.34.3
nodejs-github-bot Nov 12, 2024
5a437c4
report: fix network queries in getReport libuv with exclude-network
Tofandel Nov 12, 2024
770670c
test: fix permission fixtures lint
RafaelGSS Nov 12, 2024
65ffb2c
doc: update unflag info of `import.meta.resolve`
skyclouds2001 Nov 12, 2024
c5afdaf
doc: correct max-semi-space-size statement
joebowbeer Nov 12, 2024
11e1bdd
module: tidy code string concat → string templates
JakobJingleheimer Nov 13, 2024
e56265c
doc: fix history info for `URL.prototype.toJSON`
aduh95 Nov 13, 2024
787e51e
doc: add notable-change mention to sec release
RafaelGSS Nov 14, 2024
bdb6d12
events: add hasEventListener util for validate
sungpaks Nov 14, 2024
a831184
doc: clarify UV_THREADPOOL_SIZE env var usage
preveen-stack Nov 15, 2024
1b863b9
doc: add `-S` flag release preparation example
aduh95 Nov 15, 2024
32e5bbc
benchmark: add `test-reporters`
RedYetiDev Nov 16, 2024
ec953bc
doc: add `node:sqlite` to mandatory `node:` prefix list
sapphi-red Nov 16, 2024
e0ef65b
doc: remove non-working example
aduh95 Nov 16, 2024
dc8aca3
deps: update undici to 6.21.0
nodejs-github-bot Nov 16, 2024
cad557e
deps: update simdutf to 5.6.1
nodejs-github-bot Nov 16, 2024
58d7a6e
Revert "src: migrate `String::Value` to `String::ValueView`"
targos Nov 16, 2024
49d5522
src: use env strings to create sqlite results
targos Nov 17, 2024
034505e
test_runner: error on mocking an already mocked date
RedYetiDev Nov 17, 2024
d41cb49
fs: prevent unwanted `dependencyOwners` removal
Ceres6 Nov 17, 2024
e0c2225
crypto: allow length=0 for HKDF and PBKDF2 in SubtleCrypto.deriveBits
panva Nov 17, 2024
44324aa
tools: bump @eslint/plugin-kit from 0.2.0 to 0.2.3 in /tools/eslint
dependabot[bot] Nov 17, 2024
bcbba72
sqlite: add support for SQLite Session Extension
louwers Nov 18, 2024
693fda0
lib: remove unused file `fetch_module`
targos Nov 18, 2024
72f82ad
2024-11-20, Version 23.3.0 (Current)
RafaelGSS Nov 19, 2024
176b16a
Working on v23.3.1
RafaelGSS Nov 20, 2024
65b95fe
build: add create release proposal action
RafaelGSS Nov 1, 2024
77e1843
fixup! build: add create release proposal action
RafaelGSS Nov 22, 2024
4af58d8
fixup! fixup! build: add create release proposal action
RafaelGSS Nov 22, 2024
009a5fd
fixup! fixup! fixup! build: add create release proposal action
RafaelGSS Nov 22, 2024
e625651
2024-11-29, Version 23.3.1 (Current)
nodejs-github-bot Nov 22, 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
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .github/workflows/commit-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ jobs:
--base ${{ github.ref_name }} \
--label 'commit-queue' \
--json 'number' \
--search "created:<=$(date --date="2 days ago" +"%Y-%m-%dT%H:%M:%S%z")" \
--search "created:<=$(date --date="2 days ago" +"%Y-%m-%dT%H:%M:%S%z") -label:blocked" \
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)
fast_track_prs=$(gh pr list \
--repo ${{ github.repository }} \
--base ${{ github.ref_name }} \
--label 'commit-queue' \
--label 'fast-track' \
--search "-label:blocked" \
--json 'number' \
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)
Expand Down
81 changes: 81 additions & 0 deletions .github/workflows/create-release-proposal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# This action requires the following secrets to be set on the repository:
# GH_USER_NAME: GitHub user whose Jenkins and GitHub token are defined below
# GH_USER_TOKEN: GitHub user token, to be used by ncu and to push changes
# JENKINS_TOKEN: Jenkins token, to be used to check CI status

name: Create Release Proposal

on:
workflow_dispatch:
inputs:
release-line:
required: true
type: number
default: 23
description: 'The release line (without dots or prefix). e.g: 22'
release-date:
required: true
type: string
default: YYYY-MM-DD
description: The release date in YYYY-MM-DD format

concurrency: ${{ github.workflow }}

env:
NODE_VERSION: lts/*

permissions:
contents: write

jobs:
releasePrepare:
env:
STAGING_BRANCH: v${{ inputs.release-line }}.x-staging
RELEASE_BRANCH: v${{ inputs.release-line }}.x
RELEASE_DATE: ${{ inputs.release-date }}
RELEASE_LINE: ${{ inputs.release-line }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ env.STAGING_BRANCH }}
# Needs the whole git history for ncu to work
# See https://github.com/nodejs/node-core-utils/pull/486
fetch-depth: 0

# Install dependencies
- name: Install Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install @node-core/utils
run: npm install -g @node-core/utils

- name: Configure @node-core/utils
run: |
ncu-config set branch "${RELEASE_BRANCH}"
ncu-config set upstream origin
ncu-config set username "$USERNAME"
ncu-config set token "$GH_TOKEN"
ncu-config set jenkins_token "$JENKINS_TOKEN"
ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)"
ncu-config set owner "${GITHUB_REPOSITORY_OWNER}"
env:
USERNAME: ${{ secrets.JENKINS_USER }}
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}
JENKINS_TOKEN: ${{ secrets.JENKINS_TOKEN }}

- name: Set up ghauth config (Ubuntu)
run: |
mkdir -p ~/.config/changelog-maker/
echo '{
"user": "'$(ncu-config get username)'",
"token": "'$(ncu-config get token)'"
}' > ~/.config/changelog-maker/config.json

- name: Start git node release prepare
run: |
./tools/actions/create-release.sh "${RELEASE_DATE}" "${RELEASE_LINE}"
env:
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ release.
<th title="LTS Until 2025-04"><a href="doc/changelogs/CHANGELOG_V18.md">18</a> (LTS)</th>
</tr>
<tr>
<b><a href="doc/changelogs/CHANGELOG_V23.md#23.2.0">23.2.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V23.md#23.3.1">23.3.1</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V23.md#23.3.0">23.3.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V23.md#23.2.0">23.2.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V23.md#23.1.0">23.1.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V23.md#23.0.0">23.0.0</a><br/>
</td>
Expand Down
30 changes: 29 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,34 @@ The externally maintained libraries used by Node.js are:

----------------------------------------------------------------------

JSON parsing library (nlohmann/json)

File: vendor/json/upstream/single_include/nlohmann/json.hpp (only for ICU4C)

MIT License

Copyright (c) 2013-2022 Niels Lohmann

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

----------------------------------------------------------------------

File: aclocal.m4 (only for ICU4C)
Section: pkg.m4 - Macros to locate and utilise pkg-config.

Expand Down Expand Up @@ -834,7 +862,7 @@ The externally maintained libraries used by Node.js are:

This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful, but
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ with-code-cache test-code-cache:
$(warning '$@' target is a noop)

out/Makefile: config.gypi common.gypi node.gyp \
deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \
deps/simdutf/simdutf.gyp deps/ada/ada.gyp deps/nbytes/nbytes.gyp \
deps/*/*.gyp \
tools/v8_gypfiles/toolchain.gypi \
tools/v8_gypfiles/features.gypi \
tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp
Expand Down Expand Up @@ -1414,6 +1413,11 @@ LINT_CPP_EXCLUDE += $(LINT_CPP_ADDON_DOC_FILES)
# These files were copied more or less verbatim from V8.
LINT_CPP_EXCLUDE += src/tracing/trace_event.h src/tracing/trace_event_common.h

# deps/ncrypto is included in this list, as it is maintained in
# this repository, and should be linted. Eventually it should move
# to its own repo, at which point we should remove it from this list.
LINT_CPP_DEPS = deps/ncrypto/*.cc deps/ncrypto/*.h

LINT_CPP_FILES = $(filter-out $(LINT_CPP_EXCLUDE), $(wildcard \
benchmark/napi/*/*.cc \
src/*.c \
Expand All @@ -1438,6 +1442,7 @@ LINT_CPP_FILES = $(filter-out $(LINT_CPP_EXCLUDE), $(wildcard \
tools/code_cache/*.h \
tools/snapshot/*.cc \
tools/snapshot/*.h \
$(LINT_CPP_DEPS) \
))

FORMAT_CPP_FILES ?=
Expand Down
11 changes: 11 additions & 0 deletions benchmark/fixtures/basic-test-runner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { test } = require('node:test');

test('should pass', () => {});
test('should fail', () => { throw new Error('fail'); });
test('should skip', { skip: true }, () => {});
test('parent', (t) => {
t.test('should fail', () => { throw new Error('fail'); });
t.test('should pass but parent fail', (t, done) => {
setImmediate(done);
});
});
48 changes: 48 additions & 0 deletions benchmark/test_runner/mock-fn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
'use strict';

const common = require('../common');
const assert = require('node:assert');
const { test } = require('node:test');

const bench = common.createBenchmark(main, {
n: [1e6],
mode: ['define', 'execute'],
}, {
// We don't want to test the reporter here
flags: ['--test-reporter=./benchmark/fixtures/empty-test-reporter.js'],
});

const noop = () => {};

function benchmarkDefine(n) {
let noDead;
test((t) => {
bench.start();
for (let i = 0; i < n; i++) {
noDead = t.mock.fn(noop);
}
bench.end(n);
assert.ok(noDead);
});
}

function benchmarkExecute(n) {
let noDead;
test((t) => {
const mocked = t.mock.fn(noop);
bench.start();
for (let i = 0; i < n; i++) {
noDead = mocked();
}
bench.end(n);
assert.strictEqual(noDead, noop());
});
}

function main({ n, mode }) {
if (mode === 'define') {
benchmarkDefine(n);
} else if (mode === 'execute') {
benchmarkExecute(n);
}
}
41 changes: 41 additions & 0 deletions benchmark/test_runner/test-reporters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
'use strict';

const common = require('../common');
const { run } = require('node:test');
const reporters = require('node:test/reporters');
const { Readable } = require('node:stream');
const assert = require('node:assert');

const bench = common.createBenchmark(main, {
n: [1e4],
reporter: Object.keys(reporters),
});

// No need to run this for every benchmark,
// it should always be the same data.
const stream = run({
files: ['../fixtures/basic-test-runner.js'],
});
let testResults;

async function main({ n, reporter: r }) {
testResults ??= await stream.toArray();

// Create readable streams for each iteration
const readables = Array.from({ length: n }, () => Readable.from(testResults));

// Get the selected reporter
const reporter = reporters[r];

bench.start();

let noDead;
for (const readable of readables) {
// Process each readable stream through the reporter
noDead = await readable.compose(reporter).toArray();
}

bench.end(n);

assert.ok(noDead);
}
30 changes: 15 additions & 15 deletions benchmark/util/get-callsite.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
'use strict';

const common = require('../common');
const { getCallSite } = require('node:util');
const { getCallSites } = require('node:util');
const assert = require('node:assert');

const bench = common.createBenchmark(main, {
n: [1e6],
method: ['ErrorCallSite', 'ErrorCallSiteSerialized', 'CPP'],
method: ['ErrorCallSites', 'ErrorCallSitesSerialized', 'CPP'],
});

function ErrorGetCallSite() {
function ErrorGetCallSites() {
const originalStackFormatter = Error.prepareStackTrace;
Error.prepareStackTrace = (_err, stack) => {
if (stack && stack.length > 1) {
Expand All @@ -25,15 +25,15 @@ function ErrorGetCallSite() {
return err.stack;
}

function ErrorCallSiteSerialized() {
const callsite = ErrorGetCallSite();
function ErrorCallSitesSerialized() {
const callSites = ErrorGetCallSites();
const serialized = [];
for (let i = 0; i < callsite.length; ++i) {
for (let i = 0; i < callSites.length; ++i) {
serialized.push({
functionName: callsite[i].getFunctionName(),
scriptName: callsite[i].getFileName(),
lineNumber: callsite[i].getLineNumber(),
column: callsite[i].getColumnNumber(),
functionName: callSites[i].getFunctionName(),
scriptName: callSites[i].getFileName(),
lineNumber: callSites[i].getLineNumber(),
column: callSites[i].getColumnNumber(),
});
}
return serialized;
Expand All @@ -42,14 +42,14 @@ function ErrorCallSiteSerialized() {
function main({ n, method }) {
let fn;
switch (method) {
case 'ErrorCallSite':
fn = ErrorGetCallSite;
case 'ErrorCallSites':
fn = ErrorGetCallSites;
break;
case 'ErrorCallSiteSerialized':
fn = ErrorCallSiteSerialized;
case 'ErrorCallSitesSerialized':
fn = ErrorCallSitesSerialized;
break;
case 'CPP':
fn = getCallSite;
fn = getCallSites;
break;
}
let lastStack = {};
Expand Down
6 changes: 3 additions & 3 deletions deps/cares/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ INCLUDE (CheckCSourceCompiles)
INCLUDE (CheckStructHasMember)
INCLUDE (CheckLibraryExists)

PROJECT (c-ares LANGUAGES C VERSION "1.34.2" )
PROJECT (c-ares LANGUAGES C VERSION "1.34.3" )

# Set this version before release
SET (CARES_VERSION "${PROJECT_VERSION}")
Expand All @@ -30,7 +30,7 @@ INCLUDE (GNUInstallDirs) # include this *AFTER* PROJECT(), otherwise paths are w
# For example, a version of 4:0:2 would generate output such as:
# libname.so -> libname.so.2
# libname.so.2 -> libname.so.2.2.0
SET (CARES_LIB_VERSIONINFO "21:1:19")
SET (CARES_LIB_VERSIONINFO "21:2:19")


OPTION (CARES_STATIC "Build as a static library" OFF)
Expand Down Expand Up @@ -263,7 +263,7 @@ ENDIF ()
# Set system-specific compiler flags
IF (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
LIST (APPEND SYSFLAGS -D_DARWIN_C_SOURCE)
ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "Linux")
ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
LIST (APPEND SYSFLAGS -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700)
ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "SunOS")
LIST (APPEND SYSFLAGS -D__EXTENSIONS__ -D_REENTRANT -D_XOPEN_SOURCE=600)
Expand Down
Loading
Loading