Code Monkey home page Code Monkey logo

Comments (7)

panva avatar panva commented on August 25, 2024 2

Then don't transpile @panva/jose dependency until your tooling is ready to recognize the new javascript syntax.

from jose.

panva avatar panva commented on August 25, 2024 1

I've made @panva/jose compatible with lts/dubnium, it is now being tested with Node.js ^10.13.0 || >=12.0.0 and Electron ^6.0.0

It is not without caveats, but they are acceptable.

  • Importing X.509 certificates and handling x5c is only supported when Node.js >= 12.0.0 runtime is detected
  • OKP keys are only supported when Node.js >= 12.0.0 runtime is detected

from jose.

panva avatar panva commented on August 25, 2024

This module is only for node.js runtime due to its usage of the crypto module’s new features.

https://github.com/panva/jose/blob/master/README.md#how-do-i-use-it-outside-of-nodejs

Because the requirement for node crypto is 12.0.0 and above i can use new ecmascript features like private instance javascript fields which is what your tooling isn’t ready for.

from jose.

rendall avatar rendall commented on August 25, 2024

This is a Node application, not a frontend app.

from jose.

panva avatar panva commented on August 25, 2024

#37 https://v8.dev/features/class-fields

from jose.

rendall avatar rendall commented on August 25, 2024

Brilliant! Thanks.

from jose.

panva avatar panva commented on August 25, 2024

A quick note, i've release a new major (v3.x) which is now a universal module with 0 dependencies and now works the same in the browser (using webpack 5 with no issues) as well as node.

from jose.

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.