Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28449] CLI: Release are not sorted via semver leading to incorrect ordering

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2021-05-17T18:51:58.000+0000
Affected Version/stitanium 5.3.1
Fix Version/stitanium 5.3.2
ComponentsCLI
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2021-05-17T18:08:16.000+0000
Updated2021-05-18T09:18:19.000+0000

Description

Description

When sorting versions the CLI just calls .sort which will use the built in JS sort function, however this sorting is invalid for version numbers as it will place 9.3.2 before 10.0.0. The CLI instead needs to use semver.sort in the callback

Description

1. Run \[appc\] ti sdk install latest

Actual

9.3.2.GA is seen as latest

Expected

10.0.0.GA should be seen as latest

Comments

  1. Ewan Harris 2021-05-17

    https://github.com/appcelerator/titanium/pull/479

JSON Source