Coder Social home page Coder Social logo

Comments (3)

jonasgloning avatar jonasgloning commented on June 19, 2024 1

Hey Andrei, thank you for the bug report!

We agree this is a bug. PeerJS shouldn’t be relying on unsafe-eval.

Sadly this appears to be a bit more complicated than your proposed fix in our case:
The current bundling/typescript setup doesn’t allow for importing from a package export yet. We’ll hopefully address this soon, but this could explode in complexity and will take some time.

from peerjs.

andreialecu avatar andreialecu commented on June 19, 2024

kriszyp/cbor-x#102 got merged, I believe the types should behave better now.

from peerjs.

jonasgloning avatar jonasgloning commented on June 19, 2024

There's a new version on @rc https://www.npmjs.com/package/peerjs/v/1.5.3-rc.1 that includes a fix (#1248). You can install it with npm i --save peerjs@rc

Import paths still break some bundler implementations we test against — one of the reasons for the large delay.
We decided to still merge the PR. Projects affected should (and can) just update their tooling.

The team will meet again and release a new stable version on Saturday, 11th of May.

from peerjs.

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.