Skip to content
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

[BUGFIX LTS 4.4] Don't run getters while applying mixins #20405

Merged
merged 2 commits into from
Apr 27, 2023

Conversation

gitKrystan
Copy link
Contributor

Backport of #20388

This change ensures that getters are never evaluated while applying mixins.

It relies on the fact that all getters (including undecorated ones) get converted into classic decorators when the mixin is originally created.

This change ensures that getters are never evaluated while applying
mixins.

It relies on the fact that all getters (including undecorated ones) get
converted into classic decorators when the mixin is originally created.
@gitKrystan gitKrystan changed the title [BUGFIX LTS] Don't run getters while applying mixins [BUGFIX LTS 4.4] Don't run getters while applying mixins Mar 9, 2023
@MelSumner MelSumner requested a review from a team March 14, 2023 14:41
@wycats wycats force-pushed the backport-20388-to-4-4 branch 2 times, most recently from 5e17b73 to 281760d Compare April 27, 2023 22:39
Ember CLI dropped support for Node 12 in 4.6.0.
Copy link
Member

@wycats wycats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! I backported the node version change, because outdated node is what was making the smoke test fail.

@wycats wycats merged commit 649d5af into emberjs:lts-4-4 Apr 27, 2023
13 checks passed
@gitKrystan gitKrystan deleted the backport-20388-to-4-4 branch April 27, 2023 23:19
@@ -155,7 +155,7 @@
"typescript": "~4.6.0"
},
"engines": {
"node": ">= 12.*"
"node": ">= 14.*"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can bump this in a point release since it would be a breaking change that would be very unexpected. Bumping the version for a particular CI job should be fine though I am curious why it failed: theoretically the smoke test should work on 4.4 without changes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the rule about releases that each release supports whatever node version is still under maintenance?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed on discord, but writing here as well: I think a node version bump in a patch release would be very surprising to users. The policy states only when we drop support on the primary branch of ember-cli https://github.com/ember-cli/ember-cli/blob/master/docs/node-support.md

ef4 added a commit that referenced this pull request Apr 28, 2023
#20405 changes engines.node. We can't do that within the LTS channel without breaking peope.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants