-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Specifying and detecting an applications edition. #558
Conversation
3e0562b
to
9b42623
Compare
💯 I think the ember root key in package.json gives us room to play around in the future, too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks again for working on this 👍
Couple of add-on author questions. Is this also where addons declare their support? The edition for the dummy app? How do addons test multiple editions? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it a lot better! Had a couple typo corrections, but
Co-Authored-By: Chris Thoburn <runspired@users.noreply.github.com> Co-Authored-By: Chris Krycho <hello@chriskrycho.com>
b461a6e
to
f4b6a88
Compare
@jrjohnson - Great questions! I have added a snippet to the RFC to specifically address this. Here is the relevant verbiage added:
|
@buschtoens - Great question, I've updated the prose to explain what the best path forward is here. Snippet below: Note that the above definition does not allow for an addon to detect the
|
Can you clarify why .ember-cli won't work? Is it because .ember-cli only looks like JSON, but is interpreted, so who knows what could be in there? Or is it because we also support .ember-cli.js, it would force them to have both files to get the static edition? |
@kellyselden - Ya, I had this question specifically listed in the "alternatives" section, but I've updated the prose there to hopefully make it even clearer. Please let me know if that helps! Snippet:
|
Isn't that also true of any apps that use an "ember" property in package.json for whatever reason? The snippet doesn't really explain the relationship between .ember-cli.js and .ember-cli. I know it's not a requirement of the RFC to explain it, but it might be nice for readers to explain why supporting a file called .ember-cli.js means we can't use static JSON in .ember-cli for this new property. Thanks. |
Thank you all for your help in moving this forward! We discussed this in the Ember core team meeting today and are moving this into final comment period. In addition, due to the shortened cycle for this RFC (apologies again 😞 ), we will be working toward landing implementations in ember-cli's current beta cycle (targeting 3.15's release in a few days). Regardless of landing the implementation in the beta branch, any actual release will wait for this RFC cycle to be completed (assuming no new information / issues are brought up in the thread here, this means a release could happen as early as next Friday). I realize this is a somewhat unusual (we normally like to have a full cycle for new features), but hope that y'all understand. |
@kellyselden - Ya, I'll add a bit more detail there. I agree the current "oh, btw, there is also .ember-cli.js" doesn't actually explain why that is a deal breaker. |
Fix typo's and incorrect verbiage in #558
Refactor edition detection for emberjs/rfcs#558.
The core team met to discuss this RFC today, we are still in favor of moving forward here, there were no new concerns brought up during the FCP period, the implementation has gone smoothly, we are ready to land this. Thank you everyone for providing feedback, we absolutely ended up on a much better solution! |
Rendered
Motivation
As Ember approaches it's first edition (see emberjs/rfcs#364) various addons need to modify their behavior based on the edition that is being used. An initial implementation (done without RFC) used the
setEdition
method from@ember/edition-utils
inside the application's (or addon's).ember-cli.js
file to specify which edition was to be used. That implementation worked well enough throughout the initial preview period, but a number of major issues were (rightfully!) surfaced by the community:This RFC will review these issues in light of the updated implementation, showing how each of the concerns have been met.
Timeline
This RFC will have a significantly compressed timeline (hopefully in FCP tomorrow 🙀), as we attempt to move forward with "shipping octane" (🤞in a version very soon). I am sorry that it has taken me so long to put together, but hopefully we can come to a quick consensus and fix the mistakes of the past.