pi-kiosk-shared 2.2.91 → 2.2.92

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/README.md CHANGED
@@ -9,7 +9,7 @@ Shared types, API contracts, and error classes for the Pi Kiosk system.
9
9
 
10
10
  ## Temporary retention
11
11
 
12
- `up-backend` keeps production `react` / `react-dom` until cold/start paths consume a Node-safe published or overlaid main barrel. Do **not** drop those deps until that consume path is proven on the version actually installed (registry tarball from `npm view`, or monorepo overlay of sibling `../shared` **2.2.86**). Same caveat as `up-backend/docs/DEPLOYMENT/DEPLOY_SEPARATE_REPOS.md`.
12
+ `up-backend` keeps production `react` / `react-dom` until cold/start paths consume a Node-safe published or overlaid main barrel. Do **not** drop those deps until that consume path is proven on the version actually installed (registry tarball from `npm view`, or monorepo overlay of sibling `../shared` **2.2.91**). Same caveat as `up-backend/docs/DEPLOYMENT/DEPLOY_SEPARATE_REPOS.md`.
13
13
 
14
14
  ## Installation
15
15
 
@@ -74,7 +74,7 @@ Frontends import React modules from `/ui`. The **target** main barrel (local ove
74
74
 
75
75
  ## Local monorepo overlay
76
76
 
77
- **Honesty (SSOT):** All five monorepo consumers (`up-backend`, `admin-app`, `rpapp-kiosk`, `rpapp-customer`, `rpapp-pickup`) pin `"pi-kiosk-shared": "^2.2.86"` matching `shared/package.json` **2.2.86**. Sibling overlay still runs when `../shared` exists. Separate-repo pin should match that. Confirm registry with `npm view pi-kiosk-shared version` at deploy time — this README does not claim a publish.
77
+ **Honesty (SSOT):** Live monorepo source is `shared/package.json` **2.2.91** (published on npm with the camera constraint ladder). Consumers pin `"pi-kiosk-shared": "^2.2.91"` matching that. Sibling overlay still runs when `../shared` exists. Separate-repo pin should match `shared@2.2.91`. Confirm registry with `npm view pi-kiosk-shared version` at deploy time. **Historical (not current):** older passes cited `^2.2.86` / unpublished `2.2.90` as the live pin.
78
78
 
79
79
  **Documented cold path (monorepo):** `npm ci` / `npm install` in each app runs lifecycle hooks → `scripts/overlaySharedIfPresent.mjs` → `shared/scripts/ensureDist.mjs` when sibling `../shared` exists:
80
80
 
@@ -111,7 +111,7 @@ npm run gate:main-barrel-node-safe
111
111
 
112
112
  From `shared/`, prove the documented cold path:
113
113
 
114
- 1. **DIAGNOSTIC** — `npm pack` a known Node-safe registry tarball (`COLD_VERSION` in `prove-pi-kiosk-shared-cold-overlay.mjs`, currently `2.2.82`) in a temp dir and assert COLD_BAD markers (never installs into a consumer with `--ignore-scripts`). Live monorepo source is `shared/package.json` **2.2.86**.
114
+ 1. **DIAGNOSTIC** — `npm pack` a known Node-safe registry tarball (`COLD_VERSION` in `prove-pi-kiosk-shared-cold-overlay.mjs`, currently `2.2.82` — intentional historical diagnostic fixture, not the live pin) in a temp dir and assert COLD_BAD markers (never installs into a consumer with `--ignore-scripts`). Live monorepo source is `shared/package.json` **2.2.91**.
115
115
  2. **PASS** — wipe that consumer’s `node_modules/pi-kiosk-shared`, then `npm install` with **scripts on** (no package args) so `prepare` / `postinstall` overlays during install; assert Node-safe barrel + `NODE_IMPORT_OK`.
116
116
 
117
117
  ```bash
package/dist/index.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * Main barrel is Node-safe (no React UI). Runtime JS (not `.d.ts`):
8
8
  * - `tsx watch` and `node dist/server.js` both resolve `node_modules/pi-kiosk-shared`
9
- * after `ensureDist.mjs` overlays this `dist` (monorepo sibling `../shared` @ 2.2.86;
10
- * consumers pin ^2.2.86 matching shared/package.json — confirm registry at deploy time).
9
+ * after `ensureDist.mjs` overlays this `dist` (monorepo sibling `../shared` @ 2.2.91;
10
+ * consumers pin ^2.2.91 matching shared/package.json — confirm registry at deploy time).
11
11
  * React UI is `pi-kiosk-shared/ui`.
12
12
  *
13
13
  * Note: relative imports use explicit `.js` extensions so the compiled
package/dist/index.js CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * Main barrel is Node-safe (no React UI). Runtime JS (not `.d.ts`):
8
8
  * - `tsx watch` and `node dist/server.js` both resolve `node_modules/pi-kiosk-shared`
9
- * after `ensureDist.mjs` overlays this `dist` (monorepo sibling `../shared` @ 2.2.86;
10
- * consumers pin ^2.2.86 matching shared/package.json — confirm registry at deploy time).
9
+ * after `ensureDist.mjs` overlays this `dist` (monorepo sibling `../shared` @ 2.2.91;
10
+ * consumers pin ^2.2.91 matching shared/package.json — confirm registry at deploy time).
11
11
  * React UI is `pi-kiosk-shared/ui`.
12
12
  *
13
13
  * Note: relative imports use explicit `.js` extensions so the compiled
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-kiosk-shared",
3
- "version": "2.2.91",
3
+ "version": "2.2.92",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "Shared types, API contracts, and error classes for Pi Kiosk system",