Skip to content

Migrate url.parse() to WHATWG URL API #6

@flyingrobots

Description

@flyingrobots

Context

src/server/index.js uses url.parse(req.url, true) which triggers [DEP0169] DeprecationWarning in Node.js. This shows up in every test run.

Proposal

Replace url.parse() with the WHATWG new URL() API. Extract pathname and query using URL and URLSearchParams.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions