bjarneo / extract-domain

Extract domain name from an URL
https://www.npmjs.com/package/extract-domain
MIT License
31 stars 4 forks source link

BREAKING CHANGE: use ESM exports only #33

Closed bjarneo closed 7 months ago

bjarneo commented 7 months ago

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:

ESM adoption:

Documentation update: