plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Request]: Dependency JS Update

Open yunusemrecetin opened this issue 1 year ago • 4 comments

Plugin

connectivity_plus

Use case

Many packages are using "js 0.7.0" but "connectivity_plus" is using older one. It's can update for the future?

Proposal

Because connectivity_plus 5.0.2 depends on js ^0.6.4 and flutter_native_splash >=2.3.11 depends on js ^0.7.0, connectivity_plus 5.0.2 is incompatible with flutter_native_splash >=2.3.11. So, because flutter_app depends on both flutter_native_splash 2.3.11 and connectivity_plus 5.0.2, version solving failed.

yunusemrecetin avatar Feb 15 '24 11:02 yunusemrecetin

Would probably be solved by dropping js dependency in favor of web dependency https://github.com/fluttercommunity/plus_plugins/issues/2600

IchordeDionysos avatar Feb 17 '24 10:02 IchordeDionysos

It's can update for the future?

We will update it, but in the meantime you can use dependency_overrides to set js to 0.7.0 as you need it: https://dart.dev/tools/pub/dependencies#dependency-overrides

vbuberen avatar Feb 20 '24 12:02 vbuberen

@vbuberen shouldn't the js dependency removed entirely in favor of web.

To enable compiling to WASM?

IchordeDionysos avatar Feb 20 '24 14:02 IchordeDionysos

It will be removed, but later. I have seen your issues about WASM, but we already keep track of it as I mentioned one of related issues.

vbuberen avatar Feb 20 '24 15:02 vbuberen

Closed in #2621, the dependency to js has been removed

miquelbeltran avatar Feb 28 '24 19:02 miquelbeltran