Skip to content

Adapt to new data format#27

Merged
rwjblue merged 7 commits intoember-cli:masterfrom
Serabe:feature/new-format
Oct 3, 2017
Merged

Adapt to new data format#27
rwjblue merged 7 commits intoember-cli:masterfrom
Serabe:feature/new-format

Conversation

@Serabe
Copy link
Contributor

@Serabe Serabe commented Sep 18, 2017

This PR adapts the code to the new format suggested in
ember-cli/ember-rfc176-data#37.

This PR adapts the code to the new format suggested in
ember-cli/ember-rfc176-data#37.
@rwjblue
Copy link
Member

rwjblue commented Sep 19, 2017

This looks good to me. We need to decide what to do about those deprecated modules now. The reason I bring this up is that with this change this babel plugin will support the old shims (which it hasn't done to date). I think, generally speaking, we should emit deprecation noticies to the console, but since we don't have a good build runtime deprecation solution yet in ember-cli I'm slightly hesitant to suggest each of these emit a console message...

@rwjblue
Copy link
Member

rwjblue commented Sep 20, 2017

We should add console as an argument to be passed in, and then when we update in ember-cli-babel we can pass in its fake console that leverage this.ui from the addon.

@Serabe
Copy link
Contributor Author

Serabe commented Sep 27, 2017

Added notifier as parameter. Not sure if it is the way you were thinking of, though.

@Serabe
Copy link
Contributor Author

Serabe commented Sep 29, 2017

Fixed a problem in Node 4

src/index.js Outdated
if (mapping) {

if (mapping.deprecated) {
notifyDeprecation(`Module ${importPath} is deprecated.`, notifier);
Copy link
Member

Choose a reason for hiding this comment

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

We should flesh this out a bit more to include what file was being transpiled and what the replacement is (if any). Otherwise this isn't very actionable.

@Serabe - I'm going to disable the deprecation system for now, so that we can release (and keep parity). Can you work on this in a follow up PR?

Copy link
Member

Choose a reason for hiding this comment

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

I created #28 to track that.

We definitely should bring this back, but for now we should disable
until we can make the deprecations more actionable.
@rwjblue
Copy link
Member

rwjblue commented Oct 3, 2017

Updated for release version of ember-rfc176-data (and to kick off another CI run). Once green, this should be good to go...

@rwjblue rwjblue merged commit 989bf00 into ember-cli:master Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants