@capxul/sdk-react 0.1.0-alpha.0 → 0.1.0-alpha.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/package.json +6 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @capxul/sdk-react
2
2
 
3
+ ## 0.1.0-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Add `convex` as a peer dependency.
8
+
9
+ `@capxul/sdk`'s bundled `_generated/api` snapshot calls
10
+ `anyApi` / `componentsGeneric` from `convex/server` at runtime — they
11
+ are not just types — and tsup correctly externalizes `convex` /
12
+ `convex/server` / `convex/react` so the consumer's own Convex install
13
+ is reused. The peer was missing from the published manifest, so
14
+ `require('@capxul/sdk')` failed with `Cannot find module 'convex/server'`
15
+ in any spike that hadn't already installed `convex`.
16
+
17
+ `@capxul/sdk-react` mirrors the peer because its bundle re-exports
18
+ flow-machine constructors from `@capxul/sdk` and may transitively
19
+ pull in the same module.
20
+
21
+ Caught during alpha.1 spike-install verification.
22
+
23
+ - Updated dependencies
24
+ - @capxul/sdk@0.1.0-alpha.2
25
+
26
+ ## 0.1.0-alpha.1
27
+
28
+ ### Patch Changes
29
+
30
+ - Move workspace `@repo/*` packages from `dependencies` to
31
+ `devDependencies` so the published `package.json` doesn't list them
32
+ as runtime deps. The tsup pipeline bundles every `@repo/*` import
33
+ inline (`noExternal`), so the published code has zero references to
34
+ those packages — but until now the published `package.json` still
35
+ declared them, and `npm install @capxul/sdk@0.1.0-alpha.0` failed
36
+ trying to resolve `@repo/api-contract@0.0.0` etc. on the public
37
+ registry.
38
+
39
+ `@capxul/sdk-react` keeps `@capxul/sdk` as a runtime dep — that one
40
+ is published.
41
+
42
+ No public surface changes. Pure publish-metadata correction caught
43
+ during alpha.0 spike-install verification.
44
+
45
+ - Updated dependencies
46
+ - @capxul/sdk@0.1.0-alpha.1
47
+
3
48
  Changelog managed by [changesets](https://github.com/changesets/changesets) —
4
49
  see `.changeset/README.md` for the operator workflow.
5
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/sdk-react",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.2",
4
4
  "description": "React provider + hooks for the @capxul/sdk headless client.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -41,14 +41,12 @@
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "@capxul/sdk": "0.1.0-alpha.0",
45
- "@repo/config": "0.0.0",
46
- "@repo/observability": "0.0.0",
47
- "@repo/platform-kernel": "0.0.0"
44
+ "@capxul/sdk": "0.1.0-alpha.2"
48
45
  },
49
46
  "peerDependencies": {
50
47
  "@tanstack/react-query": "^5",
51
48
  "@xstate/react": "^5",
49
+ "convex": ">=1.0.0",
52
50
  "react": ">=19.0.0",
53
51
  "viem": ">=2.0.0"
54
52
  },
@@ -67,6 +65,9 @@
67
65
  "typescript": "5.9.2",
68
66
  "viem": "2.47.10",
69
67
  "vitest": "^4.1.2",
68
+ "@repo/config": "0.0.0",
69
+ "@repo/observability": "0.0.0",
70
+ "@repo/platform-kernel": "0.0.0",
70
71
  "@repo/typescript-config": "0.0.0"
71
72
  },
72
73
  "scripts": {