-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit d832370
fix(@angular-devkit/build-angular): update vite to version 5.4.14
Version update from 5.1.8 to address advisory GHSA-vg6x-rcgg-rjx6
Vite version 5.4.12+, which is now used by the Angular CLI with the `application`/`browser-esbuild`
builders, contains a potentially breaking change for some development setups. Examples of such
setups include those that use reverse proxies or custom host names during development.
The change within a patch release was made by Vite to address a security vulnerability.
For projects that directly access the development server via `localhost`, no changes should
be needed. However, some development setups may now need to adjust the
`allowedHosts` development server option. This option can include an array
of host names that are allowed to communicate with the development server. The option
sets the corresponding Vite option within the Angular CLI.
For more information on the option and its specific behavior, please see the Vite
documentation located here:
https://vite.dev/config/server-options.html#server-allowedhosts
The following is an example of the configuration option allowing `example.com`:
```
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"allowedHosts": ["example.com"]
},
```1 parent 29c6b0d commit d832370
File tree
9 files changed
+406
-75
lines changed- packages/angular_devkit/build_angular
- src
- builders/dev-server
- tests
- options
- tools/vite
9 files changed
+406
-75
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
210 | 210 |
| |
211 | 211 |
| |
212 | 212 |
| |
213 | - | ||
213 | + | ||
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 | - | ||
65 | + | ||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
|
Lines changed: 0 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
79 | - | ||
80 | - | ||
81 | - | ||
82 | - | ||
83 | - | ||
84 | - | ||
85 | 79 |
| |
86 | 80 |
| |
87 | 81 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 | - | ||
76 | + | ||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
|
Lines changed: 47 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | + | ||
10 | + | ||
9 | 11 |
| |
10 | - | ||
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
| |||
41 | 42 |
| |
42 | 43 |
| |
43 | 44 |
| |
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + |
Lines changed: 39 additions & 44 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 | - | ||
10 | + | ||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | - | ||
17 | - | ||
18 | - | ||
19 | - | ||
20 | - | ||
21 | - | ||
22 | - | ||
23 | - | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
24 | 20 |
| |
25 | - | ||
26 | - | ||
27 | - | ||
28 | - | ||
29 | - | ||
30 | - | ||
31 | - | ||
32 | - | ||
21 | + | ||
22 | + | ||
23 | + | ||
33 | 24 |
| |
34 | - | ||
35 | - | ||
36 | - | ||
25 | + | ||
26 | + | ||
37 | 27 |
| |
38 | - | ||
39 | - | ||
28 | + | ||
29 | + | ||
40 | 30 |
| |
41 | 31 |
| |
42 | - | ||
43 | - | ||
44 | - | ||
45 | - | ||
46 | - | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
47 | 39 |
| |
48 | - | ||
49 | - | ||
50 | - | ||
40 | + | ||
41 | + | ||
51 | 42 |
| |
52 | - | ||
53 | - | ||
43 | + | ||
44 | + | ||
54 | 45 |
| |
55 | 46 |
| |
56 | - | ||
57 | - | ||
58 | - | ||
59 | - | ||
60 | - | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
61 | 54 |
| |
62 | - | ||
63 | - | ||
64 | - | ||
55 | + | ||
56 | + | ||
65 | 57 |
| |
66 | - | ||
67 | - | ||
58 | + | ||
59 | + | ||
68 | 60 |
| |
61 | + | ||
62 | + | ||
63 | + | ||
69 | 64 |
| |
70 | - | ||
71 | - | ||
65 | + | ||
66 | + |
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
485 | 485 |
| |
486 | 486 |
| |
487 | 487 |
| |
488 | + | ||
488 | 489 |
| |
489 | 490 |
| |
490 | 491 |
| |
|
Lines changed: 12 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 | - | ||
78 | - | ||
79 | - | ||
80 | - | ||
77 | + | ||
81 | 78 |
| |
82 | 79 |
| |
83 | 80 |
| |
| |||
309 | 306 |
| |
310 | 307 |
| |
311 | 308 |
| |
312 | - | ||
309 | + | ||
313 | 310 |
| |
314 | - | ||
315 | - | ||
316 | - | ||
317 | - | ||
318 | - | ||
319 | - | ||
311 | + | ||
312 | + | ||
313 | + | ||
314 | + | ||
315 | + | ||
316 | + | ||
317 | + | ||
318 | + | ||
320 | 319 |
| |
321 | 320 |
| |
322 | - | ||
321 | + | ||
323 | 322 |
| |
324 | - | ||
323 | + | ||
325 | 324 |
| |
326 | 325 |
| |
327 | 326 |
| |
|
0 commit comments