v3.0.0

@ahumphreys87 ahumphreys87 released this Aug 23, 2016 · 8 commits to master since this release

🎉

v3.0.0

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 to View.
  • Marionette.View -> ViewMixin
  • Added LayoutView shortcut methods such as showChildView.
  • isDestroyed and isRendered made private with a public accessor method.
  • Now set _isDestroyed to false by default
  • Call Backbone.View with result of options (163188e)
  • CompositeView's renderChildren is now public.
  • Renamed childEvents to childViewEvents.
  • Removed passing view options as a function
  • Renamed templateHelpers to templateContext
  • Made sure before:render is triggered before emptying regions.
  • Regions are not attached directly to the layout. Use getRegion to access the region or showChildView to show a View within it.
  • Allowed CompositeView to attach to existing HTML with template:false
  • Added hasRegion for layouts
  • Enabled passing preventDestroy to region.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 from CollectionView.
  • removeChildView now returns the removed view.

Regions

  • Fixed inconsistency in addRegion, it now behaves like addRegions 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 and let with const.

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 to Mn 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 with Radio)
  • Removed actAsCollection
  • Removed _getValue.

API Renames

  • Renamed render:collection => render:children
  • Renamed bindEntityEvents => bindEvents.

v3.0.0-pre5

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 from CollectionView.
  • removeChildView now returns the removed view.
  • bindEntityEvents renamed bindEvents.
  • Deprecated Behavior Lookups.
  • Added Backbone.Babysitter to Mn and removed the Babysitter dependency.

Bug fixes

  • CollectionView now only triggers destroy:children if it has been rendered.
  • Parent views will now successfully listen for destroy in childViewEvents.

Misc

  • Replaced var and let with const.
  • 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.

Downloads

v3.0.0-pre.5

@ahumphreys87 ahumphreys87 released this Aug 4, 2016 · 48 commits to master since this release

v3.0.0-pre5

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 from CollectionView.
  • removeChildView now returns the removed view.
  • bindEntityEvents renamed bindEvents.
  • Deprecated Behavior Lookups.
  • Added Backbone.Babysitter to Mn and removed the Babysitter dependency.

Bug fixes

  • CollectionView now only triggers destroy:children if it has been rendered.
  • Parent views will now successfully listen for destroy in childViewEvents.

Misc

  • Replaced var and let with const.
  • 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.

Downloads

v3.0.0-pre.4

@ahumphreys87 ahumphreys87 released this Jun 1, 2016 · 95 commits to master since this release

v3.0.0-pre4

Documentation

  • Improved View documentation.
  • Added Backbone.Radio integration documentation.
  • Fixed broken links in CollectionView documentation.
  • Removed Marionette.Module documentation.
  • Add installation documentation.
  • Removed outdated API documentation.
  • Added Upgrade Guide.

API Changes

  • return this from all functions that do not return anything, useful for chaining.
  • Removed getValue and internal getOption.

Bug fixes

  • CollectionView#reorder will no longer remove an already displayed emptyView.
  • Calling Backbone.View constructor with arguments consistently across all views.
  • Monitor for child already attached.
  • When a view is attached to an existing element, isRendered() should reflect true.
  • Region empty edge-case fix that prevents view destroy handlers calling empty.
  • Region now detaches previous html if there is no view.

Misc

  • Build browser tests with rollup.
  • Fix bundled build.
  • Linter fixes.

Also, please help us finish v3!

Downloads

v2.4.7

@ahumphreys87 ahumphreys87 released this May 31, 2016 · 506 commits to master since this release

v2.4.7 view commit logs

Fixes

  • CollectionView#reorder will no longer remove an already displayed emptyView.
  • Fixed build of sourcemap files.

Downloads

v2.4.6

@ahumphreys87 ahumphreys87 released this May 25, 2016 · 506 commits to master since this release

v2.4.6 view commit logs

Misc

  • Updated Backbone dependency to 1.3.x.

Downloads

v3.0.0-pre.3

@ahumphreys87 ahumphreys87 released this Apr 4, 2016 · 175 commits to master since this release

v3.0.0-pre3

Dependency Updates

  • Backbone and Underscore moved to peerDependencies to solve dependency conflicts for browserify and webpack users.
  • Added support for Lodash 4.

Documentation

  • Application documentation updates.

API Changes

  • Removed unused collection parameter from CollectionView.isEmpty.

Bug fixes

  • replaceElement and allowMissingEl are now able to be overridden in Region.show.

Misc

  • Gulp test-browser task fixed.
  • es-lint fixes.
  • Added more es6 syntax.
  • Fixed the UMD exported build.

Also, please help us finish v3!

Downloads

v2.4.5

@ahumphreys87 ahumphreys87 released this Mar 16, 2016 · 506 commits to master since this release

v2.4.5 view commit logs

Fixes

  • Marionette.View#ui will now bind events when names are hyphenated.
  • Nonexistent event handlers now fail silently.

Misc

  • Updated Backbone dependency to 1.3.2.
  • devDependencies updated.
  • Updated uglify to fix deprecated sourcemap pragma //@ replaced with //#.

Downloads

v3.0.0-pre.2

@ahumphreys87 ahumphreys87 released this Mar 8, 2016 · 221 commits to master since this release

Released to resolve a default install of pre.1 when installing from npm.

Downloads

v3.0.0-pre.1 - Family and Friends

@paulfalgout paulfalgout released this Mar 8, 2016 · 220 commits to next since this release

This is a "family and friends" release. The documentation is still mostly for 2.4.4. Please let us know if you run into any issues. Also, please help us finish v3!

Downloads