-
Couldn't load subscription status.
- Fork 15
Remove unneeded peer dependency on ember-source #312
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
Conversation
|
Ember CLI addon blueprints add a peer dependency on |
|
No RFC needed, see: https://discord.com/channels/480462759797063690/568935504288940056/1370714948447113226 Changes to these sorts of things in the blueprints are to try to reduce problems for consumers, and are less so in need of opinions from the RFR process <3. I understand it is surprising tho. It was surprising to me when i found out we shouldn't be doing this as well!
Hope this helps! |
I removed it from the v2 addon blueprint yesterday. |
|
Opened a PR here for the v1 |
|
Thanks a lot for sharing all those details. I tend to wait merging this one until the change got merged into the standard blueprints. I have only very limited time for maintaining this addon and others. Therefore I try staying as close as possible to the defaults to ease maintenance. |
|
The maintained addon blueprints already do this: |
is extraneous, and the embroider/auto-import infra know where to get ember-source from. It's not _wrong_ to include, but it requires folks' manage their deps correctly -- so we can be a little more forgiving to maintainers by just omitting this. From PR descriptions elsewhere: - ember-source: removed because the embroider / auto-import know what we intend - it's not bad to have if someone manages their dep graph correctly, which is easier with pnpm, but not everyone gets it right, and folks have a hard time tracking down errors - @glimmer/tracking removed because it's a real package, but one we don't want to use. This comes up in embroider/vite where the presence of real packages always takes precedence over virtual packages. This is actually problematic because it can break reactivity in subtle ways, even if a dep graph is correct - allowing duplicates of dependencies, which for the glimmer internals, we don't want. Related: - cibernox/ember-power-calendar#550 - lifeart/ember-click-outside-modifier#47 - tracked-tools/ember-async-data#854 - warp-drive-data/warp-drive#9986 - ember-animation/ember-animated#779 - tildeio/ember-element-helper#125 - CrowdStrike/ember-headless-form#574 - adopted-ember-addons/ember-sortable#620 - ember-cli/ember-app-blueprint#7 - ember-cli/ember-cli#10697 - ember-cli/ember-addon-blueprint#35 - embroider-build/addon-blueprint#339 - ember-polyfills/ember-functions-as-helper-polyfill#151 - jelhan/ember-style-modifier#312 - jmurphyau/ember-truth-helpers#211 - ember-modifier/ember-modifier#949 - tracked-tools/tracked-toolbox#211 - emberjs/ember-test-helpers#1543 - NullVoxPopuli/ember-resources#1189 - NullVoxPopuli/ember-modify-based-class-resource#20 - universal-ember/kolay#187 - universal-ember/reactiveweb#139 - universal-ember/ember-primitives#471 - universal-ember/docs-support#77
embroider, auto-import, and ember-cli before them handled virtual deps without a package.json entry.
package.json entries win over virtual deps, so we don't want to declare ember-source or @glimmer/tracking as peers.
Related: