parse-domain 3.0.3 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -20
- package/README.md +129 -60
- package/bin/update.js +13 -13
- package/build-cjs/serialized-tries/icann.json +1 -1
- package/build-cjs/serialized-tries/info.json +1 -1
- package/build-cjs/serialized-tries/private.json +1 -1
- package/build-cjs/src/config.js +1 -0
- package/build-cjs/src/config.js.map +1 -1
- package/build-cjs/src/from-url.js +4 -2
- package/build-cjs/src/from-url.js.map +1 -1
- package/build-cjs/src/main.d.ts +1 -1
- package/build-cjs/src/main.js +9 -5
- package/build-cjs/src/main.js.map +1 -1
- package/build-cjs/src/parse-domain.d.ts +8 -2
- package/build-cjs/src/parse-domain.js +8 -6
- package/build-cjs/src/parse-domain.js.map +1 -1
- package/build-cjs/src/psl/build-tries.js +16 -14
- package/build-cjs/src/psl/build-tries.js.map +1 -1
- package/build-cjs/src/psl/fetch-psl.js +5 -3
- package/build-cjs/src/psl/fetch-psl.js.map +1 -1
- package/build-cjs/src/sanitize.d.ts +26 -4
- package/build-cjs/src/sanitize.js +105 -38
- package/build-cjs/src/sanitize.js.map +1 -1
- package/build-cjs/src/scripts/update-psl-fixture.js +4 -3
- package/build-cjs/src/scripts/update-psl-fixture.js.map +1 -1
- package/build-cjs/src/scripts/update-tries.js +6 -5
- package/build-cjs/src/scripts/update-tries.js.map +1 -1
- package/build-cjs/src/serialized-tries.js +1 -0
- package/build-cjs/src/serialized-tries.js.map +1 -1
- package/build-cjs/src/smoke-test.js +7 -5
- package/build-cjs/src/smoke-test.js.map +1 -1
- package/build-cjs/src/trie/characters.js +1 -0
- package/build-cjs/src/trie/characters.js.map +1 -1
- package/build-cjs/src/trie/create-trie.d.ts +1 -1
- package/build-cjs/src/trie/create-trie.js +5 -3
- package/build-cjs/src/trie/create-trie.js.map +1 -1
- package/build-cjs/src/trie/look-up.d.ts +2 -1
- package/build-cjs/src/trie/look-up.js +17 -3
- package/build-cjs/src/trie/look-up.js.map +1 -1
- package/build-cjs/src/trie/nodes.js +5 -2
- package/build-cjs/src/trie/nodes.js.map +1 -1
- package/build-cjs/src/trie/parse-trie.js +19 -5
- package/build-cjs/src/trie/parse-trie.js.map +1 -1
- package/build-cjs/src/trie/serialize-trie.js +3 -1
- package/build-cjs/src/trie/serialize-trie.js.map +1 -1
- package/build-cjs/src/type-util.d.ts +1 -1
- package/build-cjs/src/update-tries.js +7 -5
- package/build-cjs/src/update-tries.js.map +1 -1
- package/build-esm/serialized-tries/icann.json +1 -1
- package/build-esm/serialized-tries/info.json +1 -1
- package/build-esm/serialized-tries/private.json +1 -1
- package/build-esm/src/config.js.map +1 -1
- package/build-esm/src/from-url.js +1 -1
- package/build-esm/src/from-url.js.map +1 -1
- package/build-esm/src/main.d.ts +1 -1
- package/build-esm/src/main.js +3 -1
- package/build-esm/src/main.js.map +1 -1
- package/build-esm/src/parse-domain.d.ts +8 -2
- package/build-esm/src/parse-domain.js +2 -2
- package/build-esm/src/parse-domain.js.map +1 -1
- package/build-esm/src/psl/build-tries.js +10 -10
- package/build-esm/src/psl/build-tries.js.map +1 -1
- package/build-esm/src/psl/fetch-psl.js.map +1 -1
- package/build-esm/src/sanitize.d.ts +26 -4
- package/build-esm/src/sanitize.js +103 -35
- package/build-esm/src/sanitize.js.map +1 -1
- package/build-esm/src/serialized-tries.js.map +1 -1
- package/build-esm/src/smoke-test.js.map +1 -1
- package/build-esm/src/trie/create-trie.d.ts +1 -1
- package/build-esm/src/trie/create-trie.js.map +1 -1
- package/build-esm/src/trie/look-up.d.ts +2 -1
- package/build-esm/src/trie/look-up.js.map +1 -1
- package/build-esm/src/trie/nodes.js.map +1 -1
- package/build-esm/src/trie/parse-trie.js.map +1 -1
- package/build-esm/src/trie/serialize-trie.js.map +1 -1
- package/build-esm/src/type-util.d.ts +1 -1
- package/build-esm/src/type-util.js +1 -0
- package/build-esm/src/update-tries.js.map +1 -1
- package/package.json +93 -85
- package/CHANGELOG.md +0 -260
package/CHANGELOG.md
DELETED
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
## [3.0.3](https://github.com/peerigon/parse-domain/compare/v3.0.2...v3.0.3) (2020-10-20)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* Add check for global URL constructor in fromUrl() ([#119](https://github.com/peerigon/parse-domain/issues/119)) ([4e32480](https://github.com/peerigon/parse-domain/commit/4e3248096a50fc6f5cb35935f6f44bee72efd150))
|
|
7
|
-
|
|
8
|
-
## [3.0.2](https://github.com/peerigon/parse-domain/compare/v3.0.1...v3.0.2) (2020-05-06)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Bug Fixes
|
|
12
|
-
|
|
13
|
-
* Add types to package.json ([#110](https://github.com/peerigon/parse-domain/issues/110)) ([849ff1a](https://github.com/peerigon/parse-domain/commit/849ff1a932f034e57d51ba70534127d6a8109337))
|
|
14
|
-
|
|
15
|
-
## [3.0.1](https://github.com/peerigon/parse-domain/compare/v3.0.0...v3.0.1) (2020-04-24)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Bug Fixes
|
|
19
|
-
|
|
20
|
-
* npx parse-domain-update broken ([#105](https://github.com/peerigon/parse-domain/issues/105)) ([9070030](https://github.com/peerigon/parse-domain/commit/907003044760b1ca9713ec7d0e48e9bd208daa9d))
|
|
21
|
-
|
|
22
|
-
# [3.0.0](https://github.com/peerigon/parse-domain/compare/v2.3.4...v3.0.0) (2020-04-23)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Features
|
|
26
|
-
|
|
27
|
-
* Complete rewrite in TypeScript and several bug fixes and improvements ([9f38492](https://github.com/peerigon/parse-domain/commit/9f384921015ab962975ae1d3833507dd7ec0cc52))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### BREAKING CHANGES
|
|
31
|
-
|
|
32
|
-
* 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.
|
|
33
|
-
|
|
34
|
-
# [3.0.0-beta.10](https://github.com/peerigon/parse-domain/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2020-04-23)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
### Features
|
|
38
|
-
|
|
39
|
-
* Trigger beta release for next major version ([5443240](https://github.com/peerigon/parse-domain/commit/5443240d009b21284d707d6d22a1656970f8a699))
|
|
40
|
-
|
|
41
|
-
# [3.0.0-beta.9](https://github.com/peerigon/parse-domain/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2020-04-20)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### Bug Fixes
|
|
45
|
-
|
|
46
|
-
* Cache in release job ([60557b2](https://github.com/peerigon/parse-domain/commit/60557b2a5e1a02669e4649c38dfc7148adc37b60))
|
|
47
|
-
|
|
48
|
-
# [3.0.0-beta.8](https://github.com/peerigon/parse-domain/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2020-04-20)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
### Bug Fixes
|
|
52
|
-
|
|
53
|
-
* Cache in GitHub actions ([28761fc](https://github.com/peerigon/parse-domain/commit/28761fc42b05c474a3c0677743270c1354bfbf59))
|
|
54
|
-
|
|
55
|
-
# [3.0.0-beta.7](https://github.com/peerigon/parse-domain/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2020-04-20)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### Bug Fixes
|
|
59
|
-
|
|
60
|
-
* GitHub actions ([40fe150](https://github.com/peerigon/parse-domain/commit/40fe150695ae32a61dd7f2695ce787e806b42284))
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
### Features
|
|
64
|
-
|
|
65
|
-
* Improve GitHub actions ([be142b7](https://github.com/peerigon/parse-domain/commit/be142b79467dc6de873d5bd88f298273af099ce5))
|
|
66
|
-
|
|
67
|
-
# [3.0.0-beta.6](https://github.com/peerigon/parse-domain/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2020-04-20)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### Bug Fixes
|
|
71
|
-
|
|
72
|
-
* smoke-test on Node v8 ([0a2b60a](https://github.com/peerigon/parse-domain/commit/0a2b60aa118d66355224e06de79852778dbfe3f4))
|
|
73
|
-
|
|
74
|
-
# [3.0.0-beta.5](https://github.com/peerigon/parse-domain/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2020-04-20)
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
### Features
|
|
78
|
-
|
|
79
|
-
* Extract smoke test ([f9e996b](https://github.com/peerigon/parse-domain/commit/f9e996bf062727d156c8b1740f1529ee20f45714))
|
|
80
|
-
|
|
81
|
-
# [3.0.0-beta.4](https://github.com/peerigon/parse-domain/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2020-04-19)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
### Bug Fixes
|
|
85
|
-
|
|
86
|
-
* ESM and CJS exports for Node 13 ([33eb612](https://github.com/peerigon/parse-domain/commit/33eb6120660c43c03607db22d05269cf7135103a))
|
|
87
|
-
|
|
88
|
-
# [3.0.0-beta.3](https://github.com/peerigon/parse-domain/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2020-04-19)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
### Features
|
|
92
|
-
|
|
93
|
-
* Trigger beta release for next major version ([ee785de](https://github.com/peerigon/parse-domain/commit/ee785de33d91a76377af54991d913a8063f8bd81))
|
|
94
|
-
|
|
95
|
-
# [3.0.0-beta.2](https://github.com/peerigon/parse-domain/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2020-03-15)
|
|
96
|
-
|
|
97
|
-
### Bug Fixes
|
|
98
|
-
|
|
99
|
-
- Add missing files in package ([7a770cb](https://github.com/peerigon/parse-domain/commit/7a770cbf9f42af5d0a8b3aec19b0016d05bedf54))
|
|
100
|
-
|
|
101
|
-
# [3.0.0-beta.1](https://github.com/peerigon/parse-domain/compare/v2.4.0-beta.1...v3.0.0-beta.1) (2020-03-14)
|
|
102
|
-
|
|
103
|
-
### Features
|
|
104
|
-
|
|
105
|
-
- Trigger beta release for next major version ([13287a6](https://github.com/peerigon/parse-domain/commit/13287a6a26de87f7767e34de611e698904b7e07c))
|
|
106
|
-
|
|
107
|
-
### BREAKING CHANGES
|
|
108
|
-
|
|
109
|
-
- This is a complete rewrite with a changed API
|
|
110
|
-
|
|
111
|
-
# [2.4.0-beta.1](https://github.com/peerigon/parse-domain/compare/v2.3.2...v2.4.0-beta.1) (2020-03-14)
|
|
112
|
-
|
|
113
|
-
### Features
|
|
114
|
-
|
|
115
|
-
- Trigger beta release ([aa859fa](https://github.com/peerigon/parse-domain/commit/aa859fa5113a2e69edeb7e0b45c4a759edc39c51))
|
|
116
|
-
|
|
117
|
-
# Changelog
|
|
118
|
-
|
|
119
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
120
|
-
|
|
121
|
-
### [2.3.4](https://github.com/peerigon/parse-domain/compare/v2.3.3...v2.3.4) (2019-11-02)
|
|
122
|
-
|
|
123
|
-
### [2.3.3](https://github.com/peerigon/parse-domain/compare/v2.3.2...v2.3.3) (2019-11-02)
|
|
124
|
-
|
|
125
|
-
### [2.3.2](https://github.com/peerigon/parse-domain/compare/v2.3.1...v2.3.2) (2019-08-10)
|
|
126
|
-
|
|
127
|
-
### Bug Fixes
|
|
128
|
-
|
|
129
|
-
- Fix bug when parsing private TLDs ([#79](https://github.com/peerigon/parse-domain/issues/79)) ([69162fc](https://github.com/peerigon/parse-domain/commit/69162fc)), closes [#67](https://github.com/peerigon/parse-domain/issues/67)
|
|
130
|
-
|
|
131
|
-
### [2.3.1](https://github.com/peerigon/parse-domain/compare/v2.3.0...v2.3.1) (2019-06-14)
|
|
132
|
-
|
|
133
|
-
### Bug Fixes
|
|
134
|
-
|
|
135
|
-
- TypeScript definition not available on npm module ([2f4684c](https://github.com/peerigon/parse-domain/commit/2f4684c)), closes [#73](https://github.com/peerigon/parse-domain/issues/73)
|
|
136
|
-
- updatedAt timestamp breaks bundle caching ([#75](https://github.com/peerigon/parse-domain/issues/75), [#60](https://github.com/peerigon/parse-domain/issues/60)) ([27199d5](https://github.com/peerigon/parse-domain/commit/27199d5))
|
|
137
|
-
|
|
138
|
-
## [2.3.0](https://github.com/peerigon/parse-domain/compare/v2.2.1...v2.3.0) (2019-05-29)
|
|
139
|
-
|
|
140
|
-
### Features
|
|
141
|
-
|
|
142
|
-
- Add TypeScript typings ([#66](https://github.com/peerigon/parse-domain/issues/66)) ([10b6693](https://github.com/peerigon/parse-domain/commit/10b6693))
|
|
143
|
-
|
|
144
|
-
### [2.2.1](https://github.com/peerigon/parse-domain/compare/v2.2.0...v2.2.1) (2019-05-28)
|
|
145
|
-
|
|
146
|
-
### Bug Fixes
|
|
147
|
-
|
|
148
|
-
- Fix 'run-s: command not found' on postinstall ([ce42e2e](https://github.com/peerigon/parse-domain/commit/ce42e2e)), closes [#72](https://github.com/peerigon/parse-domain/issues/72)
|
|
149
|
-
- Fix problem where malformed URLs threw an error ([#70](https://github.com/peerigon/parse-domain/issues/70)) ([28d7e4b](https://github.com/peerigon/parse-domain/commit/28d7e4b))
|
|
150
|
-
|
|
151
|
-
## [2.2.0](https://github.com/peerigon/parse-domain/compare/v2.1.8...v2.2.0) (2019-05-27)
|
|
152
|
-
|
|
153
|
-
### Features
|
|
154
|
-
|
|
155
|
-
- Remove runtime dependency on npm ([ad6ced2](https://github.com/peerigon/parse-domain/commit/ad6ced2))
|
|
156
|
-
|
|
157
|
-
### [2.1.8](https://github.com/peerigon/parse-domain/compare/v2.1.7...v2.1.8) (2019-05-27)
|
|
158
|
-
|
|
159
|
-
### Bug Fixes
|
|
160
|
-
|
|
161
|
-
- Add timeout to download public suffix list ([#56](https://github.com/peerigon/parse-domain/issues/56)) ([1fbd49c](https://github.com/peerigon/parse-domain/commit/1fbd49c))
|
|
162
|
-
- Fix error where a lot of domains were not detected ([fc80789](https://github.com/peerigon/parse-domain/commit/fc80789)), closes [#64](https://github.com/peerigon/parse-domain/issues/64)
|
|
163
|
-
- Fix sanity check during npm run build:tries ([a3c1eeb](https://github.com/peerigon/parse-domain/commit/a3c1eeb))
|
|
164
|
-
- Fix thrown error with input that only contains whitespaces ([1d1a24a](https://github.com/peerigon/parse-domain/commit/1d1a24a)), closes [#32](https://github.com/peerigon/parse-domain/issues/32) [#61](https://github.com/peerigon/parse-domain/issues/61)
|
|
165
|
-
|
|
166
|
-
<a name="2.1.7"></a>
|
|
167
|
-
|
|
168
|
-
## [2.1.7](https://github.com/peerigon/parse-domain/compare/v2.1.6...v2.1.7) (2018-11-27)
|
|
169
|
-
|
|
170
|
-
- Update dependencies [#57](https://github.com/peerigon/parse-domain/pull/57). Removes malicious code which has been introduced by event-stream ([more information](https://snyk.io/blog/malicious-code-found-in-npm-package-event-stream)).
|
|
171
|
-
|
|
172
|
-
<a name="2.1.6"></a>
|
|
173
|
-
|
|
174
|
-
## [2.1.6](https://github.com/peerigon/parse-domain/compare/v2.1.5...v2.1.6) (2018-10-19)
|
|
175
|
-
|
|
176
|
-
### Bug Fixes
|
|
177
|
-
|
|
178
|
-
- Broken published version ([f36d76e](https://github.com/peerigon/parse-domain/commit/f36d76e))
|
|
179
|
-
|
|
180
|
-
<a name="2.1.5"></a>
|
|
181
|
-
|
|
182
|
-
## [2.1.5](https://github.com/peerigon/parse-domain/compare/v2.1.4...v2.1.5) (2018-10-19)
|
|
183
|
-
|
|
184
|
-
### Bug Fixes
|
|
185
|
-
|
|
186
|
-
- Compatibility problems with older JavaScript engines ([#51](https://github.com/peerigon/parse-domain/issues/51)) ([d9d782b](https://github.com/peerigon/parse-domain/commit/d9d782b))
|
|
187
|
-
|
|
188
|
-
<a name="2.1.4"></a>
|
|
189
|
-
|
|
190
|
-
## [2.1.4](https://github.com/peerigon/parse-domain/compare/v2.1.3...v2.1.4) (2018-10-19)
|
|
191
|
-
|
|
192
|
-
### Bug Fixes
|
|
193
|
-
|
|
194
|
-
- Wrong entry in package.json files ([50fe635](https://github.com/peerigon/parse-domain/commit/50fe635))
|
|
195
|
-
|
|
196
|
-
<a name="2.1.3"></a>
|
|
197
|
-
|
|
198
|
-
## [2.1.3](https://github.com/peerigon/parse-domain/compare/v2.1.2...v2.1.3) (2018-10-19)
|
|
199
|
-
|
|
200
|
-
### Bug Fixes
|
|
201
|
-
|
|
202
|
-
- Do not write in the file system on postinstall if it's forbidden ([#39](https://github.com/peerigon/parse-domain/issues/39)) ([9aee180](https://github.com/peerigon/parse-domain/commit/9aee180))
|
|
203
|
-
- Re-add missing prepare script after ([e5d6362](https://github.com/peerigon/parse-domain/commit/e5d6362))
|
|
204
|
-
|
|
205
|
-
<a name="2.1.2"></a>
|
|
206
|
-
|
|
207
|
-
## [2.1.2](https://github.com/peerigon/parse-domain/compare/v2.1.1...v2.1.2) (2018-06-13)
|
|
208
|
-
|
|
209
|
-
### Bug Fixes
|
|
210
|
-
|
|
211
|
-
- Add .babelrc for create-react-app apps ([#37](https://github.com/peerigon/parse-domain/issues/37)) ([d2d3728](https://github.com/peerigon/parse-domain/commit/d2d3728))
|
|
212
|
-
|
|
213
|
-
<a name="2.1.1"></a>
|
|
214
|
-
|
|
215
|
-
## [2.1.1](https://github.com/peerigon/parse-domain/compare/v2.1.0...v2.1.1) (2018-05-30)
|
|
216
|
-
|
|
217
|
-
### Bug Fixes
|
|
218
|
-
|
|
219
|
-
- Support url which has no protocol ([#28](https://github.com/peerigon/parse-domain/issues/28)) ([74dec41](https://github.com/peerigon/parse-domain/commit/74dec41))
|
|
220
|
-
|
|
221
|
-
<a name="2.1.0"></a>
|
|
222
|
-
|
|
223
|
-
# [2.1.0](https://github.com/peerigon/parse-domain/compare/v2.0.0...v2.1.0) (2018-05-30)
|
|
224
|
-
|
|
225
|
-
### Features
|
|
226
|
-
|
|
227
|
-
- Use trie data structure to decrease file size ([#33](https://github.com/peerigon/parse-domain/issues/33)) ([59f951b](https://github.com/peerigon/parse-domain/commit/59f951b))
|
|
228
|
-
|
|
229
|
-
<a name="2.0.0"></a>
|
|
230
|
-
|
|
231
|
-
# [2.0.0](https://github.com/peerigon/parse-domain/compare/v1.2.0...v2.0.0) (2017-12-03)
|
|
232
|
-
|
|
233
|
-
### Code Refactoring
|
|
234
|
-
|
|
235
|
-
- Update code to node 4 ([4d87f43](https://github.com/peerigon/parse-domain/commit/4d87f43))
|
|
236
|
-
|
|
237
|
-
### Features
|
|
238
|
-
|
|
239
|
-
- Update list of TLDs ([df15b19](https://github.com/peerigon/parse-domain/commit/df15b19))
|
|
240
|
-
|
|
241
|
-
### BREAKING CHANGES
|
|
242
|
-
|
|
243
|
-
- node 4 or newer is required
|
|
244
|
-
|
|
245
|
-
<a name="1.2.0"></a>
|
|
246
|
-
|
|
247
|
-
# [1.2.0](https://github.com/peerigon/parse-domain/compare/v1.1.0...v1.2.0) (2017-12-03)
|
|
248
|
-
|
|
249
|
-
## Changelog
|
|
250
|
-
|
|
251
|
-
### 1.1.0
|
|
252
|
-
|
|
253
|
-
- Fix parsing of URLs that have an @ character in the path [#13](https://github.com/peerigon/parse-domain/issues/13)
|
|
254
|
-
- Update tlds a27a2c83102c563978b831bd161f1fb5409376bd
|
|
255
|
-
|
|
256
|
-
### 1.0.0
|
|
257
|
-
|
|
258
|
-
- Removed private tlds from the default regexp [#4](https://github.com/peerigon/parse-domain/issues/4) [#6](https://github.com/peerigon/parse-domain/issues/6)
|
|
259
|
-
- Introduced `privateTlds` boolean flag to include private tlds
|
|
260
|
-
- Reached stable state :)
|