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
yiming.lu committed Aug 20, 2024
1 parent b96174d commit fbb2119
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.0.1

* Update xhr transport to migrate off legacy JS/HTML apis.

## 4.0.0

* Set compressed flag correctly for grpc-encoding = identity. Fixes [#669](https://github.com/grpc/grpc-dart/issues/669) (https://github.com/grpc/grpc-dart/pull/693)
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
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: grpc
description: Dart implementation of gRPC, a high performance, open-source universal RPC framework.
version: 4.0.0
version: 4.0.1

repository: https://github.com/grpc/grpc-dart

environment:
sdk: ^3.2.0
sdk: ^3.4.0

dependencies:
async: ^2.5.0
Expand Down

0 comments on commit fbb2119

Please sign in to comment.