behavior-contracts 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,7 +37,9 @@ validateEnvelope(envelope); // throws on unknown/incompatible spec version
37
37
 
38
38
  renderTemplate("hello {name}", { name: "world" }); // "hello world"
39
39
 
40
- canonicalJson({ b: 1, a: 2 }); // '{"a":2,"b":1}'
40
+ // Keys are sorted by code point. JS `number` is a float, `bigint` is an int:
41
+ canonicalJson({ b: 1, a: 2 }); // '{"a":2.0,"b":1.0}'
42
+ canonicalJson({ b: 1n, a: 2n }); // '{"a":2,"b":1}'
41
43
  ```
42
44
 
43
45
  ## Spec versions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "behavior-contracts",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Language-agnostic runtime core for behavior contracts (dsl-contracts): validateEnvelope / evaluateExpression / renderTemplate / runPlan / canonical serialization. Single source of truth for the shared DSL runtime primitives.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",