-
-
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
Breaking change in 5.9 beta: with
keyword
#20694
Comments
Error dump:
|
Yeah I posted about this a while ago. The feature was implemented in glimmer-vm and a deprecation was added in ember as an AST plugin. When it comes time to cleanup the deprecation we just removed the ember AST plugin without removing the feature in glimmer-vm. We finally did recently. |
Maybe we should at least put this in changelog. That's where I first looked. |
I realized why these weren't caught in this app during 3.28 deprecation cleanup. They were only ever build-time deprecations, and our support for those isn't great. IMO we should try to emit this kind of thing at runtime in the future. The AST transform could have chosen to insert a call to a deprecation-emitting helper instead of printing to the console. |
Agreed. We can also backport and/or make this a hard error or something until 6.0 or something. IIRC with is a non-contextual keyword in JS anyway so it’s unlikely that it will cause any real issues. Just didn’t bother because @kategengler didn’t find any real world cases of it. But now you have we can certain do more |
This was dropped at ember 5.0 but [accidentally worked](emberjs/ember.js#20694) until 5.9.
🐞 Describe the Bug
In Ember 5.8, the
{{#with}}
keyword works in handlebars strict mode. In 5.9.0-beta.1, it results in a build error.I'm aware that it's listed as deprecated at 4.0 but apparently we left it working up until 5.8.0, with no deprecation message. So it was lurking in an app where I tried to test the beta.
🔬 Minimal Reproduction
This app demonstrates the difference:
https://github.com/ef4/with-keyword-bug
It should fail to build. If you downgrade to ember-source 5.8.0, it works.
The text was updated successfully, but these errors were encountered: