update: use dart.library.js_interop in place of dart.library.html

This commit is contained in:
minoic 2024-12-16 09:15:03 -08:00 committed by Aran Donohue
parent 74897b2cc9
commit d49f9f7414
No known key found for this signature in database
GPG Key ID: EA98761C2C20A998
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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';