Skip to content

Releases: KiranMantha/plumejs-router

v4.1.3

02 May 05:22

Choose a tag to compare

What's Changed

Full Changelog: v4.1.2...v4.1.3

v4.1.2

02 May 05:21

Choose a tag to compare

What's Changed

  • refactored router component and fixed build by @KiranMantha in #21
  • updated package.json exports section inline with core package by @KiranMantha in #22

Full Changelog: v4.1.1...v4.1.2

v4.1.1

02 May 05:21

Choose a tag to compare

What's Changed

Full Changelog: v4.1.0...v4.1.1

What's new in v4.1.0

12 Feb 13:28

Choose a tag to compare

The latest update comes with

  • improved router mechanism (added onNavigationEnd event)
  • ability to either choose history based routing or hash based routing mechanism. default is history based mechanism.
  • exposes matchPath utility function to to check if current route matches with supplied regex or not. this helps to highlight navigation items.
  • making getCurrentRoute as BehaviorSubject address more robust usecases like maintaining state in url. when url params got changed, getCurrentRoute will emit new queryparams data.

Breaking Changes

  • router.getCurrentRoute is changed to BehaviorSubject. so the usage changes to router.getCurrentRoute().subscribe((route) => {console.log(route)})
  • useSearchParam hook is removed infavor of router.navigateTo