Skip to content

feat: convert repository to ESM #37

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

Merged
merged 1 commit into from
Jun 4, 2025
Merged

Conversation

wolfy1339
Copy link
Contributor

@wolfy1339 wolfy1339 commented Jun 4, 2025

BREAKING CHANGE: Transition to ESM only
Converts the repository to use ESM syntax, enabling module support.

  • Adds "type": "module" to package.json to specify ESM support.
  • Updates app.js and netlify/functions/webhooks.js by replacing require statements with import statements and changing module.exports to export default.
  • Modifies test.js to use ESM import/export syntax, including updating require statements to import and changing module.exports to export default for the test suite.

Converts the repository to use ESM syntax, enabling module support.

- Adds `"type": "module"` to `package.json` to specify ESM support.
- Updates `app.js` and `netlify/functions/webhooks.js` by replacing `require` statements with `import` statements and changing `module.exports` to `export default`.
- Modifies `test.js` to use ESM import/export syntax, including updating `require` statements to `import` and changing `module.exports` to `export default` for the test suite.
@wolfy1339 wolfy1339 merged commit 5cdd0a1 into main Jun 4, 2025
8 checks passed
Copy link

github-actions bot commented Jun 4, 2025

🎉 This PR is included in version 3.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants