Files
supabase/packages/common/package.json
T
Sean Oliver 3570abad4d chore: update posthog-js to 1.357.0 (#43574)
PostHog flagged our SDK as outdated — we were on 1.257.2, latest is
1.357.0.

**Changes**
- Bumped `posthog-js` in `packages/common/package.json` from `^1.257.2`
to `^1.333.0` (resolved to 1.357.0)
- Updated lockfile

**Why is the lockfile diff so large?**
posthog-js added several new dependencies between 1.257.2 and 1.357.0: a
full `@opentelemetry/*` stack (for opt-in log exporting),
`@posthog/core` and `@posthog/types` (internal monorepo split),
`dompurify`, and `query-selector-shadow-dom`. None of these affect our
bundle unless explicitly enabled — they're opt-in features. The lockfile
entries are large because pnpm records each package with its full
resolution tree and checksums.

**Testing**
Spun up the full local stack and verified all three PostHog endpoints
return 200 with the new SDK version:
- `/e/` (event capture) — pageviews firing correctly
- `/flags/` (feature flag evaluation) — flags loading correctly
- `/i/v0/e/` (identify) — user identification working

No breaking changes in any of the 16 releases between our old and new
version (all Minor/Patch Changes). TypeScript compilation clean across
all apps.

GROWTH-589
2026-03-09 15:14:36 -07:00

47 lines
1.2 KiB
JSON

{
"name": "common",
"version": "0.0.0",
"type": "module",
"main": "./index.tsx",
"types": "./index.tsx",
"license": "MIT",
"scripts": {
"preinstall": "npx only-allow pnpm",
"clean": "rimraf node_modules",
"gen:types": "supabase gen types typescript --local >| ./database-types.ts",
"typecheck_CURRENTLY_IGNORED": "tsc --noEmit"
},
"dependencies": {
"@types/dat.gui": "^0.7.12",
"@usercentrics/cmp-browser-sdk": "^4.42.0",
"api-types": "workspace:*",
"config": "workspace:*",
"configcat-js": "^9.5.1",
"dat.gui": "^0.7.9",
"flags": "^4.0.0",
"lodash": "catalog:",
"next-themes": "^0.3.0",
"posthog-js": "^1.333.0",
"react-use": "^17.4.0",
"valtio": "catalog:"
},
"devDependencies": {
"@types/lodash": "4.17.5",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"@vitest/coverage-v8": "^3.2.0",
"@vitest/ui": "^3.2.0",
"tsconfig": "workspace:*",
"typescript": "catalog:",
"vitest": "catalog:"
},
"peerDependencies": {
"@supabase/auth-js": "catalog:",
"@supabase/supabase-js": "catalog:",
"next": "catalog:",
"react": "catalog:",
"react-dom": "catalog:"
}
}