molefrog / wouter

🥢 A minimalist-friendly ~2.1KB routing for React and Preact
https://npm.im/wouter
The Unlicense
6.65k stars 152 forks source link

Routes with no path fall back to "*" #411

Closed molefrog closed 8 months ago

molefrog commented 8 months ago

A small sugar to save up some space, make the code more elegant and enable some nice DX tricks. This is the last commit before the V3 release!

codesandbox[bot] commented 8 months ago

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

stackblitz[bot] commented 8 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

github-actions[bot] commented 8 months ago

size-limit report 📦

Path Size
packages/wouter/esm/index.js 2.06 KB (-0.29% 🔽)
packages/wouter/esm/use-browser-location.js 658 B (0%)
packages/wouter/esm/memory-location.js 834 B (0%)
packages/wouter/esm/use-hash-location.js 737 B (0%)
packages/wouter-preact/esm/index.js 1.94 KB (-0.51% 🔽)
packages/wouter-preact/esm/use-browser-location.js 552 B (0%)
packages/wouter-preact/esm/use-hash-location.js 607 B (0%)
packages/wouter-preact/esm/memory-location.js 702 B (0%)
codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (eb58a3d) 100.00% compared to head (67ca9cf) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## v3 #411 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 1 1 Lines 1 1 ========================================= Hits 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.