[ENG-565] switch unimported to knip (resolves vulnerabilities related to simply-git)#16457
[ENG-565] switch unimported to knip (resolves vulnerabilities related to simply-git)#16457rithviknishad wants to merge 4 commits into
unimported to knip (resolves vulnerabilities related to simply-git)#16457Conversation
WalkthroughThe PR migrates from ChangesKnip tooling migration and codebase cleanup
Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR removes the deprecated unimported devDependency (and its vulnerable transitive dependency chain including simple-git) and updates CI/dev workflows to invoke unimported via npx instead.
Changes:
- Replaced the
unimportednpm script to run vianpxinstead of the locally installed package. - Removed
unimportedfromdevDependenciesand pruned its transitive dependencies frompackage-lock.json(includingsimple-git).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Drops the unimported dependency and switches the script to invoke it via npx. |
| package-lock.json | Removes unimported and related transitive packages (including simple-git) from the lockfile. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Greptile SummaryThis PR replaces the deprecated
Confidence Score: 5/5Safe to merge — all deleted code was verified to have no importers in the repo, and the tooling change is a direct like-for-like swap. Every removed export was confirmed unused via grep before deletion. The @public JSDoc mechanism correctly preserves intentional plugin-API surface. Package removals correspond to code that no longer exists. No functional logic was altered. No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "supported browsers" | Re-trigger Greptile |
Deploying care-preview with
|
| Latest commit: |
93f16d1
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://938f66cf.care-preview-a7w.pages.dev |
| Branch Preview URL: | https://security-simple-git.care-preview-a7w.pages.dev |
🎭 Playwright Test ResultsStatus: ❌ Failed
📊 Detailed results are available in the playwright-final-report artifact. Run: #9559 |
unimported package, switch to using npx to run it; resolve vulnerabilities related to simple-gitunimported package, switch to using npx to run it; resolve vulnerabilities related to simple-git
unimported package, switch to using npx to run it; resolve vulnerabilities related to simple-gitunimported to knip (resolves vulnerabilities related to simply-git)
nihal467
left a comment
There was a problem hiding this comment.
removing the need testing label, since @rithviknishad mentioned no need to test it, since its been merged to another package update PR
This PR uninstalls
unimportedpackage in favor ofknip. We are dropping this package from the project as the package has been deprecated and no longer maintained for more than 2 years as of now.simple-gita transitive dependency ofunimportedhad several vulnerabilities. This should resolve those: