mirror of
https://github.com/kikito/middleclass.git
synced 2024-12-11 19:44:24 +00:00
1.3 KiB
1.3 KiB
middleclass changelog
Version 3.2.0
- Changed the way metamethods were handled to fix certain bugs (un-stubbed metamethods could not be inherited)
Version 3.1.0
- Added Lua 5.3 metamethod support (
__band
,__bor
,__bxor
,__shl
,__bnot
)
Version 3.0.1
- Added
__len
,__ipairs
and__pairs
metamethods for Lua 5.2
Version 3.0
- Anything that behaves reasonably like a class can be a class (no internal list of classes)
- The
class
global function is now just the return value ofrequire 'middleclass'
. It is a callable table, but works exactly as before. - The global variable
Object
becomesclass.Object
- The global function
instanceOf
becomesclass.Object.isInstanceOf
. Parameter order is reversed. - The global function
subclassOf
becomesclass.Object.static.isSubclassOf
. Parameter order is reversed. - The global function
implements
becomesclass.Object.static.implements
. Parameter order is reversed. - Specs have been translated from telescope to busted
Version 2.0
- Static methods are now separated from instance methods
- class.superclass has now become class.super
- It's now possible to do class.subclasses
- middleclass is now a single file; init.lua has dissapeared
- license is changed from BSD to MIT. License included in source FTW