🚨 [security] Update vite 4.3.2 → 5.1.6 (major) (#13287)

* Update vite to version 5.1.6

* Fix regex

---------

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Jordan Pittman <jordan@cryptica.me>
This commit is contained in:
depfu[bot] 2024-03-21 09:02:38 -04:00 • committed by GitHub
parent 3a466bca04
commit 3eb8cab547
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1131 additions and 175 deletions

View file

@ -21,6 +21,6 @@
},
"devDependencies": {
"isomorphic-fetch": "^3.0.0",
"vite": "^4.3.2"
"vite": "^5.1.6"
}
}

View file

@ -34,7 +34,7 @@ describe('static build', () => {
env: { NODE_ENV: 'production', NO_COLOR: '1' },
})
expect(await readOutputFile(/index.\w+\.css$/)).toIncludeCss(
expect(await readOutputFile(/index.[a-z0-9_-]+\.css$/i)).toIncludeCss(
css`
.font-bold {
font-weight: 700;
@ -76,7 +76,7 @@ describe('static build', () => {
})
if (env.ENGINE === 'stable') {
expect(await readOutputFile(/index.\w+\.css$/)).toIncludeCss(
expect(await readOutputFile(/index.[a-z0-9_-]+\.css$/i)).toIncludeCss(
css`
.bg-primary {
--tw-bg-opacity: 1;
@ -87,7 +87,7 @@ describe('static build', () => {
}
if (env.ENGINE === 'oxide') {
expect(await readOutputFile(/index.\w+\.css$/)).toIncludeCss(
expect(await readOutputFile(/index.[a-z0-9_-]+\.css$/i)).toIncludeCss(
css`
.bg-primary {
background-color: black;
@ -132,7 +132,7 @@ describe('static build', () => {
})
if (env.ENGINE === 'stable') {
expect(await readOutputFile(/index.\w+\.css$/)).toIncludeCss(
expect(await readOutputFile(/index.[a-z0-9_-]+\.css$/i)).toIncludeCss(
css`
.bg-primary {
--tw-bg-opacity: 1;
@ -143,7 +143,7 @@ describe('static build', () => {
}
if (env.ENGINE === 'oxide') {
expect(await readOutputFile(/index.\w+\.css$/)).toIncludeCss(
expect(await readOutputFile(/index.[a-z0-9_-]+\.css$/i)).toIncludeCss(
css`
.bg-primary {
background-color: black;

1294
package-lock.json generated

File diff suppressed because it is too large Load diff