-
Notifications
You must be signed in to change notification settings - Fork 10
Deprecation warning ember-getowner-polyfill.import #15
Comments
Currently I am using following workaround to get rid of deprecation warning. Its part of my install pipe and basically it installs everything then remove latest
|
@janmisek you may already be familiar with it, but I really like using ember-cli-deprecation-workflow for these situations where I can't get rid of a deprecation due to upstream issues in addons but I also don't want to see it in the console |
Indeed, thanks for chiming in here! |
it should also be mentioned that the best way to resolve this is opening PRs on the addons and resolving the deprecation issue! |
Confirm |
I agree and I also like deprecation workflow. But I think in this particular case versioning is responsible. Like deprecation is upcoming bc therefore deprecation should not be considered as minor change considering that most of the addons link the module as ^ |
I'm also suffering from this warning as well as htmlsafe-polyfill in ember 2.11
does anybody know how to actually cure them? i cant find any direct references in my project for including them... |
@bluscreen I suspect you're using an addon that is using the polyfill. I'm not sure if it's possible, but we should only throw this deprecation if the app is directly using it. Or perhaps we should not even throw the deprecation at all. |
i personally would say that it's not really such a critical thing to still have them included in some plugins.. Update: |
@Turbo87 the problem with this is that some of the more popular addons are not in any hurry to move away from the polyfill. They want to support the entire 2.x major version cycle. |
@bcardarella I wasn't suggesting to remove the polyfill, just to update it to the latest version where you don't have to import it explicitly which creates the deprecation message above. |
Yes, the current version of the polyfill is a true polyfill. You use the exact same API that you would use on newer Ember versions. |
@bcardarella I suppose what you're actually commenting on is the situation described in #16, right? |
Its more about the necessity for this particular addon to put the burden of the warning upon the application consumer. Whereas it is really meant for the addon developer that directly consumes it. The app developer has little recourse for resolving the warning if the addon developer is unable or unwilling to upgrade or resolve. Yet they are the one who constantly have to see the message. |
The irony however, is that even if the warning was removed or somehow made so that it only shows while developing the addon, there would still need to be an update made which puts us back at square one. So I'm hoping that in the future when it comes to something like this in Ember there can be an easier course of action to not impact app developers as much |
Also, I think it would be helpful if somehow deprecation warnings could notify which addon is the one offending. Doing Perhaps this is something that the EmberObserver folks can help with? If they're already doing some sort of static analysis on each addon perhaps they can help track down the ones that are still importing this addon and we can try and push those addon developers to updating? |
EmberObserver has code search built in, there are 49 addons that have |
FWIW, there is no way to know the "referrer" of an import. It is possible to add that (ember-cli/loader.js#118 makes it a bit easier), but it doesn't exist today. |
The deprecation has been removed and published in 2.0.0. |
Hello
I am getting deprecation warning
ember-getowner-polyfill.import
caused by addons using the polyfill as caret dependency^
. I am currently on ember 2.9.1 and I like to keep app clean of deprecations. Even because of clean console. Is there any solution for this?I am now using following workaround after npm install:
Thanks in advance
The text was updated successfully, but these errors were encountered: