@hanzo/event 0.3.37 → 0.3.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/event",
3
- "version": "0.3.37",
3
+ "version": "0.3.38",
4
4
  "description": "Hanzo Event — 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 — 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.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -36,6 +36,13 @@
36
36
  "funnel",
37
37
  "hanzo"
38
38
  ],
39
+ "scripts": {
40
+ "build": "tsup && tsc --emitDeclarationOnly --declaration --outDir dist && node ../../scripts/dts.mjs",
41
+ "dev": "tsup --watch",
42
+ "test": "vitest run",
43
+ "typecheck": "tsc --noEmit -p tsconfig.json",
44
+ "clean": "rm -rf dist"
45
+ },
39
46
  "exports": {
40
47
  ".": {
41
48
  "import": {
@@ -59,7 +66,7 @@
59
66
  }
60
67
  },
61
68
  "peerDependencies": {
62
- "react": "^18.0.0 || ^19.0.0"
69
+ "react": ">=19.2.8"
63
70
  },
64
71
  "peerDependenciesMeta": {
65
72
  "react": {
@@ -67,21 +74,14 @@
67
74
  }
68
75
  },
69
76
  "devDependencies": {
70
- "@types/node": "^25.5.0",
71
- "@types/react": "19.2.14",
72
- "react": "19.2.4",
73
- "tsup": "^8.5.1",
74
- "typescript": "^7.0.2",
75
- "vitest": "^4.1.0"
77
+ "@types/node": "catalog:",
78
+ "@types/react": "catalog:",
79
+ "react": "catalog:",
80
+ "tsup": "catalog:",
81
+ "typescript": "catalog:",
82
+ "vitest": "catalog:"
76
83
  },
77
84
  "dependencies": {
78
- "@hanzo/events": "^0.2.1"
79
- },
80
- "scripts": {
81
- "build": "tsup && tsc --emitDeclarationOnly --declaration --outDir dist && node ../../scripts/dts.mjs",
82
- "dev": "tsup --watch",
83
- "test": "vitest run",
84
- "typecheck": "tsc --noEmit -p tsconfig.json",
85
- "clean": "rm -rf dist"
85
+ "@hanzo/events": "catalog:"
86
86
  }
87
- }
87
+ }
package/src/org.ts CHANGED
@@ -72,18 +72,21 @@ export const ORG_DOMAIN: Readonly<Record<string, readonly string[]>> = Object.fr
72
72
  'lux.fund',
73
73
  'lux.id',
74
74
  ]),
75
- zoo: Object.freeze(['zoo.ngo', 'zoo.network', 'zoolabs.id']),
75
+ zoo: Object.freeze(['zoo.ngo', 'zoo.network', 'zoolabs.id', 'zoolabs.io']),
76
76
  })
77
77
 
78
78
  /**
79
79
  * Each org's publishable key — the same values `universe`'s `SPA_INGEST_KEYRING`
80
80
  * serves to the identity hosts, which are each brand's own insights team token.
81
81
  * Add an org here the day its project exists, never before.
82
+ *
83
+ * A key is only as real as the project it names: recreate the project and this
84
+ * file moves with it, or every beacon answers 403 and reports nowhere.
82
85
  */
83
86
  export const ORG_KEY: Keyring = Object.freeze({
84
- hanzo: 'pk-rM_CdaF2MQckGCrla113SrR1oH4zvqN8xh2I95Z9tY8',
85
- lux: 'pk-gUZp6ZVfhJzSwK-rb4oLbVkpCnMBx5uSCpxf_5yEhQk',
86
- zoo: 'pk-3TKpKnERV9AQSsBUERWkZejC1O1mUxc1jRzsP3MPbs4',
87
+ hanzo: 'pk-bCcNBDOLwdIovV349jVGH1ShEOq7rAcaKLsX_bLnRMo',
88
+ lux: 'pk-GxCDhpEn89qajMyuMdMs6mcE4UVQBkv8F2swEKHC67Y',
89
+ zoo: 'pk-bS-xKESMhuhK_wfSmpRf1H_IH8A3x6Y5NV70TD7ycWE',
87
90
  })
88
91
 
89
92
  /** `pk-` is publishable; `sk-` is not, and there is no third thing. Checked at the
package/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 hanzo
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.