lawspec 0.29.0 → 0.29.2

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
@@ -6,6 +6,24 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.29.2] - 2026-10-22
10
+
11
+ ### Fixed
12
+
13
+ - Unknown literal constructor diagnostics point at the rejected name rather
14
+ than the following punctuation, table row or block closer. Independent
15
+ constructor errors continue to be collected together.
16
+
17
+ ## [0.29.1] - 2026-10-22
18
+
19
+ ### Fixed
20
+
21
+ - Parsing now reports independent errors together across fields, collection
22
+ items, table rows, law sections, declarations, harness settings and files.
23
+ This includes repeated bad constructors and general syntax errors. Recovery
24
+ preserves source locations and block opener links, keeps quoted tokens
25
+ opaque, and never admits a partial program or writes a formatting result.
26
+
9
27
  ## [0.29.0] - 2026-10-22
10
28
 
11
29
  ### Changed
@@ -1926,7 +1944,9 @@ A maintenance release. The language, generated code and API are unchanged from
1926
1944
  machine-sized bindings reject an architecture mismatch. Rust adapters take
1927
1945
  owned values.
1928
1946
 
1929
- [Unreleased]: https://github.com/brain-fuel/lawspec/compare/v0.29.0...HEAD
1947
+ [Unreleased]: https://github.com/brain-fuel/lawspec/compare/v0.29.2...HEAD
1948
+ [0.29.2]: https://github.com/brain-fuel/lawspec/compare/v0.29.1...v0.29.2
1949
+ [0.29.1]: https://github.com/brain-fuel/lawspec/compare/v0.29.0...v0.29.1
1930
1950
  [0.29.0]: https://github.com/brain-fuel/lawspec/compare/v0.28.0...v0.29.0
1931
1951
  [0.28.0]: https://github.com/brain-fuel/lawspec/compare/v0.27.0...v0.28.0
1932
1952
  [0.27.0]: https://github.com/brain-fuel/lawspec/compare/v0.26.0...v0.27.0
package/bin/lawspec.mjs CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  safePath,
27
27
  collectSources,
28
28
  } from "../files.mjs";
29
- const VERSION = "0.29.0";
29
+ const VERSION = "0.29.2";
30
30
  const args = process.argv.slice(2);
31
31
  const verb = args.shift();
32
32
  const options = {};
package/build.json CHANGED
@@ -514,8 +514,8 @@
514
514
  ],
515
515
  "digests": {
516
516
  "dev/Gen/Embed.hs": "a359c45835b3656d7381d5f00f3b4c17ebe25460cdcb7b9905c7842a25eec406",
517
- "lawspec.cabal": "9a302e72cdcaa9be1fb840fc61952765804b1ca8c5c22b88fd47bb1ec8b4ade9",
518
- "package.yaml": "9b68d8fb8e0c6fb42e2b5daa38f6483fa646df6b958e2a8dab8f61ca0e776582",
517
+ "lawspec.cabal": "9c92585add2ca42d21e4593f2a126bd41a4a76a51519d008f0cb655f80857c8f",
518
+ "package.yaml": "959691dcf00be69db0839fa5abcb0311ac54b9b68444dadc52bc1c3a58329c8e",
519
519
  "runtime/LawSpecCodecs.hs": "d4cf9cacf9d0f8f100423f537d30be7232b1ec3634bace0ef8b0780e9d7ad2f3",
520
520
  "runtime/LawSpecCollectionCodecs.hs": "1ec581af09c2931cacd0245b35debebd066fd06d71c6dfb60a124af9a5fac562",
521
521
  "runtime/LawSpecDataStrategies.hs": "8ab09adb405a76535e6a9f969375298b693954d2428d12e1479e23d813a0d799",
@@ -722,8 +722,8 @@
722
722
  "runtime/lawspec_schema.mjs": "f3602f701d73295be8946e3e27f236cf77d2cd3f1d58bfd456d6365c75cd69a7",
723
723
  "runtime/lawspec_schema.py": "db690189506bf485f7692505ada87d142e2d842f595520e071db38edaea64bfe",
724
724
  "runtime/lawspec_strategies.rs": "b801c9ddc702588b6b30e6a14c1e7b200ae2e0229f4f3ca8f6fb5510e8238df6",
725
- "runtime/rust/Cargo.lock": "bea4c5b0683c0b686c240d5af3f49c1b6383e22bfc00b16e2ef4a6f6b31f518e",
726
- "runtime/rust/Cargo.toml": "827a0e498c0e33d69d97640a91d23456332fc936fc183dae6b448c96be5e14fc",
725
+ "runtime/rust/Cargo.lock": "0a97058112638debad71a4c351d3e6a42fd038ac9e08880f8ed7e0bd073971c4",
726
+ "runtime/rust/Cargo.toml": "bb5187742cc35c48bf13395ad1d0d2e21351f4a7d009d4dfe76f0e6d1e69ba2f",
727
727
  "src/LawSpec/Abilities.hs": "79e900dea8c07ec0ca724d6301b4a489332de0cc0d7ce46511a16a21bca13831",
728
728
  "src/LawSpec/AbilityEmit.hs": "d79a0b60785433c7763aea6edb389c45377b7be98a5345436140a725655de3b7",
729
729
  "src/LawSpec/AbilityEmit/Go.hs": "d6e78b73c6f225c90cfc4345f2c4fbc6a090ec5083e4ba65af906028cc33f994",
@@ -917,7 +917,7 @@
917
917
  "src/LawSpec/Network.hs": "4fdbc8a0bc6f91b22f1fe57554078be79425d9a4f4509e09595b949092f4f733",
918
918
  "src/LawSpec/OperationChecks.hs": "00094994bca2e62d0d77741508ae2336588cb22896864a798940281ec814a994",
919
919
  "src/LawSpec/Packages.hs": "fd66ad5a6bdd167d518d2548df21f12a6af02e2d635c1993bf3e309824b1d8b4",
920
- "src/LawSpec/Parser.hs": "b9957ada41bf0390ac46612983cd04a4d7b2eda2d54af63c2d8d17cf19f71f6d",
920
+ "src/LawSpec/Parser.hs": "25b916b03e7f8f7d3a51b0c7348adc24055db99f700996e060e1287c1b0f5688",
921
921
  "src/LawSpec/Persist.hs": "a354a57cffc7d61d2b9c5aa35e246633997a79a0f8ef0b087b70c4e348698251",
922
922
  "src/LawSpec/PortableGenerator.hs": "14037ba42ef8fc06bbdbb5892c058455cc1848a08253f0f7cf2d7cc5cb16d396",
923
923
  "src/LawSpec/PortableTestHelpers.hs": "1a60780525e70b2faf84c09750362ea5a9b2927225812378e6e210126aed6a45",
@@ -1022,9 +1022,9 @@
1022
1022
  "wasm/app/Exports.hs": "7698bc8dcdbd3e00cc62d0597626a6dabe29aace9258645d1df266be1f3c408c",
1023
1023
  "wasm/cabal.project": "91ad752c055a034fff42bf1815125ce2174630a41859fe8d5c571e9a12e50b7d",
1024
1024
  "wasm/cabal.project.freeze": "e067df77442b8111c97b3f12cc215af5ca69668aa65f95f3ff90110c22933170",
1025
- "wasm/lawspec-wasm.cabal": "1f3b7bf6ab2d1c231726b0693ee18d9e4107d64e44773010a69473281633d263",
1026
- "npm/core.wasm": "e97419a974a8e871f8be7884ee52884a5df037f90223991a336f93da36cb3ea9",
1027
- "npm/core_jsffi.js": "e5f02e974a7641b1e425c4d68f7a71756f38d57183913242af1b8e2f7751f31d",
1025
+ "wasm/lawspec-wasm.cabal": "0313a5c4c92f983c40219ca017ee720cbeb2834d69433cec9c3d8f0a3c9b1453",
1026
+ "npm/core.wasm": "0c654192fcf157197ee38dccef4bf0192ad685b92dd8aaf3ef3d0f4d720348b0",
1027
+ "npm/core_jsffi.js": "686462a345fd076a5385ca8ef633cf948540babab0af89230668e156b29b7536",
1028
1028
  "npm/api.mjs": "fd40ec7034402e4456504182d80e2e97f535713ae5d227ffad6456fa9091f59b",
1029
1029
  "npm/index.d.ts": "3efda72842f1c99bc15bc2e764f0ef2707db7be0d47dfc98cbae2263dbf7af04"
1030
1030
  }
