create-cartbase 0.1.4 → 0.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cartbase",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Scaffold a Cartbase storefront: npm create cartbase my-store",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -86,6 +86,12 @@ foreign key → 400 `invalid_publishable_key`.
86
86
  "thumbnail": null,
87
87
  "allow_backorder": false,
88
88
  "manage_inventory": true,
89
+ // Computed server-side by the platform's availability predicate:
90
+ // untracked or backorderable variants are always true; otherwise true
91
+ // iff available stock (kit-aware, reservations subtracted) is above
92
+ // zero. Read this — never re-derive stock client-side (the exact
93
+ // quantity is deliberately not exposed).
94
+ "in_stock": true,
89
95
  "variant_rank": 0,
90
96
  "metadata": null,
91
97
  "options": [
@@ -8,7 +8,7 @@
8
8
  "typecheck": "tsc --noEmit"
9
9
  },
10
10
  "dependencies": {
11
- "@cartbase/storefront": "^0.5.0",
11
+ "@cartbase/storefront": "^0.6.0",
12
12
  "next": "16.2.4",
13
13
  "react": "19.2.4",
14
14
  "react-dom": "19.2.4"