From d49f9f7414872fae994e8cc490579ad41e72d9bd Mon Sep 17 00:00:00 2001 From: minoic Date: Mon, 16 Dec 2024 09:15:03 -0800 Subject: [PATCH] update: use dart.library.js_interop in place of dart.library.html --- CHANGELOG.md | 1 + lib/grpc_or_grpcweb.dart | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 684f1d6..368ef92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * When the keep alive manager runs into a timeout, it will finish the transport instead of closing the connection, as defined in the gRPC spec. * Upgrade to `package:lints` version 5.0.0 and Dart SDK version 3.5.0. +* Update xhr transport to migrate off legacy JS/HTML apis. ## 4.0.1 diff --git a/lib/grpc_or_grpcweb.dart b/lib/grpc_or_grpcweb.dart index dffbde2..049ceab 100644 --- a/lib/grpc_or_grpcweb.dart +++ b/lib/grpc_or_grpcweb.dart @@ -13,8 +13,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -import 'src/client/grpc_or_grpcweb_channel_web.dart' - if (dart.library.io) 'src/client/grpc_or_grpcweb_channel_grpc.dart'; +import 'src/client/grpc_or_grpcweb_channel_grpc.dart' + if (dart.library.js_interop) 'src/client/grpc_or_grpcweb_channel_web.dart'; import 'src/client/http2_channel.dart'; import 'src/client/options.dart';