Files
ui/pkgs/event/package.json
zeekayandHanzo Dev c4d9e453b7 fix(event): no hardcoded key — resolve it from the ONE live source (v0.3.21)
The publishable key was baked as a literal (dsn.ts HANZO_PUBLISHABLE_KEY, and the
hz.js fallback). A credential-class value has ONE home — KMS — and the build reads
it from there (deploy/PUBLISHABLE_KEY -> PUBLISHABLE_KEY build-arg ->
NEXT_PUBLIC_PUBLISHABLE_KEY). So the literal is gone: the key resolves from
config.ingestKey or that inlined env, and dsnForProduct(product, key) builds the
Sentry DSN from the SAME resolved key. A surface providing neither is honestly
keyless ($public) — the fix is to stamp its KMS key, not hardcode the org's.
Rebased onto the concurrent $exception feature; 177/177.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-06 12:14:08 -07:00

86 lines
2.1 KiB
JSON

{
"name": "@hanzo/event",
"version": "0.3.21",
"description": "Hanzo Event \u2014 the ONE telemetry client. Emits pageview/event/identify/group to the Hanzo Cloud event stream (POST /v1/event), AND reports errors to Sentry as real Sentry envelopes \u2014 the error plane needs a DSN, without one nothing reaches Sentry. First-touch attribution, beacon-on-unload, auto error capture, client-side secret/PII scrubbing, a shared event + goal vocabulary. Subsumes @sentry.",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"scope": "@hanzo"
},
"author": "Hanzo AI <[email protected]>",
"license": "MIT",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"sideEffects": false,
"files": [
"dist",
"src",
"hz.js",
"README.md",
"TAXONOMY.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/hanzoai/ui.git",
"directory": "pkgs/event"
},
"keywords": [
"analytics",
"product-analytics",
"telemetry",
"events",
"error-tracking",
"sentry",
"attribution",
"funnel",
"hanzo"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"test": "vitest run",
"typecheck": "tsc --noEmit",
"clean": "rm -rf dist"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./react": {
"import": {
"types": "./dist/react.d.ts",
"default": "./dist/react.mjs"
},
"require": {
"types": "./dist/react.d.cts",
"default": "./dist/react.cjs"
}
}
},
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"devDependencies": {
"@types/node": "^25.5.0",
"@types/react": "19.2.14",
"react": "19.2.4",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"vitest": "^4.1.0"
}
}