Files
zeekayandHanzo Dev 629db23fd0 event: raise the floor to ^0.3.3 (>=0.3.2 has the error envelope)
@hanzo/event <=0.3.1 shipped NO Sentry envelope code — captureError() collected
and dropped. 0.3.2 added it.

This repo already RESOLVED to 0.3.3 (the caret ranges permit it), so nothing
changes here at install time. The defect is in what the observe packages
PUBLISH: declaring ^0.3.0 lets any downstream consumer legitimately resolve to
0.3.0 or 0.3.1 and silently get a dead error plane. The floor now states the
real requirement.

pnpm install --frozen-lockfile green; @hanzo/observe 28 tests pass.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-26 23:47:07 -07:00

76 lines
1.8 KiB
JSON

{
"name": "@hanzo/observe-svelte",
"version": "0.1.0",
"description": "Svelte adaptor for @hanzo/observe — default-on semantic interaction capture. A createObserver bootstrap, an `observe` action for stable component names, and a Svelte-store view of the live event stream for session playback. Emits through @hanzo/event to the ONE front door (POST /v1/event).",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"scope": "@hanzo"
},
"author": "Hanzo AI <[email protected]>",
"license": "BSD-3-Clause",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"sideEffects": false,
"files": [
"dist",
"src",
"README.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/hanzoai/ui.git",
"directory": "pkgs/observe-svelte"
},
"keywords": [
"analytics",
"autocapture",
"session-replay",
"telemetry",
"semantic",
"svelte",
"sveltekit",
"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"
}
}
},
"dependencies": {
"@hanzo/event": "^0.3.3",
"@hanzo/observe": "^0.1.0"
},
"peerDependencies": {
"svelte": "^4.0.0 || ^5.0.0"
},
"peerDependenciesMeta": {
"svelte": {
"optional": true
}
},
"devDependencies": {
"@types/node": "^25.5.0",
"happy-dom": "^20.0.0",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"vitest": "^4.1.0"
}
}