Skip to content

Commit 360f95f

Browse files
authored
chore: bump dependencies (#75)
Migrate some code while doing that due to latest Svelte 5 changes
1 parent 3a6ad33 commit 360f95f

File tree

22 files changed

+671
-701
lines changed

22 files changed

+671
-701
lines changed

apps/svelte.dev/content/tutorial/+assets/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"preview": "./node_modules/vite/bin/vite.js preview"
88
},
99
"devDependencies": {
10-
"@rollup/wasm-node": "^4.18.0",
11-
"@sveltejs/kit": "^2",
10+
"@rollup/wasm-node": "^4.25.0",
11+
"@sveltejs/kit": "^2.5",
1212
"esbuild-wasm": "^0.21.5",
13-
"svelte": "^5.0.0-next.160",
14-
"vite": "^5"
13+
"svelte": "^5.0.0-next.243",
14+
"vite": "^5.4"
1515
},
1616
"type": "module"
1717
}

apps/svelte.dev/content/tutorial/02-advanced-svelte/10-module-context/01-sharing-code/+assets/app-b/src/lib/AudioPlayer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script context="module">
1+
<script module>
22
let current;
33
</script>
44

apps/svelte.dev/content/tutorial/02-advanced-svelte/10-module-context/01-sharing-code/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ In all the examples we've seen so far, the `<script>` block contains code that r
66

77
Very occasionally, you'll need to run some code outside of an individual component instance. For example: returning to our custom audio player from a [previous exercise](media-elements), you can play all four tracks simultaneously. It would be better if playing one stopped all the others.
88

9-
We can do that by declaring a `<script context="module">` block. Code contained inside it will run once, when the module first evaluates, rather than when a component is instantiated. Place this at the top of `AudioPlayer.svelte` (note that this is a _separate_ script tag):
9+
We can do that by declaring a `<script module>` block. Code contained inside it will run once, when the module first evaluates, rather than when a component is instantiated. Place this at the top of `AudioPlayer.svelte` (note that this is a _separate_ script tag):
1010

1111
```svelte
1212
/// file: AudioPlayer.svelte
13-
+++<script context="module">
13+
+++<script module>
1414
let current;
1515
</script>+++
1616
```

apps/svelte.dev/content/tutorial/02-advanced-svelte/10-module-context/02-module-exports/+assets/app-b/src/lib/AudioPlayer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script context="module">
1+
<script module>
22
let current;
33
44
export function stopAll() {

apps/svelte.dev/content/tutorial/02-advanced-svelte/10-module-context/02-module-exports/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
title: Exports
33
---
44

5-
Anything exported from a `context="module"` script block becomes an export from the module itself. Let's export a `stopAll` function:
5+
Anything exported from a `module` script block becomes an export from the module itself. Let's export a `stopAll` function:
66

77
```svelte
88
/// file: AudioPlayer.svelte
9-
<script context="module">
9+
<script module>
1010
let current;
1111
1212
+++ export function stopAll() {

apps/svelte.dev/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,21 @@
6060
},
6161
"devDependencies": {
6262
"@resvg/resvg-js": "^2.6.2",
63-
"@sveltejs/adapter-vercel": "^5.3.1",
64-
"@sveltejs/enhanced-img": "^0.3.0",
65-
"@sveltejs/kit": "^2.5.15",
63+
"@sveltejs/adapter-vercel": "^5.4.3",
64+
"@sveltejs/enhanced-img": "^0.3.4",
65+
"@sveltejs/kit": "^2.5.25",
6666
"@sveltejs/site-kit": "workspace:*",
67-
"@sveltejs/vite-plugin-svelte": "4.0.0-next.3",
67+
"@sveltejs/vite-plugin-svelte": "4.0.0-next.6",
6868
"@types/cookie": "^0.6.0",
6969
"@types/node": "^20.14.2",
7070
"@vercel/speed-insights": "^1.0.0",
7171
"browserslist": "^4.23.1",
7272
"degit": "^2.8.4",
7373
"dotenv": "^16.4.5",
74-
"esbuild": "^0.20.2",
74+
"esbuild": "^0.21.5",
7575
"jimp": "^1.1.1",
7676
"lightningcss": "^1.25.1",
77-
"magic-string": "^0.30.10",
77+
"magic-string": "^0.30.11",
7878
"marked": "^12.0.2",
7979
"prettier": "^3.3.2",
8080
"prettier-plugin-svelte": "^3.2.4",
@@ -83,12 +83,12 @@
8383
"shelljs": "^0.8.5",
8484
"shiki": "^1.6.4",
8585
"shiki-twoslash": "^3.1.2",
86-
"svelte": "5.0.0-next.160",
87-
"svelte-check": "^3.8.2",
86+
"svelte": "5.0.0-next.243",
87+
"svelte-check": "^4.0.0",
8888
"svelte-preprocess": "^5.1.4",
8989
"tiny-glob": "^0.2.9",
90-
"typescript": "^5.4.5",
91-
"vite": "^5.2.13",
92-
"vite-imagetools": "^7.0.2"
90+
"typescript": "^5.5.4",
91+
"vite": "^5.4.3",
92+
"vite-imagetools": "^7.0.4"
9393
}
9494
}

0 commit comments

Comments
 (0)