compact-encoding 3.4.0 → 3.5.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/README.md CHANGED
@@ -140,6 +140,9 @@ to build others on top. Feel free to PR more that are missing.
140
140
  - `cenc.utf16le`, `cenc.ucs2` - Encodes a utf16le string.
141
141
  - `cenc.raw.utf16le`, `cenc.raw.ucs2` - Encodes a utf16le string without a length prefixed.
142
142
  - `cenc.utf16le.fixed(n)`, `cenc.ucs2.fixed(n)` - Encodes a fixed size utf16le string.
143
+ - `cenc.fixed8` - Encodes a fixed 8 byte buffer.
144
+ - `cenc.fixed16` - Encodes a fixed 16 byte buffer.
145
+ - `cenc.fixed24` - Encodes a fixed 24 byte buffer.
143
146
  - `cenc.fixed32` - Encodes a fixed 32 byte buffer.
144
147
  - `cenc.fixed64` - Encodes a fixed 64 byte buffer.
145
148
  - `cenc.fixed(n)` - Makes a fixed sized encoder.
package/index.d.ts CHANGED
@@ -118,6 +118,9 @@ export const utf16le: StringEncoder<string>
118
118
  export const bool: Encoder<boolean>
119
119
 
120
120
  export function fixed(n: number): Encoder<Uint8Array>
121
+ export const fixed8: Encoder<Uint8Array>
122
+ export const fixed16: Encoder<Uint8Array>
123
+ export const fixed24: Encoder<Uint8Array>
121
124
  export const fixed32: Encoder<Uint8Array>
122
125
  export const fixed64: Encoder<Uint8Array>
123
126
 
package/index.js CHANGED
@@ -525,6 +525,9 @@ const fixed = (exports.fixed = function fixed(n) {
525
525
  }
526
526
  })
527
527
 
528
+ exports.fixed8 = fixed(8)
529
+ exports.fixed16 = fixed(16)
530
+ exports.fixed24 = fixed(24)
528
531
  exports.fixed32 = fixed(32)
529
532
  exports.fixed64 = fixed(64)
530
533
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compact-encoding",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "A series of compact encoding schemes for building small and fast parsers and serializers",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",