Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
4b960c3
build: fix incorrect g++ warning message
richardlau Feb 7, 2024
1c1a7ec
test: increase platform timeout zlib-brotli-16gb
RafaelGSS Feb 19, 2024
c7baf7b
doc,crypto: add changelog and note about disabled RSA_PKCS1_PADDING
panva Feb 18, 2024
8bfb8f5
doc,crypto: further clarify RSA_PKCS1_PADDING support
tniessen Feb 18, 2024
1743d2b
test: test surrogate pair filenames on windows
mertcanaltin Feb 18, 2024
902d8b3
test: fix flaky http-chunk-extensions-limit test
Ethan-Arrowood Mar 3, 2024
1ce901b
deps: V8: cherry-pick c400af48b5ef
joyeecheung Dec 1, 2023
d4a530e
deps: V8: cherry-pick 7f5daed62d47
joyeecheung Dec 1, 2023
fafbacd
deps: V8: cherry-pick 9a98f96b6d68
joyeecheung Dec 1, 2023
6d50966
deps: V8: cherry-pick 94e8282325a1
joyeecheung Dec 1, 2023
d87a810
deps: V8: cherry-pick 3dd9576ce336
joyeecheung Dec 1, 2023
b0e8889
deps: V8: cherry-pick 1fada6b36f8d
joyeecheung Dec 1, 2023
58c7034
deps: V8: cherry-pick 705e374124ae
joyeecheung Dec 1, 2023
5b5e519
lib: fix compileFunction throws range error for negative numbers
MrJithil Oct 6, 2023
ff334cb
src: cast v8::Object::GetInternalField() return value to v8::Value
joyeecheung Aug 2, 2023
425e011
deps: add v8::Object::SetInternalFieldForNodeCore()
joyeecheung Sep 26, 2023
2c2892b
src: set ModuleWrap internal fields only once
joyeecheung Sep 8, 2023
a86a2e1
module: use symbol in WeakMap to manage host defined options
joyeecheung Jun 21, 2023
2e05cf1
module: fix leak of vm.SyntheticModule
joyeecheung Jun 21, 2023
7552de6
module: fix the leak in SourceTextModule and ContextifySript
joyeecheung Jun 23, 2023
1586c11
test: add checkIfCollectable to test/common/gc.js
joyeecheung Sep 16, 2023
0b156c6
test: use checkIfCollectable in vm leak tests
joyeecheung Sep 16, 2023
5e42651
test: deflake test-vm-contextified-script-leak
joyeecheung Sep 23, 2023
6291c10
vm: use default HDO when importModuleDynamically is not set
joyeecheung Oct 5, 2023
9f7899e
vm: unify host-defined option generation in vm.compileFunction
joyeecheung Oct 5, 2023
052e095
vm: use internal versions of compileFunction and Script
joyeecheung Oct 11, 2023
fe66e9d
vm: reject in importModuleDynamically without --experimental-vm-modules
joyeecheung Oct 5, 2023
2a2bf57
deps: update icu to 74.1
nodejs-github-bot Nov 1, 2023
90c73d2
deps: update timezone to 2023d
nodejs-github-bot Jan 21, 2024
3184bef
tools: fix update-icu.sh
targos Feb 11, 2024
f9b229e
deps: update icu to 74.2
targos Feb 11, 2024
68fd751
deps: update timezone to 2024a
targos Feb 11, 2024
6fbf0ba
deps: V8: cherry-pick a0fd3209dda8
nicolo-ribaudo Dec 12, 2023
c13969e
deps: V8: cherry-pick ea996ad04a68
nicolo-ribaudo Dec 12, 2023
a193be3
esm: use import attributes instead of import assertions
aduh95 Dec 12, 2023
06646e1
vm: use import attributes instead of import assertions
aduh95 Dec 12, 2023
96514a8
src: iterate on import attributes array correctly
targos Nov 19, 2023
26e8f77
fs: introduce `dirent.parentPath`
aduh95 Dec 2, 2023
0f09267
doc: deprecate `dirent.path`
aduh95 Dec 4, 2023
194ff6a
doc: add deprecation notice to `dirent.path`
aduh95 Dec 5, 2023
d9ea6c1
tls: fix order of setting cipher before setting cert and key
kumarrishav Oct 16, 2023
f232064
doc: fix historical experimental fetch flag
kenrick95 Jan 20, 2024
4a6f83e
deps: escape Python strings correctly
targos Nov 14, 2023
adac0c7
deps: update corepack to 0.23.0
nodejs-github-bot Nov 7, 2023
d1a9237
deps: update corepack to 0.24.0
nodejs-github-bot Jan 2, 2024
a593985
deps: update corepack to 0.24.1
nodejs-github-bot Jan 31, 2024
5aec3af
deps: update corepack to 0.25.2
nodejs-github-bot Feb 25, 2024
40f10ea
test: fix `internet/test-inspector-help-page`
richardlau Feb 16, 2024
8fdea67
crypto: update root certificates to NSS 3.98
nodejs-github-bot Feb 25, 2024
c8876d7
deps: upgrade npm to 10.3.0
npm-cli-bot Jan 11, 2024
3a3808a
deps: upgrade npm to 10.5.0
npm-cli-bot Feb 29, 2024
cc434c1
deps: update ada to 2.7.4
nodejs-github-bot Nov 21, 2023
73a946d
deps: update ada to 2.7.5
nodejs-github-bot Jan 22, 2024
11ba859
deps: update ada to 2.7.6
nodejs-github-bot Jan 30, 2024
183cf8a
deps: update simdutf to 4.0.4
nodejs-github-bot Nov 18, 2023
b4502d3
deps: update simdutf to 4.0.8
nodejs-github-bot Dec 23, 2023
13a9e81
deps: update base64 to 0.5.1
nodejs-github-bot Nov 8, 2023
16d28a8
deps: update base64 to 0.5.2
nodejs-github-bot Jan 19, 2024
f0da591
deps: update zlib to 1.2.13.1-motley-dfc48fc
nodejs-github-bot Nov 1, 2023
4b43823
deps: update zlib to 1.2.13.1-motley-5daffc7
nodejs-github-bot Nov 24, 2023
b0ca084
deps: update zlib to 1.3-22124f5
nodejs-github-bot Dec 5, 2023
57a38c8
deps: update zlib to 1.3.0.1-motley-dd5fc13
nodejs-github-bot Dec 16, 2023
7bea2d7
deps: update zlib to 1.3.0.1-motley-40e35a7
nodejs-github-bot Dec 26, 2023
cd613e5
test: handle relative https redirect
richardlau Dec 13, 2023
95d7a75
test: fix dns test case failures after c-ares update to 1.21.0+
bradh352 Nov 15, 2023
8fb7436
deps: update c-ares to 1.25.0
nodejs-github-bot Jan 5, 2024
9498ac8
deps: compile c-ares with C11 support
targos Jan 9, 2024
c688680
deps: update c-ares to 1.26.0
nodejs-github-bot Feb 5, 2024
9ab8c3d
deps: update c-ares to 1.27.0
nodejs-github-bot Feb 25, 2024
812b126
deps: V8: cherry-pick d90d4533b053
targos Nov 13, 2023
931d02f
test, v8: fix wrong import attributes test
nicolo-ribaudo Mar 21, 2024
3d0b233
node-api: introduce experimental feature flags
gabrielschulhof Dec 1, 2023
1aa71c2
node-api: factor out common code into macros
gabrielschulhof Nov 12, 2023
32906dd
node-api: segregate nogc APIs from rest via type system
gabrielschulhof Dec 19, 2023
c70383b
build: support Python 3.12
Nov 6, 2023
270b519
stream: do not defer construction by one microtick
mcollina Mar 7, 2024
f75dc41
2024-03-26, Version 18.20.0 'Hydrogen' (LTS)
richardlau Mar 20, 2024
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
deps: update icu to 74.1
PR-URL: #50515
Backport-PR-URL: #51973
Reviewed-By: Steven R Loomis <srl295@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Refs: #51933
  • Loading branch information
