Releases: peerigon/parse-domain
Releases · peerigon/parse-domain
v8.0.2
v8.0.1
v8.0.0
v7.0.1
v7.0.0
7.0.0 (2022-01-23)
Bug Fixes
BREAKING CHANGES
- parseDomain won't .trim() the given input. The input is interpreted as it is. If you want to trim the input, you need to call .trim() before passing it to parseDomain. Auto-trimming the input changes the domain and might not be desired if any character (such as whitespace) is allowed (e.g. when using lax validation).
v6.0.1
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.