[Snyk] Upgrade svelte-spa-router from 2.1.0 to 2.2.0 #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade svelte-spa-router from 2.1.0 to 2.2.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: svelte-spa-router
This release contains a new feature and other small improvements.
New features:
use:link
action (e.g.use:link={val}
) which will take precedence over the tag'shref
value. You can use this to create links whose target changes reactively, for example. (Thanks to @cianx!)tick
method from the Svelte runtime in place of running our ownnextTickPromise
. From now, the method remains an alias of Svelte's owntick
, but will be deprecated in version 3 of the router. (Using the method directly will show a deprecation warning in the console)Fixes:
use:active
using theclassName
property (use:active={{className: 'something something-else'}}
) was causing a runtime exception.loc
readable store when the first object subscribes to it, rather than during initialization. This fixes issues when applications subscribe to theloc
store later in their lifecycle (e.g. if the router is added after page navigations have happened already).Misc:
New features:
routeEvent
now bubbles from a component inside the router to the router's parent; see docspush
,pop
, andreplace
now return a Promise that is resolved when the route navigation succeeded (but not necessarily after the new route has been loaded)Fixes:
replace
method is used in an environment that doesn't support it, such as the Svelte REPL (see #93)Changes:
regexparam
) is added with the exact version now, rather than a caretCommit messages
Package name: svelte-spa-router
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs