Skip to content

Commit 1039a64

Browse files
committed
build: update all non-major dependencies
1 parent 34ff877 commit 1039a64

File tree

5 files changed

+36
-29
lines changed

5 files changed

+36
-29
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@
196196
"ts-node": "^10.9.1",
197197
"tslib": "2.6.3",
198198
"typescript": "5.5.1-rc",
199-
"undici": "6.18.2",
199+
"undici": "6.19.0",
200200
"verdaccio": "5.31.1",
201201
"verdaccio-auth-memory": "^10.0.0",
202-
"vite": "5.2.13",
202+
"vite": "5.3.1",
203203
"watchpack": "2.4.1",
204204
"webpack": "5.92.0",
205205
"webpack-dev-middleware": "7.2.1",

packages/angular/build/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"piscina": "4.5.1",
4141
"sass": "1.77.5",
4242
"semver": "7.6.2",
43-
"undici": "6.18.2",
44-
"vite": "5.2.13",
43+
"undici": "6.19.0",
44+
"vite": "5.3.1",
4545
"watchpack": "2.4.1"
4646
},
4747
"peerDependencies": {

packages/angular/build/src/tools/vite/angular-memory-plugin.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,14 @@ export function createAngularMemoryPlugin(options: AngularMemoryPluginOptions):
6868
return join(virtualProjectRoot, source);
6969
}
7070
},
71-
async load(id) {
71+
load(id) {
7272
const [file] = id.split('?', 1);
7373
const relativeFile = '/' + normalizePath(relative(virtualProjectRoot, file));
7474
const codeContents = outputFiles.get(relativeFile)?.contents;
7575
if (codeContents === undefined) {
76-
if (relativeFile.endsWith('/node_modules/vite/dist/client/client.mjs')) {
77-
return {
78-
code: await loadViteClientCode(file),
79-
map: await readFile(file + '.map', 'utf-8'),
80-
};
81-
}
82-
83-
return;
76+
return relativeFile.endsWith('/node_modules/vite/dist/client/client.mjs')
77+
? loadViteClientCode(file)
78+
: undefined;
8479
}
8580

8681
const code = Buffer.from(codeContents).toString('utf-8');
@@ -312,11 +307,16 @@ export function createAngularMemoryPlugin(options: AngularMemoryPluginOptions):
312307
async function loadViteClientCode(file: string): Promise<string> {
313308
const originalContents = await readFile(file, 'utf-8');
314309
const updatedContents = originalContents.replace(
315-
`h('br'), 'You can also disable this overlay by setting ', ` +
316-
`h('code', { part: 'config-option-name' }, 'server.hmr.overlay'), '` +
317-
` to ', h('code', { part: 'config-option-value' }, 'false'), ' in ', h('code', { part: 'config-file-name' }, hmrConfigName), '.'`,
310+
`"You can also disable this overlay by setting ",
311+
h("code", { part: "config-option-name" }, "server.hmr.overlay"),
312+
" to ",
313+
h("code", { part: "config-option-value" }, "false"),
314+
" in ",
315+
h("code", { part: "config-file-name" }, hmrConfigName),
316+
"."`,
318317
'',
319318
);
319+
320320
assert(originalContents !== updatedContents, 'Failed to update Vite client error overlay text.');
321321

322322
return updatedContents;

packages/angular_devkit/build_angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
"terser": "5.31.1",
6262
"tree-kill": "1.2.2",
6363
"tslib": "2.6.3",
64-
"undici": "6.18.2",
65-
"vite": "5.2.13",
64+
"undici": "6.19.0",
65+
"vite": "5.3.1",
6666
"watchpack": "2.4.1",
6767
"webpack": "5.92.0",
6868
"webpack-dev-middleware": "7.2.1",

yarn.lock

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ __metadata:
120120
terser: "npm:5.31.1"
121121
tree-kill: "npm:1.2.2"
122122
tslib: "npm:2.6.3"
123-
undici: "npm:6.18.2"
124-
vite: "npm:5.2.13"
123+
undici: "npm:6.19.0"
124+
vite: "npm:5.3.1"
125125
watchpack: "npm:2.4.1"
126126
webpack: "npm:5.92.0"
127127
webpack-dev-middleware: "npm:7.2.1"
@@ -405,8 +405,8 @@ __metadata:
405405
piscina: "npm:4.5.1"
406406
sass: "npm:1.77.5"
407407
semver: "npm:7.6.2"
408-
undici: "npm:6.18.2"
409-
vite: "npm:5.2.13"
408+
undici: "npm:6.19.0"
409+
vite: "npm:5.3.1"
410410
watchpack: "npm:2.4.1"
411411
peerDependencies:
412412
"@angular/compiler-cli": ^18.0.0 || ^18.1.0-next.0
@@ -763,10 +763,10 @@ __metadata:
763763
ts-node: "npm:^10.9.1"
764764
tslib: "npm:2.6.3"
765765
typescript: "npm:5.5.1-rc"
766-
undici: "npm:6.18.2"
766+
undici: "npm:6.19.0"
767767
verdaccio: "npm:5.31.1"
768768
verdaccio-auth-memory: "npm:^10.0.0"
769-
vite: "npm:5.2.13"
769+
vite: "npm:5.3.1"
770770
watchpack: "npm:2.4.1"
771771
webpack: "npm:5.92.0"
772772
webpack-dev-middleware: "npm:7.2.1"
@@ -18025,6 +18025,13 @@ __metadata:
1802518025
languageName: node
1802618026
linkType: hard
1802718027

18028+
"undici@npm:6.19.0":
18029+
version: 6.19.0
18030+
resolution: "undici@npm:6.19.0"
18031+
checksum: 10c0/cc389832bde16a74c179778163b4b1c23407a7adc74efc2deccec9c8540df765798c9caff2ec918af6dd8ecf63b4c32f7ffcd0d7b86a4737869e8419d61dc49d
18032+
languageName: node
18033+
linkType: hard
18034+
1802818035
"unicode-canonical-property-names-ecmascript@npm:^2.0.0":
1802918036
version: 2.0.0
1803018037
resolution: "unicode-canonical-property-names-ecmascript@npm:2.0.0"
@@ -18435,11 +18442,11 @@ __metadata:
1843518442
languageName: node
1843618443
linkType: hard
1843718444

18438-
"vite@npm:5.2.13":
18439-
version: 5.2.13
18440-
resolution: "vite@npm:5.2.13"
18445+
"vite@npm:5.3.1":
18446+
version: 5.3.1
18447+
resolution: "vite@npm:5.3.1"
1844118448
dependencies:
18442-
esbuild: "npm:^0.20.1"
18449+
esbuild: "npm:^0.21.3"
1844318450
fsevents: "npm:~2.3.3"
1844418451
postcss: "npm:^8.4.38"
1844518452
rollup: "npm:^4.13.0"
@@ -18471,7 +18478,7 @@ __metadata:
1847118478
optional: true
1847218479
bin:
1847318480
vite: bin/vite.js
18474-
checksum: 10c0/f7a99da71884e69cc581dcfb43d73c8d56d73b9668d6980131603c544d6323c6003a20f376531dc0cfcf36bf5009bc465f89e6c5f8bd9d22868987aba4e4af1b
18481+
checksum: 10c0/9317262c02ea2dc324dfdbc20c3c450cd89cc9a16399a41a4bf820a3a1f31cf400878c015135e355ee034853cc2399b5499899d5b1bc462d57642d71083e74b6
1847518482
languageName: node
1847618483
linkType: hard
1847718484

0 commit comments

Comments
 (0)