Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: findAllRoutes #117

Merged
merged 6 commits into from
Jul 9, 2024
Merged

feat!: findAllRoutes #117

merged 6 commits into from
Jul 9, 2024

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Jul 9, 2024

This PR adds a new findAllRoutes utils replacing older matchAllRoutes

The difference is that findAllRoutes also matches the params, useful for using in middleware-like apps that need routed middleware with params and ~same perf! (~20% overhead in simple cases)

bun bench:node --no-max && bun bench:node --no-max

image

@pi0 pi0 self-assigned this Jul 9, 2024
Copy link

codecov bot commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (05b9a8b) to head (0d4d7c9).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #117   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          282       302   +20     
  Branches        88        93    +5     
=========================================
+ Hits           282       302   +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pi0 pi0 merged commit b0592c6 into main Jul 9, 2024
4 checks passed
@pi0 pi0 deleted the feat/matcher-params branch July 9, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant