Skip to content

Update the dependency http-errors to v2 #19

Open

Description

@jaydenseric

The dependency http-errors is a major version out of date:

"http-errors": "~1.8.0"

This is causing problems with multiple versions of HTTP errors floating around codebases, where some are not instanceof each version's HTTP error class.

Activity

  1. jaydenseric commented on Aug 23, 2024

    @jaydenseric
    Author

    It's also an anti-pattern to use ~ instead of ^ for the version range.

  2. steve-o commented on Sep 17, 2024

    @steve-o

    Also, http-errors 2.0.0 bumps dependency for legacy depd 1.1.2 which raises security warnings due to eval:

     (!) Use of eval is strongly discouraged
     https://rollupjs.org/troubleshooting/#avoiding-eval
     ../../node_modules/.pnpm/depd@1.1.2/node_modules/depd/index.js
     408:
     409:    // eslint-disable-next-line no-eval
     410:   var deprecatedfn = eval('(function (' + args + ') {\n' +
                               ^
     411:     '"use strict"\n' +
     412:     'log.call(deprecate, message, site)\n' +
    
  3. mahnunchik commented on Dec 12, 2024

    @mahnunchik

    Any news?

  4. mahnunchik commented on Aug 22, 2025

    @mahnunchik

    @jonchurch could you please take a look at this issue?

  5. mahnunchik commented on Sep 3, 2025

    @mahnunchik

    @Phillip9587 @UlisesGascon could anyone help to figure this out?

  6. mahnunchik commented on Nov 14, 2025

    @mahnunchik

    Any news?

  7. jamesopstad commented on Dec 8, 2025

    @jamesopstad

    I've opened #37 to resolve this. It would be great if someone is able to merge and release.

  8. self-assigned this
    on Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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