@nictool/dns-resource-record 1.1.3 → 1.1.6
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/CHANGELOG.md +91 -30
- package/README.md +3 -3
- package/package.json +1 -1
- package/rr/sshfp.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,39 @@
|
|
|
1
|
+
# Changelog
|
|
1
2
|
|
|
2
|
-
|
|
3
|
+
Notable changes to this project are documented in this file.
|
|
3
4
|
|
|
4
5
|
|
|
5
|
-
####
|
|
6
|
+
#### Unreleased
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### [1.1.6] - 2022-06-21
|
|
10
|
+
|
|
11
|
+
- doc(sshfp): added RFC 7479, 8709
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### [1.1.5] - 2022-06-03
|
|
15
|
+
|
|
16
|
+
- ci: auto-populate node LTS versions to run CI tests with
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### [1.1.4] - 2022-05-29
|
|
20
|
+
|
|
21
|
+
- doc(README): improved develop notes
|
|
22
|
+
- doc(CHANGELOG): make version numbers links
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### [1.1.3] - 2022-05-29
|
|
6
26
|
|
|
7
27
|
- chore: publish npm package in @nictool namespace
|
|
8
28
|
|
|
9
29
|
|
|
10
|
-
|
|
30
|
+
### [1.1.2] - 2022-05-28
|
|
11
31
|
|
|
12
32
|
- chore(ci): replace .release with submodule
|
|
13
33
|
- chore(ci): use GHA with shared workflows
|
|
14
34
|
|
|
15
35
|
|
|
16
|
-
|
|
36
|
+
### [1.1.1] - 2022-04-28
|
|
17
37
|
|
|
18
38
|
- feat(DNSKEY): expanded algo from 1-5 to 1-16 (RFC 8624)
|
|
19
39
|
- warn if outside that range, not error
|
|
@@ -21,7 +41,7 @@
|
|
|
21
41
|
- test(dnskey): update fail test
|
|
22
42
|
|
|
23
43
|
|
|
24
|
-
|
|
44
|
+
### [1.1.0] - 2022-04-22
|
|
25
45
|
|
|
26
46
|
- feat(tinydns): add ipv4toOctal, octalToIPv4, base64toOctal, octalToBase64
|
|
27
47
|
- feat(DNSKEY,DS,IPSECKEY,TLSA): added to/fromTinydns support
|
|
@@ -35,7 +55,7 @@
|
|
|
35
55
|
- tinydns.unpackdomain: return fqdn + length, for RRs where the FQDN is part of the byte stream
|
|
36
56
|
|
|
37
57
|
|
|
38
|
-
|
|
58
|
+
### [1.0.1] - 2022-04-19
|
|
39
59
|
|
|
40
60
|
- feat(IPSECKEY): added basic support
|
|
41
61
|
- doc(README): update for ES module usage
|
|
@@ -46,7 +66,7 @@
|
|
|
46
66
|
- test(KEY): added valid test
|
|
47
67
|
|
|
48
68
|
|
|
49
|
-
|
|
69
|
+
### [1.0.0] - 2022-04-18
|
|
50
70
|
|
|
51
71
|
- style: move rr/index to ./rr
|
|
52
72
|
- test: add base.getRdataFields
|
|
@@ -54,7 +74,7 @@
|
|
|
54
74
|
- test: add base.getRdataFields
|
|
55
75
|
|
|
56
76
|
|
|
57
|
-
|
|
77
|
+
### [0.9.9] - 2022-04-14
|
|
58
78
|
|
|
59
79
|
- feat: parser improvements (DNSKEY, HINFO, NAPTR, SOA, TLSA, TXT)
|
|
60
80
|
- CAA: more robust fromBind parser
|
|
@@ -64,7 +84,7 @@
|
|
|
64
84
|
- README: move some content to web links
|
|
65
85
|
|
|
66
86
|
|
|
67
|
-
|
|
87
|
+
### [0.9.8] - 2022-04-07
|
|
68
88
|
|
|
69
89
|
- url updates
|
|
70
90
|
- fix: txt records
|
|
@@ -72,7 +92,7 @@
|
|
|
72
92
|
- docs: updates
|
|
73
93
|
|
|
74
94
|
|
|
75
|
-
|
|
95
|
+
### [0.9.7] - 2022-03-29
|
|
76
96
|
|
|
77
97
|
- index
|
|
78
98
|
- previousName -> previousOwner
|
|
@@ -84,7 +104,7 @@
|
|
|
84
104
|
- add index.citeRFC
|
|
85
105
|
|
|
86
106
|
|
|
87
|
-
|
|
107
|
+
### [0.9.6] - 2022-03-27
|
|
88
108
|
|
|
89
109
|
- rr\*: rename name -> owner (not overloaded)
|
|
90
110
|
- RFC 4034: letters in DNS names are lower cased
|
|
@@ -94,7 +114,7 @@
|
|
|
94
114
|
- add CERT, KEY, NSEC, NSEC3, NSEC3PARAM, OPENPGPKEY, SIG
|
|
95
115
|
|
|
96
116
|
|
|
97
|
-
|
|
117
|
+
### [0.9.5] - 2022-03-26
|
|
98
118
|
|
|
99
119
|
- README: add docs for getRFCs()
|
|
100
120
|
- dnskey: fix copy/paste errors
|
|
@@ -104,7 +124,7 @@
|
|
|
104
124
|
- TXT: pass along zone_opts
|
|
105
125
|
|
|
106
126
|
|
|
107
|
-
|
|
127
|
+
### [0.9.4] - 2022-03-24
|
|
108
128
|
|
|
109
129
|
- add: getComment
|
|
110
130
|
- zone_opts, for influencing output of toBind
|
|
@@ -120,7 +140,7 @@
|
|
|
120
140
|
- add uc hex chars to ip6 compress
|
|
121
141
|
|
|
122
142
|
|
|
123
|
-
|
|
143
|
+
### [0.9.3] - 2022-03-22
|
|
124
144
|
|
|
125
145
|
- hasValidLabels: remove trailing dot, else split returns empty string
|
|
126
146
|
- rename fullyQualified -> isFullyQualified
|
|
@@ -136,7 +156,7 @@
|
|
|
136
156
|
- SPF inherits from TXT
|
|
137
157
|
|
|
138
158
|
|
|
139
|
-
|
|
159
|
+
### [0.9.2] - 2022-03-18
|
|
140
160
|
|
|
141
161
|
- mx: weight -> preference
|
|
142
162
|
- ds: keytag -> key tag (consistent naming)
|
|
@@ -149,12 +169,12 @@
|
|
|
149
169
|
- use \_\_dirname to find RR mods
|
|
150
170
|
|
|
151
171
|
|
|
152
|
-
|
|
172
|
+
### [0.9.1] - 2022-03-14
|
|
153
173
|
|
|
154
174
|
- TLSA, SMIMEA: add BIND support #13
|
|
155
175
|
|
|
156
176
|
|
|
157
|
-
|
|
177
|
+
### [0.9.0] - 2022-03-10
|
|
158
178
|
|
|
159
179
|
- added null object instantiation
|
|
160
180
|
- added `getTypeId`, `getDescription`, `getRdataFields`, `getQuotedFields`
|
|
@@ -168,19 +188,19 @@
|
|
|
168
188
|
- tests: import tests from nictool 2
|
|
169
189
|
|
|
170
190
|
|
|
171
|
-
|
|
191
|
+
### [0.8.1] - 2022-03-08
|
|
172
192
|
|
|
173
193
|
- use RFC example IPs and zone names
|
|
174
194
|
|
|
175
195
|
|
|
176
|
-
|
|
196
|
+
### [0.8.0] - 2022-02-01
|
|
177
197
|
|
|
178
198
|
- fromBind for: A, AAAA, CNAME, TXT, CNAME, TXT, LOC, MX, NS, SOA, PTR, SPF, SSHFP, URI, CAA, DNAME, NAPTR
|
|
179
199
|
- add fromTinydns: LOC
|
|
180
200
|
- rr/\*: add getFields
|
|
181
201
|
|
|
182
202
|
|
|
183
|
-
|
|
203
|
+
### [0.7.0] - 2021-10-26
|
|
184
204
|
|
|
185
205
|
- tinydns: added octalToHex, octalToUInt16, unpackDomainName, octalToInt8
|
|
186
206
|
- AAAA: added fromTinydns, compress, expand
|
|
@@ -188,38 +208,38 @@
|
|
|
188
208
|
- add tests for getRFCs
|
|
189
209
|
|
|
190
210
|
|
|
191
|
-
|
|
211
|
+
### [0.6.0] - 2021-10-25
|
|
192
212
|
|
|
193
213
|
- tinydns: added octalToChar
|
|
194
214
|
- A, MX, NS, PTR, SOA, TXT: added fromTinydns
|
|
195
215
|
|
|
196
216
|
|
|
197
|
-
|
|
217
|
+
### [0.5.1] - 2021-10-25
|
|
198
218
|
|
|
199
219
|
- LOC: added toTinydns
|
|
200
220
|
- tinydns: add UInt32toOctal
|
|
201
221
|
- SRV: added support
|
|
202
222
|
|
|
203
223
|
|
|
204
|
-
|
|
224
|
+
### [0.5.0] - 2021-10-24
|
|
205
225
|
|
|
206
226
|
- NAPTR: add toTinydns
|
|
207
227
|
- tinydns: remove sprintf-js dependency
|
|
208
228
|
|
|
209
229
|
|
|
210
|
-
|
|
230
|
+
### [0.4.0] - 2021-10-22
|
|
211
231
|
|
|
212
232
|
- CAA, DNAME, SSHFP, URI: add toTinydns
|
|
213
233
|
- lib/tinydns: added packHex and UInt16AsOctal
|
|
214
234
|
|
|
215
235
|
|
|
216
|
-
|
|
236
|
+
### [0.3.1] - 2021-10-21
|
|
217
237
|
|
|
218
238
|
- update index.js to also export RR sub classes
|
|
219
239
|
- update README examples
|
|
220
240
|
|
|
221
241
|
|
|
222
|
-
|
|
242
|
+
### [0.3.0] - 2021-10-21
|
|
223
243
|
|
|
224
244
|
- add getRFCs to all RR types
|
|
225
245
|
- populate this.id with IANA type ID
|
|
@@ -227,7 +247,7 @@
|
|
|
227
247
|
- CAA, DNAME, NAPTR, SSHFP, URI: add toBind, tests
|
|
228
248
|
|
|
229
249
|
|
|
230
|
-
|
|
250
|
+
### [0.2.3] - 2021-10-21
|
|
231
251
|
|
|
232
252
|
- refactored classes into separate files
|
|
233
253
|
- TXT, SOA, MX, CNAME, PTR, SRV: add toBind and toTinydns
|
|
@@ -236,18 +256,59 @@
|
|
|
236
256
|
- PTR, SRV: added tests
|
|
237
257
|
|
|
238
258
|
|
|
239
|
-
|
|
259
|
+
### [0.2.2] - 2021-10-20
|
|
240
260
|
|
|
241
261
|
- add tests/*
|
|
242
262
|
- A, AAAA, add toBind and toTinydns()
|
|
243
263
|
- add .release
|
|
244
264
|
|
|
245
265
|
|
|
246
|
-
|
|
266
|
+
### [0.2.1] - 2021-10-16
|
|
247
267
|
|
|
248
268
|
- additional RR formats started, weakly validated
|
|
249
269
|
|
|
250
270
|
|
|
251
|
-
|
|
271
|
+
### [0.2.0] - 2021-10-16
|
|
252
272
|
|
|
253
273
|
- initial release & name grab
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
# References
|
|
277
|
+
|
|
278
|
+
- [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
279
|
+
- [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
|
|
280
|
+
+ fix, feature, BREAKING CHANGE, build, chore, ci, docs, style, test
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
[1.1.3]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.3
|
|
284
|
+
[1.1.2]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.2
|
|
285
|
+
[1.1.1]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.1
|
|
286
|
+
[1.1.0]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.0
|
|
287
|
+
[1.0.1]: https://github.com/NicTool/dns-resource-record/releases/tag/1.0.1
|
|
288
|
+
[1.0.0]: https://github.com/NicTool/dns-resource-record/releases/tag/1.0.0
|
|
289
|
+
[0.9.9]: https://github.com/NicTool/dns-resource-record/releases/tag/0.9.9
|
|
290
|
+
[0.9.8]: https://github.com/NicTool/dns-resource-record/releases/tag/0.9.8
|
|
291
|
+
[0.9.7]: https://github.com/NicTool/dns-resource-record/releases/tag/0.9.7
|
|
292
|
+
[0.9.6]: https://github.com/NicTool/dns-resource-record/releases/tag/0.9.6
|
|
293
|
+
[0.9.5]: https://github.com/NicTool/dns-resource-record/releases/tag/0.9.5
|
|
294
|
+
[0.9.4]: https://github.com/NicTool/dns-resource-record/releases/tag/0.9.4
|
|
295
|
+
[0.9.3]: https://github.com/NicTool/dns-resource-record/releases/tag/0.9.3
|
|
296
|
+
[0.9.2]: https://github.com/NicTool/dns-resource-record/releases/tag/0.9.2
|
|
297
|
+
[0.9.1]: https://github.com/NicTool/dns-resource-record/releases/tag/0.9.1
|
|
298
|
+
[0.9.0]: https://github.com/NicTool/dns-resource-record/releases/tag/0.9.0
|
|
299
|
+
[0.8.1]: https://github.com/NicTool/dns-resource-record/releases/tag/0.8.1
|
|
300
|
+
[0.8.0]: https://github.com/NicTool/dns-resource-record/releases/tag/0.8.0
|
|
301
|
+
[0.7.0]: https://github.com/NicTool/dns-resource-record/releases/tag/0.7.0
|
|
302
|
+
[0.6.0]: https://github.com/NicTool/dns-resource-record/releases/tag/0.6.0
|
|
303
|
+
[0.5.1]: https://github.com/NicTool/dns-resource-record/releases/tag/0.5.1
|
|
304
|
+
[0.5.0]: https://github.com/NicTool/dns-resource-record/releases/tag/0.5.0
|
|
305
|
+
[0.4.0]: https://github.com/NicTool/dns-resource-record/releases/tag/0.4.0
|
|
306
|
+
[0.3.1]: https://github.com/NicTool/dns-resource-record/releases/tag/0.3.1
|
|
307
|
+
[0.3.0]: https://github.com/NicTool/dns-resource-record/releases/tag/0.3.0
|
|
308
|
+
[0.2.3]: https://github.com/NicTool/dns-resource-record/releases/tag/0.2.3
|
|
309
|
+
[0.2.2]: https://github.com/NicTool/dns-resource-record/releases/tag/0.2.2
|
|
310
|
+
[0.2.1]: https://github.com/NicTool/dns-resource-record/releases/tag/0.2.1
|
|
311
|
+
[0.2.0]: https://github.com/NicTool/dns-resource-record/releases/tag/0.2.0
|
|
312
|
+
[1.1.4]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.4
|
|
313
|
+
[1.1.5]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.5
|
|
314
|
+
[1.1.6]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.6
|
package/README.md
CHANGED
|
@@ -261,7 +261,7 @@ PRs are welcome, especially PRs with tests.
|
|
|
261
261
|
|
|
262
262
|
## DEVELOP
|
|
263
263
|
|
|
264
|
-
-
|
|
265
|
-
-
|
|
266
|
-
-
|
|
264
|
+
- There are no dependencies. That's no accident.
|
|
265
|
+
- ES modules for use by node.js and browser
|
|
266
|
+
- Platform independence is a goal
|
|
267
267
|
- [x] CI tests are on linux, windows, and macos
|
package/package.json
CHANGED
package/rr/sshfp.js
CHANGED
|
@@ -9,7 +9,7 @@ export default class SSHFP extends RR {
|
|
|
9
9
|
|
|
10
10
|
/****** Resource record specific setters *******/
|
|
11
11
|
setAlgorithm (val) {
|
|
12
|
-
// 0: reserved
|
|
12
|
+
// 0: reserved 1: RSA 2: DSA 3: ECDSA 4: Ed25519 6: Ed448
|
|
13
13
|
this.is8bitInt('SSHFP', 'algorithm', val)
|
|
14
14
|
|
|
15
15
|
this.set('algorithm', val)
|
|
@@ -35,7 +35,7 @@ export default class SSHFP extends RR {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
getRFCs () {
|
|
38
|
-
return [ 4255 ]
|
|
38
|
+
return [ 4255, 7479, 8709 ]
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
getTypeId () {
|