Skip to content
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

Support for ESM Modules #128

Open
rhamzeh opened this issue Jul 17, 2024 · 0 comments
Open

Support for ESM Modules #128

rhamzeh opened this issue Jul 17, 2024 · 0 comments

Comments

@rhamzeh
Copy link
Member

rhamzeh commented Jul 17, 2024

Please do not report security vulnerabilities here. See the Responsible Disclosure Program.

Thank you in advance for helping us to improve this library! Please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible.

By submitting an issue to this repository, you agree to the terms within the OpenFGA Code of Conduct.

Describe the problem you'd like to have solved

We currently only support CommonJS, the industry is moving forward in support for ESM modules. We should migrate to ESM Modules but still find a way to support CommonJS for those who haven't migrated yet

Additional context

https://nodejs.org/api/esm.html
https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/
https://jestjs.io/docs/ecmascript-modules
https://the-guild.dev/blog/support-nodejs-esm
https://blog.logrocket.com/publishing-node-modules-typescript-es-modules/

@rhamzeh rhamzeh added this to the Javascript SDK Modernization milestone Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant