@hanzo/event 0.3.31 → 0.3.33

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/dist/react.mjs CHANGED
@@ -307,7 +307,7 @@ function hzAnonId() {
307
307
  }
308
308
 
309
309
  // src/version.ts
310
- var VERSION = "0.3.31";
310
+ var VERSION = "0.3.33";
311
311
 
312
312
  // src/sentry.ts
313
313
  var MAX_FRAMES = 50;
@@ -1114,26 +1114,26 @@ var ErrorBoundary = class extends Component {
1114
1114
  }
1115
1115
  };
1116
1116
  ErrorBoundary.contextType = Ctx;
1117
- /*! anon.js — THE anonymous-identity chain. ONE implementation, three distributions.
1117
+ /*! anon.js — THE anonymous-identity chain. ONE implementation, two distributions.
1118
1118
  *
1119
1119
  * One browser is ONE person on every Hanzo surface, whichever client a page
1120
- * happens to have loaded. There were three implementations writing TWO keys —
1121
- * `hz_anon_id` (the npm client, the hosted tag) and `hz_id` (hz.js) — so the same
1122
- * visitor was several people depending on which snippet the surface shipped.
1120
+ * happens to have loaded. There were once three implementations writing TWO keys —
1121
+ * `hz_anon_id` and `hz_id` — so the same visitor was several people depending on
1122
+ * which snippet the surface shipped.
1123
1123
  *
1124
- * The three call sites:
1124
+ * The two call sites:
1125
1125
  * 1. src/storage.ts — the bundled npm client; IMPORTS this file.
1126
- * 2. hz.js — the no-build script tag; INLINES the marked region.
1127
- * 3. hanzoai/cloud apps/analytics/tag.js — the tag the door hosts at
1126
+ * 2. hanzoai/cloud apps/analytics/tag.js — the tag the door hosts at
1128
1127
  * /v1/event.js; vendors this file and its tag.go serves the marked region
1129
1128
  * with the tag as one asset, so the door holds no second copy either.
1130
1129
  *
1131
- * (2) and (3) have no bundler and cannot import anything, which is why the chain
1132
- * lives in a file that is plain ES5 rather than in a .ts: the region between the
1133
- * BEGIN and END markers is COPIED VERBATIM, and src/anon.test.ts fails if hz.js's
1134
- * copy is so much as a byte different. Keep the region ES5, dependency-free,
1135
- * `hz`-prefixed (it is spliced into other people's scopes) and unformatted — a
1136
- * reformat of one copy is a diff against the other.
1130
+ * (2) has no bundler and cannot import anything, which is why the chain lives in a
1131
+ * file that is plain ES5 rather than in a .ts: the region between the BEGIN and END
1132
+ * markers is COPIED VERBATIM. Keep it ES5, dependency-free, `hz`-prefixed (it is
1133
+ * spliced into other people's scopes) and unformatted a reformat here is a diff
1134
+ * against the vendored copy. After editing, resync the door:
1135
+ *
1136
+ * curl -fsSL https://unpkg.com/@hanzo/event/src/anon.js -o apps/analytics/anon.js
1137
1137
  */
1138
1138
 
1139
1139
  export { AnalyticsProvider, ErrorBoundary, useAnalytics, usePageview };