Comparing version 0.4.3 to 0.4.4
@@ -9,3 +9,3 @@ /* | ||
var Cocktail = require('../../Cocktail'), | ||
var cocktail = require('../../cocktail'), | ||
sequence = require('../sequence'), | ||
@@ -35,3 +35,3 @@ Annotation = function(){}; | ||
Cocktail.registerProcessors(processor); | ||
cocktail.registerProcessors(processor); | ||
} | ||
@@ -38,0 +38,0 @@ |
{ | ||
"name": "cocktail", | ||
"description": "CocktailJS is a small library to explore traits, talents, inheritance and annotations concepts in nodejs - Shake your objects and classes with Cocktail!", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"homepage": "http://cocktailjs.github.io", | ||
@@ -13,3 +13,3 @@ "author": { | ||
"type": "MIT", | ||
"url": "/blob/master/LICENSE-MIT" | ||
"url": "https://github.com/CocktailJS/cocktail/blob/master/LICENSE-MIT" | ||
} | ||
@@ -19,10 +19,10 @@ ], | ||
"type": "git", | ||
"url": "https://github.com/CocktailJS/Cocktail.git" | ||
"url": "https://github.com/CocktailJS/cocktail.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/CocktailJS/Cocktail/issues" | ||
"url": "https://github.com/CocktailJS/cocktail/issues" | ||
}, | ||
"main": "lib/Cocktail", | ||
"main": "lib/cocktail", | ||
"engines": { | ||
"node": ">= 0.6.0" | ||
"node": ">= 0.8.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "scripts": { |
# Cocktail JS | ||
[![Build Status](https://travis-ci.org/CocktailJS/Cocktail.png?branch=master)](https://travis-ci.org/CocktailJS/Cocktail) | ||
[![Build Status](https://travis-ci.org/CocktailJS/cocktail.png?branch=master)](https://travis-ci.org/CocktailJS/cocktail) | ||
[![NPM version](https://badge.fury.io/js/cocktail.png)](http://badge.fury.io/js/cocktail) | ||
@@ -19,3 +19,3 @@ | ||
##Keep it simple | ||
Cocktail has only one public method `Cocktail.mix()` but it relies on `annotations` to tag some meta-data that describe the mix. | ||
Cocktail has only one public method `cocktail.mix()` but it relies on `annotations` to tag some meta-data that describe the mix. | ||
@@ -25,6 +25,6 @@ ###Annotations | ||
var Cocktail = require('Cocktail'), | ||
var cocktail = require('cocktail'), | ||
MyClass = function(){}; | ||
Cocktail.mix(MyClass, { | ||
cocktail.mix(MyClass, { | ||
'@properties': { | ||
@@ -45,6 +45,6 @@ name: 'default name' | ||
var Cocktail = require('Cocktail'), | ||
var cocktail = require('cocktail'), | ||
MySuperClass = require('./MySuperClass'); | ||
Cocktail.mix({ | ||
cocktail.mix({ | ||
'@extends': MySuperClass, | ||
@@ -63,5 +63,5 @@ '@exports': module, | ||
var Cocktail = require('Cocktail') | ||
var cocktail = require('cocktail') | ||
Cocktail.mix({ | ||
cocktail.mix({ | ||
'@exports' : module, | ||
@@ -79,3 +79,3 @@ '@as' : 'class', | ||
- Install the module with: `npm install cocktail` or add cocktail to your `package.json` and then `npm install` | ||
- Start playing by just adding a `var Cocktail = require('Cocktail')` in your file. | ||
- Start playing by just adding a `var cocktail = require('cocktail')` in your file. | ||
@@ -116,69 +116,6 @@ ## Guides | ||
- 0.4.3 (current master) | ||
- status: Alpha | ||
- Fixed issue with mix being called from an annotation process. | ||
- Test added. | ||
see [CHANGELOG](https://github.com/CocktailJS/cocktail/blob/master/CHANGELOG.md) | ||
- 0.4.2 | ||
- status: Alpha | ||
- Fixed issue with constructor chain parameters. | ||
- Test added for constructor chain parameters. | ||
- 0.4.1 | ||
- status: Alpha | ||
- Fixed issue with constructor chain. | ||
- Test added for single parameter class definition constructor chain. | ||
- 0.4.0 | ||
- status: Alpha | ||
- Added `@static` annotation to define static members on class mix. | ||
- Tests for `@static` annotation. | ||
- Refactored Merge processor. Added constructor parameter to reuse functionality on Static processor. | ||
- 0.3.0 | ||
- status: Alpha | ||
- Introduced pseudo-annotation `@as` intended for single parameter class definition | ||
- Tests for pseudo-annotation `@as` | ||
- 0.2.0 | ||
- status: Alpha | ||
- Added single parameter class/trait definition. If the first parameter is an object literal and it contains a | ||
constructor definition, or the annotation '@extends', '@traits', '@requires' or '@annotation' it will be treated as | ||
a class definition. | ||
- Tests for single parameter definition. | ||
- 0.1.1 | ||
- status: Alpha | ||
- Added `@exports` annotation. | ||
- Documentation update. | ||
- Tests for @exports annotation. | ||
- 0.1.0 | ||
- status: Alpha | ||
- Added sequence to define custom annotations priorities. | ||
- Documentation update. | ||
- Tests for Sequence. | ||
- 0.0.4 | ||
- status: Alpha | ||
- Added new merge strategies: mine (default -same as single), their, deep-mine and deep-their. | ||
- Test for Merge strategies. | ||
- 0.0.3 | ||
- status: Alpha. | ||
- Annotation, traits, talents, extends, and properties features are stable and tested. | ||
- Adde custom Annotations definitions mechanism thru @annotation. | ||
- Added merge strategy: single. | ||
- 0.0.2 | ||
- status: Alpha. | ||
- Alpha version for traits, talents, extends, and properties features. | ||
- Tests. | ||
- 0.0.1 | ||
- status: Alpha. | ||
- First draft version | ||
## License | ||
Copyright (c) 2013 Maximiliano Fierro | ||
Licensed under the MIT license. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30238
16
116