-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Missing public API imports #12
Comments
|
good point, I didn't check the |
Ember.Binding and Ember.bind are also deprecated I believe. |
Ember.onerror is a user provideable hook (not something that Ember itself provides). |
These are both wrong, they should be |
I didn't think that we exposed the RouterService on the global at all actually. We make it available in the default app registry, but I don't think we actually set a Ember.RouterService (we'll have to confirm). |
I've updated the list
that's probably why it's not prefixed with |
I think it would need to be a case by case basis on the deprecated items. For example, I don't think |
@rwjblue #12 (comment) up for review: |
Added |
Proposals that try to follow the guidelines in the RFC.
Close seconds:
|
We discussed this issue at todays Ember core team meeting, and have generally agreed to your list above with the following (relatively small) modifications: // some that you were unsure of
import { isTesting, setTesting } from '@ember/test'; // Ember.testing
import { defineProperty } from '@ember/object'; // Ember.defineProperty
// we preferred alternates for these:
import ApplicationInstance from "@ember/application/instance";
import EngineInstance from "@ember/engine/instance";
import PromiseProxyMixin from "@ember/object/promise-proxy-mixin";
import ObjectProxy from "@ember/object/proxy"
// we want to hold off on these for now (will review again next week):
Ember.VERSION
Ember.Test.QUnitAdapter // as of QUnit 2.0 this is completely provided by ember-qunit Would love a PR adding the missing things, then we can update the listing in the description... |
instead of |
Updated table with suggested changes:
|
Now that some of these have been landed, we should update the list in the description... |
@Turbo87 Can you edit the table and remove what was implemented? Heading off right now. |
I found another missing API: |
Missing API imports and they suggested import paths
If there is agreement I could PR that tonight or tomorrow. |
We are using 2.16, where
|
Looks like |
@GCheung55 that is private API |
@locks you’re right. My mistake. |
no problem, thanks for keeping an eye out! |
Was there ever a definitive answer for if we are going to include Logger, or if it's getting depreciated/removed? |
@webark It seems that's going to be removed, Ember.Logger is no more than a polyfill as it was said at emberjs/rfcs#176 |
@Gorzas it’s a little more then just a polyfil. (not much more, but a little) That comment does mention that they will “revisit logging” in the future. At first read i read that as more of a suggestion then an answer, but upon reading it more it seems that it’s more of a conclusion. Thanks. |
Nothing is happening to Ember.Logger until an RFC is filed and accepted. |
Ember.testing replacement pl0x? 🙏 |
@elwayman02 I've been using the suggestion given by @rwjblue here: emberjs/ember-qunit#297 (comment). Old:
New:
|
Updating the description for the following:
I also removed the following as they were removed in 3.0.0:
|
What about |
After discussion with @tomdale we came up with a bunch of answers (though not completely):
|
@krisselden The rationale was that we wanted to make it clear that it was an internal helper used as part of codegenned templates, and not something app developers should use. It's not technically used "by" the template compiler, but it is required to evaluate the output the template compiler produces. If you'd like to put it in a different package than |
Are Ember-Data modules will be added or is this for Ember only? |
@wanxie this is for ember.js only, Ember Data is a separate library and needs a separate RFC :) |
According to #11 the following list of documented public globals APIs in Ember have no corresponding new module import paths yet:
Additionally the
ember-cli-shims
were exporting the following globals APIs which don't have corresponding new module import paths yet either:The text was updated successfully, but these errors were encountered: