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.
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 inREADME.md
, and the change of the import statement intests/index.test.js
. TheREADME.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 ofextract-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.