Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions