Git Product home page Git Product logo

Comments (5)

smnbbrv avatar smnbbrv commented on August 16, 2024 1

When I had 1.2.0 installed I would get a status event with code 0 and then nothing else would come through.

Yep, I see the same on my projects now. Looks like some of their underlying API is changed.

Out of curiosity, why are "peerDependencies" used rather than just a dependency?

Well, a long story short: in frontend projects in general its better to use peerDependencies over dependencies to avoid client side code duplication (e.g. when you have two projects importing different versions of the same library). In addition, as an end-consumer of the library you can easily override any dependency in "peerDependencies" by installing the one you want; with "dependencies" it is impossible; that's just how npm works. As a downside - the dependencies from "peerDependencies" aren't automatically installed. However, it's better evil :)

from ngx-grpc.

smnbbrv avatar smnbbrv commented on August 16, 2024

Hi there,

thanks for reporting!

The dependency in package.json is at "peerDependencies", so it does not really force anything; one should be able to use any matching version.

Need to investigate more on what's broken in 1.2.0. This lib doesn't use Promise implementation as far as I remember.

from ngx-grpc.

jfyne avatar jfyne commented on August 16, 2024

When I had 1.2.0 installed I would get a status event with code 0 and then nothing else would come through.

Out of curiosity, why are "peerDependencies" used rather than just a dependency?

from ngx-grpc.

smnbbrv avatar smnbbrv commented on August 16, 2024

This issue is a really good one, there are a lot of useful insides described in the connected issue on grpc-web side.

There is also an upcoming followup fix -> grpc/grpc-web#868 .

Please use latest version that fixes the issue.

from ngx-grpc.

jfyne avatar jfyne commented on August 16, 2024

@smnbbrv thanks for digging into it, looks like they have been very helpful.

from ngx-grpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.