Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move codec.dart to former place #713

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* 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)
* Remove generated status codes.
* Remove dependency on `package:archive`.
* Move `codec.dart`.

## 3.2.4

Expand Down
2 changes: 1 addition & 1 deletion lib/grpc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export 'src/server/server.dart'
export 'src/server/server_keepalive.dart' show ServerKeepAliveOptions;
export 'src/server/service.dart' show ServiceMethod, Service;
export 'src/shared/api.dart';
export 'src/shared/codec/codec.dart' show Codec, IdentityCodec, GzipCodec;
export 'src/shared/codec.dart' show Codec, IdentityCodec, GzipCodec;
export 'src/shared/codec_registry.dart';
export 'src/shared/message.dart'
show GrpcMessage, GrpcMetadata, GrpcData, grpcDecompressor;
Expand Down
2 changes: 1 addition & 1 deletion lib/grpc_connection_interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export 'src/client/options.dart' show ChannelOptions;
export 'src/client/transport/transport.dart'
show GrpcTransportStream, ErrorHandler;

export 'src/shared/codec/codec.dart';
export 'src/shared/codec.dart';
export 'src/shared/codec_registry.dart';
export 'src/shared/message.dart' show frame, GrpcMessage, grpcDecompressor;
export 'src/shared/status.dart' show GrpcError;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/call.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import 'dart:async';
import 'dart:developer';

import '../shared/codec/codec.dart';
import '../shared/codec.dart';
import '../shared/message.dart';
import '../shared/profiler.dart';
import '../shared/status.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/http2_connection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import 'dart:typed_data';

import 'package:http2/transport.dart';

import '../shared/codec/codec.dart';
import '../shared/codec.dart';
import '../shared/timeout.dart';
import 'call.dart';
import 'client_keepalive.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/transport/http2_transport.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import 'dart:async';

import 'package:http2/transport.dart';

import '../../shared/codec/codec.dart';
import '../../shared/codec.dart';
import '../../shared/codec_registry.dart';
import '../../shared/message.dart';
import '../../shared/streams.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/server/handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import 'dart:convert';

import 'package:http2/transport.dart';

import '../shared/codec/codec.dart';
import '../shared/codec.dart';
import '../shared/codec_registry.dart';
import '../shared/io_bits/io_bits.dart' show InternetAddress, X509Certificate;
import '../shared/message.dart';
Expand Down
6 changes: 3 additions & 3 deletions lib/src/shared/codec/codec.dart → lib/src/shared/codec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

export 'codec_all.dart';
export 'codec_io.dart'
if (dart.library.js_interop) 'codec_web.dart'; // package:web implementation
export 'codec/codec_all.dart';
export 'codec/codec_io.dart'
if (dart.library.js_interop) 'codec/codec_web.dart'; // package:web implementation
2 changes: 1 addition & 1 deletion lib/src/shared/codec_registry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import 'codec/codec.dart';
import 'codec.dart';

/// Encloses classes related to the compression and decompression of messages.
class CodecRegistry {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/shared/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import 'dart:async';
import 'dart:typed_data';

import 'codec/codec.dart';
import 'codec.dart';
import 'codec_registry.dart';
import 'status.dart';

Expand Down
2 changes: 1 addition & 1 deletion test/grpc_compression_flag_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@TestOn('vm')

import 'package:grpc/src/shared/codec/codec.dart';
import 'package:grpc/src/shared/codec.dart';
import 'package:grpc/src/shared/message.dart';
import 'package:test/test.dart';

Expand Down
2 changes: 1 addition & 1 deletion test/shared_tests/codec_registry_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import 'package:grpc/src/shared/codec/codec.dart';
import 'package:grpc/src/shared/codec.dart';
import 'package:grpc/src/shared/codec_registry.dart';
import 'package:test/test.dart';

Expand Down