Version comparison library for Lua. Does simple comparisons between versions, ranges, and sets of ranges. Including basic SemVer support.
License: Apache 2.0
Copyright: Kong Inc.
Author: Thijs Schreijer
Install through LuaRocks (
luarocks install version) or from source, see the github repo.
Can be generated using Ldoc. Just run
"./ldoc ." from the repo.
Tests are in the
Copyright and License
Copyright 2016-2019 Kong Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
- fixed an accidental global variable
- added check on types to the
__ltmetamethod to prevent accidental bad comparisons
- many breaking changes, renamed methods, added SemVer, and updated 'strict'
- relaxed parsing rules, added the
- added 'tostring' meta-methods, and a required initial version for 'set'
- Initial version