-
Notifications
You must be signed in to change notification settings - Fork 183
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-modifier
v4 & ember-style-modifier
v2 + v3
#691
Conversation
* Widen version range for ember-modifier to include ^4.0.0 * Add ember-auto-import@^2 as a dependency * Drop support for node 12
Tests are failing due to potential memory leak detected:
I don't have much experience with |
@jelhan maybe caused by qunit > 2.14, see steveszc/ember-cli-memory-leak-detector#51 I have now recovered the old package.lock file & updated only the packages, which we want update Update: Seen that we have already |
The |
@mkszepp Embroider optimized scenario is failing with the following error:
Could be caused by outdated Embroider version. |
package.json
Outdated
"ember-truth-helpers": "^2.1.0 || ^3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@ember/string": "^3.0.1" |
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 don't think you need having @ember/string
as a peer dependency here. It should only be needed if the addon imports from @ember/string
itself. Adding it to devDependencies
should be enough if it only depends on another addon (here: ember-style-modifier
), which requires that package. Adding it to devDependencies
makes it available for the test app, which should be enough.
The difference is important if ember-style-modifier
drops the peer dependency. If you have it declared as a peer dependency here as well, consumers would still need to install it even if it is not used anymore.
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.
@jelhan sry my delay... thats right, i have removed the peerDependency
Is expected that the embroider scenario is failing for these changes? |
@cibernox no, the error Embroider optimized scenario, has nothing to do with this changes... i can also reproduce it with the current master version. The error is maybe caused, because some packages are bringing as dependency To fix the macro error, we need to update asome devDependencies... |
@cibernox Current There seems to be many outdated dependencies making the tests unstable. I feel we need to get back to a stable state. In my experience upgrading one dependency at a time works out best. And using a tool like Dependabot or RenovateBot to reduce the manual workload. Main trade-off of this approach is that it requires many small PRs to be reviewed and merged over a couple of days or even weeks. @cibernox Do you have time doing so? @mkszepp Maybe we could start by pulling out the fix for the memory leak issue in a separate PR and landing that one first? This also tells us if the fix for memory leak issue or the other upgrades in this PR caused the regression with Embroider tests. |
@cibernox @jelhan The following packages are bringen an outdated
Maybe only I'm on the same opinion as @jelhan . We can merge this changes without any problems. After that, we should try to update When we have solved the Embroider optimized error we should also retry to update |
i have started a draft to update all dependencies manually (#696). Now i will try to update ember-code-snippet` (lets see, in which error we run as next :) ) |
@jelhan @cibernox the macro problem occurs, when we use I have tested only the embroider try szenario's locally with this commit changes 9d6da21#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519 and it was fixed. Using |
fix #689
Changes:
Cause of ember-modifier@4 we are already have braking, so can also support more versions of
ember-style-modifier
(v2 + v3). This versions are bringing also breaking changes.ember-auto-import@^2
@ember/string
(this warning starts with ember v4.10)