Vaadin Router Versions Save

Small and powerful client-side router for Web Components. Framework-agnostic.

v1.7.5

1 year ago

Live Demo → API Documentation →

Changes Since v1.7.4:

  • 88b49ba chore: update docs
  • 239b162 chore: update yarn.loc
  • 8b4f9fe chore: fix build for "type": "module" (#833)
  • a9476d2 chore(deps): bump y18n from 3.2.1 to 3.2.2 (#605)
  • e96180e chore(deps): bump handlebars from 4.7.6 to 4.7.7 (#619)
  • 4c30ced chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#620)
  • 4cea7a8 chore(deps): bump ws from 7.4.2 to 7.4.6 (#631)
  • 1c11c65 chore(deps): bump path-parse from 1.0.6 to 1.0.7 (#669)
  • d6564ac chore(deps): bump shelljs from 0.8.3 to 0.8.5 (#714)
  • 743eb3f chore(deps): bump color-string from 1.5.3 to 1.9.0 (#722)
  • 185096e chore(deps): bump postcss from 7.0.35 to 7.0.39 (#724)
  • 3dd1f7a chore(deps): bump ua-parser-js from 0.7.22 to 0.7.31 (#731)
  • 4e34bb4 chore(deps): bump follow-redirects from 1.9.0 to 1.14.8 (#733)
  • 0a61120 chore(deps-dev): bump @rollup/plugin-node-resolve from 9.0.0 to 15.0.1 (#815)
  • 47b2bdd chore(deps-dev): bump @babel/core from 7.11.6 to 7.20.12 (#826)
  • 302e1b8 chore(deps): bump shell-quote from 1.7.2 to 1.7.3 (#784)
  • 906fe91 chore(deps-dev): bump rollup from 2.35.1 to 2.79.1 (#807)
  • 299394f chore(deps): bump socket.io-parser from 3.3.0 to 3.3.3 (#817)
  • 8c3aafb chore(deps): bump mout from 1.2.2 to 1.2.4 (#831)
  • bdbafe4 chore(deps-dev): bump browserslist from 4.16.3 to 4.21.5 (#832)
  • e923ee5 chore(deps-dev): bump @rollup/plugin-babel from 5.2.1 to 6.0.3 (#819)
  • 155a9a2 chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 (#821)
  • 23d6547 chore(deps): bump node-fetch from 2.6.1 to 2.6.9 (#829)
  • 23088d1 chore(deps-dev): bump typescript from 4.1.5 to 4.9.4 (#823)
  • 5930e18 chore(deps): bump express from 4.17.1 to 4.18.2 (#824)
  • 3a78bc9 chore(deps-dev): bump @babel/core from 7.11.6 to 7.20.12 (#826)
  • 0624161 chore(deps): bump json5 from 2.2.0 to 2.2.3 (#827)
  • 6662304 typo (#800)

Full Changelog: https://github.com/vaadin/router/compare/v1.7.4...v1.7.5

v1.7.4

3 years ago

Live Demo → API Documentation →

Changes Since v1.7.3:

  • 5c495e9 fix: scroll to top on click event (#547)

v1.7.3

3 years ago

Live Demo → API Documentation →

Bug fixes

  • c110761 Add missing type definition for the location-changed event (#512)

  • 1e4a4b1 Add missing type definition RouteWithAnimation (#478)

  • Dependency updates

v1.7.2

4 years ago

Live Demo → API Documentation →

Bug fixes

  • 4ba4e08 fix: Do lifecycle callbacks even on the same route (#456)

    Fixes vaadin/flow#7665, vaadin/flow#7572, vaadin/flow#8071

v1.7.1

4 years ago

Live Demo → API Documentation →

Bug fixes

  • c68243b fix: update location when reusing parents (#439)

    Fixes #428

  • a382bab test(router): matching child not under first parent (#438)

    • test(router): matching child not under first parent

    Fixes #307

Other changes

  • 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

v1.7.0

4 years ago

Live Demo → API Documentation →

New features

  • 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

Other fixes

  • c41583a fix: add a mass-ignore example to the docs

    Follow-up on #421, related to #325

  • 6c1eca9 chore(docs): regenerate /docs

v1.6.0

4 years ago

Live Demo → API Documentation →

New features

  • 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.

Other changes

  • 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

v1.5.2

4 years ago

Live Demo → API Documentation →

Bug fixes

  • 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.

v1.5.1

4 years ago

Live Demo → API Documentation →

Bug fixes

  • 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.

v1.5.0

4 years ago

Live Demo → API Documentation →

New features

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.

Bug fixes

  • 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.