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\""
},
"dependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.1",
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"svelte2tsx": "^0.6.15"
},
"devDependencies": {
@ -49,7 +49,7 @@
},
"peerDependencies": {
"astro": "workspace:^2.7.0",
"svelte": "^3.55.0"
"svelte": "^3.55.0 || ^4.0.0"
},
"engines": {
"node": ">=16.12.0"

View file

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