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

chore!: use pure ES modules #177

Merged
merged 1 commit into from
Dec 9, 2021
Merged

chore!: use pure ES modules #177

merged 1 commit into from
Dec 9, 2021

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Dec 7, 2021

Part of https://github.com/netlify/team-dev/issues/36

This switches from CommonJS to pure ES modules.

This is a breaking change, since consumers that still use CommonJS will need to use a dynamic import() to load this module instead of require(). Consumers that use pure ES modules will not need to change anything.

However, in practice, this repository is not loaded programmatically but as a GitHub action. esbuild is bundling this to CommonJS. So we should be able to make a minor release, but let's go with a major release just to be safe.

@ehmicky ehmicky added the type: chore work needed to keep the product and development running smoothly label Dec 7, 2021
@ehmicky ehmicky self-assigned this Dec 7, 2021
@@ -60,7 +63,7 @@
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@netlify/eslint-config-node": "^4.0.0",
"ava": "^2.4.0",
"ava": "^3.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed to support pure ES modules.

lukasholzer
lukasholzer previously approved these changes Dec 9, 2021
Copy link

@lukasholzer lukasholzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Co-authored-by: Renovate Bot <bot@renovateapp.com>
@ehmicky
Copy link
Contributor Author

ehmicky commented Dec 9, 2021

Thanks! Could you please re-review it? There was a merge conflict.

@ehmicky ehmicky merged commit 2ead9e6 into main Dec 9, 2021
@ehmicky ehmicky deleted the chore/pure-esm branch December 9, 2021 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants