@@ -220,22 +220,22 @@ const getDependentRelease = (pkg, bumpStrategy, releaseStrategy, ignore) => {
220220 *
221221 * @param {string } currentVersion Current dep version
222222 * @param {string } nextVersion Next release type: patch, minor, major
223- * @param {string|undefined } strategy Resolution strategy: inherit, override, satisfy
223+ * @param {string|undefined } bumpStrategy Resolution strategy: inherit, override, satisfy
224224 * @returns {string } Next dependency version
225225 * @internal
226226 */
227- const resolveNextVersion = ( currentVersion , nextVersion , strategy = "override" ) => {
227+ const resolveNextVersion = ( currentVersion , nextVersion , bumpStrategy = "override" ) => {
228228 // Check the next pkg version against its current references.
229229 // If it matches (`*` matches to any, `1.1.0` matches `1.1.x`, `1.5.0` matches to `^1.0.0` and so on)
230230 // release will not be triggered, if not `override` strategy will be applied instead.
231- if ( ( strategy === "satisfy" || strategy === "inherit" ) && semver . satisfies ( nextVersion , currentVersion ) ) {
231+ if ( ( bumpStrategy === "satisfy" || bumpStrategy === "inherit" ) && semver . satisfies ( nextVersion , currentVersion ) ) {
232232 return currentVersion ;
233233 }
234234
235235 // `inherit` will try to follow the current declaration version/range.
236236 // `~1.0.0` + `minor` turns into `~1.1.0`, `1.x` + `major` gives `2.x`,
237237 // but `1.x` + `minor` gives `1.x` so there will be no release, etc.
238- if ( strategy === "inherit" ) {
238+ if ( bumpStrategy === "inherit" ) {
239239 const sep = "." ;
240240 const nextChunks = nextVersion . split ( sep ) ;
241241 const currentChunks = currentVersion . split ( sep ) ;
0 commit comments