js package is discontinued
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.
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.
Please remove it, as it is now preventing me from getting the latest versions of packages
@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.
I believe this is fixed with latest releases--any problem, please re-open. Sorry it took so long!