security: pin all dependencies to exact versions#1559
Open
RaananW wants to merge 1 commit intoBabylonJS:masterfrom
Open
security: pin all dependencies to exact versions#1559RaananW wants to merge 1 commit intoBabylonJS:masterfrom
RaananW wants to merge 1 commit intoBabylonJS:masterfrom
Conversation
- Remove ^ and ~ prefixes from all external dependencies in package.json - Pin versions to the exact resolved versions from package-lock.json - Update resolutions field to match pinned version - Add .npmrc with min-release-age=2d to reject recently published packages
|
snapshot for this PR available at: https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/DOCS/refs/pull/1559/merge |
sebavan
reviewed
Apr 1, 2026
| @@ -0,0 +1 @@ | |||
| min-release-age=2d | |||
Member
There was a problem hiding this comment.
could it not prevent security fixes ?
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
Pin all external dependencies in
package.jsonto their exact resolved versions frompackage-lock.jsonand add an.npmrcwithmin-release-age=2d.Changes
^and~prefixes from all external dependencies (bothdependenciesanddevDependencies), pinning them to the exact versions currently inpackage-lock.jsonresolutionsfield to match the pinned@types/reactversionmin-release-age=2dto reject any package version published less than 2 days agoMotivation
Prevent unexpected version drift and reduce supply-chain attack surface by:
npm installalways installs the exact audited versions