Releases: marionettejs/backbone.marionette
Releases · marionettejs/backbone.marionette
v1.8.6 fixes
- Regions
Region.show
now returns the region instance to allow for region operation chaining.Region.show
triggers the view's nativetriggerMethod
if it exists. This is to handle the case that triggerMethod is wrapped by aMarionette.Behavior
.
- General
- Update jquery 2.x upper bound dependency restrictions.
- The grunt test command will now complain if you do not have bower components installed.
- Readme cleanups.
v2.0.0-pre.1 - First Glimpse
The changelog is quite large, please refer to the google doc for a summary
https://docs.google.com/document/d/1fuXb9N5LwmdPn-teMwAo3c8JTx6ifUowbqFY1NNSdp8/edit#
For a more in-depth look at the changelog do check out the changelog detail
https://github.com/Puppets/marionette-changelog-detail
If you are interested in upgrading an existing app it is quite simple using this tool
https://github.com/marionettejs/Marionette.Upgrade
Please reach out with questions and or feedback here
https://gitter.im/marionettejs/backbone.marionette
Updated Docs can also be found here
https://github.com/marionettejs/backbone.marionette/tree/v2.0.0-pre.x/docs
v1.8.5 Unwrap UMD's for bundled babysitter and wreqr
- Fixes
- Update the UMD build to be inline with the 2.x branch UMD implementation. Details here #1301
v1.8.3 Minor changes
- Fixes
- Behaviors now have access to the views options and events during their initialize.
bug fixes
V1.8.0 - The Road
-
General
- Update Gruntfile.
- The default task (
grunt
) now runs tests. $ grunt dev
watch for watching.$ grunt build
runs the tests and compiles.- Add better inline documentation for module implementation.
- Add better inline behavior documentation.
-
Fixes
- Behaviors now correctly lookup methods for
modelEvents
andcollectionEvents
. - The
CollectionView
now triggers close on its children in the correct order.
- Behaviors now correctly lookup methods for
-
Features
- Add
onRoute
to theappRouter
.
Backbone.Marionette.AppRouter.extend({ onRoute: function(route, params) { } })
Region.show
now takes an option to prevent closing the previous view in the region. By default a region will automatically close the previous view, however you can prevent this behavior by passing{preventDestroy: true}
in the options parameter.
myRegion.show(view2, { preventDestroy: true })
- Add a
getRegion
method toLayout
. This is in line with the eventual goal of not attaching regions to the root layout object. - Behavior instances now extend from Backbone.Events, allowing you to use
.listenTo
and.on
. - Allow Behaviors to have a functional hash lookup.
Marionette.ItemView.extend({ behaviors: function() { // “this” will refer to the view instance return : { BehaviorA: {} } } })
- RegionManagers now calls
stopListening
on a regions on removal.
- Add
-
Refactors
- Abstract underscore collection method mixin into a generic helper.
- Use built in marionette extend for behaviors.
-
Tests
- Add a whitespace linter to the text coverage. Trailing whitespace now causes travis.ci to fail.
- Add test coverage for
bindEntitiyEvents
andunbindEntityEvents
. - Test public API for the
regionManager
. - Improve view trigger tests for better control when testing.
v1.7.4 fixes
- General
- Update bower dependencies to take advantage of the fact that marionette repos follow semver.
- Fixes
- Behaviors events no longer collide with each other.
- Revert
stopListening
call onstop
for modules. While this was a "fix", the docs were quite vague leading to breaking changes for many people. startWithParent
is now respected when using amoduleClass
property.
v1.7.3 Behavior Improvements
- Behaviors
- Adds the ability to use
@ui
interpolation within the events hash on a behavior.
- Adds the ability to use
- Fixes
- Corrects broken view $el proxy in behaviors.
v1.7.2 Behavior Event Context
- Fixes
- Binds behavior events to the behavior instance, as compared to the view.