caelum0x 8bc3b49ca9 docs(product-analytics): refresh parity recount for A4/A22/A23, add real Mixpanel ingestion-compat test
The 2026-10-05 static parity recount still called A4 (native SDKs),
A22 (warehouse destinations) and A23 (CDP destinations/transforms)
PARTIAL, but the code that closes them landed on main the next day
(fba4dba7, 8cd06952, 0e611a19, b4612a4f, 41653aeb, aa25b536) and was
never folded back in. Add scripts/parity/wave-r.mjs on top of wave-q.mjs
(recount.mjs now merges waves, later wins) and regenerate
docs/parity/recount-2026-10-15.txt: analytics moves from 24/6/7 to
27/3/7 DONE/PARTIAL/MISSING. Verified before writing any of it: full
pnpm run test:all in apps/product-analytics (220 tests, 216 pass, 0
fail, 4 skipped for an uncached Chromium) and `swift test` in
packages/analytics-swift (6/6).

Add apps/product-analytics/docs/MIXPANEL-PARITY-CHECKLIST.md and
test/qy/mixpanel-compat.test.ts, which points the real `mixpanel` npm
client (not a mock) at this service. Findings: /track and /engage
($set/$set_once/$unset) are Mixpanel-compatible today; /groups is not
(the real SDK's $group_key/$group_id don't match this service's
$group_type/$group_key), the $add/$append/$union/$remove people ops are
accepted but silently dropped, there's no /import route, and a
non-verbose Mixpanel client treats this service's JSON response as a
failure. None of that ingestion-routing code is touched here; it's
scoped to docs and tests only.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-15 17:04:12 +03:00

43 lines
1.4 KiB
JSON

{
"name": "@railyard/product-analytics",
"version": "0.1.0",
"private": true,
"description": "Railyard product analytics service: event capture, people, groups, privacy jobs and the console API.",
"license": "MIT",
"type": "module",
"scripts": {
"start": "node src/server.ts",
"migrate": "node scripts/migrate.ts",
"test": "node --test --test-force-exit --test-concurrency=1 test/a1/*.test.ts",
"test:browser": "node --test --test-force-exit test/a1/browser.test.ts",
"test:egress": "node --test --test-force-exit test/a3/net-guard.test.ts",
"test:qy": "node --test --test-force-exit --test-concurrency=1 test/qy/*.test.ts",
"test:all": "node --test --test-force-exit --test-concurrency=1 test/a1/*.test.ts test/a2/*.test.ts test/a3/*.test.ts test/qy/*.test.ts",
"capacity": "node test/a1/capacity.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@hono/node-server": "2.1.3",
"fflate": "0.8.3",
"hono": "4.13.11",
"jose": "6.2.12",
"pg": "8.23.0"
},
"devDependencies": {
"@babel/runtime": "7.28.4",
"@types/node": "22.9.0",
"@types/pg": "8.23.1",
"jsdom": "30.1.1",
"mixpanel": "^0.24.0",
"playwright-core": "1.63.0",
"posthog-js": "1.435.1",
"posthog-node": "5.54.1",
"posthog-react-native": "4.78.2",
"react": "18.3.1",
"typescript": "5.6.3"
},
"engines": {
"node": ">=22.18"
}
}