Skip to content

Commit

Permalink
feat: add Astro v4.0.0 support (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Dec 5, 2023
1 parent cdf17c6 commit c2aae91
Show file tree
Hide file tree
Showing 7 changed files with 1,718 additions and 1,162 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ Zero-config PWA Integration for Astro

## 📦 Install

> Requires Vite 3.1.0+
> From v0.2.0, `@vite-pwa/astro` requires **Vite 5** and **Astro 4.0.0 or above**.
> Using any version older than v0.3 requires Vite 3.1.0+.
```bash
npm i @vite-pwa/astro -D
Expand Down
4 changes: 2 additions & 2 deletions examples/pwa-prompt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"devDependencies": {
"@vite-pwa/astro": "workspace:*",
"astro": "^3.0.5",
"astro": "^4.0.1",
"workbox-window": "^7.0.0"
},
"stackblitz": {
Expand Down
4 changes: 2 additions & 2 deletions examples/pwa-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"devDependencies": {
"@vite-pwa/astro": "workspace:*",
"astro": "^3.0.5",
"astro": "^4.0.1",
"workbox-window": "^7.0.0"
},
"stackblitz": {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@
"release": "bumpp && npm publish"
},
"peerDependencies": {
"astro": "^1.6.0 || ^2.0.0 || ^3.0.0 || ^4.0.0-0",
"vite-plugin-pwa": ">=0.16.5 <1"
"astro": "^1.6.0 || ^2.0.0 || ^3.0.0 || ^4.0.0",
"vite-plugin-pwa": ">=0.17.3 <1"
},
"dependencies": {
"vite-plugin-pwa": ">=0.16.5 <1"
"vite-plugin-pwa": ">=0.17.3 <1"
},
"devDependencies": {
"@antfu/eslint-config": "^0.43.1",
"@antfu/ni": "^0.21.12",
"@types/debug": "^4.1.8",
"@types/node": "^20.8.7",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"astro": "^3.0.5",
"astro": "^4.0.1",
"bumpp": "^9.2.0",
"eslint": "^8.54.0",
"esno": "^4.0.0",
"https-localhost": "^4.7.1",
"typescript": "^5.3.2",
"unbuild": "^2.0.0",
"vite": "^4.3.9"
"vite": "^5.0.0"
}
}
Loading

0 comments on commit c2aae91

Please sign in to comment.