Releases: Yonaba/30log
Releases · Yonaba/30log
1.3.0
1.2.0
- Added
class:cast(), changes the class of an instance
1.1.0
New features
- Added
class:subclasses()returns the list of all classes which extend fromclass - Added
class:instances(), returns the list of all instances ofclass - Added
class:classOf(), checks ifclassis a superclass of arg - Added
class:subclassOf(), checks ifclassis a subclass of arg - Added
instance:instanceOf(), checks ifinstanceis an instance of arg - Added
class:without()to remove a mixin from a class - Added
class:with(), includes a mixin to a class
Breaking changes
- Changed implementation of
class.isClass, now only checks if arg is a class - Changed implementation of
class.isInstance, now only checks if arg is an instance - Removed
class:include() - An instance of
classis considered to be the instance of any superclass ofclass - A class is considered to be the subclass of any of its direct superclass's superclasses
1.0.0
New features
require "30log"now returns a callable table- Added
class.isClass - Added
class.isInstance - Adding mixins can be chained
subclass.superreturns thesuperclassofsubclassinstance.classreturns theclassofinstance
Breaking changes
- Changed
classprototype toclass(name, params) - Renamed
class:__init()toclass:init() - Renamed
class.__nametoclass.name - Renamed
class:extends()toclass:extend - Renamed
class:is()toclass:extends - Renamed
class:has()toclass:includes - Changed
class:extendprototype toclass:extend(name, params) - Changed
tostring(class)andtostring(instance)output.
0.9.1
- Converted internal registers to tables with weak keys
0.9.0
- Added
class.isandinstance.isto inspect inheritance relationship between two objects. - Removed spaces in class/instance tostring output.
0.8.0
0.7.0
- Fix for attributes not being overriden with chaining when given a prototype
- Updated specs
- Removed class-commons plugin, moved to 30logclasscommons
0.6.0
- Made class attributes instantly available right after derivation, for faster indexing
- Made class methods available through initializers
0.5.0
- Added mixins
- Added clean source
- Updated Readme and specs tests