2.0.0 • Published 5 years ago
neckbone v2.0.0
neckbone
Backbone-inspired data layer, aiming at majority API compatibility with modern promises and no underscore/jquery dependency.
To suggest a feature or report a bug: https://github.com/mixmaxh/neckbone/issues
Many thanks to Backbone's contributors: https://github.com/jashkenas/backbone/graphs/contributors
Special thanks to Robert Kieffer for the original philosophy behind Backbone (and, indirectly, neckbone). https://github.com/broofa
install
$ npm i -P neckbonenotable differences
- No support for
View,Router,History. - Does not use jQuery, and replaces underscore with lodash.
- Does not support
Model#mixinorCollection#mixin. - Does not provide a global event bus (e.g.
Backbone.triggeron globalBackbone). - Exports setter functions for previously-rewriteable exports:
ajax->setAJAXImplementationemulateHTTP->setEmulateHTTPemulateJSON->setEmulateJSONsync->setSyncImplementation
- Supports standard
class-extendsyntax instead of requiring e.g.Model.extend. - Potential for minor differences in method semantics. e.g. due to the
lodashswitchModel#pickdoes not support a function getter - useModel#pickByinstead.
2.0.0
5 years ago