Skip to content

Commit

Permalink
🚨 [security] Update vite 4.3.2 → 5.1.6 (major) (#13287)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
depfu[bot] and thecrypticace authored Mar 21, 2024
1 parent 3a466bc commit 3eb8cab
Show file tree
Hide file tree
Showing 3 changed files with 1,131 additions and 175 deletions.
2 changes: 1 addition & 1 deletion integrations/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
},
"devDependencies": {
"isomorphic-fetch": "^3.0.0",
"vite": "^4.3.2"
"vite": "^5.1.6"
}
}
10 changes: 5 additions & 5 deletions integrations/vite/tests/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Loading

0 comments on commit 3eb8cab

Please sign in to comment.