Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minim

Package Overview
Dependencies
Maintainers
6
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minim - npm Package Versions

1235

0.14.2

Diff

Changelog

Source

0.14.2 (2016-08-19)

  • Update Lodash version
smizell
published 0.14.1 •

Changelog

Source

0.14.1 (2016-08-17)

  • Update Uptown to 0.4.1
smizell
published 0.14.0 •

Changelog

Source

0.14.0 (2016-04-28)

  • BREAKING The public interface of the minim module has changed significantly. List of changes:

    • Removed toCompactRefract and fromCompactRefract
    • Improved the default refract serialization such that when an element in attributes has its own metadata or attributes defined then it will now be refracted when calling toRefract
danielgtaylor
published 0.13.0 •

Changelog

Source

0.13.0 (2015-12-03)

  • Added support for hyperlinks per RFC 0008
  • Upgraded Lodash to 3.10.1
  • Refract elements will be automatically parsed when found in arrays in meta
smizell
published 0.12.3 •

Changelog

Source

0.12.3 (2015-11-30)

  • When an element in meta has its own metadata or attributes defined then it will now be refracted when calling toRefract or toCompactRefract.
  • When loading from refract or compact refract, if an item in meta looks like an element it will be loaded as such. This may cause false positives.
danielgtaylor
published 0.12.2 •

Changelog

Source

0.12.2 (2015-11-24)

  • Fix a bug related to setting the default key names that should be treated as refracted elements in element attributes. This is now accomplished via the namespace: namespace._elementAttributeKeys.push('my-value');. This fixes bugs related to overwriting the namespace.BaseElement.
smizell
published 0.12.1 •

Changelog

Source

0.12.1 (2015-11-24)

  • Fix a bug when loading refracted attributes from compact refract.
smizell
published 0.12.0 •

Changelog

Source

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

danielgtaylor
published 0.11.0 •

Changelog

Source

0.11.0 (2015-09-07)

Breaking

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.
  • The Namespace has a new method use which loads a plugin namespace and is chainable, e.g. namespace.use(plugin1).use(plugin2).
  • A 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]);
  • Add a .toValue() method to member elements which returns a hash with the key and value and their respective values.
danielgtaylor
published 0.10.0 •

Changelog

Source

0.10.0 (2015-08-18)

  • Rename the class metadata property to classes. The convenience property is also now called classes, e.g. element.classes.contains('abc').
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc