- expose a base constructor for instanceof; ref #37
- add config for browserify, version bump for npm
- do not nullify primary key if invalid
- support explicit primary keys via
{ primaryKey: true }
- add model#json() alias
- allow unsetting of an attribute
- Merge pull request #39 from paulbdavis/documentation
- recursive toJSON
- fix Model.run destroying listeners
- Added in 'creating' event.
- remove duplicate type
- Saving and removing now have appropriate
fn
signatures depending on Model vs instance listeners. Ie.User.on('saving', function(instance, done))
anduser.on('saving', function(done));
- removed map-series dependency
- Fix for where .set would call methods if they existed, even if they weren't attrs
- added emit
attar
when an attar is added/changed
- remove recursive component.json fail
- only validate on
saving
event (@ramitos) - runs 'saving' events in series and validates on each (@ramitos) [fixes #11]
- Release 0.2.0
- Implemented more robust events [References #21]
- Merged Model.configure into overloaded Model.use
- Remove _sync and rely on sync-plugins to monkey patch sync methods. Closes #12
- Switched 'change:blah' to 'change blah' [References #17]
- repair .changed()
- Fixed a bug where redefining an attribute would cause all of its options to be lost
- Add hack for clone on BSON objects
- Bug fix on default values where they are null or 0
- Added create event
- Added res signature for save and remove.
- fixed emitter for lame npm upgrade
- Greatly simplified dirty checking on array and object
- Switched to cloning for accessor
- Updated dirty checking, again
- Removed superagent dep
- Fixed defaults not being copys
- Styling changes
- Added some basic docs
- ignore values set that aren't in the schema
- added npm test for travis
- tests looking good
- fixed context bug
- emitter hack for now
- fix clone
- return false if no results found with #get
- added 'error' events
- added clone internally
- fixed objectid cloning issue
- only add attributes that are in the schema
- server can "fix" attributes when it send data back down to client
- starting tests
- fixed race condition
- update only sends changed
- start with not dir\ty
- made sync removable
- Initial release