Small and powerful client-side router for Web Components. Framework-agnostic.
Live Demo → API Documentation →
Full Changelog: https://github.com/vaadin/router/compare/v1.7.4...v1.7.5
Live Demo → API Documentation →
Live Demo → API Documentation →
c110761 Add missing type definition for the location-changed event (#512)
1e4a4b1 Add missing type definition RouteWithAnimation
(#478)
Dependency updates
Live Demo → API Documentation →
4ba4e08 fix: Do lifecycle callbacks even on the same route (#456)
Fixes vaadin/flow#7665, vaadin/flow#7572, vaadin/flow#8071
Live Demo → API Documentation →
c68243b fix: update location when reusing parents (#439)
Fixes #428
a382bab test(router): matching child not under first parent (#438)
Fixes #307
c040547 chore: regenerate /docs
cee8143 test: fix Safari errors in CI (#440)
test: fix DOM assertion in a test for Safari 9
test: fix pushState throttler for iOS 12
Live Demo → API Documentation →
feat(typescript): add NavigationTrigger and lifecycle types (#427)
Fixes #422
dd5e4ea feat(typescript): extract type definitions from Router namespace (#427)
4c13710 docs(typescript): add examples of TypeScript location and lifecycle interfaces (#432)
Fixes #423
c41583a fix: add a mass-ignore example to the docs
Follow-up on #421, related to #325
6c1eca9 chore(docs): regenerate /docs
Live Demo → API Documentation →
b5b80ad feat: add router-ignore attribute to let the browser handle navigation (#421)
Fixes: #325
Makes Vaadin Router not handle the click events on links with the router-ignore
attribute.
940df38 chore: update npm dependencies (#412).
Includes a minor update to vaadin-usage-statistics.
10c0553 chore(deps): use stylelint-config-vaadin 0.1.4
540a838 chore(tsconfig): set skipLibCheck: true
Live Demo → API Documentation →
e0da44a fix: change default baseUrl to be an absolute pathname (#410)
Fixes #409. Previously, Vaadin Router taked base href as baseUrl which is later resolved against document.baseURI regardless it's a relative one or not. Semantically, baseUrl shouldn't be in relative form because it is the prefix of every route in the Router. With this change, it resolves the relative base href to be an absolute pathname before setting it as the baseUrl.
Live Demo → API Documentation →
1bfd0ae fix: ensure location-changed event is timed after window.location update (#407)
Fixes #340. Makes sure window.location
is up-to-date when vaadin-router-location-changed
.
f2f9210 fix: add browser history states for non-initial redirects (#406)
Fixes #324. Before the change, when Vaadin Router redirects, the new location was replacing the last browser history entry instead of adding a new one. With this change, only the initial Vaadin Router render, if redirects, replaces the last history entry, the second and subsequent renders always append history entries.
Live Demo → API Documentation →
This release includes improvements on search query string and hash support (issue #56).
63ee8d6 feat: support search and hash strings in Router.go (#400)
The Router.go
navigation API method now accepts pathname with search and hash strings in a single in-app URL string:
Router.go('/path?searchParam=value#footnotes');
as well as separately:
Router.go({pathname: '/path', search: '?searchParam=value', hash: '#footnotes'});
The search and hash strings do not participate in route matching, however they are available in the action’s context
argument and the component’s location
property objects (see #396).
9341511 docs: add demos for search and hash usage (#397)
This adds documentation on using search query string and hash string with Vaadin Router, including examples on how to access them from components and actions, and how to construct and parse search query strings using URLSearchParams
native API.
b64acd8 fix: Router.go string pathname parsing in IE (#401)
Fixes a parsing bug concerning the search query string support in the URL API ponyfill Vaadin Router internally uses in browsers that lack native URL
construction support.
5a37eb4 fix: ensure search and hash in context, location, and lifecycle (#396)
Makes search and hash strings consistently available in the Router API.