Update outdated npm dependencies #51
Open
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 all outdated npm dependencies to their latest CommonJS-compatible versions. All tests pass successfully.
Changes
Updated to latest versions:
Updated to last CommonJS version:
Several packages have moved to ESM-only (ES modules) in their latest versions. Since this project uses CommonJS (
require/module.exports), these packages were updated to their last CommonJS-compatible versions:Discussion
To upgrade to the latest versions of chalk, get-stream, is-stream, and node-fetch, the project would need to be converted from CommonJS to ESM, which would be a breaking change for consumers of this library. This PR takes the conservative approach of staying on CommonJS while still updating to the latest compatible versions.
If there's interest in migrating to ESM in the future, that would allow upgrading these packages to their latest versions (chalk 5.x, get-stream 9.x, is-stream 4.x, node-fetch 3.x).
Testing
All existing tests pass:
Note
Husky 9.x has a different configuration approach than v3. The git hooks configuration in
package.jsonmay need to be migrated to the new format in a follow-up PR if git hooks are actively used.