koajs / koajs/path-match

[feat] Update to use URLPattern

Open
#203 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
37
Forks
5
PR merge metrics
No merged PRs in 30d

Description

https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API

This is a node native feature as of v24 with support for regex groups, which path-to-regexp removed recently. Migrating to URLPattern will add back regex groups, but only for newer versions of node.

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked URLPattern API documentation and then inspect how path-match currently uses path-to-regexp. Identify the route-matching entry point and any existing tests before assessing the migration. Done means path-match uses URLPattern while accounting for the Node.js version requirement and restoring regex-group support.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.