Skip to content

Dependency graph improvements (via npmgraph.js.org) #6647

@broofa

Description

@broofa

[Probably more of a tracking issue here than an actual issue in and of itself. I'm putting this up mostly because I'm curious if the express team has considered any of these concerns than out of any real expectation of action.]

See https://npmgraph.js.org/?q=express.

Under "Modules with Multiple Versions":

Under "Suggested Replacements" (these come from the [e18e module-replacements project](https://github.com/es-tooling/module-replacements project)

  • 6 of the suggestions - es-define-property, es-errors, function-bind, gopd, has-symbols, hasown - are part of the get-intrinsics module... all of which are suggested to be replaced with modern native equivalents. (This begs the question, "How much value is get-intrinsics really adding? attn @ljharb)
  • body-parser - I'm skeptical of this one. module-replacements suggests replacing with inline code or milliparsecs, but I'm guessing express has more stringent requirements that make this non-actionable? Might be worth getting someone from e18e to comment on this. attn @43081j
  • inherits - module-replacements suggests using native class syntax? Seems reasonable, given that ES class syntax has been widely available for a long time now.
  • qs - This is pulled in by body-parser so may come for free if there's a viable alterantive to that library. module replacement suggests using native URLSearchParams, or other (mostly ESM-friendly) alternatives. Again might be worth input from e18e, attn @43081j

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions