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

BREAKING CHANGE: use ESM exports only #33

Merged
merged 1 commit into from
Apr 9, 2024
Merged

BREAKING CHANGE: use ESM exports only #33

merged 1 commit into from
Apr 9, 2024

Conversation

bjarneo
Copy link
Owner

@bjarneo bjarneo commented Apr 9, 2024

This pull request primarily focuses on updating the project to use ECMAScript modules (ESM) and updating the package version. The most significant changes include the update of the package version in package.json, the removal of CommonJS require in README.md, and the change of the import statement in tests/index.test.js. The README.md file has also been updated to reflect that the project now supports ESM, Node.js, and browsers.

Package version update:

  • package.json: The package version has been updated from 4.1.5 to 5.0.0. This is a major version update, indicating that there might be breaking changes.

ESM adoption:

  • README.md: The documentation has been updated to remove the CommonJS require example and replace it with the ESM import example. This is in line with the move towards ESM.
  • tests/index.test.js: The import statement has been changed to use the ESM version of extract-domain.

Documentation update:

  • README.md: The "Supports" section has been updated to include ESM, Node.js, and browsers. This provides more clarity on the environments where the package can be used.

@bjarneo bjarneo merged commit 38ccfea into master Apr 9, 2024
3 checks passed
@bjarneo bjarneo deleted the breaking-5-0-0 branch April 9, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant