@reventlessdev/online-shop-aggregates-catalog-spec 3.0.0-alpha.138 → 3.0.0-alpha.140

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 (36) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/CatalogSpec.cmi +0 -0
  4. package/lib/bs/CatalogSpec.cmt +0 -0
  5. package/lib/bs/CatalogSpec.mlmap +1 -0
  6. package/lib/bs/compiler-info.json +4 -4
  7. package/lib/bs/src/ProductId-CatalogSpec.cmi +0 -0
  8. package/lib/bs/src/ProductId-CatalogSpec.cmj +0 -0
  9. package/lib/bs/src/ProductId-CatalogSpec.cmt +0 -0
  10. package/lib/bs/src/ProductId.ast +0 -0
  11. package/lib/bs/src/ProductId.res +5 -0
  12. package/lib/bs/src/ProductId.res.mjs +29 -0
  13. package/lib/bs/src/Products_ExtensionPoint-CatalogSpec.cmi +0 -0
  14. package/lib/bs/src/Products_ExtensionPoint-CatalogSpec.cmt +0 -0
  15. package/lib/bs/src/Products_ExtensionPoint.ast +0 -0
  16. package/lib/bs/src/Products_ExtensionPoint.res +2 -2
  17. package/lib/bs/src/Products_ExtensionPoint.res.mjs +5 -4
  18. package/lib/ocaml/.compiler.log +2 -2
  19. package/lib/ocaml/CatalogSpec.cmi +0 -0
  20. package/lib/ocaml/CatalogSpec.cmt +0 -0
  21. package/lib/ocaml/CatalogSpec.mlmap +1 -0
  22. package/lib/ocaml/ProductId-CatalogSpec.cmi +0 -0
  23. package/lib/ocaml/ProductId-CatalogSpec.cmj +0 -0
  24. package/lib/ocaml/ProductId-CatalogSpec.cmt +0 -0
  25. package/lib/ocaml/ProductId.ast +0 -0
  26. package/lib/ocaml/ProductId.res +5 -0
  27. package/lib/ocaml/Products_ExtensionPoint-CatalogSpec.cmi +0 -0
  28. package/lib/ocaml/Products_ExtensionPoint-CatalogSpec.cmt +0 -0
  29. package/lib/ocaml/Products_ExtensionPoint.ast +0 -0
  30. package/lib/ocaml/Products_ExtensionPoint.res +2 -2
  31. package/package.json +7 -7
  32. package/rescript.json +2 -1
  33. package/src/ProductId.res +5 -0
  34. package/src/ProductId.res.mjs +29 -0
  35. package/src/Products_ExtensionPoint.res +2 -2
  36. package/src/Products_ExtensionPoint.res.mjs +5 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 3.0.0-alpha.140 (2026-09-21)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **deps:** update rescript to 12.3.1 ([ea1ce37](https://github.com/ReventlessDev/reventless-core/commit/ea1ce377297640f6d0d360e6c84c778d59ecbcc5))
11
+ * **deps:** update sury to 11.0.0 ([8715b22](https://github.com/ReventlessDev/reventless-core/commit/8715b22b33856c46ba57518aad151065c123a995))
12
+
13
+
14
+ # 3.0.0-alpha.139 (2026-09-21)
15
+
16
+ ### Features
17
+
18
+ * **examples:** the aggregates example types its ids ([10795b4](https://github.com/ReventlessDev/reventless-core/commit/10795b40e4991e7255c851ef9b37f2f1836da613))
19
+
20
+
6
21
  # 3.0.0-alpha.138 (2026-09-21)
7
22
 
8
23
  **Note:** Version bump only for package @reventlessdev/online-shop-aggregates-catalog-spec
@@ -1,2 +1,2 @@
1
- #Start(1789989166104)
2
- #Done(1789989170956)
1
+ #Start(1790002876067)
2
+ #Done(1790002882099)
Binary file
Binary file
@@ -1,2 +1,3 @@
1
1
  randjbuildsystem
2
+ ProductId
2
3
  Products_ExtensionPoint
@@ -1,8 +1,8 @@
1
1
  {
2
- "version": "12.3.0",
2
+ "version": "12.3.1",
3
3
  "bsc_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/linux-x64/bin/bsc.exe",
4
- "bsc_hash": "75e3a59c95cc953608fd3dd6ea6ed68141bba4414a20a52f114261b8a48385fa",
5
- "rescript_config_hash": "f31712ce027a28b523ea922cebe7fa0b5c78f62f183089a5283702145a9374f1",
4
+ "bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
5
+ "rescript_config_hash": "73af29ea11dece07ea98a7d2fa74753296e60e0ef7e96b352ad7c59a264b2736",
6
6
  "runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
7
- "generated_at": "1789989170959"
7
+ "generated_at": "1790002882112"
8
8
  }
Binary file
@@ -0,0 +1,5 @@
1
+ // A product's id. Declared in the published contract because Ordering keys its own
2
+ // copy of the catalog by it, so both plugins share one type.
3
+ include Reventless.Id.Make({
4
+ let key = "productId"
5
+ })
@@ -0,0 +1,29 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+
3
+ import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
4
+
5
+ let include = Id$Reventless.Make({
6
+ key: "productId"
7
+ });
8
+
9
+ let schema = include.schema;
10
+
11
+ let make = include.make;
12
+
13
+ let makeFromString = include.makeFromString;
14
+
15
+ let toString = include.toString;
16
+
17
+ let cmp = include.cmp;
18
+
19
+ let key = include.key;
20
+
21
+ export {
22
+ schema,
23
+ make,
24
+ makeFromString,
25
+ toString,
26
+ cmp,
27
+ key,
28
+ }
29
+ /* include Not a pure module */
@@ -8,8 +8,8 @@ type command = unit // read-only: no inbound commands
8
8
 
9
9
  @schema
10
10
  type event =
11
- | ProductBecameAvailable({productId: string, name: string, price: float})
12
- | ProductPriceChanged({productId: string, price: float})
11
+ | ProductBecameAvailable({productId: ProductId.t, name: string, price: float})
12
+ | ProductPriceChanged({productId: ProductId.t, price: float})
13
13
 
14
14
  @schema
15
15
  type directive = unit
@@ -1,20 +1,21 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
3
  import * as Sury from "sury";
4
+ import * as ProductId$CatalogSpec from "./ProductId.res.mjs";
4
5
 
5
6
  let commandSchema = Sury.$unit;
6
7
 
7
8
  let eventSchema = Sury.union([
8
9
  Sury.$schema(s => ({
9
10
  TAG: "ProductBecameAvailable",
10
- productId: s.m(Sury.string),
11
+ productId: s.m(ProductId$CatalogSpec.schema),
11
12
  name: s.m(Sury.string),
12
- price: s.m(Sury.float)
13
+ price: s.m(Sury.number)
13
14
  })),
14
15
  Sury.$schema(s => ({
15
16
  TAG: "ProductPriceChanged",
16
- productId: s.m(Sury.string),
17
- price: s.m(Sury.float)
17
+ productId: s.m(ProductId$CatalogSpec.schema),
18
+ price: s.m(Sury.number)
18
19
  }))
19
20
  ]);
20
21
 
@@ -1,2 +1,2 @@
1
- #Start(1789989166104)
2
- #Done(1789989170956)
1
+ #Start(1790002876067)
2
+ #Done(1790002882099)
Binary file
Binary file
@@ -1,2 +1,3 @@
1
1
  randjbuildsystem
2
+ ProductId
2
3
  Products_ExtensionPoint
Binary file
@@ -0,0 +1,5 @@
1
+ // A product's id. Declared in the published contract because Ordering keys its own
2
+ // copy of the catalog by it, so both plugins share one type.
3
+ include Reventless.Id.Make({
4
+ let key = "productId"
5
+ })
@@ -8,8 +8,8 @@ type command = unit // read-only: no inbound commands
8
8
 
9
9
  @schema
10
10
  type event =
11
- | ProductBecameAvailable({productId: string, name: string, price: float})
12
- | ProductPriceChanged({productId: string, price: float})
11
+ | ProductBecameAvailable({productId: ProductId.t, name: string, price: float})
12
+ | ProductPriceChanged({productId: ProductId.t, price: float})
13
13
 
14
14
  @schema
15
15
  type directive = unit
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@reventlessdev/online-shop-aggregates-catalog-spec",
3
- "version": "3.0.0-alpha.138",
3
+ "version": "3.0.0-alpha.140",
4
4
  "description": "Online Shop example — Catalog plugin specification (extension point specs)",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {
7
- "sury": "11.0.0-rc.2",
8
- "@reventlessdev/reventless-spec": "3.0.0-alpha.139"
7
+ "sury": "11.0.0",
8
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.141"
9
9
  },
10
10
  "devDependencies": {
11
- "rescript": "12.3.0",
12
- "sury-ppx": "11.0.0-rc.2",
13
- "@reventlessdev/reventless-ppx": "1.0.0-alpha.80"
11
+ "rescript": "12.3.1",
12
+ "sury-ppx": "11.0.0",
13
+ "@reventlessdev/reventless-ppx": "1.0.0-alpha.81"
14
14
  },
15
15
  "peerDependencies": {
16
- "rescript": "12.3.0"
16
+ "rescript": "^12.3.1"
17
17
  },
18
18
  "publishConfig": {
19
19
  "registry": "https://registry.npmjs.org"
package/rescript.json CHANGED
@@ -19,7 +19,8 @@
19
19
  }
20
20
  ],
21
21
  "dependencies": [
22
- "sury"
22
+ "sury",
23
+ "@reventlessdev/reventless-spec"
23
24
  ],
24
25
  "compiler-flags": [],
25
26
  "suffix": ".res.mjs"
@@ -0,0 +1,5 @@
1
+ // A product's id. Declared in the published contract because Ordering keys its own
2
+ // copy of the catalog by it, so both plugins share one type.
3
+ include Reventless.Id.Make({
4
+ let key = "productId"
5
+ })
@@ -0,0 +1,29 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+
3
+ import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
4
+
5
+ let include = Id$Reventless.Make({
6
+ key: "productId"
7
+ });
8
+
9
+ let schema = include.schema;
10
+
11
+ let make = include.make;
12
+
13
+ let makeFromString = include.makeFromString;
14
+
15
+ let toString = include.toString;
16
+
17
+ let cmp = include.cmp;
18
+
19
+ let key = include.key;
20
+
21
+ export {
22
+ schema,
23
+ make,
24
+ makeFromString,
25
+ toString,
26
+ cmp,
27
+ key,
28
+ }
29
+ /* include Not a pure module */
@@ -8,8 +8,8 @@ type command = unit // read-only: no inbound commands
8
8
 
9
9
  @schema
10
10
  type event =
11
- | ProductBecameAvailable({productId: string, name: string, price: float})
12
- | ProductPriceChanged({productId: string, price: float})
11
+ | ProductBecameAvailable({productId: ProductId.t, name: string, price: float})
12
+ | ProductPriceChanged({productId: ProductId.t, price: float})
13
13
 
14
14
  @schema
15
15
  type directive = unit
@@ -1,20 +1,21 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
3
  import * as Sury from "sury";
4
+ import * as ProductId$CatalogSpec from "./ProductId.res.mjs";
4
5
 
5
6
  let commandSchema = Sury.$unit;
6
7
 
7
8
  let eventSchema = Sury.union([
8
9
  Sury.$schema(s => ({
9
10
  TAG: "ProductBecameAvailable",
10
- productId: s.m(Sury.string),
11
+ productId: s.m(ProductId$CatalogSpec.schema),
11
12
  name: s.m(Sury.string),
12
- price: s.m(Sury.float)
13
+ price: s.m(Sury.number)
13
14
  })),
14
15
  Sury.$schema(s => ({
15
16
  TAG: "ProductPriceChanged",
16
- productId: s.m(Sury.string),
17
- price: s.m(Sury.float)
17
+ productId: s.m(ProductId$CatalogSpec.schema),
18
+ price: s.m(Sury.number)
18
19
  }))
19
20
  ]);
20
21