Skip to content

Commit

Permalink
Updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
assaf committed Nov 28, 2011
1 parent 9111707 commit 0bfdc56
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,22 @@
## Version 0.3

Added insert operations on connection and collection. For example:

posts = connect().find("posts")
posts.insert title: "New and exciting", (error, post)->
console.log "Inserted #{post._id}"

Added support for hooks with callbacks. `afterLoad` becomes a hook. For example:

class User
@afterLoad (callback)->
# Example. You don't really want to do this, since it will make 1+N queries.
Author.find @author_id, (error, author)=>
@author = author
callback error



## Version 0.2 2011-11-24

This is a complete rewrite based on some ideas I haven't seen anywhere else.
Expand Down

0 comments on commit 0bfdc56

Please sign in to comment.