Skip to content

Conversation

@Harshi-Shah-CS
Copy link
Contributor

Update form-data to 4.0.4 and add dependency overrides

@Harshi-Shah-CS Harshi-Shah-CS merged commit fee53fb into staging Dec 11, 2025
8 of 11 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the form-data package to version 4.0.4 and introduces a new overrides section to enforce specific versions of transitive dependencies across the entire dependency tree. The changes address dependency version consistency by pinning form-data to 4.0.4 and constraining axios to the 1.10.x series.

Key changes:

  • Updated form-data from ^4.0.0 to exact version 4.0.4 in direct dependencies
  • Added overrides section to force axios to ~1.10.0 and form-data to 4.0.4 across all nested packages
  • Updated package-lock.json to reflect the new dependency resolution with axios 1.10.0 installed in nested locations

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Updated form-data to exact version 4.0.4 and added overrides section to enforce specific versions of axios (~1.10.0) and form-data (4.0.4) across transitive dependencies
package-lock.json Reflects the new dependency resolution with form-data updated from 4.0.3 to 4.0.4, axios upgraded from 1.9.0 to 1.10.0 and relocated to nested node_modules for @contentstack packages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"prepare": "husky"
},
"overrides": {
"axios": "~1.10.0",
Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The axios override uses a tilde range (~1.10.0) while form-data uses an exact version (4.0.4). This creates an inconsistency in versioning strategy within the overrides section. Consider using a consistent approach - either both should use exact versions for maximum predictability, or both should use ranges. Given that form-data is pinned to an exact version elsewhere in the file (line 40), it would be more consistent to use an exact version for axios as well (e.g., "1.10.0" instead of "~1.10.0").

Suggested change
"axios": "~1.10.0",
"axios": "1.10.0",

Copilot uses AI. Check for mistakes.
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.

5 participants