rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

Make the `on` modifier built-in in strict-mode

Open NullVoxPopuli opened this issue 1 year ago • 4 comments
trafficstars

Propose making {{on}} a built in modifier

Rendered

Summary

Today, we need

import { on } from '@ember/modifier'`;

This should be built in, and not require an import.



An FCP is required before merging this PR to advance to Accepted.

Upon merging this PR, automation will open a draft PR for this RFC to move to the Ready for Released Stage.

Exploring Stage Description

This stage is entered when the Ember team believes the concept described in the RFC should be pursued, but the RFC may still need some more work, discussion, answers to open questions, and/or a champion before it can move to the next stage.

An RFC is moved into Exploring with consensus of the relevant teams. The relevant team expects to spend time helping to refine the proposal. The RFC remains a PR and will have an Exploring label applied.

An Exploring RFC that is successfully completed can move to Accepted with an FCP is required as in the existing process. It may also be moved to Closed with an FCP.

Accepted Stage Description

To move into the "accepted stage" the RFC must have complete prose and have successfully passed through an "FCP to Accept" period in which the community has weighed in and consensus has been achieved on the direction. The relevant teams believe that the proposal is well-specified and ready for implementation. The RFC has a champion within one of the relevant teams.

If there are unanswered questions, we have outlined them and expect that they will be answered before Ready for Release.

When the RFC is accepted, the PR will be merged, and automation will open a new PR to move the RFC to the Ready for Release stage. That PR should be used to track implementation progress and gain consensus to move to the next stage.

Checklist to move to Exploring

  • [ ] The team believes the concepts described in the RFC should be pursued.
  • [ ] The label S-Proposed is removed from the PR and the label S-Exploring is added.
  • [ ] The Ember team is willing to work on the proposal to get it to Accepted

Checklist to move to Accepted

  • [x] This PR has had the Final Comment Period label has been added to start the FCP
  • [x] The RFC is announced in #news-and-announcements in the Ember Discord.
  • [x] The RFC has complete prose, is well-specified and ready for implementation.
    • [x] All sections of the RFC are filled out.
    • [x] Any unanswered questions are outlined and expected to be answered before Ready for Release.
    • [x] "How we teach this?" is sufficiently filled out.
  • [x] The RFC has a champion within one of the relevant teams.
  • [ ] The RFC has consensus after the FCP period.

NullVoxPopuli avatar Dec 22 '23 19:12 NullVoxPopuli

I like this. Seems simple enough, there's already precedent from other modifiers. Isn't really anything new to learn. Could even add a fixable template lint rule to remove unneeded import lines.

Techn1x avatar Feb 17 '24 06:02 Techn1x

Makes sense to me.

achambers avatar Mar 13 '24 15:03 achambers

RFC Review (1) are in favour of this.

achambers avatar Mar 27 '24 15:03 achambers

We decided to move this RFC along with #998, #999, #1000 into FCP to accepted today at the RFC meeting.

kategengler avatar May 17 '24 18:05 kategengler