All Versions
149
Latest Version
Avg Release Cycle
116 days
Latest Release
870 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v3.4.3 Changes
September 06, 2017π Fixes
- π
NextCollectionView
collection single model remove no longer incorrectly removes all children EmptyView
will correctly display if aNextCollectionView
is rendered ininitialize
- π
-
v3.4.2 Changes
π Fixes
- Regions will now ensure there is only one node in its
$el
- Regions will not query outside of the parent view if the selector is not found in its context
- The
setDomApi
andsetRenderer
class methods now correctly return the prototype when called
- Regions will now ensure there is only one node in its
-
v3.4.1 Changes
π Fixes
- Options passed to a behavior are now correctly passed to the behavior
- π The ES6 module is no longer exposed in
package.json
as this was breaking for some builds - The
detachContents
will now correctly detach when usingmonitorViewEvents: false
on aNextCollectionView
-
v3.4.0 Changes
π Features
- π A new build of Marionette supporting ES6 modules was added
- β Added DOM API to encapsulate DOM interactions in the views and region
monitorViewEvents
was added as an option to all Views to disable DOM lifecycle events- β Added
swapChildViews
toNextCollectionView
- β Added
viewComparator: false
option toNextCollectionView
for disabling the default sort
Experimental API Breaking Changes
- π DOM Mixin was removed (replaced with DOM API)
NextCollectionView
attachHtml
no longer receives the view as the first argument
π Fixes
- A region's currentView will now be set during that view's initial
dom:refresh
event - A view will now be considered rendered if its
el
has contents and not only if it has anel
Misc
- While
Backbone.Radio
is still a dependency, it will no longer cause Marionette to error if nonexistent - π Various performance improvements
-
v3.3.1 Changes
π Fixes
- π Behavior
defaults
deprecation notice was always triggering - Regions threw an error if a childview destroy resulted in a parent view destroy
- π Behavior
-
v3.3.0 Changes
π Features
- β Added
removeView
andisSwapping
toRegion
to better support animation NextCollectionView
added as a potential replacement forCollectionView
in v4- β Added view
initialize
event to behaviors getRegion
will now render the region's view if it is currently not rendered- π If a
behavior
or aregion
is destroyed it will now be removed from the view - β Added
onDomRemove
event for better clean up of things added inonDomRefresh
- 0οΈβ£
childViewEventPrefix
feature flag to allow forfalse
by default - π Support custom renderers per view prototype
π Fixes
- Trigger
detach
events when restoring el
π Deprecations
- π
template: false
deprecated in favor oftemplate: _.noop
- π Behavior
defaults
deprecated in favor of settingoptions
on the Behavior definition Marionette.Renderer
in favor of new custom view renderer.
Misc
- β‘οΈ Update babel and build tools
- π Fix tests runner for IE11
- β Added
-
v3.2.0 Changes
π Features
- π Separate Mn DOM interaction into a mixin for DOM plugin ease
- π
View.childViewEvents
should supporttrigger
- π Allow showing a template or static string in a region
- π Feature/trigger method event args
π Fixes
- Custom
CollectionView.viewComparator
no longer sortscollection.models
CollectionView
re-indexes correctly when removing views.CollectionView.filter
can filter byView
child indexRegion
will no longer detach pre-existing HTML whenView
's el is already in the region- π Fix
Region
clean up whenView
isdestroy
ed - Destroy
CollectionView.children
byView
and notModel
Misc
- β Remove
MarionetteError
"ViewDestroyError" fromView
's
-
v3.1.0 Changes
General
- π Performance optimizations for
triggerMethod
,mergeOptions
and other internal event handlers - β‘οΈ Significant render and removal optimizations for CollectionView utilizing Backbone's
update
event
π Features
- π
Region.detachView
andView.detachChildView
were added for removing a view from a region without destroying it. This is preferred to the now deprecatedpreventDestroy
region show/empty option childViewEventPrefix: false
will disable auto-proxying of child events to the parent viewApplication
will now accept a region definition object literal as an instantiation option- π Regions are now destroyed when removed from a View
π Fixes
- π Fixed an issue with Lodash 4 compatibility related to behavior events
π Deprecations
- π Region
empty
'spreventDestroy
option was deprecated in favor ofdetachView
- π A region definition object literal's
selector
key was deprecated due to redundacy in favor of the existing keyel
Misc
- π Many documentation fixes for v3
- β Removed shouldReplace logic from
attachHtml
so overriding no longer breaksreplaceElement
functionality - π¦ Exposed
View.normalizeUIString
for external libraries - π Improvements were made for Views initialized with existing DOM elements
- π Performance optimizations for
-
v3.0.0 Changes
π Version 3.0.0 of Marionette has arrived and contains many improvements over version 2.x but also some API Changes. Below is a list of the changes made to each component.
π To help the community transition over we have released a v2 patch tool to assist β¬οΈ the upgrade. Marionette Patch Tool
View
- π
LayoutView
+ItemView
merge and rename toView
. Marionette.View
->ViewMixin
- β Added
LayoutView
shortcut methods such asshowChildView
. isDestroyed
andisRendered
made private with a public accessor method.- 0οΈβ£ Now set
_isDestroyed
to false by default - Call
Backbone.View
with result of options (163188eeb8) CompositeView
'srenderChildren
is now public.- π Renamed
childEvents
tochildViewEvents
. - β Removed passing view options as a function
- π Renamed
templateHelpers
totemplateContext
- Made sure
before:render
is triggered before emptying regions. - Regions are not attached directly to the layout. Use
getRegion
to access the region orshowChildView
to show aView
within it. - π Allowed
CompositeView
to attach to existing HTML withtemplate:false
- β Added
hasRegion
for layouts - Enabled passing
preventDestroy
toregion.empty
. - π
View
now removes its element before destroying child regions. There was an option to turn it on, but now itβs available by default. This helps remove all of the synchronous paints going up the tree.
CollectionView
- The
childView
attribute now accepts a function - π
getChildView
was removed emptyView
now accepts a function as an arg.- Proxied events do not append βthisβ as an argument
- β Removed the
apply:filter
event fromCollectionView
. - π
removeChildView
now returns the removed view.
Regions
- π Fixed inconsistency in
addRegion
, it now behaves likeaddRegions
and adds the region to internal this.regions. View
can replace regions's el.- Replaced region manager with
region-mixin
. - β Removed static
buildRegion
- β Removed
swap
events.
Application
- Introduced region to
Application
(rootRegion
) - β Removed regions
- β Removed Initializers and Finalizers Callbacks
- β Removed Application
vent
,commands
,requests
Object
- β Added support for
Object.isDestroyed
ES6
- β Added Rest & Spread ES6 syntax
- using ES6 Modules
- Replaced
var
andlet
withconst
.
General Enhancements
- β Added
DEV_MODE
- π Changed
_.rest
multiple arg usage to drop for lodash 3 support. - Behavior, View Mixins.
- β Added
cid
field to object, application, behavior, and region - β Added
TemplateCache
options. - π Allow a user to define trigger handlers in options.
- π Increased Lodash compatibility, (now supports upto lodash 4)
- β Added first class support for Backbone.Radio in Mn.Object
- β‘οΈ Updated BB and _ deps to modern versions
- β‘οΈ Updated Radio from 0.9 to 2.0
delegateEntityEvents
. Delegate Events used to set delegate entity events, it was extracted because now backbone calls delegateEvent everytime the element is set.- β Added
Backbone.Babysitter
toMn
and removed the Babysitter dependency.
π Deprecations
- π Deprecated
CompositeView
- π Deprecated
Behavior
Lookups.
β Removed
- β Removed
Marionette.Module
- thereβs a shim that you can pull in to get Module and Deferred - β Removed
Marionette.Deferred
- β Removed
component.json
- β Removed
Controller
- β Removed
Callbacks
- β Removed
Wreqr
(replaced withRadio
) - β Removed
actAsCollection
- β Removed
_getValue
.
API Renames
- π Renamed
render:collection
=>render:children
- π Renamed
bindEntityEvents
=>bindEvents
.
- π
-
v3.0.0-pre5 Changes
π Documentation
- π Improved installation docs.
- β‘οΈ Updated
CollectionView
docs to reflect API changes. - π Improved
Behavior
docs. - π Improved functions docs.
- π Improved update guide.
- β Added "basics" docs.
API Changes
emptyView
now accepts a function as an arg.- β Removed the
apply:filter
event fromCollectionView
. - π
removeChildView
now returns the removed view. bindEntityEvents
renamedbindEvents
.- π Deprecated Behavior Lookups.
- β Added Backbone.Babysitter to Mn and removed the Babysitter dependency.
π Bug fixes
CollectionView
now only triggersdestroy:children
if it has been rendered.- Parent views will now successfully listen for
destroy
inchildViewEvents
.
Misc
- Replaced
var
andlet
withconst
. - β Added consistent function declarations and added rules to eslint.
- π Tweaked peerDependencies to only allow patch versions.
- Directory structure changes and file naming consistency.
- π Improved test coverage.
- β Removed bundled build.