| Q | A
| ---------------- | -----
| Bug report? | yes
| Feature request? | no
| BC Break report? | no
| RFC? | no
| Sylius version | 1.x
It can be solved by using https://www.npmjs.com/package/semver to perform the version comparison.
I have not submitted a PR because Sylius does not have a module bundling / loading system in place yet.
Why isn't it correct?
Versions should be compared by semver rules.
In which cases does it give an incorrect result?
For example, 1.1.6-DEV > 1.1.5
@pamil Now, when you've tagged a pre-release version (1.2.0-BETA), it also screws up the update notification for all existing installations. :stuck_out_tongue:
semver.satisfies('1.2.0-BETA', '^1.1.6');
// false
semver.satisfies('1.2.0', '^1.1.6');
// true
But if we want a quick fix, we could use https://github.com/composer/semver and do an AJAX call. WDYT? Personally I'd prefer if we wait to fix it the proper way, since this is not a serious bug.