nodejs-github-bot authored and richardlau committed Mar 18, 2024
commit 2a2bf570282fcfa99f67ed0e15e81c1a208bc6a1
79 changes: 36 additions & 43 deletions deps/icu-small/LICENSE
Original file line number Diff line number Diff line change
@@ -1,49 +1,42 @@
UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE

See Terms of Use <https://www.unicode.org/copyright.html>
for definitions of Unicode Inc.’s Data Files and Software.

NOTICE TO USER: Carefully read the following legal agreement.
BY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S
DATA FILES ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"),
YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
TERMS AND CONDITIONS OF THIS AGREEMENT.
IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE
THE DATA FILES OR SOFTWARE.
UNICODE LICENSE V3

COPYRIGHT AND PERMISSION NOTICE

Copyright © 1991-2023 Unicode, Inc. All rights reserved.
Distributed under the Terms of Use in https://www.unicode.org/copyright.html.

Permission is hereby granted, free of charge, to any person obtaining
a copy of the Unicode data files and any associated documentation
(the "Data Files") or Unicode software and any associated documentation
(the "Software") to deal in the Data Files or Software
without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, and/or sell copies of
the Data Files or Software, and to permit persons to whom the Data Files
or Software are furnished to do so, provided that either
(a) this copyright and permission notice appear with all copies
of the Data Files or Software, or
(b) this copyright and permission notice appear in associated
Documentation.

