- Sync helpers now properly pass through arguments.
- Expose helper/sync to support custom sync handlers.
- Add support for defining plugins as a function.
- Previously the variable
items
in a template contained a serialized collection. This has been removed because it is better to use aCollectionView
instead. If you really need it you can manually serialize it with one line of code.
- All files are now bundled and you should use
dist/backbone-crux.js
. Patches are applied automatically. To get the base collection or model, useimport { Collection } from 'backbone-crux'
. - Converted source code to ES6.
- Fixed unit tests.
- Removed
<select value="x">
; use backbone.stickit. - Removed
loadingTemplate
option for views; use marionette-busy. - Removed deprecated method
refresh
in collection. - Removed method
fetchOne
in collection. - Removed
save
method in collection. - Removed
beforeTrigger
hack for events; use proper controllers instead. - Removed hack to cancel route.
- Add array support for
ignore
.
- Added CompositeView.render patch to Marionette.plugins.
- [BREAKING] You now must define your own base model, that Crux extends. It should be called
crux-base-model
. This way you can use backbone-relation or another module as your base model.
- Removed
Model.dot()
andModel.convertAttributes()
; this is moved to backbone-relation.
- Renamed patch/Marionette.ItemView.plugins.js to patch/Marionette.plugins.js.
- Added plugins to CollectionView.
- Added
Model.dot()
.
- Added the
ignore
option toModel.parse()
. - Moved from Grunt to Gulp.
- Updated tests / tasks.
- Removed
doc
folder. - Fixed linting issues.
- Updated patch/Marionette.ItemView.plugins.js to also bind plugins for behaviors.
- Updated patch/Marionette.ItemView.plugins.js to handle multiple view rendering.
- Added missing toHuman serializer.
- Added patch/Marionette.serializer.js to override the default serializer.
- Removed patch/marionette.itemView.js.
- Renamed marionette.appRouter.js to Marionette.AppRouter.js and added getOption for beforeRoute.
- Refactored patch/Marionette.ItemView.selectValue.js so the value for selects will be available in onRender.
- Refactored patch/Marionette.ItemView.bindPlugins.js to patch/Marionette.ItemView.plugins.js.
- Refactored bindPlugins to plugins attribute.
- Added patch for ItemView to add bindPlugins and addPlugin. In bindPlugin you can bootstrap plugins which are bound once after render and unbound after destroy.
- Upgraded backbone.paginator to v2. Breaks all pagination support for the v1 branch. Pagination now works with page and per_page instead of limit/offset. The parse function is split into parseRecords and parseState.
- Added marionette.itemView patch for serializeData.
- Add serializeData method, should be used to serialize models for use in templates.
- isEmpty returns true if the attributes are a subset of the defaults, and allows nested models to be void or null.
- Bugfix: Invert logic of model.isEmpty. Previously, it did exactly the opposite of what was documented...
- Add static isEmpty method to Model that tells whether a given model or attribute hash is equal to the defaults of the model (subclass).
- Enhance toJSON to recursively JSONify the attributes (nested models in particular)
- Fix bower dependencies
- Bugfix: defaults may be a function.
- Feature: Collection accepts a plain array as well.
- Style fixes.
- Typechecking paginator ui.
- Added loadingCollectionTemplate alias for loadingTemplateCollection.
- Bugfix.
- Bugfix: copy/paste.
- Bugfix: rickDG quickfix.
- Bugfix: status flag not set.
- Paginator options.
- Wreqr bugfix.
- Wreqr now returns class instead of instance.
- [BREAKING] Removed marionette.extensions in favor of patch dir.
- [BREAKING] Moved to src/ dir.
- Added comments.
- Added wreqr.
- [BREAKING] Removed view.js.
- Added Jasmine.
- Added Grunt.
- Removed before:fetch and after:fetch in favor of before:[method]. Method can be create, update, patch, delete and read (as in Backbone.sync). Find and replace all:
before:fetch with before:read after:fetch with after:read