Releases: bluwy/svelte-router
Releases · bluwy/svelte-router
v0.5.0
Added
- Use location API for hash navigation (#15)
v0.4.0
Fixed
- Don't remount component when enter nested routes
Known issues
- Transitions may not work well between routes (especially if dynamically imported)
v0.3.2
Fixed
- Keep
navigate
and createLink
reference when initializing router
v0.3.1
Added
- Support component dynamic import
v0.3.0
Added
Changed
route
only update if url change
- Replace
initRouter
with initHashRouter
and initPathRouter
to improve tree-shaking
Removed
- Remove
RedirectOption
type export
v0.2.1
Fixed
<Link />
will work properly with special key clicks, e.g. ctrl-click
v0.2.0
Added
- Add
createLink
function to enable custom link creation
- Format URL on page load
Changed
- Rename
history
mode to path
- All router options need to be defined
- All public APIs, except for
route
, will now throw an error if called before initRouter
initRouter
will throw an error if called more than once
LocationInput
's path
, search
and hash
will treat empty string as undefined
Removed
- Remove
link
action, use createLink
instead
Fixed
- Fix synchronous redirect rendering
v0.1.2
Fixed
- Route store is always defined even before
initRouter
navigate
will not throw error if called before initRouter
- Fix base path detection
v0.1.1
Fixed
- Fix unexpected slot "default" warning