@bare-ts/lib 0.1.1 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bare-ts/lib",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "TypeScript library for BARE, a compact and simple binary-serialization format",
5
5
  "keywords": [
6
6
  "bare",
package/CHANGELOG.md DELETED
@@ -1,37 +0,0 @@
1
- # Changelog
2
-
3
- ## Unreleased
4
-
5
- ## 0.1.1 (2022-01-09)
6
-
7
- * Fix write offset when byteOffset > 0
8
-
9
- A ByteCursor may be instantiated with an array of bytes such that
10
- the array's byteOffset is greater than 0.
11
- The previous ByteCursor.write implementation did not take care of adding this byteOffset to the ByteCursor's offset.
12
-
13
- The following code no longer fail:
14
-
15
- ```js
16
- const bytes = Uint8Array.of(42, 24).subarray(1)
17
- assert(bytes.byteOffset === 1)
18
-
19
- const bc = ByteCursor(bytes, ...)
20
- bc.write(Uint8Array.of(24))
21
- assert.deepEqual(Array.from(bytes), [42, 24]) // Previously failed
22
- ```
23
-
24
- * Smaller CommonJS bundle
25
-
26
- * Improve byte-length computation of small string
27
-
28
- ## 0.1.0 (2022-01-02)
29
-
30
- * `ByteCursor` abstraction to read and write safely a buffer of bytes
31
-
32
- * Enable to configure at runtime:
33
- - initial buffer length
34
- - maximum buffer length
35
- - thresholds (string length) for switching from custom to native UTF-8 decoders/encoders
36
-
37
- * Decoders and encoders for basic types (bool, opaque data, floats, integers, typed arrays, UTF-8 string)