@dainamite/cpq-billing-connector 0.1.1 → 2.0.0

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/CHANGELOG.md +53 -0
  2. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,58 @@
1
1
  # @dainamite/cpq-billing-connector
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d7ce539: Require Open Mercato `0.9.0`. Peer ranges move from `^0.6.7` to `^0.9.0` for
8
+ `@open-mercato/core`, `shared`, `ui`, `events` and `queue`, and the MikroORM
9
+ peers from `^7.1.5` to `^7.1.14`. Consumers on Open Mercato `0.6.x`–`0.8.x`
10
+ must upgrade before taking these versions.
11
+
12
+ `@dainamite/cpq` and `@dainamite/billing` now peer on `@tanstack/react-table`
13
+ `^9.0.0` (was `^8.0.0 || ^9.0.0`): Open Mercato 0.7 moved its `DataTable` to
14
+ TanStack Table v9, and list pages now import `LegacyColumnDef` from
15
+ `@tanstack/react-table/legacy`, which v8 does not have.
16
+
17
+ `@dainamite/cpq` also fixes CPQ quote and order API routes answering `500`
18
+ instead of the service's typed status (e.g. `404 Quote not found`). Next
19
+ bundles the package once per server layer and the DI container is shared, so
20
+ the route could catch a `QuotingError` / `OrderError` from the other copy of
21
+ the class and `instanceof` failed. Both classes now carry a `Symbol.for`
22
+ brand; new `isQuotingError` / `isOrderError` guards are exported alongside
23
+ them and should be used instead of `instanceof` in route handlers.
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [924c8b6]
28
+ - Updated dependencies [d7ce539]
29
+ - @dainamite/billing@0.20.0
30
+ - @dainamite/cpq@0.5.0
31
+
32
+ ## 1.0.0
33
+
34
+ ### Minor Changes
35
+
36
+ - 8834b8b: Require Open Mercato `0.6.7`. Peer ranges move from `^0.6.0` to `^0.6.7` for
37
+ `@open-mercato/core`, `shared`, `ui`, `events` and `queue`, and the MikroORM
38
+ peers from `^7.0.0` to `^7.1.5` (7.1 split the SQL layer into
39
+ `@mikro-orm/sql`, so a shared 7.1 instance is required).
40
+
41
+ No package source changes — this only narrows the supported framework range.
42
+ Consumers on Open Mercato `0.6.0`–`0.6.6` must upgrade before taking these
43
+ versions.
44
+
45
+ Note for consumers running commands with a system identity (`ctx.auth: null`):
46
+ `0.6.7` hardened `ensureTenantScope` / `ensureOrganizationScope`. Those calls
47
+ are still no-ops with `auth: null`, but an unscoped organization command now
48
+ logs a warning and will throw `403` if `OM_ENFORCE_ORG_SCOPE_STRICT=true`.
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [8834b8b]
53
+ - @dainamite/cpq@0.4.0
54
+ - @dainamite/billing@0.19.0
55
+
3
56
  ## 0.1.1
4
57
 
5
58
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dainamite/cpq-billing-connector",
3
- "version": "0.1.1",
3
+ "version": "2.0.0",
4
4
  "description": "Wires @dainamite/cpq subscription lifecycle events to @dainamite/billing API calls (activated / amended / renewed / cancelled / merged / superseded).",
5
5
  "type": "module",
6
6
  "main": "./dist/modules/cpq_billing_connector/index.js",
@@ -93,14 +93,14 @@
93
93
  }
94
94
  },
95
95
  "peerDependencies": {
96
- "@dainamite/billing": "^0.18.0",
97
- "@dainamite/cpq": "^0.3.0",
98
- "@mikro-orm/core": "^7.0.0",
99
- "@mikro-orm/decorators": "^7.0.0",
100
- "@mikro-orm/postgresql": "^7.0.0",
101
- "@open-mercato/core": "^0.6.0",
102
- "@open-mercato/events": "^0.6.0",
103
- "@open-mercato/shared": "^0.6.0",
96
+ "@dainamite/billing": "^0.20.0",
97
+ "@dainamite/cpq": "^0.5.0",
98
+ "@mikro-orm/core": "^7.1.14",
99
+ "@mikro-orm/decorators": "^7.1.14",
100
+ "@mikro-orm/postgresql": "^7.1.14",
101
+ "@open-mercato/core": "^0.9.0",
102
+ "@open-mercato/events": "^0.9.0",
103
+ "@open-mercato/shared": "^0.9.0",
104
104
  "awilix": "^12.0.0",
105
105
  "zod": "^4.0.0"
106
106
  },