Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Reverts the naming of setClassicDecorator externally #17833

Merged
merged 2 commits into from
Apr 2, 2019

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Apr 1, 2019

The rename was intended to be internal only, the external API is
already in use so we should keep it as is. Name is unfortunate, but
it kind of is either way.

Copy link
Sponsor Contributor

@josemarluedke josemarluedke left a comment

Choose a reason for hiding this comment

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

🎉

@buschtoens
Copy link
Contributor

ember-concurrency is currently broken in Ember Octane because of this.

Thanks for fixing it so quickly! :)

@buschtoens
Copy link
Contributor

I currently do this to fix it:

// @see https://github.com/emberjs/ember.js/pull/17833
if (!Ember._setComputedDecorator) {
  Ember._setComputedDecorator = Ember._setClassicDecorator;
}
// ember-cli-build.js
app.import('vendor/fix-decorator.js');

@igorT
Copy link
Member

igorT commented Apr 2, 2019

This broke Ember Data as well

The rename was intended to be internal only, the external API is
already in use so we should keep it as is. Name is unfortunate, but
it kind of is either way.
@pzuraq pzuraq force-pushed the bugfix/fix-set-computed-decorator branch from 91b6a33 to d197d87 Compare April 2, 2019 17:00
@rwjblue
Copy link
Member

rwjblue commented Apr 2, 2019

Just pushed an additional commit that deprecates instead.

@rwjblue rwjblue merged commit e7ee0c7 into master Apr 2, 2019
@rwjblue rwjblue deleted the bugfix/fix-set-computed-decorator branch April 2, 2019 20:01
josemarluedke added a commit to josemarluedke/ember-decorators that referenced this pull request Apr 3, 2019
pzuraq pushed a commit to ember-decorators/ember-decorators that referenced this pull request Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants