Changelog
0.14.0 (2016-04-28)
BREAKING The public interface of the minim
module has changed significantly. List of changes:
toCompactRefract
and fromCompactRefract
attributes
has its own metadata or attributes defined then it will now be refracted when calling toRefract
Changelog
0.12.3 (2015-11-30)
meta
has its own metadata or attributes defined then it will now be refracted when calling toRefract
or toCompactRefract
.meta
looks like an element it will be loaded as such. This may cause false positives.Changelog
0.12.2 (2015-11-24)
namespace._elementAttributeKeys.push('my-value');
. This fixes bugs related to overwriting the namespace.BaseElement
.Changelog
0.12.0 (2015-11-23)
Provide a way for elements to mark attributes as unrefracted arrays of
refracted elements. Subclassed elements can push onto the
_attributeElementArrayKeys
property to use this feature. Note: in the
future this feature may go away.
Allow load
to be used for plugins where a namespace is not being used
Add an elements
property to the Namespace
class which returns an object of PascalCased element name keys to registered element class values. This allows for ES6 use cases like:
const {StringElement, ArrayElement, ObjectElement} = namespace.elements;
Add functionality for Embedded Refract
Changelog
0.11.0 (2015-09-07)
The public interface of the minim
module has changed significantly. List of changes:
ElementRegistry
has been renamed to Namespace
.minim
has only one public method, called namespace
, which creates a new Namespace
instance.minim.convertToElement
is now namespace.toElement
minim.convertFromRefract
is now namespace.fromRefract
minim.convertFromCompactRefract
is now namespace.fromCompactRefract
minim.*Element
are removed (except for namespace.BaseElement
). These should be accessed via namespace.getElementClass('name')
now.Namespace
has a new method use
which loads a plugin namespace and is chainable, e.g. namespace.use(plugin1).use(plugin2)
.Namespace
can be initialized without any default elements by passing an options object with noDefault
set to false
to the constructor. They can be initialized later via the useDefault
method.Before:
var minim = require('minim');
minim.convertToElement([1, 2, 3]);
After:
var minim = require('minim');
var namespace = minim.namespace();
namespace.toElement([1, 2, 3]);
.toValue()
method to member elements which returns a hash with the key
and value and their respective values.Changelog
0.10.0 (2015-08-18)
class
metadata property to classes
. The convenience property
is also now called classes
, e.g. element.classes.contains('abc')
.