package/core.wasm CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/core.wasm
3
- size: 76263061 bytes
4
- sha256: e97419a974a8e871f8be7884ee52884a5df037f90223991a336f93da36cb3ea9
3
+ size: 77199611 bytes
4
+ sha256: 0c654192fcf157197ee38dccef4bf0192ad685b92dd8aaf3ef3d0f4d720348b0
package/core_jsffi.js CHANGED
@@ -92,11 +92,11 @@ newJSVal: (v) => __ghc_wasm_jsffi_jsval_manager.newJSVal(v),
92
92
  getJSVal: (k) => __ghc_wasm_jsffi_jsval_manager.getJSVal(k),
93
93
  freeJSVal: (k) => __ghc_wasm_jsffi_jsval_manager.freeJSVal(k),
94
94
  scheduleWork: () => setImmediate(__exports.rts_schedulerLoop),
95
- ZC1ZClawspeczmwasmzm0zi29zi0zminplacezmlawspeczmwasmZCMainZC: ($1) => (($1.parts.push($1.decoder.decode()), $1.parts.join(''))),
96
- ZC2ZClawspeczmwasmzm0zi29zi0zminplacezmlawspeczmwasmZCMainZC: ($1,$2,$3) => ($1.parts.push($1.decoder.decode(new Uint8Array(__exports.memory.buffer, $2 >>> 0, $3), {stream: true}))),
97
- ZC3ZClawspeczmwasmzm0zi29zi0zminplacezmlawspeczmwasmZCMainZC: () => (({decoder: new TextDecoder('utf-8', {fatal: true}), parts: []})),
98
- ZC4ZClawspeczmwasmzm0zi29zi0zminplacezmlawspeczmwasmZCMainZC: ($1,$2,$3) => ((new TextEncoder()).encodeInto($1, new Uint8Array(__exports.memory.buffer, $2 >>> 0, $3)).written),
99
- ZC5ZClawspeczmwasmzm0zi29zi0zminplacezmlawspeczmwasmZCMainZC: ($1) => ($1.length),
95
+ ZC1ZClawspeczmwasmzm0zi29zi2zminplacezmlawspeczmwasmZCMainZC: ($1) => (($1.parts.push($1.decoder.decode()), $1.parts.join(''))),
96
+ ZC2ZClawspeczmwasmzm0zi29zi2zminplacezmlawspeczmwasmZCMainZC: ($1,$2,$3) => ($1.parts.push($1.decoder.decode(new Uint8Array(__exports.memory.buffer, $2 >>> 0, $3), {stream: true}))),
97
+ ZC3ZClawspeczmwasmzm0zi29zi2zminplacezmlawspeczmwasmZCMainZC: () => (({decoder: new TextDecoder('utf-8', {fatal: true}), parts: []})),
98
+ ZC4ZClawspeczmwasmzm0zi29zi2zminplacezmlawspeczmwasmZCMainZC: ($1,$2,$3) => ((new TextEncoder()).encodeInto($1, new Uint8Array(__exports.memory.buffer, $2 >>> 0, $3)).written),
99
+ ZC5ZClawspeczmwasmzm0zi29zi2zminplacezmlawspeczmwasmZCMainZC: ($1) => ($1.length),
100
100
  ZC0ZCghczminternalZCGHCziInternalziWasmziPrimziExportsZC: ($1,$2) => ($1.reject(new WebAssembly.RuntimeError($2))),
101
101
  ZC18ZCghczminternalZCGHCziInternalziWasmziPrimziExportsZC: ($1,$2) => ($1.resolve($2)),
102
102
  ZC20ZCghczminternalZCGHCziInternalziWasmziPrimziExportsZC: ($1) => {$1.throwTo = () => {};},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lawspec",
3
- "version": "0.29.0",
3
+ "version": "0.29.2",
4
4
  "description": "State the law once. Check it everywhere.",
5
5
  "license": "MIT",
6
6
  "repository": {