Skip to content
This repository has been archived by the owner on Mar 6, 2019. It is now read-only.

v0.0.8

Compare
Choose a tag to compare
@bluefeet bluefeet released this 04 Jan 07:35
· 118 commits to master since this release

Lots of great new type features and shortcuts created as a result of real-world application.

  • In addition to accepting an Array, o.DuckType now accepts an Object, allowing for type checking.
  • Added o.PatternType for creating types that match against a RegExp.
  • Added bower.json so that Bower has some more info about this package.
  • Attribute/Trait.install() now supports a second argument for specifying the value of the attribute(s).
  • The attributes attribute of Trait is now an object instead of an array.
  • Added o.local() to localize object property changes to a scope.
  • Attribute properties reader, writer, predicate, and clearer now take false instead of null.
  • An attribute's writer property now defaults to false to support the best practice of immutable objects.
  • Avoid a race condition when filters depend on other attributes being set during object construction.
  • Added a builder argument to o.writer and o.Attribute which provides a method-based alternative to devoid.
  • Constructors now get a trait applied to them that exposes a type and trait attribute.
  • Traits now have a type attribute which returns a Duck type that can be used to validate that an object exposes an interface compatible with the trait.

Visit o-js.com for downloads, documentation, and other resources.