dns-message 1.0.0 → 1.0.1-canary-197f34977c71a09b51a96f1a99eb26e7aa8186a5

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # dns-message
2
2
 
3
+ ## 1.0.1-canary-197f34977c71a09b51a96f1a99eb26e7aa8186a5
4
+
5
+ ### Patch Changes
6
+
7
+ - Clamp `position.length` to `>=0` to be defensive
8
+ Submitted by [@kitten](https://github.com/kitten) (See [#2](https://github.com/kitten/dns-message/pull/2))
9
+ - Constrain message compression (name) pointer references
10
+ Submitted by [@kitten](https://github.com/kitten) (See [#4](https://github.com/kitten/dns-message/pull/4))
11
+ - Encode/decode PTR, CNAME, and DNAME as names
12
+ Submitted by [@kitten](https://github.com/kitten) (See [#1](https://github.com/kitten/dns-message/pull/1))
13
+ - Enforce name and label length limits
14
+ Submitted by [@kitten](https://github.com/kitten) (See [#3](https://github.com/kitten/dns-message/pull/3))
15
+
3
16
  ## 1.0.0
4
17
 
5
18
  Initial Release.
@@ -358,15 +358,15 @@ interface OptAnswer {
358
358
  }
359
359
  interface PtrAnswer extends BaseAnswer {
360
360
  type: RecordType.PTR;
361
- data: Uint8Array | string;
361
+ data: string;
362
362
  }
363
363
  interface CnameAnswer extends BaseAnswer {
364
364
  type: RecordType.CNAME;
365
- data: Uint8Array | string;
365
+ data: string;
366
366
  }
367
367
  interface DnameAnswer extends BaseAnswer {
368
368
  type: RecordType.DNAME;
369
- data: Uint8Array | string;
369
+ data: string;
370
370
  }
371
371
  interface NullAnswer extends BaseAnswer {
372
372
  type: RecordType.NULL;