Skip to content

Commit d107bca

Browse files
angular-robotthePunderWoman
authored andcommitted
build: update cross-repo angular dependencies
See associated pull request for more information. Closes #69911 as a pr takeover
1 parent 01eeee4 commit d107bca

53 files changed

Lines changed: 9705 additions & 5857 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/actions/deploy-docs-site/main.js‎

Lines changed: 143 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32333,7 +32333,10 @@ function envForceColor() {
3233332333
if (env2.FORCE_COLOR.length === 0) {
3233432334
return 1;
3233532335
}
32336-
const level = Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
32336+
if (!new RegExp("^\\d+$", "v").test(env2.FORCE_COLOR)) {
32337+
return;
32338+
}
32339+
const level = Math.min(Number(env2.FORCE_COLOR), 3);
3233732340
if (![0, 1, 2, 3].includes(level)) {
3233832341
return;
3233932342
}
@@ -32367,6 +32370,9 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
3236732370
return 2;
3236832371
}
3236932372
}
32373+
if (forceColor !== void 0 && new RegExp("^\\d+$", "v").test(env2.FORCE_COLOR)) {
32374+
return forceColor;
32375+
}
3237032376
if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
3237132377
return 1;
3237232378
}
@@ -32385,16 +32391,16 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
3238532391
return 1;
3238632392
}
3238732393
if ("CI" in env2) {
32388-
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env2)) {
32394+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => Object.hasOwn(env2, key))) {
3238932395
return 3;
3239032396
}
32391-
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
32397+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => Object.hasOwn(env2, sign)) || env2.CI_NAME === "codeship") {
3239232398
return 1;
3239332399
}
3239432400
return min;
3239532401
}
3239632402
if ("TEAMCITY_VERSION" in env2) {
32397-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
32403+
return new RegExp("^(?:9\\.0*[1-9]\\d*\\.|\\d{2,}\\.)", "v").test(env2.TEAMCITY_VERSION) ? 1 : 0;
3239832404
}
3239932405
if (env2.COLORTERM === "truecolor") {
3240032406
return 3;
@@ -32409,7 +32415,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
3240932415
return 3;
3241032416
}
3241132417
if ("TERM_PROGRAM" in env2) {
32412-
const version = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
32418+
const version = Number((env2.TERM_PROGRAM_VERSION || "").split(".", 1)[0]);
3241332419
switch (env2.TERM_PROGRAM) {
3241432420
case "iTerm.app": {
3241532421
return version >= 3 ? 3 : 2;
@@ -32419,10 +32425,10 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
3241932425
}
3242032426
}
3242132427
}
32422-
if (/-256(color)?$/i.test(env2.TERM)) {
32428+
if (new RegExp("-256(?:color)?$", "iv").test(env2.TERM)) {
3242332429
return 2;
3242432430
}
32425-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
32431+
if (new RegExp("^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux", "iv").test(env2.TERM)) {
3242632432
return 1;
3242732433
}
3242832434
if ("COLORTERM" in env2) {
@@ -34194,6 +34200,130 @@ function isElectronApp() {
3419434200
function getProcessArgvBin() {
3419534201
return process.argv[getProcessArgvBinIndex()];
3419634202
}
34203+
var segmenter2 = new Intl.Segmenter();
34204+
var zeroWidthClusterRegex = new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Nonspacing_Mark}|\\p{Enclosing_Mark}|\\p{Surrogate})+$", "v");
34205+
var leadingNonPrintingRegex = new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]+", "v");
34206+
var spacingMarkRegex = new RegExp("\\p{Spacing_Mark}", "v");
34207+
var rgiEmojiRegex = new RegExp("^\\p{RGI_Emoji}$", "v");
34208+
var unqualifiedKeycapRegex = /^[\d#*]\u20E3$/;
34209+
var extendedPictographicRegex = new RegExp("\\p{Extended_Pictographic}", "gu");
34210+
function isDoubleWidthNonRgiEmojiSequence(segment) {
34211+
if (segment.length > 50) {
34212+
return false;
34213+
}
34214+
if (unqualifiedKeycapRegex.test(segment)) {
34215+
return true;
34216+
}
34217+
if (segment.includes("\u200D")) {
34218+
const pictographics = segment.match(extendedPictographicRegex);
34219+
return pictographics !== null && pictographics.length >= 2;
34220+
}
34221+
return false;
34222+
}
34223+
function baseVisible(segment) {
34224+
return segment.replace(leadingNonPrintingRegex, "");
34225+
}
34226+
function isZeroWidthCluster(segment) {
34227+
return zeroWidthClusterRegex.test(segment);
34228+
}
34229+
function isHangulLeadingJamo(codePoint) {
34230+
return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
34231+
}
34232+
function isHangulVowelJamo(codePoint) {
34233+
return codePoint >= 4448 && codePoint <= 4519 || codePoint >= 55216 && codePoint <= 55238;
34234+
}
34235+
function isHangulTrailingJamo(codePoint) {
34236+
return codePoint >= 4520 && codePoint <= 4607 || codePoint >= 55243 && codePoint <= 55291;
34237+
}
34238+
function isHangulJamo(codePoint) {
34239+
return isHangulLeadingJamo(codePoint) || isHangulVowelJamo(codePoint) || isHangulTrailingJamo(codePoint);
34240+
}
34241+
function hangulClusterWidth(visibleSegment, eastAsianWidthOptions) {
34242+
const codePoints = [];
34243+
for (const character of visibleSegment) {
34244+
if (zeroWidthClusterRegex.test(character)) {
34245+
continue;
34246+
}
34247+
codePoints.push(character.codePointAt(0));
34248+
}
34249+
if (codePoints.length === 0) {
34250+
return void 0;
34251+
}
34252+
let width = 0;
34253+
for (let index = 0; index < codePoints.length; index++) {
34254+
const codePoint = codePoints[index];
34255+
if (!isHangulJamo(codePoint)) {
34256+
if (width === 0) {
34257+
return void 0;
34258+
}
34259+
for (let remaining = index; remaining < codePoints.length; remaining++) {
34260+
width += eastAsianWidth(codePoints[remaining], eastAsianWidthOptions);
34261+
}
34262+
return width;
34263+
}
34264+
if (isHangulLeadingJamo(codePoint) && isHangulVowelJamo(codePoints[index + 1])) {
34265+
width += 2;
34266+
index += isHangulTrailingJamo(codePoints[index + 2]) ? 2 : 1;
34267+
continue;
34268+
}
34269+
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
34270+
}
34271+
return width;
34272+
}
34273+
function trailingWidth(visibleSegment, eastAsianWidthOptions) {
34274+
let extra = 0;
34275+
let first = true;
34276+
for (const character of visibleSegment) {
34277+
if (first) {
34278+
first = false;
34279+
continue;
34280+
}
34281+
if (spacingMarkRegex.test(character) || character >= "\uFF00" && character <= "\uFFEF") {
34282+
extra += eastAsianWidth(character.codePointAt(0), eastAsianWidthOptions);
34283+
}
34284+
}
34285+
return extra;
34286+
}
34287+
function stringWidth2(input, options = {}) {
34288+
if (typeof input !== "string" || input.length === 0) {
34289+
return 0;
34290+
}
34291+
const {
34292+
ambiguousIsNarrow = true,
34293+
countAnsiEscapeCodes = false
34294+
} = options;
34295+
let string = input;
34296+
if (!countAnsiEscapeCodes && (string.includes("\x1B") || string.includes("\x9B"))) {
34297+
string = stripAnsi(string);
34298+
}
34299+
if (string.length === 0) {
34300+
return 0;
34301+
}
34302+
if (/^[\u0020-\u007E]*$/.test(string)) {
34303+
return string.length;
34304+
}
34305+
let width = 0;
34306+
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
34307+
for (const { segment } of segmenter2.segment(string)) {
34308+
if (isZeroWidthCluster(segment)) {
34309+
continue;
34310+
}
34311+
if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) {
34312+
width += 2;
34313+
continue;
34314+
}
34315+
const visibleSegment = baseVisible(segment);
34316+
const hangulWidth = hangulClusterWidth(visibleSegment, eastAsianWidthOptions);
34317+
if (hangulWidth !== void 0) {
34318+
width += hangulWidth;
34319+
continue;
34320+
}
34321+
const codePoint = visibleSegment.codePointAt(0);
34322+
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
34323+
width += trailingWidth(visibleSegment, eastAsianWidthOptions);
34324+
}
34325+
return width;
34326+
}
3419734327
var node_default = {
3419834328
fs: {
3419934329
readFileSync: readFileSync22,
@@ -34416,7 +34546,7 @@ var esm_default = {
3441634546
const callerFile = (0, import_get_caller_file.default)(3);
3441734547
return callerFile.match(/^file:\/\//) ? fileURLToPath(callerFile) : callerFile;
3441834548
},
34419-
stringWidth,
34549+
stringWidth: stringWidth2,
3442034550
y18n: y18n_default({
3442134551
directory: resolve4(__dirname2, "../../../locales"),
3442234552
updateFiles: false
@@ -36193,6 +36323,8 @@ function mergeDeep2(config1, config2) {
3619336323
}
3619436324
Object.assign(target, config1);
3619536325
for (const key of Object.keys(config2)) {
36326+
if (key === "__proto__")
36327+
continue;
3619636328
if (isObject(config2[key]) && isObject(target[key])) {
3619736329
target[key] = mergeDeep2(config1[key], config2[key]);
3619836330
} else {
@@ -37241,7 +37373,7 @@ var YargsInstance = class {
3724137373
[kGetDollarZero]() {
3724237374
let $0 = "";
3724337375
let default$0;
37244-
if (/\b(node|iojs|electron)(\.exe)?$/.test(__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv()[0])) {
37376+
if (/\b(node|iojs|electron|bun)(\.exe)?$/.test(__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv()[0])) {
3724537377
default$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv().slice(1, 2);
3724637378
} else {
3724737379
default$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv().slice(0, 1);
@@ -65184,7 +65316,7 @@ content-type/dist/index.js:
6518465316
(* v8 ignore next -- @preserve *)
6518565317
(* v8 ignore else -- @preserve *)
6518665318

65187-
@angular/ng-dev/bundles/chunk-GE5YLAX7.mjs:
65319+
@angular/ng-dev/bundles/chunk-QM7BPMX4.mjs:
6518865320
(*! Bundled license information:
6518965321

6519065322
yargs-parser/build/lib/string-utils.js:
@@ -65225,7 +65357,7 @@ content-type/dist/index.js:
6522565357
*)
6522665358
*)
6522765359

65228-
@angular/ng-dev/bundles/chunk-M7XMYTYE.mjs:
65360+
@angular/ng-dev/bundles/chunk-D7SBR34O.mjs:
6522965361
(*! Bundled license information:
6523065362

6523165363
content-type/dist/index.js:

‎.github/workflows/adev-preview-build.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ jobs:
2121
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'adev: preview'))
2222
steps:
2323
- name: Initialize environment
24-
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@442c2fcbf06a321b5196b4c5fc70e78a49242958 # main
24+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
2525
- name: Setup Bazel
26-
uses: angular/dev-infra/github-actions/bazel/setup@442c2fcbf06a321b5196b4c5fc70e78a49242958 # main
26+
uses: angular/dev-infra/github-actions/bazel/setup@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
2727
- name: Setup Bazel RBE
28-
uses: angular/dev-infra/github-actions/bazel/configure-remote@442c2fcbf06a321b5196b4c5fc70e78a49242958 # main
28+
uses: angular/dev-infra/github-actions/bazel/configure-remote@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
2929
- name: Install node modules
3030
run: pnpm install --frozen-lockfile
3131
- name: Build adev
3232
# `snapshot-build` config is used to stamp the exact version with sha in the footer.
3333
run: pnpm bazel build //adev:build.production --config=snapshot-build
34-
- uses: angular/dev-infra/github-actions/previews/pack-and-upload-artifact@442c2fcbf06a321b5196b4c5fc70e78a49242958 # main
34+
- uses: angular/dev-infra/github-actions/previews/pack-and-upload-artifact@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
3535
with:
3636
workflow-artifact-name: 'adev-preview'
3737
pull-number: '${{github.event.pull_request.number}}'

‎.github/workflows/adev-preview-deploy.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
npx -y [email protected] target:clear --config adev/firebase.json --project ${{env.PREVIEW_PROJECT}} hosting angular-docs
4747
npx -y [email protected] target:apply --config adev/firebase.json --project ${{env.PREVIEW_PROJECT}} hosting angular-docs ${{env.PREVIEW_SITE}}
4848
49-
- uses: angular/dev-infra/github-actions/previews/upload-artifacts-to-firebase@442c2fcbf06a321b5196b4c5fc70e78a49242958 # main
49+
- uses: angular/dev-infra/github-actions/previews/upload-artifacts-to-firebase@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
5050
with:
5151
github-token: '${{secrets.GITHUB_TOKEN}}'
5252
workflow-artifact-name: 'adev-preview'

‎.github/workflows/assistant-to-the-branch-manager.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1919
with:
2020
persist-credentials: false
21-
- uses: angular/dev-infra/github-actions/branch-manager@442c2fcbf06a321b5196b4c5fc70e78a49242958 # main
21+
- uses: angular/dev-infra/github-actions/branch-manager@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
2222
with:
2323
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}

‎.github/workflows/benchmark-compare.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ jobs:
5050
- run: pnpm install --frozen-lockfile
5151

5252
- name: Setup Bazel
53-
uses: angular/dev-infra/github-actions/bazel/setup@442c2fcbf06a321b5196b4c5fc70e78a49242958 # main
53+
uses: angular/dev-infra/github-actions/bazel/setup@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
5454

55-
- uses: angular/dev-infra/github-actions/bazel/configure-remote@442c2fcbf06a321b5196b4c5fc70e78a49242958 # main
55+
- uses: angular/dev-infra/github-actions/bazel/configure-remote@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
5656
with:
5757
bazelrc: ./.bazelrc.user
5858

0 commit comments

Comments
 (0)