Releases: ch3ber/yourRouter
Releases · ch3ber/yourRouter
v2.0.5 (20 July, 2023)
Features 🚀
- Doesn't reload the page
- Support for dynamic routes
- Support template rendering
- Redirection without reloading the page
- Bundle with 0 dependencies
- Full typescript support
- URL decode for route params
Fix bugs
- getRouteParams
- type declarations for typescript
Documentation 📝
Full Changelog: v2.0.0-canary...v2.0.5
v2.0.0-canary (July 16, 2023)
Changes
Features
- Intuitive API
- Fix errors
- Added more describable errors
1.1.2 (July 12, 2023)
Your Router
A powerful router based on client-side routing.
FIX
Removed unnecessary dependencies
1.1.0 (September 5, 2022)
Your Router
A powerful router based on client-side routing.
Router methods
Router is the main module of yourRouter.
addRoute
Add a new route to your app. If you want to render a template when the route is loaded you must return a funtion that returns your template.
getRouteParam
Get information from the URL in a dynamic path.
redirectTo
Redirect your URL to another URL without reloading the browser.