molefrog / molefrog/wouter

Support for URL Pattern API

Open
#552 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.