THE DATA FILES AND SOFTWARE ARE 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 OF THIRD PARTY RIGHTS.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS
NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THE DATA FILES OR SOFTWARE.

Except as contained in this notice, the name of a copyright holder
shall not be used in advertising or otherwise to promote the sale,
use or other dealings in these Data Files or Software without prior
written authorization of the copyright holder.
Copyright © 2016-2023 Unicode, Inc.

NOTICE TO USER: Carefully read the following legal agreement. BY
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.

Permission is hereby granted, free of charge, to any person obtaining a
copy of data files and any associated documentation (the "Data Files") or
software and any associated documentation (the "Software") to deal in the
Data Files or Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, and/or sell
copies of the Data Files or Software, and to permit persons to whom the
Data Files or Software are furnished to do so, provided that either (a)
this copyright and permission notice appear with all copies of the Data
Files or Software, or (b) this copyright and permission notice appear in
associated Documentation.

THE DATA FILES AND SOFTWARE ARE 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 OF
THIRD PARTY RIGHTS.

IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
FILES OR SOFTWARE.

Except as contained in this notice, the name of a copyright holder shall
not be used in advertising or otherwise to promote the sale, use or other
dealings in these Data Files or Software without prior written
authorization of the copyright holder.

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

Expand Down
4 changes: 2 additions & 2 deletions deps/icu-small/README-FULL-ICU.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ICU sources - auto generated by shrink-icu-src.py

This directory contains the ICU subset used by --with-intl=full-icu
It is a strict subset of ICU 73 source files with the following exception(s):
* deps/icu-small/source/data/in/icudt73l.dat.bz2 : compressed data file
It is a strict subset of ICU 74 source files with the following exception(s):
* deps/icu-small/source/data/in/icudt74l.dat.bz2 : compressed data file


