mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
Decomplect the half-finished fork so the dependency graph has ONE source with no posthog package identity, living under github.com/hanzoinsights. LAYER 1 (package identity): rename straggler package.json names — @posthog/next->@hanzo/insights-next (Next.js SDK; distinct from the existing @hanzo/insights-nextjs config helper), @posthog/mcp->@hanzo/insights-mcp, @posthog/plugin-utils->@hanzo/insights-plugin-utils, @posthog/react-slim->@hanzo/react-slim, @posthog-tooling/release-> @hanzo/insights-tooling-release, and the @posthog/rrweb* family->@hanzo/rrweb* (matching the already-published @hanzo/rrweb*@0.0.47 + minimumReleaseAgeExclude). Repoint every repository.url/homepage/bugs to github.com/hanzoinsights/insights-js and rebrand the PostHog author/description identity to Hanzo AI. LAYER 2 (cross-package imports): rewrite every internal @posthog/* import to its @hanzo/insights*|@hanzo/rrweb* equivalent and the bare module specifiers posthog-js->@hanzo/insights, posthog-node->@hanzo/insights-node, mirrored in package.json deps + the pnpm-lock importer keys. Result: 0 @posthog/* specifiers in packages/tooling/examples/playground source. LAYER 4 (wire protocol) PRESERVED: window.posthog global, ph_* keys, $-prefixed event names, distinct_id, /decide, /e/, /flags, and the __PosthogExtensions__ hook are left unchanged — the Insights server expects them. Also repair pre-existing fork merge damage that blocked compilation (unrelated to naming; identical to origin/main): restore the @hanzo/insights-core ./process subpath (spawn-local/utils, re-matching the published artifact), the lost constructor/var declarations in core + node clients, the mangled external-scripts-loader, the missing TreeShakeable/isPlainError imports, the DeviceId enum member, and stale ../posthog-core-stateless module paths. 26/34 turbo build tasks now pass; remaining failures (browser/react-native and their dependents) are pre-existing fork damage, not rebrand-caused.
137 lines
4.1 KiB
JSON
137 lines
4.1 KiB
JSON
{
|
|
"name": "@hanzo/insights-react-native",
|
|
"version": "4.37.1",
|
|
"license": "MIT",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./metro": {
|
|
"types": "./dist/tooling/metroconfig.d.ts",
|
|
"default": "./dist/tooling/metroconfig.js"
|
|
},
|
|
"./expo": {
|
|
"types": "./dist/tooling/expoconfig.d.ts",
|
|
"default": "./dist/tooling/expoconfig.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist/",
|
|
"tooling/"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/hanzoinsights/insights-js.git",
|
|
"directory": "packages/react-native"
|
|
},
|
|
"scripts": {
|
|
"clean": "rimraf dist",
|
|
"lint": "eslint src test",
|
|
"lint:fix": "eslint src test --fix",
|
|
"test:unit": "jest -c jest.config.js",
|
|
"test": "pnpm test:unit",
|
|
"prepublishOnly": "pnpm lint && pnpm test:unit && pnpm build",
|
|
"prebuild": "node -p \"'export const version = ' + JSON.stringify(require('./package.json').version)\" > src/version.ts",
|
|
"build": "tsc -b && babel ./dist --out-dir dist --extensions '.js'",
|
|
"package": "pnpm pack --out $PACKAGE_DEST/%s.tgz",
|
|
"generate-references": "pnpm exec api-extractor run --config ./api-extractor.json --local && node scripts/generate-docs.js"
|
|
},
|
|
"dependencies": {
|
|
"@hanzo/insights-core": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.19.3",
|
|
"@babel/preset-env": "catalog:",
|
|
"@babel/preset-react": "catalog:",
|
|
"@babel/preset-typescript": "catalog:",
|
|
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
"@babel/plugin-transform-private-methods": "^7.27.1",
|
|
"@babel/plugin-transform-private-property-in-object": "^7.27.1",
|
|
"@hanzo/insights-tooling-rollup-utils": "workspace:*",
|
|
"@hanzo/insights-tooling-tsconfig-base": "workspace:*",
|
|
"@react-native-async-storage/async-storage": "^1.17.10",
|
|
"@react-native/babel-preset": "^0.80.1",
|
|
"@react-navigation/native": "^5.0.10",
|
|
"@types/react": "^17.0.87",
|
|
"@types/react-native": "^0.69.1",
|
|
"@types/jest": "catalog:",
|
|
"expo": "^45.0.6",
|
|
"expo-application": "^4.0.0",
|
|
"expo-device": "^4.0.0",
|
|
"expo-file-system": "^13.0.0",
|
|
"expo-localization": "^11.0.0",
|
|
"@testing-library/react": "catalog:",
|
|
"jest": "catalog:",
|
|
"jest-environment-jsdom": "catalog:",
|
|
"jest-environment-node": "catalog:",
|
|
"jest-expo": "catalog:",
|
|
"metro": "0.83.1",
|
|
"@expo/metro-config": "~0.20.0",
|
|
"react": "18.2.0",
|
|
"react-dom": "18.2.0",
|
|
"react-native": "^0.69.1",
|
|
"react-native-device-info": "^10.3.0",
|
|
"react-native-localize": "^3.0.0",
|
|
"react-native-navigation": "^6.0.0",
|
|
"react-native-safe-area-context": "^4.10.1",
|
|
"react-native-svg": "^15.0.0",
|
|
"ts-jest": "catalog:",
|
|
"typescript": "catalog:"
|
|
},
|
|
"peerDependencies": {
|
|
"@react-native-async-storage/async-storage": ">=1.0.0",
|
|
"@react-navigation/native": ">= 5.0.0",
|
|
"expo-application": ">= 4.0.0",
|
|
"expo-device": ">= 4.0.0",
|
|
"expo-file-system": ">= 13.0.0",
|
|
"expo-localization": ">= 11.0.0",
|
|
"@hanzo/insights-react-native-session-replay": ">= 1.5.0",
|
|
"react-native-device-info": ">= 10.0.0",
|
|
"react-native-localize": ">= 3.0.0",
|
|
"react-native-navigation": ">= 6.0.0",
|
|
"react-native-safe-area-context": ">= 4.0.0",
|
|
"react-native-svg": ">= 15.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@react-native-async-storage/async-storage": {
|
|
"optional": true
|
|
},
|
|
"@react-navigation/native": {
|
|
"optional": true
|
|
},
|
|
"expo-application": {
|
|
"optional": true
|
|
},
|
|
"expo-device": {
|
|
"optional": true
|
|
},
|
|
"expo-file-system": {
|
|
"optional": true
|
|
},
|
|
"expo-localization": {
|
|
"optional": true
|
|
},
|
|
"react-native-device-info": {
|
|
"optional": true
|
|
},
|
|
"react-native-navigation": {
|
|
"optional": true
|
|
},
|
|
"react-native-localize": {
|
|
"optional": true
|
|
},
|
|
"@hanzo/insights-react-native-session-replay": {
|
|
"optional": true
|
|
},
|
|
"react-native-safe-area-context": {
|
|
"optional": true
|
|
},
|
|
"react-native-svg": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|