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

Remove falling back to DefaultResolver #243

Merged
merged 1 commit into from
Jul 24, 2018
Merged

Conversation

krisselden
Copy link
Contributor

@krisselden krisselden commented Jun 29, 2018

No one uses MyApp.MyClass = Ember.Object.extend() anymore, especially if they are using the ember-cli/resolver. This removes extending from DefaultResolver since falling back to it ups the cost of misses.

@@ -108,17 +107,14 @@ function resolveOther(parsedName) {
}

return defaultExport;
} else {
return this._super(parsedName);
}
}

// Ember.DefaultResolver docs:

Choose a reason for hiding this comment

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

Probably remove these comments too?

@rwjblue
Copy link
Member

rwjblue commented Jun 30, 2018

The fallback behavior will need to issue a deprecation for a cycle before removal (in the next major bump of this lib).

@rwjblue rwjblue merged commit 0ffc530 into master Jul 24, 2018
@rwjblue rwjblue deleted the remove-default-resolver branch July 24, 2018 19:58
@stefanpenner
Copy link
Contributor

released as v5.0.1 🎉

@rwjblue
Copy link
Member

rwjblue commented Jul 24, 2018

After further discussion, I actually think this is just a straight up bugfix. The scenario where the fallback was actually used is more likely to troll folks than do what you want.

Sorry for the run around @krisselden...

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.

4 participants