-
Notifications
You must be signed in to change notification settings - Fork 137
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
Address these issues in new apps (5.9): #1967
Address these issues in new apps (5.9): #1967
Conversation
5acf119
to
3b5e573
Compare
I think the remaining failures here are now real ones from this branch. |
DEPRECATION: The parts property on path nodes is deprecated, use head and tail instead DEPRECATION: The 'Program' visitor node is deprecated. Use 'Template' or 'Block' instead (node was 'Template') DEPRECATION: The parts property on path nodes is deprecated, use head and tail instead DEPRECATION: The 'Program' visitor node is deprecated. Use 'Template' or 'Block' instead (node was 'Template') DEPRECATION: The 'Program' visitor node is deprecated. Use 'Template' or 'Block' instead (node was 'Template') DEPRECATION: The 'Program' visitor node is deprecated. Use 'Template' or 'Block' instead (node was 'Template') DEPRECATION: The 'Program' visitor node is deprecated. Use 'Template' or 'Block' instead (node was 'Template')
641cbb9
to
fd08c5e
Compare
|
ah, so |
Suggested solution: #1979 |
beautiful |
fix scope visitors
Thanks. Most of the warnings are gone with I still get some of these, though:
Total new logged warnings upon build are down ~90% (from 17357 to 2255) |
Do you have a repro? in a fresh app I get 0 of those. |
Seems like upgrading @embroider/webpack removes the rest of the deprecation warnings for me for some weird reason. - "@embroider/webpack": "4.0.3",
+ "@embroider/webpack": "4.0.2", maybe related to that specific upgrade, but more likely some lockfile accident, as I've also recreated the lockfile and node_modules. |
@NullVoxPopuli @ef4 we still get this deprecation warnings with ember 5.9 (also 5.8) & latest embroider release (all packages in app are up to date, except I hope its not caused by My PR was never accepted adopted-ember-addons/ember-moment#378 There is installed only |
looks like there was any embroider cache in my case... now error doesn't appear anymore |
We are still hitting some deprecations messages in our build with the latest dependencies. I pushed a repro app here: https://github.com/shama/embroider-deprecation-repro I haven't had a chance to look where the deprecation messages originate from. It only happens on first the first build but not subsequent builds unless you clear out the embroider tmp folder. In this repo, run |
It looks like all the remaining deprecations in there are coming from embroider's resolver transform:
|
It would be a helpful PR if somebody wants to go through that file (against the embroider stable branch) and update all of the |
In a new 5.9 app, these deprecations occur
The goal of this PR is to get the deprecations down to 0.
The suggested fix is to change the
Program
visitor to eitherTemplate
orBlock
.and both of those have been around since glimmer-vm 0.39.0, which was: 2019, Jan 18.
after ember-source 3.7 :: 2019, Jan 7
before Octane Preview: ember-source 3.13 :: 2019, Sept 25.
but, 0.39.0's changes weren't pulled in to ember-source until ember-source 3.17............ and using glimmer-vm 0.47.9
Program
is more closely analogous toTemplate
whichThe node.path.parts vs node.path.head support is easy, because we have something that we can ask if its the new API or not.