http2 icon indicating copy to clipboard operation
http2 copied to clipboard

Release new version with ditched dart:io

Open kengu opened this issue 3 years ago • 2 comments

Hi @natebosch!

Could you release a new version of http2 without dart:io (commit)? It marks all packages depending on not supporting the js platform. More specifically, any package depending on grpc-dart.

kengu avatar Aug 24 '21 07:08 kengu

Ah I should have pushed further on before.

I don't think publishing now is likely to be helpful. The dart:io import still exists.

https://github.com/dart-lang/http2/pull/95#issuecomment-904820494

https://github.com/dart-lang/http2/blob/25beb6aab2673465991e70dcca96d2a8dde84d75/lib/transport.dart#L6

If you add a git dependency on this package does it work for your use case?

natebosch avatar Aug 24 '21 17:08 natebosch

I think for a fully cross platform version we'd have to pull the viaSocket factory constructors into a different library which would be a breaking change, so we'd need to check how feasible it is to roll out.

natebosch avatar Aug 24 '21 17:08 natebosch