@nictool/dns-resource-record 1.6.1 → 1.8.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/CHANGELOG.md +47 -0
- package/README.md +356 -199
- package/dist/dns-rr.cjs +7050 -0
- package/dist/dns-rr.min.js +26 -0
- package/dist/dns-rr.min.js.map +7 -0
- package/index.js +12 -11
- package/lib/binary.js +108 -0
- package/lib/bind.js +96 -0
- package/lib/dns-query.js +67 -0
- package/lib/tinydns.js +128 -44
- package/lib/wire.js +629 -0
- package/package.json +28 -8
- package/rr/TEMPLATE.js +124 -0
- package/rr/a.js +8 -48
- package/rr/aaaa.js +13 -80
- package/rr/apl.js +123 -27
- package/rr/caa.js +27 -50
- package/rr/cert.js +60 -81
- package/rr/cname.js +8 -59
- package/rr/dhcid.js +20 -30
- package/rr/dname.js +10 -32
- package/rr/dnskey.js +38 -32
- package/rr/ds.js +59 -54
- package/rr/hinfo.js +21 -40
- package/rr/hip.js +88 -26
- package/rr/https.js +28 -40
- package/rr/ipseckey.js +97 -18
- package/rr/key.js +39 -29
- package/rr/kx.js +16 -27
- package/rr/loc.js +42 -12
- package/rr/mx.js +17 -48
- package/rr/naptr.js +58 -33
- package/rr/ns.js +8 -36
- package/rr/nsec.js +89 -18
- package/rr/nsec3.js +62 -26
- package/rr/nsec3param.js +56 -53
- package/rr/nxt.js +57 -18
- package/rr/openpgpkey.js +24 -30
- package/rr/ptr.js +7 -47
- package/rr/rp.js +17 -32
- package/rr/rrsig.js +108 -75
- package/rr/sig.js +70 -45
- package/rr/smimea.js +33 -33
- package/rr/soa.js +31 -49
- package/rr/spf.js +15 -18
- package/rr/srv.js +28 -51
- package/rr/sshfp.js +35 -48
- package/rr/svcb.js +27 -40
- package/rr/tlsa.js +34 -34
- package/rr/tsig.js +87 -24
- package/rr/txt.js +77 -68
- package/rr/uri.js +19 -29
- package/rr/wks.js +154 -22
- package/rr.js +290 -109
- package/lib/readme.js +0 -84
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,51 @@ Notable changes to this project are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
#### Unreleased
|
|
6
6
|
|
|
7
|
+
### [1.8.0] - 2026-05-25
|
|
8
|
+
|
|
9
|
+
- lib/wire.js — hardened readWireName()
|
|
10
|
+
- new wirePackDomainCompressed() for RFC 1035 §4.1.4 name compression
|
|
11
|
+
- charstrs decoder preserves multi-string boundaries
|
|
12
|
+
- lib/bind.js — fromBind() returns array for charstrs (TXT) when input has multiple quoted strings.
|
|
13
|
+
- rr/rrsig.js — getAlgorithmOptions() extended with DNSSEC algorithms 6, 7, 8, 10, 13, 14, 15, 16.
|
|
14
|
+
- rr/ds.js — setDigestType() now accepts SHA-384 (4)
|
|
15
|
+
- rr/txt.js — getWireRdata() and fromTinydnsGeneric() preserve per-segment boundaries.
|
|
16
|
+
- package.json — engines lowered to >=20
|
|
17
|
+
- new build:cjs script via Rollup.
|
|
18
|
+
- test/wire.js, test/base.js, test/rr/{rrsig,ds,txt}.js — round-trip + negative tests for each fix.
|
|
19
|
+
|
|
20
|
+
### [1.7.0] - 2026-04-20
|
|
21
|
+
|
|
22
|
+
#### Fixes
|
|
23
|
+
|
|
24
|
+
- rr/txt: chunk by UTF-8 bytes (vs ASCII)
|
|
25
|
+
- rr/rrsig: validate "type covered" correctly
|
|
26
|
+
|
|
27
|
+
#### Changes
|
|
28
|
+
|
|
29
|
+
- RR is strictly a factory now
|
|
30
|
+
- no longer returns a different object based on bindLine or tinyLine
|
|
31
|
+
- doc(CAA, DS): added RFC 9619
|
|
32
|
+
- openpgpkey: reject keys with non-ASCII
|
|
33
|
+
- tinydns: name any out-of-range chars in error msg
|
|
34
|
+
- fromBind: use a tokenizing parser (vs regexes)
|
|
35
|
+
|
|
36
|
+
#### Additions
|
|
37
|
+
|
|
38
|
+
- add rr/TEMPLATE.js with lots of docs
|
|
39
|
+
- declarative rdataFields to remove lots of boilerplate from rr/all
|
|
40
|
+
- browser compat enhancements
|
|
41
|
+
- rollup dns-rr.min.js + min.js.map
|
|
42
|
+
- add `static typeName` as constructor.name doesn't survive minification
|
|
43
|
+
- feat(lib/binary): add shared binary functions
|
|
44
|
+
- change: replace `Buffer` with Uint8Array, DataView, and math
|
|
45
|
+
- feat(lib/wire): add wire format helpers
|
|
46
|
+
- feat(fromWire): added wire format parsers
|
|
47
|
+
- used to round-trip DNS and validate parsing & formatting
|
|
48
|
+
- feat(fromBind): use a parser (vs regexes)
|
|
49
|
+
- test: add dnsLiveTests, test `toWire()` against live NSD & tinydns
|
|
50
|
+
- uncovered edge cases in round trips between formats
|
|
51
|
+
|
|
7
52
|
### [1.6.1] - 2026-04-20
|
|
8
53
|
|
|
9
54
|
- doc(README): add wire export format
|
|
@@ -385,3 +430,5 @@ Notable changes to this project are documented in this file.
|
|
|
385
430
|
[1.5.0]: https://github.com/NicTool/dns-resource-record/releases/tag/v1.5.0
|
|
386
431
|
[1.6.0]: https://github.com/NicTool/dns-resource-record/releases/tag/v1.6.0
|
|
387
432
|
[1.6.1]: https://github.com/NicTool/dns-resource-record/releases/tag/v1.6.1
|
|
433
|
+
[1.7.0]: https://github.com/NicTool/dns-resource-record/releases/tag/v1.7.0
|
|
434
|
+
[1.8.0]: https://github.com/NicTool/dns-resource-record/releases/tag/v1.8.0
|