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
Upgrade to ember-auto-import v2 #1624
Conversation
I'm wondering if it is too early to do that change. Ember CLI blueprints for new applications are still using |
Too early for what? What's your specific concern? Ember v4 (which is also an addon) already requires it. And the only breaking change is that any app depending on an addon that requires eai v2 also has to update, but that's all. What's the risk? |
Does it require it? I assumed/hoped that an Ember v4 application can use an addon, which depends on |
The logic is as follows, see also https://github.com/ef4/ember-auto-import/blob/main/docs/upgrade-guide-2.0.md:
So it's not that all addons have to upgrade. But apps will likely "feel the pressure" to do so, once some addons do upgrade. One such "addon" is Ember 4. But upgrading should be easy and cheap, and unlocks future improvements. So I don't see a good reason to hold this back!? And upgrading does require a major version bump, so for e-b I think now is the time to do so! |
I see. Thanks a lot for the explanation. I still fear the pain of being one of the first to do that change. Do we have any benefits from doing that change now beside avoiding another major only for that reason later? |
I believe it could be beneficial for performance reasons but not sure. Fun fact: I just found out that we actually don't need it as a dependency! 😝. Seems it was added in this commit, but |
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.
Seems as other addons start upgrading to ember-auto-import@v2
- including addons we depend on. I just came across @ember/render-modifiers
, which upgraded to ember-auto-import@v2
in their recent 2.0.0
release: https://github.com/emberjs/ember-render-modifiers/blob/master/CHANGELOG.md#v200-2021-10-06 Not sure if they were aware of the impact. The change is listed as internal.
I fear if not doing that breaking change now ourselves, we may not be able to upgrade some of our dependencies. We would lock ourselves into a corner.
I guess that was the part I missed so far. Seeing that risk, I'm in favor of shipping that one as part of our upcoming major.
@jelhan just to clarify why
|
This requires the app to also have eai v2. But should fix failing Canary builds (which now also requires eai v2, so requires our addon's dummy app to have eai v2 and webpack, see emberjs/ember.js#19761). And enables us to eventually ship a native v2 addon without further breaking changes.