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 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("hello world", "utf8")).toString(16);
39
+ const hash = xxh32(Buffer.from(canon, "utf8")).toString(16);
40
40
  //=> "ed4e5029"
41
41
  ```
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smolcanon",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Tiny JS objects canonicalization for hashing",
5
5
  "type": "module",
6
6
  "main": "index.cjs",