-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
dependencySatisfies only reliable with a peerDep #58
Conversation
This addon uses `dependencySatisfies` to check the ember-source version. But unless you have a peerDep on ember-source, that was unreliable depending on Yarn/NPM optimization behaviors. And now as of embroider-build/embroider#1070 we're making `dependencySatisfies` strict so that it won't accidentally work sometimes when you don't actually declare a dependency or peerDependency.
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 totally meant to PR this myself and forgot 😅
thank you!!!
💯needed change! @ef4 do you think build failure is related?
|
Probably not caused by this PR, but legitimate problems caused by recent embroider releases. I will look into it. |
I think this failure was hitting a bug that is already fixed in newer embroider releases: embroider-build/embroider@8261003 Going to update |
This is ready to go. I would add that because this addon is very trusting with its semver range of |
I see I already have bits to release, so I will release. |
This ensures that dependencySatisfies can detect the version correctly. More information: emberjs/ember-render-modifiers#58
This ensures that dependencySatisfies can detect the version correctly. More information: emberjs/ember-render-modifiers#58
This addon uses
dependencySatisfies
to check the ember-source version. But unless you have a peerDep on ember-source, that was unreliable depending on Yarn/NPM optimization behaviors. And now as of embroider-build/embroider#1070 we're makingdependencySatisfies
strict so that it won't accidentally work sometimes when you don't actually declare a dependency or peerDependency.