Skip to content

Commit c3322a0

Browse files
committed
Use exact version when specified
1 parent a2c4de0 commit c3322a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/install_plugin_modules.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ async function assertPackage (name, version, dependencyVersionRange, external) {
257257
const majorVersion = simpleVersionMatch[1]
258258
cappedVersionRange = `>=${majorVersion}.0.0 <${parseInt(majorVersion) + 1}.0.0`
259259
} else if (exactVersionMatch) {
260-
// For exact versions like "1.0.0", still restrict to the same major version
261-
const majorVersion = exactVersionMatch[1]
262-
cappedVersionRange = `>=${dependencyVersionRange} <${parseInt(majorVersion) + 1}.0.0`
260+
// For exact versions like "1.0.0" or "2.2.2", use exactly that version
261+
// Don't allow newer versions even within the same major
262+
cappedVersionRange = dependencyVersionRange
263263
} else if (latests.latests[name]) {
264264
// Apply normal capping for other version ranges
265265
const latestVersion = latests.latests[name]

0 commit comments

Comments
 (0)