Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lookup: fix handling of npm-package-arg result #1061

Merged
merged 1 commit into from
Jun 22, 2024
Merged

lookup: fix handling of npm-package-arg result #1061

merged 1 commit into from
Jun 22, 2024

Conversation

targos
Copy link
Member

@targos targos commented Jun 5, 2024

Convert fetchSpec to "latest" when it's "*" to accomodate for
the breaking change that happened in version 10 of the library.
Make lookup tests closer to reality by using the package arg parser
there and constructing fake module metadata that look more like
what the npm API returns.

Refs: #628
Refs: https://github.com/npm/npm-package-arg/releases/tag/v10.0.0

Checklist
  • npm test passes
  • tests are included
  • documentation is changed or added
  • contribution guidelines followed
    here

Convert `fetchSpec` to "latest" when it's "*" to accomodate for
the breaking change that happened in version 10 of the library.
Make lookup tests closer to reality by using the package arg parser
there and constructing fake module metadata that look more like
what the npm API returns.

Refs: #628
Refs: https://github.com/npm/npm-package-arg/releases/tag/v10.0.0
@targos targos mentioned this pull request Jun 5, 2024
@targos
Copy link
Member Author

targos commented Jun 6, 2024

@nodejs/citgm

@targos
Copy link
Member Author

targos commented Jun 19, 2024

@nodejs/releasers

@targos targos merged commit d28dd1a into main Jun 22, 2024
11 checks passed
@targos targos deleted the fix-fetch-spec branch June 22, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants