Skip to content

Commit 7f56f35

Browse files
committed
reimplement the router with createSubscriber from svelte/reactivity
https://svelte.dev/docs/svelte/svelte-reactivity#createSubscriber Available since Svelte 5.7.0 The router now doesn't need to be a rune, use `createSubscriber()` in a normal .ts file instead. `libs/router.ts` exports a singleton of the class Router (even though, theoretically, the class can be used multiple times too)
1 parent f807fef commit 7f56f35

6 files changed

Lines changed: 201 additions & 185 deletions

File tree

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717
"prettier:fix": "prettier --write src/"
1818
},
1919
"devDependencies": {
20-
"@sveltejs/vite-plugin-svelte": "^5.0.1",
20+
"@sveltejs/vite-plugin-svelte": "^5.0.3",
2121
"@tsconfig/svelte": "^5.0.4",
22-
"@types/node": "^22.10.1",
22+
"@types/node": "^22.10.2",
2323
"prettier": "^3.4.2",
2424
"prettier-plugin-svelte": "^3.3.2",
2525
"svelte-check": "^4.1.1",
2626
"tslib": "^2.8.1",
2727
"typescript": "^5.7.2",
28-
"vite": "^6.0.2"
28+
"vite": "^6.0.5"
2929
},
3030
"dependencies": {
3131
"hashids": "^2.3.0",
3232
"linkifyjs": "^4.2.0",
33-
"svelte": "^5.6.2"
33+
"svelte": "^5.15.0"
3434
},
3535
"prettier": {
3636
"printWidth": 120,

0 commit comments

Comments
 (0)