diff --git a/CHANGELOG.md b/CHANGELOG.md index fe1f7b6..f82f799 100644 --- a/CHANGELOG.md +++ b/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.