v2.0.0
Breaking changes:
Check out the UPGRADING.md file for instructions on updating your code.
- New syntax for
use:active
parameters, compatible with Svelte 3.13+ - New list of arguments for route pre-conditions functions, which now receive a single object rather than two values
- Updated
event.detail
object in therouteLoaded
andconditionsFailed
events.event.detail.component
is now the actual Svelte component (a JavaScript function), while the name (the previouscomponent
property) is nowevent.detail.name
New features:
- The
wrap
function can now be used to add a custom user dictionary to routes, which will be passed to therouteLoaded
andconditionsFailed
events underevent.detail.userData
, as well as to the route pre-condition functions. - The
Router
component now supports a prefix that will be added to all route paths; this is useful for nested routers - The route pre-condition functions and the
routeLoaded
andconditionsFailed
events now receive more data and unlock more opportunities for developers
Fixes:
- Make
use:active
action compatible with Svelte 3.13+
Misc:
- Replaced Azure Pipelines with GitHub Actions for Continuous Integration tests