Skip to content

Update form-data to 4.0.4 and add dependency overrides - #76

Merged
Harshi-Shah-CS merged 1 commit into
developmentfrom
cl-2180
Dec 11, 2025
Merged

Update form-data to 4.0.4 and add dependency overrides#76
Harshi-Shah-CS merged 1 commit into
developmentfrom
cl-2180

Conversation

@Harshi-Shah-CS

Copy link
Copy Markdown
Contributor

No description provided.

@Harshi-Shah-CS
Harshi-Shah-CS requested a review from a team as a code ownerDecember 11, 2025 06:54
@Harshi-Shah-CS
Harshi-Shah-CS requested a review from a teamDecember 11, 2025 06:54
@Harshi-Shah-CS
Harshi-Shah-CS merged commit 01032c5 into developmentDec 11, 2025
7 checks passed
@Harshi-Shah-CS
Harshi-Shah-CS deleted the cl-2180 branch December 11, 2025 06:59

CopilotAI left a comment

Copy link
Copy Markdown

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 with exact version pinning (removing the caret) and introduces a new overrides section to enforce specific versions of axios (~1.10.0) and form-data (4.0.4) across all transitive dependencies. This appears to be a security or compatibility fix targeting nested dependencies from @contentstack packages.

Key changes:

  • Pinned form-data to exact version 4.0.4 (from ^4.0.0)
  • Added overrides section to force axios ~1.10.0 and form-data 4.0.4 across all nested dependencies
  • Updated package-lock.json to reflect the new dependency resolution, including axios 1.10.0 for multiple @contentstack packages

Reviewed changes

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

FileDescription
package.jsonUpdated form-data to exact version 4.0.4 and added overrides section for axios and form-data
package-lock.jsonReflected resolved versions: form-data 4.0.4 and axios 1.10.0 across dependency tree, removed top-level axios entry

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

Comment threadpackage.json
Comment on lines +110 to +111
"axios": "~1.10.0",
"form-data": "4.0.4"

CopilotAIDec 11, 2025

Copy link

Choose a reason for hiding this comment

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

Axios is not listed as a direct dependency of this package, but is being overridden here. The override affects only transitive dependencies from @contentstack packages. If axios 1.10.0 doesn't exist (see previous comment), this override will cause installation failures. Additionally, overriding transitive dependencies can lead to maintenance challenges and should only be done when addressing specific security vulnerabilities or critical bugs. Consider documenting why this override is necessary, or removing it if it's not essential.

Suggested change
"axios": "~1.10.0",
"form-data": "4.0.4"
"axios": "~1.10.0"

Copilot uses AI. Check for mistakes.
Comment threadpackage.json
"dotenv": "^16.4.7",
"express": "^4.21.1",
"form-data": "^4.0.0",
"form-data": "4.0.4",

CopilotAIDec 11, 2025

Copy link

Choose a reason for hiding this comment

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

The form-data dependency has been pinned to an exact version (4.0.4) by removing the caret (^) operator. While this ensures consistent builds, it may prevent receiving patch updates that could include bug fixes or security patches. Consider whether this strict pinning is necessary, or if using "^4.0.4" would be more appropriate to allow automatic patch-level updates while maintaining compatibility.

Suggested change
"form-data": "4.0.4",
"form-data": "^4.0.4",

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

4 participants

@Harshi-Shah-CS@Chhavi-Mandowara@AryanBansal-launch