github ItalyPaleAle/svelte-spa-router v2.2.0

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

This release contains a new feature and other small improvements.

New features:

  • You can now pass a parameter to the use:link action (e.g. use:link={val}) which will take precedence over the tag's href value. You can use this to create links whose target changes reactively, for example. (Thanks to @cianx!)
  • Using the tick method from the Svelte runtime in place of running our own nextTickPromise. From now, the method remains an alias of Svelte's own tick, but will be deprecated in version 3 of the router. (Using the method directly will show a deprecation warning in the console)

Fixes:

  • Fixed: passing more than one class to use:active using the className property (use:active={{className: 'something something-else'}}) was causing a runtime exception.
  • Setting the initial value for the loc readable store when the first object subscribes to it, rather than during initialization. This fixes issues when applications subscribe to the loc store later in their lifecycle (e.g. if the router is added after page navigations have happened already).

Misc:

  • Updated devDependencies

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

NewReleases is sending notifications on new releases.