build icon indicating copy to clipboard operation
build copied to clipboard

js package is discontinued

Open Panosfunk opened this issue 8 months ago • 3 comments

Thank you for taking the time to file an issue! In order to route, prioritize, and act on this as soon as possible please include:

  • The Dart SDK Version (dart --version) Dart SDK version: 3.7.2 (stable) (Tue Mar 11 04:27:50 2025 -0700) on "macos_arm64"
  • What package(s) from this repo you are using, and the version (i.e. build_runner 0.7.12) build_runner 2.4.15

When I run flutter pub outdated on my flutter app, I see this line:

js                                         *0.6.7               *0.6.7               *0.6.7               0.7.2               (discontinued)  

and after running flutter pub deps I see that the js package is a transitive dependency coming from the build_runner package.

On the js package in pub.dev there is a suggestion to use

This package is discontinued. Prefer using [dart:js_interop](https://api.dart.dev/dart-js_interop/dart-js_interop-library.html) for JS interop. See the [JS interop documentation](https://dart.dev/interop/js-interop) for more details.

instead.

Panosfunk avatar May 13 '25 13:05 Panosfunk

Thanks. As far as I can see the dep isn't used any more, I'll check and see if I can remove it when I do the next release.

davidmorgan avatar May 19 '25 07:05 davidmorgan

Please remove it, as it is now preventing me from getting the latest versions of packages

kostyaten avatar May 24 '25 22:05 kostyaten

@kostyaten I don't see how that's possible? Using a discontinued package doesn't stop you from using other packages. If you want to post a bit more detail perhaps I can help.

davidmorgan avatar May 25 '25 16:05 davidmorgan

I believe this is fixed with latest releases--any problem, please re-open. Sorry it took so long!

davidmorgan avatar Aug 06 '25 14:08 davidmorgan