grpc-dart/lib
Lasse R.H. Nielsen 38ca626e0a
Use `Map.of` instead of `Map.from` in grpc client. (#724)
* Use `Map.of` instead of `Map.from` in grpc client.

`Map.of` creates a new map with the same keys, values and *type*
as the original map, when used without type arguments or context type,
where `Map.from` creates a `Map<dynamic, dynamic>`.
(This code failed on an attempt to make `Map.unmodifiable` be more
strictly typed, like `Map.of` instead of `Map.from`, showing that
an intermediate map had type `Map<dynamic, dynamic>` unnecessarily).

Same for using `List.of` instead of `List.from`.

The new code should be (microscopically) more efficient and type safe,
and is forwards-compatible with a stronger type on `Map.unmodifiable`.

(The code can be optimized more. For example
`List.of(list1)..addAll(list2)` can be just `list1 + list2` or
`[...list1, ...list2]`, both of which may know the total number
of elements when doing the initial list allocation.
This is a minimal change to allow the type changes for `.unmodifiable`
to get past this very initial blocker in internal tests.)

* Add changelog and minor version increment.

And my save removes trailing spaces.
2024-09-02 16:58:43 +02:00
..
src Use `Map.of` instead of `Map.from` in grpc client. (#724) 2024-09-02 16:58:43 +02:00
grpc.dart Move `codec.dart` to former place (#713) 2024-05-17 14:53:33 +02:00
grpc_connection_interface.dart Move `codec.dart` to former place (#713) 2024-05-17 14:53:33 +02:00
grpc_or_grpcweb.dart Cleanup: update to and use latest pkg:lints with associated fixes (#587) 2022-10-31 11:47:31 -07:00
grpc_web.dart grpc_or_grpcweb.dart: exporting shared types #486 (#487) 2021-06-13 08:24:28 +02:00
service_api.dart feat: support client interceptors (#338) 2020-11-02 11:13:56 +01:00