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
Support ember-concurrency v4 #2107
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks a lot for working on this!
I'm a little bot concerned on test coverage. I feel we should have a test that it's working as expected without any explicit ember-concurrency configuration in the consuming app. Maybe we can just remove the Babel plugin configuration from the test app?
Not sure of changes in ember-concurrency justify an ember try scenario for v3. @simonihmig @SanderKnauff Any thoughts on that?
Tests for docs app is failing:
This might indicate that it's not worked as expected for consuming apps which aren't configuring the babel plugin explicitly. |
We only seem to be using it in the carousel, so I don't think it's worth that much.
The docs app does not explicitly declare ember-concurrency as a dependency. It does give a good indication that something it still not going 100% fine. @jakesjews, does this also happen when you try to build / test the docs app locally? |
@SanderKnauff yeah they're failing I'll see what is up with it. |
test-app/ember-cli-build.js
Outdated
babel: { | ||
plugins: [ | ||
require.resolve('ember-concurrency/async-arrow-task-transform'), | ||
], | ||
}, |
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.
Can we please remove this? The test app does not use ember-concurrency
directly at all.
babel: { | |
plugins: [ | |
require.resolve('ember-concurrency/async-arrow-task-transform'), | |
], | |
}, |
I think we can even remove the devDependency
on ember-concurrency
in the test app. If we want to ensure a specific version being used to run the tests against, we could use pnpm.overrides
instead. But as that is not only true for ember-concurrency
but for many other dependencies as well, let's discuss that in a separate PR.
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.
no problem. I removed it from the test app
@jakesjews The tests for the docs app are failing again. Also Embroider tests are started to fail. I restarted 3 times to understand if it's flickering. But it was failing reproducible. Looks like one of the latest changes has broken it again. |
@jelhan the good news is I finally got this passing. The bad news is the only way I could do it was by using a peer dependency on v4 like in Power Select so that would be a breaking change. I’ll can try some tricks with a wider peerDependency range but that would be a breaking change too. |
Thanks a lot for following up on it! It seems that we are only using @SanderKnauff @simonihmig What are your thoughts about it? |
I found that the carousel is quite sensitive with it comes to timing. It would be nice if we could get rid of |
Can we continue using Another alternative would be delaying ember-concurrency support until we refactored to a v2 addon. Many options on the table. 😄 |
I've just tried using this branch and... we can! @jakesjews would you be open to removing the transform from the projects and fixing the bs-carousel by replacing the |
Something seems to break for Embroider in fully optimized mode:
|
I used an unshift for adding the babel-plugin in case coverage is added later