grpc-web icon indicating copy to clipboard operation
grpc-web copied to clipboard

Closure Migration & Typescript-ification

Open sampajano opened this issue 1 year ago • 17 comments

The Closure Library has entered maintenance mode.

We're working with the Closure team on migrating our dependency to a new Github repo, containing minimal dependencies required for gRPC-Web.

In the same process, we hope to modernize our codebase into TypeScript, and overhaul our toolchain to use TS tooling, so we no longer have to depend on the Closure Compiler.

sampajano avatar Mar 19 '24 21:03 sampajano

@sampajano Is this rewrite likely to be a 2024 or 2025 thing? I’m super excited to see a revamp of this library that supports modern APIs and better interoperability.

bivens-dev avatar Jun 10 '24 20:06 bivens-dev

@bivens-dev Hi :) Likely happening in 2024 since I'm working on it already. Although internal migration needs to be completed first before I can start the Github work.

Glad to hear about your interest! :) Is there any particular API that you'd like to see improved? (So far there's no plan to revamp the API yet since I'm just working on migrating the codebase to TS.)

sampajano avatar Jun 10 '24 20:06 sampajano

Ah maybe I misunderstood. Does that mean XHR rather than fetch or ideally even WebTransport for example?

bivens-dev avatar Jun 10 '24 20:06 bivens-dev

Both XHR and Fetch would be provided as options just like today.

I plan to follow-up TS migration with some work to improve the Fetch/stream runtime (e.g. memory use, service worker support, etc.) given there were many issues / questions around that area.

WebTransport work is separate will likely start in 2025 :)

sampajano avatar Jun 10 '24 20:06 sampajano