Releases: peerigon/parse-domain
Releases · peerigon/parse-domain
v6.0.0
6.0.0 (2022-01-23)
- Migrate package to ECMAScript modules (42f54e8)
BREAKING CHANGES
- parse-domain will now be released as native ECMAScript module. There's no CommonJS build anymore. If you're still using CommonJS, you need to import it asynchronously using
await import("parse-domain")
. If you're still using Node 12, you may need to update it to the latest 12.x version.
v5.0.0
5.0.0 (2022-01-23)
Bug Fixes
- Type errors with is-ip module (8ea728c)
Features
- Improve validation (171a8c8)
BREAKING CHANGES
- Introduces a dependency on the global
TextEncoder
constructor which should be available in all modern engines
(see https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder). The strict validation mode (which is the default) will also be a little bit more strict since it will now also check for hyphens at the beginning or end of a domain label. It also requires top-level domain names not to be all-numeric.
v4.1.0
v4.0.0
v3.0.4
v3.0.3
v3.0.2
v3.0.1
v3.0.0
3.0.0 (2020-04-23)
Features
- Complete rewrite in TypeScript and several bug fixes and improvements (9f38492)
BREAKING CHANGES
- This release is a complete rewrite in TypeScript. It fixes some long outstanding bugs and comes with improvements we were planning for quite some time. The major changes are: 1. parseDomain does not accept whole URLs anymore. Only the hostname section of a URL is allowed now. 2. We removed the options object. Custom TLDs are returned as "valid but not listed". The parse result contains both the result with private TLDs and without private TLDs. 3. Dropped Node 6 support. We recommend reading the README since the public API as changed quite a lot.