smolcanon 0.2.0 → 0.2.1
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 +6 -0
- package/README.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ This change log follows the format documented in [Keep a CHANGELOG].
|
|
|
8
8
|
[semantic versioning]: http://semver.org/
|
|
9
9
|
[keep a changelog]: http://keepachangelog.com/
|
|
10
10
|
|
|
11
|
+
## v0.2.1 - 2026-01-29
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Fixed example code in README.md to correctly show usage of the `xxh32` function with the canonicalized string.
|
|
16
|
+
|
|
11
17
|
## v0.2.0 - 2025-08-18
|
|
12
18
|
|
|
13
19
|
### Changed
|
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ import { canonize } from "smolcanon";
|
|
|
36
36
|
import { xxh32 } from "smolxxh";
|
|
37
37
|
|
|
38
38
|
const canon = canonize({ foo: "bar", baz: "qux" });
|
|
39
|
-
const hash = xxh32(Buffer.from(
|
|
39
|
+
const hash = xxh32(Buffer.from(canon, "utf8")).toString(16);
|
|
40
40
|
//=> "ed4e5029"
|
|
41
41
|
```
|
|
42
42
|
|