Skip to content

feat: add deprecate command#740

Closed
eryue0220 wants to merge 8 commits intonpmx-dev:mainfrom
eryue0220:feat/issue-40
Closed

feat: add deprecate command#740
eryue0220 wants to merge 8 commits intonpmx-dev:mainfrom
eryue0220:feat/issue-40

Conversation

@eryue0220
Copy link
Copy Markdown
Contributor

resolved #40

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs.npmx.dev Error Error Feb 4, 2026 9:44am
npmx.dev Error Error Feb 4, 2026 9:44am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
npmx-lunaria Ignored Ignored Feb 4, 2026 9:44am

Request Review

@danielroe
Copy link
Copy Markdown
Member

would you like to add the ui for this as well? 🙏

@eryue0220
Copy link
Copy Markdown
Contributor Author

would you like to add the ui for this as well? 🙏

Sure, I'll update for this.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…at/issue-40

* 'feat/issue-40' of github.com:eryue0220/npmx.dev:
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 4, 2026

📝 Walkthrough

Walkthrough

This pull request adds package deprecation functionality to the npm client. It introduces a new packageDeprecate function that deprecates packages or specific versions via the npm CLI with custom reason support. The change includes new operation type 'package:deprecate', corresponding validation schemas, and execution logic to wire the function into the operation dispatcher. Updates span four files: npm-client.ts with the new function, schemas.ts with validation rules, server.ts with operation dispatch logic, and types.ts with the new operation type definition.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The PR description 'resolved #40' directly references the linked issue and indicates the changeset implements package deprecation functionality.
Linked Issues check ✅ Passed The PR implements package deprecation with custom reason support (#40) across npm-client, schemas, server and types modules with appropriate validation.
Out of Scope Changes check ✅ Passed All changes directly support package deprecation functionality: new packageDeprecate function, operation type handling, parameter validation, and type definitions.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Important

Action Needed: IP Allowlist Update

If your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:

  • 136.113.208.247/32 (new)
  • 34.170.211.100/32
  • 35.222.179.152/32

Reviews will stop working after February 8, 2026 if the new IP is not added to your allowlist.


Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 4, 2026

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
lunaria/files/cs-CZ.json Localization changed, will be marked as complete. 🔄️
lunaria/files/de-DE.json Localization changed, will be marked as complete. 🔄️
lunaria/files/en-GB.json Localization removed, will be marked as missing. 🔄️
lunaria/files/en-US.json Source changed, localizations will be marked as outdated.
lunaria/files/es-419.json Localization changed, will be marked as complete. 🔄️
lunaria/files/es-ES.json Localization changed, will be marked as complete. 🔄️
lunaria/files/fr-FR.json Localization changed, will be marked as complete. 🔄️
lunaria/files/ja-JP.json Localization changed, will be marked as complete. 🔄️
lunaria/files/mr-IN.json Localization removed, will be marked as missing. 🔄️
lunaria/files/pl-PL.json Localization changed, will be marked as complete. 🔄️
lunaria/files/zh-CN.json Localization changed, will be marked as complete. 🔄️
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

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.

add package deprecation with custom reason

2 participants