To rebuild this directory, see ../../tools/icu/README.md
Expand Down
4 changes: 4 additions & 0 deletions deps/icu-small/source/common/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,16 @@ cc_library(
"locbased.cpp",
"locid.cpp",
"loclikely.cpp",
"loclikelysubtags.cpp",
"locmap.cpp",
"lsr.cpp",
"resbund.cpp",
"resource.cpp",
"uloc.cpp",
"uloc_tag.cpp",
"uloc_keytype.cpp",
"ulocale.cpp",
"ulocbuilder.cpp",
"uresbund.cpp",
"uresdata.cpp",
"wintz.cpp",
Expand Down
121 changes: 93 additions & 28 deletions deps/icu-small/source/common/brkeng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "unicode/uscript.h"
#include "unicode/ucharstrie.h"
#include "unicode/bytestrie.h"
#include "unicode/rbbi.h"

#include "brkeng.h"
#include "cmemory.h"
Expand Down Expand Up @@ -70,19 +71,21 @@ UnhandledEngine::~UnhandledEngine() {
}

UBool
UnhandledEngine::handles(UChar32 c) const {
UnhandledEngine::handles(UChar32 c, const char* locale) const {
(void)locale; // Unused
return fHandled && fHandled->contains(c);
}

int32_t
UnhandledEngine::findBreaks( UText *text,
int32_t /* startPos */,
int32_t startPos,
int32_t endPos,
UVector32 &/*foundBreaks*/,
UBool /* isPhraseBreaking */,
UErrorCode &status) const {
if (U_FAILURE(status)) return 0;
UChar32 c = utext_current32(text);
utext_setNativeIndex(text, startPos);
UChar32 c = utext_current32(text);
while((int32_t)utext_getNativeIndex(text) < endPos && fHandled->contains(c)) {
utext_next32(text); // TODO: recast loop to work with post-increment operations.
c = utext_current32(text);
Expand Down Expand Up @@ -120,49 +123,47 @@ ICULanguageBreakFactory::~ICULanguageBreakFactory() {
}
}

U_NAMESPACE_END
U_CDECL_BEGIN
static void U_CALLCONV _deleteEngine(void *obj) {
delete (const icu::LanguageBreakEngine *) obj;
void ICULanguageBreakFactory::ensureEngines(UErrorCode& status) {
static UMutex gBreakEngineMutex;
Mutex m(&gBreakEngineMutex);
if (fEngines == nullptr) {
LocalPointer<UStack> engines(new UStack(uprv_deleteUObject, nullptr, status), status);
if (U_SUCCESS(status)) {
fEngines = engines.orphan();
}
}
}
U_CDECL_END
U_NAMESPACE_BEGIN

const LanguageBreakEngine *
ICULanguageBreakFactory::getEngineFor(UChar32 c) {
ICULanguageBreakFactory::getEngineFor(UChar32 c, const char* locale) {
const LanguageBreakEngine *lbe = nullptr;
UErrorCode status = U_ZERO_ERROR;
ensureEngines(status);
if (U_FAILURE(status) ) {
// Note: no way to return error code to caller.
return nullptr;
}

static UMutex gBreakEngineMutex;
Mutex m(&gBreakEngineMutex);

if (fEngines == nullptr) {
LocalPointer<UStack> engines(new UStack(_deleteEngine, nullptr, status), status);
if (U_FAILURE(status) ) {
// Note: no way to return error code to caller.
return nullptr;
}
fEngines = engines.orphan();
} else {
int32_t i = fEngines->size();
while (--i >= 0) {
lbe = (const LanguageBreakEngine *)(fEngines->elementAt(i));
if (lbe != nullptr && lbe->handles(c)) {
return lbe;
}
int32_t i = fEngines->size();
while (--i >= 0) {
lbe = (const LanguageBreakEngine *)(fEngines->elementAt(i));
if (lbe != nullptr && lbe->handles(c, locale)) {
return lbe;
}
}

// We didn't find an engine. Create one.
lbe = loadEngineFor(c);
lbe = loadEngineFor(c, locale);
if (lbe != nullptr) {
fEngines->push((void *)lbe, status);
}
return U_SUCCESS(status) ? lbe : nullptr;
}

const LanguageBreakEngine *
ICULanguageBreakFactory::loadEngineFor(UChar32 c) {
ICULanguageBreakFactory::loadEngineFor(UChar32 c, const char*) {
UErrorCode status = U_ZERO_ERROR;
UScriptCode code = uscript_getScript(c, &status);
if (U_SUCCESS(status)) {
Expand Down Expand Up @@ -299,6 +300,70 @@ ICULanguageBreakFactory::loadDictionaryMatcherFor(UScriptCode script) {
return nullptr;
}


void ICULanguageBreakFactory::addExternalEngine(
ExternalBreakEngine* external, UErrorCode& status) {
LocalPointer<ExternalBreakEngine> engine(external, status);
ensureEngines(status);
LocalPointer<BreakEngineWrapper> wrapper(
new BreakEngineWrapper(engine.orphan(), status), status);
static UMutex gBreakEngineMutex;
Mutex m(&gBreakEngineMutex);
fEngines->push(wrapper.getAlias(), status);
wrapper.orphan();
}

BreakEngineWrapper::BreakEngineWrapper(
ExternalBreakEngine* engine, UErrorCode &status) : delegate(engine, status) {
}

BreakEngineWrapper::~BreakEngineWrapper() {
}

UBool BreakEngineWrapper::handles(UChar32 c, const char* locale) const {
return delegate->isFor(c, locale);
}

int32_t BreakEngineWrapper::findBreaks(
UText *text,
int32_t startPos,
int32_t endPos,
UVector32 &foundBreaks,
UBool /* isPhraseBreaking */,
UErrorCode &status) const {
if (U_FAILURE(status)) return 0;
int32_t result = 0;

// Find the span of characters included in the set.
// The span to break begins at the current position in the text, and
// extends towards the start or end of the text, depending on 'reverse'.

utext_setNativeIndex(text, startPos);
int32_t start = (int32_t)utext_getNativeIndex(text);
int32_t current;
int32_t rangeStart;
int32_t rangeEnd;
UChar32 c = utext_current32(text);
while((current = (int32_t)utext_getNativeIndex(text)) < endPos && delegate->handles(c)) {
utext_next32(text); // TODO: recast loop for postincrement
c = utext_current32(text);
}
rangeStart = start;
rangeEnd = current;
int32_t beforeSize = foundBreaks.size();
int32_t additionalCapacity = rangeEnd - rangeStart + 1;
// enlarge to contains (rangeEnd-rangeStart+1) more items
foundBreaks.ensureCapacity(beforeSize+additionalCapacity, status);
if (U_FAILURE(status)) return 0;
foundBreaks.setSize(beforeSize + beforeSize+additionalCapacity);
result = delegate->fillBreaks(text, rangeStart, rangeEnd, foundBreaks.getBuffer()+beforeSize,
additionalCapacity, status);
if (U_FAILURE(status)) return 0;
foundBreaks.setSize(beforeSize + result);
utext_setNativeIndex(text, current);
return result;
}

U_NAMESPACE_END

#endif /* #if !UCONFIG_NO_BREAK_ITERATION */
Loading