Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Update ember-cli to 1.13.8, use simplified initializer pattern #16

Merged
merged 1 commit into from
Aug 23, 2015

Conversation

mike-north
Copy link
Member

In canary, the initializer was was throwing a deprecation warning due to: emberjs/ember.js#11440

@@ -1,7 +1,8 @@
import Ember from 'ember';
import config from '../config/environment';

export function initialize(container, application) {
export function initialize() {
var application = arguments[1] || arguments[0];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rwjblue @stefanpenner if this is an acceptable fix, I'm happy to apply this pattern to ember's internal initializers. Canary is currently throwing warnings, so I assume they'll need to be handled before cutting the next beta

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mike-north - Are you saying that the initializers that are internal to Ember itself are triggering this deprecation? Can you open an issue for that (the fix in Ember itself isn't quite like this though)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you saying that the initializers that are internal to Ember itself are triggering this deprecation?

Yes

Can you open an issue for that

I'll open a PR. The particulars of the fix are likely to be simple enough that I don't mind having to re-do them after feedback

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. The solution in Ember is to import isEnabled and use different signatures based on the flag being enabled. Also, I'm concerned that our tests did not show this (we throw errors if we hit a deprecation).

@acorncom
Copy link
Member

Just ran into this bug when working on running the LiquidFire test server (as I'm starting on some docs changes here: emberjs/guides#448 (comment)), which also works against canary ...

rwjblue added a commit that referenced this pull request Aug 23, 2015
Update ember-cli to 1.13.8, use simplified initializer pattern
@rwjblue rwjblue merged commit b4a7a13 into ember-cli:master Aug 23, 2015
@rwjblue
Copy link
Member

rwjblue commented Aug 23, 2015

Released as 1.0.4.

@mike-north
Copy link
Member Author

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants