-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRAFT] Upgrade some deps + build ESM release #110
base: master
Are you sure you want to change the base?
Conversation
Hi @jeanmatthieud 👋 This PR is also not easy for me to review, because it changes lots of things, even for the legacy:
I need to be sure that none of these break anything for existing users. I'm not familiar with I don't see any test/demo that demonstrates the ESM interface (equivalent to demo1.js) I probably don't understand, but I don't see why most of these changes are necessary given that it looks possible to create a wrapper (https://nodejs.org/api/packages.html#approach-1-use-an-es-module-wrapper) |
Hi, I'm new to that too! Maybe you could apply these changes to a dedicated branch, waiting for other users inputs? To respond to your questions:
It should not impact end users, as they should not import the source code of the library.
Required for TypeScript / ESM. See https://nodejs.org/api/esm.html#esm_terminology and microsoft/TypeScript#40878 (comment)
They were outdated and were causing compilation issue / security warnings.
Yes;
I followed the recent blog post on everpot, which was stating that using
npx should be install with npm > 5.2 (see this blog post). You can revert this changes, but I believe that it's more readable and easier to maintain.
You're right it's a typo. I just pushed a commit to fix it.
I don't really know how to do that and was more focused on my usage 😄
I didn't see this documentation before. But I believe that you will need a |
First time that I did that kind of work.
Please try it and fix any issue that you could encounter...