Skip to content

Commit

Permalink
Update Vite version (#1830)
Browse files Browse the repository at this point in the history
* Avoid minor bumps in Vite versions

* Changesets
  • Loading branch information
frandiox committed Mar 12, 2024
1 parent c136030 commit 5060cf5
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-ads-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli-hydrogen': patch
---

Change the required Vite version to `~5.1.0` instead of `^5.1.0` to avoid breaking changes in experimental APIs that will be introduced in Vite 5.2.0.
2 changes: 1 addition & 1 deletion examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"codegen": "shopify hydrogen codegen"
},
"devDependencies": {
"vite": "^5.1.0",
"vite": "~5.1.0",
"vite-tsconfig-paths": "^4.3.1"
},
"h2:diff": {
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"flame-chart-js": "2.3.2",
"get-port": "^7.0.0",
"type-fest": "^4.5.0",
"vite": "^5.1.0",
"vite": "~5.1.0",
"vitest": "^1.0.4"
},
"dependencies": {
Expand Down Expand Up @@ -65,7 +65,7 @@
},
"peerDependencies": {
"@remix-run/dev": "^2.1.0",
"vite": "^5.1.0"
"vite": "~5.1.0"
},
"peerDependenciesMeta": {
"@remix-run/dev": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/setup-assets/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"isbot": "^3.8.0"
},
"devDependencies": {
"vite": "^5.1.0",
"vite": "~5.1.0",
"vite-tsconfig-paths": "^4.3.1"
}
}
2 changes: 1 addition & 1 deletion packages/hydrogen-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"rimraf": "^4.1.2",
"ts-expect": "^1.3.0",
"typescript": "^5.2.2",
"vite": "^5.1.0",
"vite": "~5.1.0",
"vitest": "^1.0.4"
},
"peerDependencies": {
Expand Down

0 comments on commit 5060cf5

Please sign in to comment.