:earth_americas: URL router for Preact.
default
types mismatch between preact-router
and preact
(#452, thanks @paulreece )Full Changelog: https://github.com/preactjs/preact-router/compare/4.1.1...4.1.2
index.d.ts
does not show that "exec" is exported. by @KonnorRogers in https://github.com/preactjs/preact-router/pull/441
Full Changelog: https://github.com/preactjs/preact-router/compare/4.1.0...4.1.1
Full Changelog: https://github.com/preactjs/preact-router/compare/4.0.1...4.1.0
Full Changelog: https://github.com/preactjs/preact-router/compare/4.0.0...4.0.1
<Link>
now accepts className
and activeClass
props by @developit in https://github.com/preactjs/preact-router/pull/386
useRouter()
hook and update Router.onChange by @toniopelo in https://github.com/preactjs/preact-router/pull/370
<a data-native>
as an alias of <a native>
by @firatsarlar in https://github.com/preactjs/preact-router/pull/369
Full Changelog: https://github.com/preactjs/preact-router/compare/3.2.1...4.0.0
preact >= 10
package-lock
(#358, thanks @JoviDeCroock)exec
for commonjs module (#355, thanks @webyom)Router
through render (#349, thanks @marvinhagemeister)<Link/>
elements (#346, thanks @pimdewit)<a href="/">
links were not performing client-side routing in Preact X (#340, #342)<Match path="/:foo" />
(#313, thanks @david-nordvall!)⚛️Move to Preact 10+! Thanks @sync! (#298)
Note: This is a backwards-incompatible change. If you're using a version of Preact prior to 10, stick with preact-router 2.x. Use the
next
tag to install preact-router 3.x (npm install preact-router@next
)