Skip to content

Releases: ch3ber/yourRouter

v2.0.5 (20 July, 2023)

20 Jul 23:59
Compare
Choose a tag to compare

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)

17 Jul 05:05
Compare
Choose a tag to compare
Pre-release

Changes

Features

  • Intuitive API
  • Fix errors
  • Added more describable errors

1.1.2 (July 12, 2023)

13 Jul 20:29
Compare
Choose a tag to compare

Your Router

A powerful router based on client-side routing.

FIX

Removed unnecessary dependencies

1.1.0 (September 5, 2022)

06 Sep 01:13
Compare
Choose a tag to compare

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.