Skip to content

feat: suggest lowercase name in capital letter warning #138

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SamiranRai
Copy link

What / Why

Improved the warning message for legacy mixed-case package names in validate-npm-package-name. Previously, the validator would return a generic warning:
"name can no longer contain capital letters".

This PR enhances the message to:
"name can no longer contain capital letters. Try: lowercase-version".

This small improvement helps developers quickly understand and fix the issue by suggesting a lowercase alternative, improving overall developer experience.

@SamiranRai SamiranRai requested a review from a team as a code owner June 17, 2025 19:07
@SamiranRai
Copy link
Author

Hi maintainers — just a small enhancement PR improving the warning message for mixed-case package names. All tests pass and lint is clean .

Would love your feedback or approval when you get a chance. Thank you!

@wraithgar
Copy link
Member

The unrelated changes to new lines is making this harder to review than it needs to be. Please limit changes only to what are needed.

🤖 I have created a release *beep* *boop*
---

[6.0.1](npm/validate-npm-package-name@v6.0.0...v6.0.1)
(2025-06-05)
*
[`68a5c0e`](npm@68a5c0e)
[npm#136](npm#136) adding
validation for scoped packages that begin with one or more periods
(@shmam)
*
[`99ced75`](npm@99ced75)
[npm#136](npm#136)
template-oss fixes (@shmam)
*
[`c45bc37`](npm@c45bc37)
[npm#134](npm#134) bump
@npmcli/template-oss from 4.23.3 to 4.24.3 (npm#134) (@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>
@SamiranRai SamiranRai force-pushed the fix-lowercase-warning branch from 9abb739 to bc48a1b Compare June 17, 2025 20:36
@SamiranRai SamiranRai force-pushed the fix-lowercase-warning branch from bc48a1b to 5a8a0f1 Compare June 17, 2025 21:18
@SamiranRai SamiranRai closed this Jun 17, 2025
@SamiranRai SamiranRai deleted the fix-lowercase-warning branch June 17, 2025 21:54
@SamiranRai SamiranRai restored the fix-lowercase-warning branch June 17, 2025 21:56
@SamiranRai SamiranRai reopened this Jun 17, 2025
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.

2 participants