Giter Site home page Giter Site logo

Comments (2)

cressie176 avatar cressie176 commented on June 12, 2024

Hi @revosw,

Thank you for your offer of converting both Rascal and amqplib to ESM, and also for discussing your proposal in advance. My starting point is that I would be reluctant to maintain two branches of either amqplib or rascal, and also reluctant to increase minimum Node.js version for amqlib due to it's substantial user base. I'm less concerned about rascal though - is it possible to update one and not the other?

That said, I'm not very familiar with ESM yet, so it would be helpful to understand the benefits and whether there are any other implications. In my limited experience the other general considerations when converting modules are...

  • A type field needs to be added to the package.json
  • Modules must be imported using the full file path including the file extension
  • Modules must be imported using the import keyword and not require
  • Dynamic imports are asynchronous (I think this might be solved in Node 20)
  • The require cache is no longer a thing

I'm not aware of the benefits, particularly for backend code. I'll do a bit of reading, but it's always good to hear from someone directly too.

from amqplib.

cressie176 avatar cressie176 commented on June 12, 2024

A bit more conversation here - #721

Closing as inviable due to node version compatibility.

from amqplib.

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.