Skip to content

Update: Allow versionLimit to be passed to getLatestFrameworkVersion (fixes #240)#241

Open
taylortom wants to merge 2 commits intomasterfrom
issue-240
Open

Update: Allow versionLimit to be passed to getLatestFrameworkVersion (fixes #240)#241
taylortom wants to merge 2 commits intomasterfrom
issue-240

Conversation

@taylortom
Copy link
Member

#240

Update

  • Allow the versionLimit semver range parameter to be passed through to getLatestVersion from the public getLatestFrameworkVersion API method, enabling callers to constrain which framework version is returned.

Testing

  1. Call api.getLatestFrameworkVersion({ versionLimit: '>=5.0.0 <6.0.0' }) and verify it returns a version within the specified range
  2. Call api.getLatestFrameworkVersion() without versionLimit and verify it still returns the latest version (no regression)

@taylortom taylortom self-assigned this Mar 5, 2026
@taylortom taylortom moved this from New to Assigned in adapt_framework: The TODO Board Mar 5, 2026
taylortom added a commit to adapt-security/adapt-authoring-adaptframework that referenced this pull request Mar 24, 2026
The CLI's installFramework and updateFramework expect a specific version
tag, not a semver range. Passing targetVersionRange directly caused a 404
when the CLI tried to download a GitHub archive using the range as a
branch name. Now resolves the range via getLatestVersion() first.

Also fixes typo: getLatestFrameworkVersion param should be versionLimit
not version (refs adaptlearning/adapt-cli#241).
taylortom added a commit to adapt-security/adapt-authoring-adaptframework that referenced this pull request Mar 24, 2026
The CLI's installFramework and updateFramework expect a specific version
tag, not a semver range. Passing targetVersionRange directly caused a 404
when the CLI tried to download a GitHub archive using the range as a
branch name. Now resolves the range via getLatestVersion() first.

Also fixes typo: getLatestFrameworkVersion param should be versionLimit
not version (refs adaptlearning/adapt-cli#241).
taylortom added a commit to adapt-security/adapt-authoring-adaptframework that referenced this pull request Mar 24, 2026
The CLI's installFramework and updateFramework expect a specific version
tag, not a semver range. Passing targetVersionRange directly caused a 404
when the CLI tried to download a GitHub archive using the range as a
branch name. Now resolves the range via getLatestVersion() first.

Also fixes typo: getLatestFrameworkVersion param should be versionLimit
not version (refs adaptlearning/adapt-cli#241).
github-actions bot pushed a commit to adapt-security/adapt-authoring-adaptframework that referenced this pull request Mar 24, 2026
## [2.5.4](v2.5.3...v2.5.4) (2026-03-24)

### Fix

* Resolve semver range to concrete version before CLI install/update ([513d488](513d488)), closes [adaptlearning/adapt-cli#241](adaptlearning/adapt-cli#241)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

2 participants