Wouter 3.11.0 improves routing behavior, reduces runtime overhead, and expands Link asChild props and TypeScript support. Available for both wouter and wouter-preact.
- Support absolute
useRoute("~/...")patterns inside routers with a base path. (#244) - Forward props such as
style,aria-*,className, and refs throughLink asChild, preserving the child's class name and ref when omitted onLink. Update the React and Preact declarations accordingly. (#536) - Notify browser-location subscribers together during navigation. (#556)
- Allow an explicit
?to clear the query string during hash navigation. (#473) - Avoid
URLSearchParams.sizefor compatibility with older supported browsers. (#567) - Reduce allocations in routing and memory-location subscriptions, and remove the
mittdependency. - Preserve memory-location updates when returning to an earlier pathname or query in React 18 components that synchronize state during rendering.
Changes since the published 3.10.0 source: 708c236...v3.11.0