Update dependency backbone.marionette to v4
This MR contains the following updates:
Package | Type | Update | Change | References |
---|---|---|---|---|
backbone.marionette | dependencies | major |
^2.4.4 -> ^4.0.0
|
homepage, source |
Release Notes
marionettejs/backbone.marionette
v4.1.3
Fixes
- unbindRequests now passes context.
v4.1.2
Fixes
- unbindRequests now passes context.
v4.1.1
Fixes
- Error in the build's version number.
v4.1.0
Fixes
- Error in the build
v4.0.0
Features
-
CollectionView#addChildView
now accepts apreventRender
option. - Marionette now uses
el.ownerDocument.documentElement;
by default instead ofdocument.documentElement
for querying, customizable viaDomApi.getDocumentEl
. - The UMD build now reinstates
noConflict
for using multiple versions on the global scope.
Fixes
- Fixed a case where a child view could potentially get multiple
destroy
events. - Pre-rendered views from outside of a region will now correctly empty an current view in a region if shown.
-
CollectionView
'semptyView
will now respect thechildViewContainer
for attachment.
Misc
- Updated backbone dependency to allow for 1.4 without a warning.
- Tooling and testing was updated and improved removing gulp.
-
Region._setElement
was added for internal use, but may be made public in a future release.
v3.5.1
Breaking Changes
The breaking changes are documented in the upgrade guide.
Features
-
CollectionView
can now render a template in the same fashion of the removedCompositeView
. -
View#triggers
now passes the originating DOM event object as the final argument of the triggered Mn event. - View classes now have the
bindRequests
andunbindRequests
API. - The ES6 package was exposed in
package.json
onjsnext:main
- The underscore dependency was updated to include 1.8.3 - 1.9.x.
Documentation
The documentation structure was overhauled to provide a flow to reading through the docs.
v3.5.0
Fixes
-
View
entity events set ininitialize
were being undelegated ifmodelEvents
orcollectionEvents
were undefined.
v3.4.4
Features
-
NextCollectionView
'sfilter
event now returns the attaching and detached views. -
unbindEvents
andunbindRequests
can now be called without handlers to remove all handlers from an entity.
Fixes
- If an event handler on a behavior was undefined it would remove any prior defined handler.
- When a behavior is destroyed it will now undelegate the behavior events and triggers.
- When a view was added a performance check on
NextCollectionView
would sometimes prevent existing views from sorting correctly. -
NextCollectionView
viewFilter
will now be called with the same arguments with underscore or lodash.
Deprecations
- Multiple handlers for a single event. If needed, use a single handler to call multiple methods.
v3.4.3
Fixes
- Prevent exception when a view is instantiated with a non-existing selector
el
. - When a collection defines the
NextCollectionView
sort order, the add at end performance improvement was removed to prevent edge case errors. -
NextCollectionView
no longer sorts according to the collection ifsortWithCollection
is set to false. - When views added to
NextCollectionView
from a collection don't have a matching model, removing the model no longer throws an error.
Misc
-
NextCollectionView
now uses backbone update flags instead of calculating changes for sorting
v3.4.2
Fixes
-
NextCollectionView
collection single model remove no longer incorrectly removes all children -
EmptyView
will correctly display if aNextCollectionView
is rendered ininitialize
v3.4.1
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
v3.4.0
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.3.1
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.0
Fixes
- Behavior
defaults
deprecation notice was always triggering - Regions threw an error if a childview destroy resulted in a parent view destroy
v3.2.0
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
-
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
v3.1.0
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 index -
Region
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.0.0
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 view -
Application
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
Renovate configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Gitter Badger