preactjs / preact-router

:earth_americas: URL router for Preact.
http://npm.im/preact-router
MIT License
1.01k stars 156 forks source link

Hash History v5 Compatibility #410

Closed developit closed 2 years ago

developit commented 2 years ago

This adds a check that should make preact-router compatible with both v4 and v5 of the history module (the API changed).

This fixes #378.

developit commented 2 years ago

I'd like to find time to add a test for this before merging.

github-actions[bot] commented 2 years ago

Size Change: +152 B (+2%)

Total Size: 8.15 kB

Filename Size Change
dist/preact-router.es.js 2.04 kB +37 B (+2%)
dist/preact-router.js 2 kB +39 B (+2%)
dist/preact-router.modern.js 2.04 kB +36 B (+2%)
dist/preact-router.umd.js 2.07 kB +40 B (+2%)

compressed-size-action