v3.2.0
This release adds a few new features and fixes.
New features:
- In the object that callbacks for
routeLoading
,routeLoaded
andconditionsFailed
receive, there's now aparams
property that contains the matches params - The router now exports a
$params
readable store that contains all params matched. - The
use:link
action now supports passing an object with options, includinghref
and a newdisable
boolean which disables the link when true; the change maintains backwards-compatibility for when a string is passed rather than an object (#163 - thanks @omerman)
Fixes:
- Do not override state in the browser's history (#197 - thanks @orange4glace)
- Fixed memory leaks when the router was un-mounted (#221, #225, and #214 - thanks @dimitrisrk and @Erwin-k)
- Updated regexparam dependency to version 2.0.0 to fix using svelte-spa-router in the Svelte REPL
- Fixed a warning in Rollup (#207 - thanks @byr-gdp)