Skip to content

Dependencies (5.0) #4282

@vansergen

Description

@vansergen

It seems that we can remove a few dependencies before the 5.0 release:

  • methods - We can use the built-in http module:
const { METHODS } = require("http");
const methods = METHODS.map((method) => method.toLowerCase());
  • path-is-absolute - We can use the built-in path module:
const path = require("path");
const isAbsolute = path.isAbsolute("some-path");
  • safe-buffer - We can use the built-in Buffer:
const a = Buffer.from("something");
  • setprototypeof - We can use the Object.setPrototypeOf()
Object.setPrototypeOf(this.request, parent.request);
  • utils-merge - We can use the spread operator:
const opts = { expires: new Date(1), path: '/' , ...options};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions