-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[1.13.beta-2 Regression] services can no longer extend Ember.Object #11292
Comments
@jakehow It makes sense to just use Ember.Service going forward. Ember.Service its an Ember.Object with a class property |
I believe this is a regression, I actually left a comment on the PR that introduced this. It should have been a deprecation/warning for a cycle |
note I made: #11261 (comment) @jakehow can you confirm? |
This was changed into a deprecation in #11273, which is included in the latest beta builds. I am going to close now, but will happily reopen if it is still an issue with current beta or canary builds. |
👍 working for me on master |
@jakehow whoop, thanks for confirming. |
Our app has a session service defined in
app/services/session.js
by extendingEmber.Object
.Our suite passes on v1.13.0-beta.1.
v1.13.0-beta.2 introduced a change that breaks this. We see the following error in our test suite:
Assertion Failed: Expected service:session to resolve to an Ember.Service but instead it was (unknown mixin).
While breaking, fixing this in app is a trivial change to extending from
Ember.Service
instead.The text was updated successfully, but these errors were encountered: