8.2.2 (2024-08-10)
8.2.1 (2024-07-26)
- CI deployment (5f7be9a)
8.2.0 (2024-07-26)
- Update PSL (4cbf24d)
8.1.0 (2024-07-26)
8.0.2 (2024-03-04)
8.0.1 (2023-10-27)
8.0.0 (2023-10-27)
- Dropped official support for Node 12, 14 and 16. There wasn't any actual breaking change we know of but use at your own risk :)
7.0.1 (2022-06-30)
7.0.0 (2022-01-23)
- 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).
6.0.1 (2022-01-23)
- Wrong package exports 🤦♀️ (45c5e0c)
6.0.0 (2022-01-23)
- Migrate package to ECMAScript modules (42f54e8)
- 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.
5.0.0 (2022-01-23)
- Type errors with is-ip module (8ea728c)
- Improve validation (171a8c8)
- 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.
4.1.0 (2021-09-03)
- Switch to MIT license (05bc1c0)
4.0.0 (2021-09-02)
- Change supported Node versions (202ff9f)
- Node versions below 12 are not officially supported anymore.
3.0.4 (2021-09-02)
- Improve scheme support in
fromUrl
(4c10202), closes #section-3 #130
3.0.3 (2020-10-20)
3.0.2 (2020-05-06)
3.0.1 (2020-04-24)
3.0.0 (2020-04-23)
- Complete rewrite in TypeScript and several bug fixes and improvements (9f38492)
- 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.
3.0.0-beta.10 (2020-04-23)
- Trigger beta release for next major version (5443240)
3.0.0-beta.9 (2020-04-20)
- Cache in release job (60557b2)
3.0.0-beta.8 (2020-04-20)
- Cache in GitHub actions (28761fc)
3.0.0-beta.7 (2020-04-20)
- GitHub actions (40fe150)
- Improve GitHub actions (be142b7)
3.0.0-beta.6 (2020-04-20)
- smoke-test on Node v8 (0a2b60a)
3.0.0-beta.5 (2020-04-20)
- Extract smoke test (f9e996b)
3.0.0-beta.4 (2020-04-19)
- ESM and CJS exports for Node 13 (33eb612)
3.0.0-beta.3 (2020-04-19)
- Trigger beta release for next major version (ee785de)
3.0.0-beta.2 (2020-03-15)
- Add missing files in package (7a770cb)
3.0.0-beta.1 (2020-03-14)
- Trigger beta release for next major version (13287a6)
- This is a complete rewrite with a changed API
2.4.0-beta.1 (2020-03-14)
- Trigger beta release (aa859fa)
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.3.4 (2019-11-02)
2.3.3 (2019-11-02)
2.3.2 (2019-08-10)
2.3.1 (2019-06-14)
- TypeScript definition not available on npm module (2f4684c), closes #73
- updatedAt timestamp breaks bundle caching (#75, #60) (27199d5)
2.3.0 (2019-05-29)
2.2.1 (2019-05-28)
- Fix 'run-s: command not found' on postinstall (ce42e2e), closes #72
- Fix problem where malformed URLs threw an error (#70) (28d7e4b)
2.2.0 (2019-05-27)
- Remove runtime dependency on npm (ad6ced2)
2.1.8 (2019-05-27)
- Add timeout to download public suffix list (#56) (1fbd49c)
- Fix error where a lot of domains were not detected (fc80789), closes #64
- Fix sanity check during npm run build:tries (a3c1eeb)
- Fix thrown error with input that only contains whitespaces (1d1a24a), closes #32 #61
2.1.7 (2018-11-27)
- Update dependencies #57. Removes malicious code which has been introduced by event-stream (more information).
2.1.6 (2018-10-19)
- Broken published version (f36d76e)
2.1.5 (2018-10-19)
2.1.4 (2018-10-19)
- Wrong entry in package.json files (50fe635)
2.1.3 (2018-10-19)
- Do not write in the file system on postinstall if it's forbidden (#39) (9aee180)
- Re-add missing prepare script after (e5d6362)
2.1.2 (2018-06-13)
2.1.1 (2018-05-30)
2.1.0 (2018-05-30)
2.0.0 (2017-12-03)
- Update code to node 4 (4d87f43)
- Update list of TLDs (df15b19)
- node 4 or newer is required
1.2.0 (2017-12-03)
- Fix parsing of URLs that have an @ character in the path #13
- Update tlds a27a2c83102c563978b831bd161f1fb5409376bd