Releases: DanielSharkov/svelte-router
Releases · DanielSharkov/svelte-router
3.1.5
3.1.4 ⏳
- Lazy loaded components ⏳
- Fixes viewport route component swap 🪲
- Awesome list badge 🤩
3.0.3
3.0.2
Upgrade dependencies & fix type definitions.
3.0.1 🚨
Fixes non string before push hook ID breaking the router, instead of throwing an error.
3.0.0 🙌✨
Introducing Awesome Route Transitions 🎈😎
- Removed the viewport
div
container overhead - The route component fragments are now directly rendered as the actual content
2.4.12 🔨
Patches: 🛠
- Added BeforePush interface
- Interface implementation check on
scrollingElement
- Fixed access modifier of
removeBeforePush()
topublic
- Check for empty hook ID on
addBeforePush()
- Panic when no fallback location is set on before push hook rejection
- Clearing before push hooks on destroy, as they still persist after initializing a new router
2.4.6 🩹
❇️ Features:
- Implement
scrollingElement
for history scroll restoration
🛠 Patches:
- Implement & export Router interfaces
- Add missing path on replace history state
- Patch popstate listener
- Patch route initialization
2.1.3
v2.0.0 🎉
❇️ Added features / Improvements:
- TypeScript support
- Before route push hooks
- Restore scroll state
- Updated readme
- Created examples (which you may find in DanielSharkov/svelte-router-examples)
🔄 Changes:
- Now bundling with Rollup instead of Webpack
- Now using direct character comparison instead of deprecated
charCode
❗️ Breaking changes:
- Renamed
RouterLink.svelte
toRouteLink.svelte
and added proprouter
- Now parsing URL query just by
key:value
of type{[key: string]: string}
instead ofkey:values
by type{[key: string]: string|[]string}
- Renamed router API point
navigate
topushPath
, which now only takes a path that already may include the URL query - Renamed
RouterViewport.svelte
toViewport.svelte
and- removed
easeIn
&easeOut
- removed event forwarding props
outrostart
,outroend
,introstart
andintroend
- removed
Just some cool stuff:
- Finally a logo - self made 😊