Svelte Four (#7454)

This commit is contained in:
Willow (GHOST) 2023-06-25 15:33:00 +01:00 committed by GitHub
parent 869197aafd
commit 6e7f38dd79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 16 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/svelte': minor
---
feat: support svelte 4

View file

@ -38,7 +38,7 @@
"dev": "astro-scripts dev \"src/**/*.ts\"" "dev": "astro-scripts dev \"src/**/*.ts\""
}, },
"dependencies": { "dependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.1", "@sveltejs/vite-plugin-svelte": "^2.4.2",
"svelte2tsx": "^0.6.15" "svelte2tsx": "^0.6.15"
}, },
"devDependencies": { "devDependencies": {
@ -49,7 +49,7 @@
}, },
"peerDependencies": { "peerDependencies": {
"astro": "workspace:^2.7.0", "astro": "workspace:^2.7.0",
"svelte": "^3.55.0" "svelte": "^3.55.0 || ^4.0.0"
}, },
"engines": { "engines": {
"node": ">=16.12.0" "node": ">=16.12.0"

View file

@ -4793,8 +4793,8 @@ importers:
packages/integrations/svelte: packages/integrations/svelte:
dependencies: dependencies:
'@sveltejs/vite-plugin-svelte': '@sveltejs/vite-plugin-svelte':
specifier: ^2.4.1 specifier: ^2.4.2
version: 2.4.1(svelte@3.59.1)(vite@4.3.9) version: 2.4.2(svelte@3.59.1)(vite@4.3.9)
svelte2tsx: svelte2tsx:
specifier: ^0.6.15 specifier: ^0.6.15
version: 0.6.15(svelte@3.59.1)(typescript@5.0.2) version: 0.6.15(svelte@3.59.1)(typescript@5.0.2)
@ -8367,18 +8367,18 @@ packages:
string.prototype.matchall: 4.0.8 string.prototype.matchall: 4.0.8
dev: false dev: false
/@sveltejs/vite-plugin-svelte-inspector@1.0.2(@sveltejs/vite-plugin-svelte@2.4.1)(svelte@3.59.1)(vite@4.3.9): /@sveltejs/vite-plugin-svelte-inspector@1.0.3(@sveltejs/vite-plugin-svelte@2.4.2)(svelte@3.59.1)(vite@4.3.9):
resolution: {integrity: sha512-Cy1dUMcYCnDVV/hPLXa43YZJ2jGKVW5rA0xuNL9dlmYhT0yoS1g7+FOFSRlgk0BXKk/Oc7grs+8BVA5Iz2fr8A==} resolution: {integrity: sha512-Khdl5jmmPN6SUsVuqSXatKpQTMIifoQPDanaxC84m9JxIibWvSABJyHpyys0Z+1yYrxY5TTEQm+6elh0XCMaOA==}
engines: {node: ^14.18.0 || >= 16} engines: {node: ^14.18.0 || >= 16}
peerDependencies: peerDependencies:
'@sveltejs/vite-plugin-svelte': ^2.2.0 '@sveltejs/vite-plugin-svelte': ^2.2.0
svelte: ^3.54.0 || ^4.0.0-next.0 svelte: ^3.54.0 || ^4.0.0
vite: ^4.0.0 vite: ^4.0.0
peerDependenciesMeta: peerDependenciesMeta:
vite: vite:
optional: true optional: true
dependencies: dependencies:
'@sveltejs/vite-plugin-svelte': 2.4.1(svelte@3.59.1)(vite@4.3.9) '@sveltejs/vite-plugin-svelte': 2.4.2(svelte@3.59.1)(vite@4.3.9)
debug: 4.3.4 debug: 4.3.4
svelte: 3.59.1 svelte: 3.59.1
vite: 4.3.9(@types/node@18.16.18)(sass@1.63.4) vite: 4.3.9(@types/node@18.16.18)(sass@1.63.4)
@ -8386,23 +8386,23 @@ packages:
- supports-color - supports-color
dev: false dev: false
/@sveltejs/vite-plugin-svelte@2.4.1(svelte@3.59.1)(vite@4.3.9): /@sveltejs/vite-plugin-svelte@2.4.2(svelte@3.59.1)(vite@4.3.9):
resolution: {integrity: sha512-bNNKvoRY89ptY7udeBSCmTdCVwkjmMcZ0j/z9J5MuedT8jPjq0zrknAo/jF1sToAza4NVaAgR9AkZoD9oJJmnA==} resolution: {integrity: sha512-ePfcC48ftMKhkT0OFGdOyycYKnnkT6i/buzey+vHRTR/JpQvuPzzhf1PtKqCDQfJRgoPSN2vscXs6gLigx/zGw==}
engines: {node: ^14.18.0 || >= 16} engines: {node: ^14.18.0 || >= 16}
peerDependencies: peerDependencies:
svelte: ^3.54.0 || ^4.0.0-next.0 svelte: ^3.54.0 || ^4.0.0
vite: ^4.0.0 vite: ^4.0.0
peerDependenciesMeta: peerDependenciesMeta:
vite: vite:
optional: true optional: true
dependencies: dependencies:
'@sveltejs/vite-plugin-svelte-inspector': 1.0.2(@sveltejs/vite-plugin-svelte@2.4.1)(svelte@3.59.1)(vite@4.3.9) '@sveltejs/vite-plugin-svelte-inspector': 1.0.3(@sveltejs/vite-plugin-svelte@2.4.2)(svelte@3.59.1)(vite@4.3.9)
debug: 4.3.4 debug: 4.3.4
deepmerge: 4.3.1 deepmerge: 4.3.1
kleur: 4.1.5 kleur: 4.1.5
magic-string: 0.30.0 magic-string: 0.30.0
svelte: 3.59.1 svelte: 3.59.1
svelte-hmr: 0.15.1(svelte@3.59.1) svelte-hmr: 0.15.2(svelte@3.59.1)
vite: 4.3.9(@types/node@18.16.18)(sass@1.63.4) vite: 4.3.9(@types/node@18.16.18)(sass@1.63.4)
vitefu: 0.2.4(vite@4.3.9) vitefu: 0.2.4(vite@4.3.9)
transitivePeerDependencies: transitivePeerDependencies:
@ -16446,11 +16446,11 @@ packages:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
/svelte-hmr@0.15.1(svelte@3.59.1): /svelte-hmr@0.15.2(svelte@3.59.1):
resolution: {integrity: sha512-BiKB4RZ8YSwRKCNVdNxK/GfY+r4Kjgp9jCLEy0DuqAKfmQtpL38cQK3afdpjw4sqSs4PLi3jIPJIFp259NkZtA==} resolution: {integrity: sha512-q/bAruCvFLwvNbeE1x3n37TYFb3mTBJ6TrCq6p2CoFbSTNhDE9oAtEfpy+wmc9So8AG0Tja+X0/mJzX9tSfvIg==}
engines: {node: ^12.20 || ^14.13.1 || >= 16} engines: {node: ^12.20 || ^14.13.1 || >= 16}
peerDependencies: peerDependencies:
svelte: '>=3.19.0' svelte: ^3.19.0 || ^4.0.0-next.0
dependencies: dependencies:
svelte: 3.59.1 svelte: 3.59.1
dev: false dev: false