Update del to v6.1.1 for security improvements#210
Open
ram-ui-dev wants to merge 2 commits intojohnagan:masterfrom
Open
Update del to v6.1.1 for security improvements#210ram-ui-dev wants to merge 2 commits intojohnagan:masterfrom
ram-ui-dev wants to merge 2 commits intojohnagan:masterfrom
Conversation
- Update del from ^4.1.1 to ^6.1.1 - Eliminates vulnerable glob dependency (replaced with fast-glob) - Updates globby from v6 to v11 - Fix error message regex for del@6.x compatibility - Add TypeScript type assertion for error handling - Update tests for stricter path validation in del@6.x All 42 tests passing. No breaking changes.
Remove .js extension from jest.config require to comply with import/extensions rule.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the
deldependency from v4.1.1 to v6.1.1, bringing significant security improvements and updated dependencies while maintaining CommonJS compatibility.Motivation
globpackage (replaced withfast-glob)globbyfrom v6.1.0 to v11.0.1 (5 major versions)fast-globimplementationChanges Made
1. Updated Dependencies
^4.1.1→^6.1.1globby@11.0.1(usesfast-globinstead ofglob)rimrafto v3graceful-fsfor better filesystem reliability2. Updated Error Handling
"files/folders"to"files/directories"in error detection3. Fixed Tests
dangerouslyAllowCleanPatternsOutsideProject: trueoption4. Fixed ESLint Error (Bonus)
import/extensionsESLint rule violationWhy Not del@7.x or del@8.x?
Test Results
✅ All 42 tests passing (100%)
✅ Build successful
✅ TypeScript compilation successful
Breaking Changes
None - This is a drop-in replacement with the same API.
Checklist