Skip to content

Releases: capitec/omni-router

0.3.3

09 Jan 09:36
1ffb731
Compare
Choose a tag to compare

Light DOM Theming

Add attribute to toggle light or shadow DOM
Add optional theme property to apply custom class name to loaded route component
Add optional metadata property to route definition

0.3.1

26 Aug 09:31
ce154d4
Compare
Choose a tag to compare

Add Cache Option

Add new cache flag to route definition, allowing components to be cached and remounted instead of being created every time.

0.2.7: Fix memory leak (#44)

04 Aug 14:12
2262662
Compare
Choose a tag to compare

Fix memory leak in page navigation animation

0.2.4

03 May 12:45
11a6599
Compare
Choose a tag to compare
0.2.4 Pre-release
Pre-release

What's Changed

  • Expanded path regex to include [] and {} characters.

Full Changelog: 0.2.3...0.2.4

0.2.3

02 May 12:40
5591a29
Compare
Choose a tag to compare
0.2.3 Pre-release
Pre-release

What's Changed

Full Changelog: 0.2.2...0.2.3

0.2.2

22 Apr 10:21
6079a48
Compare
Choose a tag to compare
0.2.2 Pre-release
Pre-release

What's Changed

Full Changelog: 0.2.1...0.2.2

0.2.1

04 Mar 14:55
24fd904
Compare
Choose a tag to compare
0.2.1 Pre-release
Pre-release

What's New

  1. Allow the same tag name to be registered for different paths, by providing an additional 'tag' property in the route definition.
  2. Make the pop() function return a promise that resolves once the routing event is received, aligning with the other routing functions.
  3. Add a delta argument to the pop() function to allow for jumping back multiple pages.
  4. Add a new popToPath() function that will attempt to jump back the required number of pages to return to a given previous path.
  5. Make the return type of all routing function return a boolean that indicates if the routing event was allowed to proceed.
  6. Add an animateOut argument the the push() and replace() function to invert the animation behaviour when routing to a path

0.1.5

31 Oct 07:37
958b0f6
Compare
Choose a tag to compare
0.1.5 Pre-release
Pre-release

What's Changed

  • Updated Router to be more compliant with History API for replacing state by @BOTLANNER in #24
  • Updated the NPM files glob to ensure it includes files in sub-directories by @jn42lm1 in #25

Full Changelog: 0.1.4...0.1.5

0.1.4

15 Sep 12:01
fcf4e95
Compare
Choose a tag to compare
0.1.4 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.1.3...0.1.4

0.1.3

23 Aug 14:06
11c9445
Compare
Choose a tag to compare
0.1.3 Pre-release
Pre-release
  • Router.getInstance() function has been deprecated, use the Router class directly instead, e.g. Router.addRoute(...) instead of Router.getInstance().addRoute(...)
  • In addition to the route-loaded event, a new route-loading event is now available that dispatches just prior to the routed page loading