Skip to content

Commit

Permalink
update: use dart.library.js_interop in place of dart.library.html
Browse files Browse the repository at this point in the history
  • Loading branch information
minoic authored and aran committed Dec 4, 2024
1 parent 321e4e8 commit 0908789
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions lib/grpc_or_grpcweb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 0908789

Please sign in to comment.