Skip to content

Commit 3dc8605

Browse files
committed
Update package.json and README for new version 0.3
1 parent f343224 commit 3dc8605

2 files changed

Lines changed: 25 additions & 2 deletions

File tree

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,23 @@ MyClass.js
5151
}
5252
});
5353

54+
###Even easier Single Parameter Class Definition
55+
Version 0.3 introduces a pseudo-annotation `@as` to help Single Parameter Class Definition. Now you can define
56+
a Class using `@as` passing a value of `class`:
57+
58+
MySuperClass.js
59+
60+
var Cocktail = require('Cocktail')
61+
62+
Cocktail.mix({
63+
'@exports' : module,
64+
'@as' : 'class',
65+
66+
'@properties' : {
67+
name: 'a default name'
68+
}
69+
});
70+
5471

5572
## Getting Started
5673

@@ -91,7 +108,13 @@ Run
91108

92109
## Release History
93110

94-
- 0.2.0 (current master)
111+
112+
- 0.3.0 (current master)
113+
- status: Alpha
114+
- Introduced pseudo-annotation `@as` intended for single parameter class definition
115+
- Tests for pseudo-annotation `@as`
116+
117+
- 0.2.0
95118
- status: Alpha
96119
- Added single parameter class/trait definition. If the first parameter is an object literal and it contains a
97120
constructor definition, or the annotation '@extends', '@traits', '@requires' or '@annotation' it will be treated as

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cocktail",
33
"description": "CocktailJS is a small library to explore traits, talents, inheritance and annotations concepts in nodejs - Shake your objects and classes with Cocktail!",
4-
"version": "0.2.0",
4+
"version": "0.3.0",
55
"homepage": "http://cocktailjs.github.io",
66
"author": {
77
"name": "Maximiliano Fierro",

0 commit comments

Comments
 (0)