-
Notifications
You must be signed in to change notification settings - Fork 43
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
Avoid the Ember global deprecation #118
Conversation
e4d58b1
to
184d80c
Compare
b67a051
to
c9e2029
Compare
37ae768
to
fd95838
Compare
fd95838
to
9c9ddcc
Compare
b4b4b76
to
1701ee2
Compare
* Avoid the Ember global in workflow runtime code. This patch is dependent on #125 which included the code at emberjs/ember-jquery#321
1701ee2
to
f6cd0c4
Compare
This was broken long ago by a change in ember-cli-htmlbars. There is a plan to bring it back, but remove it for now since the codepath is not doing anything for most codebases.
c4300b1
to
6fa5784
Compare
This is included in https://github.com/mixonic/ember-cli-deprecation-workflow/releases/tag/v2.0.0-beta.5, please open issues if you have any trouble with it. |
@boris-petrov what version of Ember CLI, Ember, Node? |
Everything is the latest version - Ember CLI 3.27.0, Ember 3.27.5, Node 16.4.1. |
@boris-petrov Loader.js version? Are you using Embroider? |
As I said, everything is the latest version. 😄 Loader.js - 4.7.0. Not using Embroider, no. Is |
Yeah it is expected as part of the loader. I mean, clearly it is expected, right? It is tested here and I additionally booted an app to check these changes. I'll try to reproduce the issue with exactly the versions you mentioned. In the back of my head 'has' being missing sounds like something I have run into before, but I'll need to dive into the loader and some stuff. Thanks for raising it, sounds like something we need to address quickly. |
Thank you for taking the time! Please tell me if you can't reproduce it - it might be something specific to my case (although I doubt that) - so in that case I'll try to figure out what's going on. |
@boris-petrov ok, I set an app to those versions and to the 2.0.0 release of workflow, and no luck reproducing.
|
@boris-petrov if you drop a debugger onto the line where the exception is firing from, and add one inside loader.js, you might be able to rationalize what order things are happening in and if the loader is being set up as expected. |
@mixonic - thanks for trying it out. I should have debugged it before asking here. The problem is, as always, in ember-classic-decorator. I'll open an issue there. Thank you for the time and sorry for the confusion! |
Following a suggestion at #107 (comment), use the
self.require
API to avoid using theEmber
global when possible.However there are other uses of deprecated Ember in this addon as well. These are found in the test suite. Make the test suite a bit more defensive and update deprecated API uses.
Summary:
Bump ember-query to get Remove reference to global Ember API emberjs/ember-jquery#321this ended up as part of Drop ember.component.reopen log #125Remove the global deprecation from the configured log listcan't yet do this, theember-release-with-jquery
scenario still fails.TODO: