Skip to content

Update dependency backbone.marionette to v4

Gitter Badger requested to merge renovate/backbone.marionette-4.x into develop

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

Compare Source

Fixes
  • unbindRequests now passes context.

v4.1.2

Compare Source

Fixes
  • unbindRequests now passes context.

v4.1.1

Compare Source

Fixes
  • Error in the build's version number.

v4.1.0

Compare Source

Fixes
  • Error in the build

v4.0.0

Compare Source

Features
  • CollectionView#addChildView now accepts a preventRender option.
  • Marionette now uses el.ownerDocument.documentElement; by default instead of document.documentElement for querying, customizable via DomApi.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's emptyView will now respect the childViewContainer 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

Compare Source

Breaking Changes

The breaking changes are documented in the upgrade guide.

Features
  • CollectionView can now render a template in the same fashion of the removed CompositeView.
  • View#triggers now passes the originating DOM event object as the final argument of the triggered Mn event.
  • View classes now have the bindRequests and unbindRequests API.
  • The ES6 package was exposed in package.json on jsnext: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

Compare Source

Fixes
  • View entity events set in initialize were being undelegated if modelEvents or collectionEvents were undefined.

v3.4.4

Compare Source

Features
  • NextCollectionView's filter event now returns the attaching and detached views.
  • unbindEvents and unbindRequests 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

Compare Source

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 if sortWithCollection 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

Compare Source

Fixes
  • NextCollectionView collection single model remove no longer incorrectly removes all children
  • EmptyView will correctly display if a NextCollectionView is rendered in initialize

v3.4.1

Compare Source

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 and setRenderer class methods now correctly return the prototype when called

v3.4.0

Compare Source

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 using monitorViewEvents: false on a NextCollectionView

v3.3.1

Compare Source

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 to NextCollectionView
  • Added viewComparator: false option to NextCollectionView 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 an el
Misc
  • While Backbone.Radio is still a dependency, it will no longer cause Marionette to error if nonexistent
  • Various performance improvements

v3.3.0

Compare Source

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

Compare Source

Features
  • Added removeView and isSwapping to Region to better support animation
  • NextCollectionView added as a potential replacement for CollectionView 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 a region is destroyed it will now be removed from the view
  • Added onDomRemove event for better clean up of things added in onDomRefresh
  • childViewEventPrefix feature flag to allow for false by default
  • Support custom renderers per view prototype
Fixes
  • Trigger detach events when restoring el
Deprecations
  • template: false deprecated in favor of template: _.noop
  • Behavior defaults deprecated in favor of setting options 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

Compare Source

Features
  • Separate Mn DOM interaction into a mixin for DOM plugin ease
  • View.childViewEvents should support trigger
  • Allow showing a template or static string in a region
  • Feature/trigger method event args
Fixes
  • Custom CollectionView.viewComparator no longer sorts collection.models
  • CollectionView re-indexes correctly when removing views.
  • CollectionView.filter can filter by View child index
  • Region will no longer detach pre-existing HTML when View's el is already in the region
  • Fix Region clean up when View is destroyed
  • Destroy CollectionView.children by View and not Model
Misc
  • Remove MarionetteError "ViewDestroyError" from View's

v3.0.0

Compare Source

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 and View.detachChildView were added for removing a view from a region without destroying it. This is preferred to the now deprecated preventDestroy 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's preventDestroy option was deprecated in favor of detachView
  • A region definition object literal's selector key was deprecated due to redundacy in favor of the existing key el
Misc
  • Many documentation fixes for v3
  • Removed shouldReplace logic from attachHtml so overriding no longer breaks replaceElement functionality
  • Exposed View.normalizeUIString for external libraries
  • Improvements were made for Views initialized with existing DOM elements

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by Gitter Badger

Merge request reports