Skip to content

v3.2.0

Compare
Choose a tag to compare
@ItalyPaleAle ItalyPaleAle released this 17 Jun 03:17
acec9f0

This release adds a few new features and fixes.

New features:

  • In the object that callbacks for routeLoading, routeLoaded and conditionsFailed receive, there's now a params 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, including href and a new disable 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)