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

Inline normalize-package-data logic #139

Merged
merged 5 commits into from
Jan 21, 2025
Merged

Inline normalize-package-data logic #139

merged 5 commits into from
Jan 21, 2025

Conversation

wraithgar
Copy link
Member

@wraithgar wraithgar commented Jan 15, 2025

This PR removes normalize-package-data and inlines the parts of it that were being used.
It also adds validate-npm-package-license which was a dependency of normalize-package-data.

The moving of code was accomplished by pulling in the code as-is, then adding full test coverage. Only then was dead and unused code pruned. After that some refactoring was done to further clean up the code.

@npmcli/eslint-config was also updated, and a now unneeded linting bypass was removed.

References

Closes: npm/statusboard#927

@wraithgar wraithgar requested a review from a team as a code owner January 15, 2025 15:11
reggi
reggi previously approved these changes Jan 21, 2025
Copy link
Contributor

@reggi reggi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love the consolidation, nit on naming and exports feel free to ignore

lib/legacy.js Outdated Show resolved Hide resolved
lib/legacy.js Outdated Show resolved Hide resolved
This was accomplished by pulling in the code as-is, then adding full test coverage.  Only then was dead and unused code pruned.  After that some refactoring was done to further clean up the code.
The newest @npmcli/eslint-config allows these to be long
@wraithgar wraithgar merged commit 526473b into main Jan 21, 2025
20 checks passed
@wraithgar wraithgar deleted the gar/inline-npd branch January 21, 2025 16:46
@github-actions github-actions bot mentioned this pull request Jan 21, 2025
wraithgar pushed a commit that referenced this pull request Jan 21, 2025
🤖 I have created a release *beep* *boop*
---


## [6.1.1](v6.1.0...v6.1.1)
(2025-01-21)
### Bug Fixes
*
[`526473b`](526473b)
[#139](#139) remove max-len
linting bypasses (@wraithgar)
*
[`2a7bbe5`](2a7bbe5)
[#139](#139) inline
normalize-package-data logic (@wraithgar)
*
[`2d320bc`](2d320bc)
[#140](#140) save when reverting
content (@wraithgar)
### Dependencies
*
[`6ea3a9d`](6ea3a9d)
[#139](#139) add
`[email protected]`
*
[`35152b6`](35152b6)
[#139](#139) remove
normalize-package-data
### Chores
*
[`0930f4e`](0930f4e)
[#139](#139)
`@npmcli/[email protected]` (@wraithgar)
*
[`1464adc`](1464adc)
[#140](#140) scope test fixture
package names (@wraithgar)
*
[`d722a1f`](d722a1f)
[#137](#137) bump
@npmcli/template-oss from 4.23.5 to 4.23.6 (#137) (@dependabot[bot],
@npm-cli-bot)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Move normalize-package-data into @npmcli/package-json
2 participants