From bdbdb92f2b86f231068991652099aedfa0f39ae6 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Mon, 7 Apr 2025 14:51:19 -0400 Subject: [PATCH] build: update webpack to v5.99.1 --- .../angular_devkit/build_angular/package.json | 2 +- .../plugins/index-html-webpack-plugin.ts | 2 +- .../webpack/plugins/remove-hash-plugin.ts | 2 +- .../angular_devkit/build_webpack/package.json | 2 +- .../angular_devkit/build_webpack/src/utils.ts | 2 +- packages/ngtools/webpack/package.json | 2 +- pnpm-lock.yaml | 100 +++++++++--------- 7 files changed, 56 insertions(+), 56 deletions(-) diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 6dd2af6b0854..ad4131ffb45a 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -56,7 +56,7 @@ "terser": "5.39.0", "tree-kill": "1.2.2", "tslib": "2.8.1", - "webpack": "5.98.0", + "webpack": "5.99.1", "webpack-dev-middleware": "7.4.2", "webpack-dev-server": "5.2.1", "webpack-merge": "6.0.1", diff --git a/packages/angular_devkit/build_angular/src/tools/webpack/plugins/index-html-webpack-plugin.ts b/packages/angular_devkit/build_angular/src/tools/webpack/plugins/index-html-webpack-plugin.ts index 14f7923e6435..9c1fdbbcccef 100644 --- a/packages/angular_devkit/build_angular/src/tools/webpack/plugins/index-html-webpack-plugin.ts +++ b/packages/angular_devkit/build_angular/src/tools/webpack/plugins/index-html-webpack-plugin.ts @@ -60,7 +60,7 @@ export class IndexHtmlWebpackPlugin extends IndexHtmlGenerator { } files.push({ - name: chunk.name, + name: chunk.name ?? undefined, file, extension: extname(file), }); diff --git a/packages/angular_devkit/build_angular/src/tools/webpack/plugins/remove-hash-plugin.ts b/packages/angular_devkit/build_angular/src/tools/webpack/plugins/remove-hash-plugin.ts index bf213b19ec38..f4b8c3311689 100644 --- a/packages/angular_devkit/build_angular/src/tools/webpack/plugins/remove-hash-plugin.ts +++ b/packages/angular_devkit/build_angular/src/tools/webpack/plugins/remove-hash-plugin.ts @@ -19,7 +19,7 @@ export class RemoveHashPlugin { apply(compiler: Compiler): void { compiler.hooks.compilation.tap('remove-hash-plugin', (compilation) => { - const assetPath = (path: string, data: { chunk?: { name: string } }) => { + const assetPath = (path: string, data: { chunk?: { name?: string | null } }) => { const chunkName = data.chunk?.name; const { chunkNames, hashFormat } = this.options; diff --git a/packages/angular_devkit/build_webpack/package.json b/packages/angular_devkit/build_webpack/package.json index 27074848d2c7..089e5d16dce5 100644 --- a/packages/angular_devkit/build_webpack/package.json +++ b/packages/angular_devkit/build_webpack/package.json @@ -22,7 +22,7 @@ "devDependencies": { "@angular-devkit/core": "workspace:0.0.0-PLACEHOLDER", "@ngtools/webpack": "workspace:0.0.0-PLACEHOLDER", - "webpack": "5.98.0", + "webpack": "5.99.1", "webpack-dev-server": "5.2.1" }, "peerDependencies": { diff --git a/packages/angular_devkit/build_webpack/src/utils.ts b/packages/angular_devkit/build_webpack/src/utils.ts index 218b85fbcb2a..7a0f228ec676 100644 --- a/packages/angular_devkit/build_webpack/src/utils.ts +++ b/packages/angular_devkit/build_webpack/src/utils.ts @@ -34,7 +34,7 @@ export function getEmittedFiles(compilation: Compilation): EmittedFiles[] { chunkFileNames.add(file); files.push({ id: chunk.id?.toString(), - name: chunk.name, + name: chunk.name ?? undefined, file, extension: path.extname(file), initial: chunk.isOnlyInitial(), diff --git a/packages/ngtools/webpack/package.json b/packages/ngtools/webpack/package.json index 802984ad3689..9a9a42b18065 100644 --- a/packages/ngtools/webpack/package.json +++ b/packages/ngtools/webpack/package.json @@ -30,6 +30,6 @@ "@angular/compiler": "20.0.0-next.5", "@angular/compiler-cli": "20.0.0-next.5", "typescript": "5.8.3", - "webpack": "5.98.0" + "webpack": "5.99.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7da702ab9f70..7260ff46283a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -625,16 +625,16 @@ importers: version: 10.4.21(postcss@8.5.3) babel-loader: specifier: 10.0.0 - version: 10.0.0(@babel/core@7.26.10)(webpack@5.98.0(esbuild@0.25.2)) + version: 10.0.0(@babel/core@7.26.10)(webpack@5.99.1(esbuild@0.25.2)) browserslist: specifier: ^4.21.5 version: 4.24.4 copy-webpack-plugin: specifier: 13.0.0 - version: 13.0.0(webpack@5.98.0(esbuild@0.25.2)) + version: 13.0.0(webpack@5.99.1(esbuild@0.25.2)) css-loader: specifier: 7.1.2 - version: 7.1.2(webpack@5.98.0(esbuild@0.25.2)) + version: 7.1.2(webpack@5.99.1(esbuild@0.25.2)) esbuild-wasm: specifier: 0.25.2 version: 0.25.2 @@ -658,16 +658,16 @@ importers: version: 4.2.2 less-loader: specifier: 12.2.0 - version: 12.2.0(less@4.2.2)(webpack@5.98.0(esbuild@0.25.2)) + version: 12.2.0(less@4.2.2)(webpack@5.99.1(esbuild@0.25.2)) license-webpack-plugin: specifier: 4.0.2 - version: 4.0.2(webpack@5.98.0(esbuild@0.25.2)) + version: 4.0.2(webpack@5.99.1(esbuild@0.25.2)) loader-utils: specifier: 3.3.1 version: 3.3.1 mini-css-extract-plugin: specifier: 2.9.2 - version: 2.9.2(webpack@5.98.0(esbuild@0.25.2)) + version: 2.9.2(webpack@5.99.1(esbuild@0.25.2)) open: specifier: 10.1.0 version: 10.1.0 @@ -685,7 +685,7 @@ importers: version: 8.5.3 postcss-loader: specifier: 8.1.1 - version: 8.1.1(postcss@8.5.3)(typescript@5.8.3)(webpack@5.98.0(esbuild@0.25.2)) + version: 8.1.1(postcss@8.5.3)(typescript@5.8.3)(webpack@5.99.1(esbuild@0.25.2)) resolve-url-loader: specifier: 5.0.0 version: 5.0.0 @@ -697,13 +697,13 @@ importers: version: 1.86.3 sass-loader: specifier: 16.0.5 - version: 16.0.5(sass@1.86.3)(webpack@5.98.0(esbuild@0.25.2)) + version: 16.0.5(sass@1.86.3)(webpack@5.99.1(esbuild@0.25.2)) semver: specifier: 7.7.1 version: 7.7.1 source-map-loader: specifier: 5.0.0 - version: 5.0.0(webpack@5.98.0(esbuild@0.25.2)) + version: 5.0.0(webpack@5.99.1(esbuild@0.25.2)) source-map-support: specifier: 0.5.21 version: 0.5.21 @@ -717,20 +717,20 @@ importers: specifier: 2.8.1 version: 2.8.1 webpack: - specifier: 5.98.0 - version: 5.98.0(esbuild@0.25.2) + specifier: 5.99.1 + version: 5.99.1(esbuild@0.25.2) webpack-dev-middleware: specifier: 7.4.2 - version: 7.4.2(webpack@5.98.0(esbuild@0.25.2)) + version: 7.4.2(webpack@5.99.1(esbuild@0.25.2)) webpack-dev-server: specifier: 5.2.1 - version: 5.2.1(webpack@5.98.0(esbuild@0.25.2)) + version: 5.2.1(webpack@5.99.1(esbuild@0.25.2)) webpack-merge: specifier: 6.0.1 version: 6.0.1 webpack-subresource-integrity: specifier: 5.1.0 - version: 5.1.0(webpack@5.98.0(esbuild@0.25.2)) + version: 5.1.0(webpack@5.99.1(esbuild@0.25.2)) optionalDependencies: esbuild: specifier: 0.25.2 @@ -768,11 +768,11 @@ importers: specifier: workspace:0.0.0-PLACEHOLDER version: link:../../ngtools/webpack webpack: - specifier: 5.98.0 - version: 5.98.0(esbuild@0.25.2) + specifier: 5.99.1 + version: 5.99.1(esbuild@0.25.2) webpack-dev-server: specifier: 5.2.1 - version: 5.2.1(webpack@5.98.0(esbuild@0.25.2)) + version: 5.2.1(webpack@5.99.1(esbuild@0.25.2)) packages/angular_devkit/core: dependencies: @@ -850,8 +850,8 @@ importers: specifier: 5.8.3 version: 5.8.3 webpack: - specifier: 5.98.0 - version: 5.98.0(esbuild@0.25.2) + specifier: 5.99.1 + version: 5.99.1(esbuild@0.25.2) packages/schematics/angular: dependencies: @@ -7753,8 +7753,8 @@ packages: html-webpack-plugin: optional: true - webpack@5.98.0: - resolution: {integrity: sha512-UFynvx+gM44Gv9qFgj0acCQK2VE1CtdfwFdimkapco3hlPCJ/zeq73n2yVKimVbtm+TnApIugGhLJnkU6gjYXA==} + webpack@5.99.1: + resolution: {integrity: sha512-o9gY7ibHPFxLjF6NtvQ6+5CGknsPTRllsL6SEnqR2Zhjk02hiIioJYLS7dvrWaykrRbbmhvDeKp36mKHNbKYiw==} engines: {node: '>=10.13.0'} hasBin: true peerDependencies: @@ -10829,11 +10829,11 @@ snapshots: b4a@1.6.7: {} - babel-loader@10.0.0(@babel/core@7.26.10)(webpack@5.98.0(esbuild@0.25.2)): + babel-loader@10.0.0(@babel/core@7.26.10)(webpack@5.99.1(esbuild@0.25.2)): dependencies: '@babel/core': 7.26.10 find-up: 5.0.0 - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) babel-plugin-polyfill-corejs2@0.4.13(@babel/core@7.26.10): dependencies: @@ -11366,14 +11366,14 @@ snapshots: dependencies: is-what: 3.14.1 - copy-webpack-plugin@13.0.0(webpack@5.98.0(esbuild@0.25.2)): + copy-webpack-plugin@13.0.0(webpack@5.99.1(esbuild@0.25.2)): dependencies: glob-parent: 6.0.2 normalize-path: 3.0.0 schema-utils: 4.3.0 serialize-javascript: 6.0.2 tinyglobby: 0.2.12 - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) core-js-compat@3.41.0: dependencies: @@ -11427,7 +11427,7 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - css-loader@7.1.2(webpack@5.98.0(esbuild@0.25.2)): + css-loader@7.1.2(webpack@5.99.1(esbuild@0.25.2)): dependencies: icss-utils: 5.1.0(postcss@8.5.3) postcss: 8.5.3 @@ -11438,7 +11438,7 @@ snapshots: postcss-value-parser: 4.2.0 semver: 7.7.1 optionalDependencies: - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) css-select@5.1.0: dependencies: @@ -13380,11 +13380,11 @@ snapshots: picocolors: 1.1.1 shell-quote: 1.8.2 - less-loader@12.2.0(less@4.2.2)(webpack@5.98.0(esbuild@0.25.2)): + less-loader@12.2.0(less@4.2.2)(webpack@5.99.1(esbuild@0.25.2)): dependencies: less: 4.2.2 optionalDependencies: - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) less@4.2.2: dependencies: @@ -13405,11 +13405,11 @@ snapshots: prelude-ls: 1.2.1 type-check: 0.4.0 - license-webpack-plugin@4.0.2(webpack@5.98.0(esbuild@0.25.2)): + license-webpack-plugin@4.0.2(webpack@5.99.1(esbuild@0.25.2)): dependencies: webpack-sources: 3.2.3 optionalDependencies: - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) lie@3.3.0: dependencies: @@ -13637,11 +13637,11 @@ snapshots: mimic-function@5.0.1: {} - mini-css-extract-plugin@2.9.2(webpack@5.98.0(esbuild@0.25.2)): + mini-css-extract-plugin@2.9.2(webpack@5.99.1(esbuild@0.25.2)): dependencies: schema-utils: 4.3.0 tapable: 2.2.1 - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) minimalistic-assert@1.0.1: {} @@ -14255,14 +14255,14 @@ snapshots: possible-typed-array-names@1.1.0: {} - postcss-loader@8.1.1(postcss@8.5.3)(typescript@5.8.3)(webpack@5.98.0(esbuild@0.25.2)): + postcss-loader@8.1.1(postcss@8.5.3)(typescript@5.8.3)(webpack@5.99.1(esbuild@0.25.2)): dependencies: cosmiconfig: 9.0.0(typescript@5.8.3) jiti: 1.21.7 postcss: 8.5.3 semver: 7.7.1 optionalDependencies: - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) transitivePeerDependencies: - typescript @@ -14796,12 +14796,12 @@ snapshots: safer-buffer@2.1.2: {} - sass-loader@16.0.5(sass@1.86.3)(webpack@5.98.0(esbuild@0.25.2)): + sass-loader@16.0.5(sass@1.86.3)(webpack@5.99.1(esbuild@0.25.2)): dependencies: neo-async: 2.6.2 optionalDependencies: sass: 1.86.3 - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) sass@1.86.3: dependencies: @@ -15124,11 +15124,11 @@ snapshots: source-map-js@1.2.1: {} - source-map-loader@5.0.0(webpack@5.98.0(esbuild@0.25.2)): + source-map-loader@5.0.0(webpack@5.99.1(esbuild@0.25.2)): dependencies: iconv-lite: 0.6.3 source-map-js: 1.2.1 - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) source-map-resolve@0.6.0: dependencies: @@ -15408,14 +15408,14 @@ snapshots: - encoding - supports-color - terser-webpack-plugin@5.3.14(esbuild@0.25.2)(webpack@5.98.0(esbuild@0.25.2)): + terser-webpack-plugin@5.3.14(esbuild@0.25.2)(webpack@5.99.1(esbuild@0.25.2)): dependencies: '@jridgewell/trace-mapping': 0.3.25 jest-worker: 27.5.1 schema-utils: 4.3.0 serialize-javascript: 6.0.2 terser: 5.39.0 - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) optionalDependencies: esbuild: 0.25.2 @@ -15850,7 +15850,7 @@ snapshots: webidl-conversions@7.0.0: {} - webpack-dev-middleware@7.4.2(webpack@5.98.0(esbuild@0.25.2)): + webpack-dev-middleware@7.4.2(webpack@5.99.1(esbuild@0.25.2)): dependencies: colorette: 2.0.20 memfs: 4.17.0 @@ -15859,9 +15859,9 @@ snapshots: range-parser: 1.2.1 schema-utils: 4.3.0 optionalDependencies: - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) - webpack-dev-server@5.2.1(webpack@5.98.0(esbuild@0.25.2)): + webpack-dev-server@5.2.1(webpack@5.99.1(esbuild@0.25.2)): dependencies: '@types/bonjour': 3.5.13 '@types/connect-history-api-fallback': 1.5.4 @@ -15889,10 +15889,10 @@ snapshots: serve-index: 1.9.1 sockjs: 0.3.24 spdy: 4.0.2 - webpack-dev-middleware: 7.4.2(webpack@5.98.0(esbuild@0.25.2)) + webpack-dev-middleware: 7.4.2(webpack@5.99.1(esbuild@0.25.2)) ws: 8.18.1 optionalDependencies: - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) transitivePeerDependencies: - bufferutil - debug @@ -15907,12 +15907,12 @@ snapshots: webpack-sources@3.2.3: {} - webpack-subresource-integrity@5.1.0(webpack@5.98.0(esbuild@0.25.2)): + webpack-subresource-integrity@5.1.0(webpack@5.99.1(esbuild@0.25.2)): dependencies: typed-assert: 1.0.9 - webpack: 5.98.0(esbuild@0.25.2) + webpack: 5.99.1(esbuild@0.25.2) - webpack@5.98.0(esbuild@0.25.2): + webpack@5.99.1(esbuild@0.25.2): dependencies: '@types/eslint-scope': 3.7.7 '@types/estree': 1.0.7 @@ -15934,7 +15934,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 4.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.14(esbuild@0.25.2)(webpack@5.98.0(esbuild@0.25.2)) + terser-webpack-plugin: 5.3.14(esbuild@0.25.2)(webpack@5.99.1(esbuild@0.25.2)) watchpack: 2.4.2 webpack-sources: 3.2.3 transitivePeerDependencies: