- updated handling of a components lifecycle to match the of a custom element
- the use of the
initialize
anddestroy
callbacks are deprecated and should not be used anymore from now on - three new callbacks were added to a components spec
created
— a component/element was created. This callback is called once and the element does not have to be part of the document yetattached
— called every time when an element was added to the documentdetached
— called every time when an element was removed from the document
- the use of the
- changed the way
gremlins.findGremlin()
works. It does not return null or a gremlin anymore, as it's not guaranteed, that the component has already been created.
gremlins.findGremlin()
returns a promise now.
- first major release
- now publishing babel compiled version to npm
- complete rewrite with ES6 and custom elements
- nearly everything
G.Gizmo.extend
to inherit from gremlin classesG.Package.require
to reference packages
G.define
, useG.Gizmo.extend
G.require
, useG.Package.require
G.namespace
,G.ns
, useG.Package.require
G.Gizmo#klass
, useG.Gizmo#constructor
G.require
to reference packages
- PACKAGES, use
G.Package
to add your own packages - MODULES, add modules to your gremlin classes with
G.Module
and include them in any gremlin you like
- Extensions are gone! They are called modules now and have to be required in every Gremlin class with the static
include
property
- fresh rewrite of the original gremlin.js, the starting point if you like