No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
addon Do not use initializers Dec 14, 2017
app Do not use initializers Dec 14, 2017
config Updating the project to unblock the tests (#64) Mar 8, 2018
tests
transforms Only grab from ember-source Jan 18, 2018
vendor Add Ember.required "polyfill" Apr 2, 2018
.editorconfig Initial Commit from Ember CLI v2.17.0 Nov 29, 2017
.ember-cli Initial Commit from Ember CLI v2.17.0 Nov 29, 2017
.eslintrc.js Updating the project to unblock the tests (#64) Mar 8, 2018
.gitignore Initial Commit from Ember CLI v2.17.0 Nov 29, 2017
.npmignore Update to 2.18 Jan 3, 2018
.travis.yml Updating the project to unblock the tests (#64) Mar 8, 2018
.watchmanconfig
LICENSE.md Initial Commit from Ember CLI v2.17.0 Nov 29, 2017
README.md Fixes #60: Add build time flags for deprecation toggling (#62) Mar 12, 2018
ember-cli-build.js Merge pull request #40 from thoov/ember-2.18-upgrade Jan 8, 2018
index.js
package.json Version bump to 0.3 (#65) Mar 12, 2018
testem.js Updating the project to unblock the tests (#64) Mar 8, 2018
yarn.lock

README.md

Ember 2 Legacy

During the 2.x series in Ember.JS serveral deprecations were added with a target removal version of 3.0. This addon adds back those deprecations and the deprecated code that was removed. The goal of this addon is to allow Ember users who have deprecations that are preventing them from upgrading to 3.0 a path forward. After Ember 3.4 is released this addon will no longer be compatible with Ember. It should be used to provide extra time for migrating away from deprecations, not as a permanent solution.

For more background about what and why APIs are being remove for Ember.JS 3.0 please check out the Road to Ember 3.0 blog post which goes into more details.

Installation

ember install ember-2-legacy

What Deprecations are Covered

All deprecations found here which have a until: 3.0.0 are currently supported by this addon.

In ember-cli-build.js you can specify a config for ember-2-legacy. This object has individual flags as key names and they can be turned off simply by setting a flag to false. Below is a sample config which shows all of the flag names (note all all true by default):

new EmberApp(defaults, {
  'ember-2-legacy': {
    'ember-k': false,
    'safe-string': false,
    'enumerable-contains': false,
    'underscore-actions': false,
    'reversed-observer-args': false,
    'initializer-arity': false,
    'router-resouce': false,
    'current-when': false,
    'controller-wrapped': false,
    'application-registry': false,
    'immediate-observer': false,
    'string-fmt': false,
    'ember-freezable': false,
    'component-defaultLayout': false,
    'ember-binding': false,
    'input-transform': false,
    'deprecation-options': false,
    'orphaned-outlets': false,
    'warn-options': false,
    'resolver-function': false,
    'init-attrs': false,
    'render-support': false,
    'property-required': false
  }
});