Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

v2.0.0

Choose a tag to compare

@jgarber623 jgarber623 released this 25 Apr 14:38
· 218 commits to main since this release

RouterRouter v2.0.0 is out now and is a significant reworking of the codebase. It's a bit smaller than before and some unused bits of code were removed.

RouterRouter also exposes an internally cached copy of window.location:

var router = new RouterRouter();

console.log(router.location);

The README.md was also updated with much better examples, additional explanations, and other solid improvements.

⚠️ This version introduces a breaking change: String-based route matching must begin with a slash (/) from this version forward.

Thanks for using RouterRouter!