Vaadin Router Versions Save

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

v1.4.3

4 years ago

Live Demo → API Documentation →

Fixes

  • store previousContext when reusing element (#391)

  • do not remove layout content that is not part of the route chain (#392)

v1.4.2

4 years ago

Live Demo → API Documentation →

New features

  • execute onBeforeLeave and onBeforeEnter when changing parameter

    Fixes #387.

Other changes

  • update documentation for onBeforeLeave and onBeforeEnter

  • rename misleading variable and strengthen isReusableElement check

  • show a progress bar when throttler is waiting

v1.4.1

4 years ago

This is a patch release to put the @vaadin/router npm package version in sync with the version reported through the Vaadin.registrations global at the run time.

v1.4.0

4 years ago

Live Demo → API Documentation →

New features

  • add TypeScript declarations

    Fixes #304.

  • setRoutes has now the skipRender param and returns a Promise

  • router.location includes now search and hash parameters

Bug fixes

  • fix: keep the url when the context does not change

    Fixes #329.

    Previously, if navigation originating from pressing the back button was prevented, the browser was still changing the URL. The fix puts the original URL back in such a case.

  • fix: add prepare script to allow usage via git directly (#367)

    Adds prepare script in package.json that builds the router entrypoints from source. This allows convenient symlink / folder / github installation.

  • fix: preserve search and hash on the first render (#359)

    Fixes #356.

    The search and hash initial location state were discarded and stripped from the URL as a result of initial router render after first setRoutes call. The fix makes sure this does not happen.

  • fix: render correctly if reusing the same instance or same tagName (#375)

    Fixes #357.

    This supports reusing the same element instance in navigation, fixes issues with rendering the element and its content being removed.

  • fix: get search and hash only if given a context (#368)

    Fixes #366

    Before the fix, the string argument of render('/pathname') was mistreated as an object, and its .search and .hash key contents were taken into account. The fix makes sure that the string argument is treated as a pathname string only.

  • fix: events and detach/re-attach (#370)

    Fixes #355, #361, #360, #311, #331

    This fixes a few connected issues regarding lifecycle callbacks and detaching/re-attaching DOM elements when reusing same element instances.

Other changes

v1.3.0

4 years ago

Live Demo → API Documentation →

New features

  • #261 Preserve location.search and location.hash when navigating

    • Pass search and hash together with pathname to navigate from POPSTATE and CLICK navigation triggers to the router

    • Expose search and hash string keys in context object argument of route actions

Bug fixes

  • #342 enable rendering HTMLElement created without using context.component

  • #321 pass the correct route params to lifecycle callbacks in child routes (#322)

Other Changes

  • Update supported Node.js version to 10

  • Dependency updates

v1.2.1

4 years ago

Live Demo → API Documentation →

Improvements:

  • Added "module" field to package.json for @pikapkg tools compatibility

v1.2.0

5 years ago

Live Demo → API Documentation →

New features:

Documentation improvements and bug fixes:

#273, #265, #269, #271, #264, #256

Other:

  • 159fe3f style(docs): use Lumo styles for demo page content (#268)

Full list of changes since v1.1.0

v1.2.0-pre.3

5 years ago

Live Demo → API Documentation →

Changes Since v1.2.0-pre.2:

  • 68095ae feat(router): add baseUrl support (#291)
  • 5d1ae96 feature(location): add getUrl() method to location object (#287)
  • 02f58ac feat(router): add named routes support and urlForName static helper (#285)
  • be29619 fix(ci): use Firefox 62.0 in Travis for now (#289)

v1.2.0-pre.2

5 years ago

Live Demo → API Documentation →

Changes Since v1.2.0-pre.1:

  • a557dbe prepare v1.2.0-pre.2
  • 89f2604 feat(router): add urlForPath static method to generate URLs, fixes #45

v1.2.0-pre.1

5 years ago

Live Demo → API Documentation →

Changes Since v1.1.0:

  • 421f9d5 Prepare v1.2.0-pre.1
  • 11b3634 fix(docs): update signature and description of action and callbacks
  • 69c093c fix(router): allow rendering a different component from the same route, fixes #264
  • bd5f8fa add a (failing) test case for #264
  • 03322a3 fix(demos) use target="_parent" for links to API docs, fixes #269
  • c3f6381 fix(router): ignore all unknown action result values
  • 388ccdb fix(tests): ensure lifecycle callbacks invoked after lazy loading completes
  • d4cb32a fix(router): enable further route resolution if action returns HTMLElement (#275), fixes #265
  • 567377a fix(router): correct error message when action returns null-proto Object (#274), fixes #273
  • 159fe3f Use Lumo styles for demo page content (#268), fixes #262
  • 52eb117 (chore) move related test cases closer to each other (#267)
  • 0a21f99 fix an unstable test for animated transitions (#263)