github ItalyPaleAle/svelte-spa-router v3.2.0

latest releases: v4.0.1, v4.0.0, v3.3.0...
3 years ago

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)

Don't miss a new svelte-spa-router release

NewReleases is sending notifications on new releases.