Support for URL Pattern API
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.9k
- Forks
- 190
- Avg merge
- 12h 50m
- Merged PRs (30d)
- 3
Description
Any thoughts on adding support for the new URL Pattern API that's supported in newer browsers?
In theory, this would let wouter lose a dependency on path-to-regexp, which would further reduce bundle size :)
Since browser support for this is pretty new, I'm thinking it'd probably make sense for this to be part of a separate package, e.g. import { useRoute, Route, Switch } from "wouter-url-pattern-api";, but maybe there's a better way to do this.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing useRoute, Route, and Switch entry points and the path-to-regexp dependency named in the issue. Compare how the URL Pattern API might replace that dependency, then determine whether support belongs in a separate wouter-url-pattern-api package; the issue does not define settled completion criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100