diff --git a/CHANGELOG.md b/CHANGELOG.md index 398f2c81..494d4bad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/lib/grpc_or_grpcweb.dart b/lib/grpc_or_grpcweb.dart index dffbde2e..049ceabf 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'; diff --git a/pubspec.yaml b/pubspec.yaml index f455f33e..7dcca90b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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