Releases: KiranMantha/plumejs-router
Releases · KiranMantha/plumejs-router
v4.1.3
What's Changed
- Reduced bundle size with vite by @KiranMantha in #23
- updated plumejs core version by @KiranMantha in #24
- reverted eslint version to 8.56.0 by @KiranMantha in #25
Full Changelog: v4.1.2...v4.1.3
v4.1.2
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
What's new in v4.1.0
The latest update comes with
- improved router mechanism (added
onNavigationEndevent) - ability to either choose history based routing or hash based routing mechanism. default is history based mechanism.
- exposes
matchPathutility function to to check if current route matches with supplied regex or not. this helps to highlight navigation items. - making
getCurrentRouteasBehaviorSubjectaddress more robust usecases like maintaining state in url. when url params got changed,getCurrentRoutewill emit new queryparams data.
Breaking Changes
router.getCurrentRouteis changed toBehaviorSubject. so the usage changes torouter.getCurrentRoute().subscribe((route) => {console.log(route)})useSearchParamhook is removed infavor ofrouter.navigateTo