-
Notifications
You must be signed in to change notification settings - Fork 248
[#1164] move web_components
line to dev_dependencies in the pubspec.yaml
#1321
Conversation
I commented on the issue: I think that having The better fix we can is probably to widen the version range but we should make sure there is breaking changes in the latest versions. This is probably something that can be done after or as part of the current work @vsavkin is doing on improving the shim support. |
WebPlatform doesn't reference web_components explicitly. Instead, it uses js interop to check for platform.js. +1 for moving web_components to a dev_dependency. |
@jbdeboer does the fact that we're using js interop makes any difference ? Let's say wc release X's platform.js solves our current issue by adding a new API (to enable scoping CSS with any selector not only the host tag name). If angular does not depend on >=X, the user can have wc X-1 and then angular would not work for browsers that do not support wc natively. (I am not sure what would be the result of calling an unimplemented method on a |
@vicb, you are describing a runtime dependency and pub deals with compile-time dependencies. There is not an issue here. |
@jbdeboer to me a dep is a dep and there is no such things as hard / soft / runtime / compile-time deps for pub. But that's only words let's compare the 2 solutions: wc as dep
wc as dev dep
I count +3 vs -2, but I'm probably a little bit biased :) Anyways I would love to hear more about your biased reasoning too. |
If users reference a package in their own code they should have a direct dependency in their
I guess applications are usually not published, but I guess a wide enough dependency constraint is the best way to avoid this problem anyway. I assume this doesn't provide much help to make the decision easier. |
I've preferred not to mention that to keep things simpler but I guess this could be done by a transformer (which would be active by default but users would be able to disable). There should be no need for users to reference something they don't use directly.
You're right, they're not meant to be published so "I assume this is not meant to be used in production" is not applicable here.
Nope, I'd like to be +1 / -1 for each cases. |
… the pubspec.yaml Closes dart-archive#1321
In the context of #1164
Sorry, I do not know how to testing about this change.