andreasewering/elm-grpc/1.0.0

NOTE: the latest version is 1.1.1

Renamed to anmolitor/elm-grpc. It is published under that name, and new versions come out there.

Versions published as andreasewering/elm-grpc still install under that name. 5 versions of 6 come from the new location (see their notes).

Rerouted (renamed, needs approval). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/anmolitor/elm-grpc.

What we checked: The repo moved to github.com/anmolitor/elm-grpc and tag 1.0.0 is there; its commit afe3f65d2a8c is from 2023-12-19 11:34 UTC, after the version was published (2023-03-02 08:25 UTC); elm.json differs from package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one and nothing else confirms its contents.

We could not verify this copy against what was published, so the Lamdera compiler asks before using it (y/n). Without a terminal, as in CI, it stops with an error unless approved:

  • lamdera make --auto-approve-package-rerouting approves rerouted versions for that run,
  • LAMDERA_AUTO_APPROVE_PACKAGE_REROUTING=1 does the same for every run in that environment,
  • LAMDERA_CACHE=off skips the Lamdera package server altogether: packages come from package.elm-lang.org and GitHub only, as with elm, and a rerouted version then fails to download.

Details · package.elm-lang.org's zip: https://github.com/andreasewering/elm-grpc/zipball/1.0.0/

Elm-gRPC

gRPC-Web Implementation for the Elm programming language.

Designed for protoc-gen-elm code generation.

Important note: Thanks to Martin Rosenberg for his elm-grpc package which this package builds upon. I felt like I wanted a different API for protoc-gen-elm than what he currently has and wanted freedom to iterate quickly and show my API to other developers. We can merge the packages later!

Limitations

Currently, only unary requests are supported. If you have ideas how to implement server-side streaming, I'm open for pull requests/issues. As far as I am aware, grpc-web as a whole is blocked on client-side streaming/bidirectional streaming due to missing browser support.

Shoutouts

Resources

  • gRPC: https://grpc.io/
  • gRPC-Web: https://github.com/grpc/grpc-web