Skip to content

[BUG] "url.URL is not a constructor" error on Node 6 < v6.13.0 #61

Closed

Description

@billneff79

What / Why

The unit tests (and actual usage in the wild) fail with the error:
"url.URL is not a constructor"

When

I run the unit tests or use the package on Node v6 (which seems to be supported?) with a version less than v6.13.0, where the URL constructor was first introduced to Node v6.

Where

All places

How

Current Behavior

  • Run unit tests on Node v6 < v6.13.0 (e.g. v6.12.3) and notice the error

Steps to Reproduce

  • Run unit tests on Node v6 < v6.13.0 (e.g. v6.12.3) and notice the error

Expected Behavior

  • Running unit tests on all versions of Node v6 passes without error

Who

References

Introduced in PR #58
https://github.com/npm/hosted-git-info/pull/58/files#diff-168726dbe96b3ce427e7fedce31bb0bcR112

Activity

  1. added a commit that references this issue on Feb 26, 2020
    bb123d2
  2. added a commit that references this issue on Feb 26, 2020
    2d0bb66
  3. self-assigned this
    on Feb 29, 2020
  4. added this to the OSS - Sprint 5 milestone on Feb 29, 2020
  5. added 3 commits that reference this issue on Feb 29, 2020
    5b192c8
    0aaac77
    5038b18
  6. darcyclarke commented on Feb 29, 2020

    @darcyclarke
    Contributor

    This should be fixed by #66 which was landed in hosted-git-info@2.8.8. We'll try to roll out a cli update as soon as possible which will include this dep update (likely as npm@6.14.2)

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions