Skip to content

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
@github-actions
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.

3 participants