Skip to content

2.0.0-beta1

Pre-release
Pre-release
Compare
Choose a tag to compare
@developit developit released this 31 May 20:54
· 231 commits to main since this release

Installation:

npm install --save preact-router@beta

Possibly Breaking Changes:

  • #33: HTML links (<a href="/..">) with href attributes beginning with / are now automatically wired up to routers.
    • You can still use <Link>, but it is no longer needed.
    • Links that match routes for any Router will be handled by preact-router, otherwise the normal behavior for an HTML link is preserved.

New Features:

  • #34: route(url) now returns true if url resolved to any routes, false if nothing matched (for all routers)
    • Default routes always match, so route() will return true if you're using them.

Other:

  • Build migrated to Babel 6