@escape-game-over/atlas 0.1.107 → 0.1.108

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": "@escape-game-over/atlas",
3
- "version": "0.1.107",
3
+ "version": "0.1.108",
4
4
  "type": "module",
5
5
  "description": "Typed, data-driven machinery for static multi-locale, multi-deployment Astro sites.",
6
6
  "private": false,
@@ -47,6 +47,19 @@ export interface UmamiTracker {
47
47
  * `false` turns it off, and writes the word rather than omitting it.
48
48
  */
49
49
  readonly excludeHash?: boolean;
50
+ /**
51
+ * Record uncaught exceptions and unhandled promise rejections, grouped into
52
+ * issues in Umami's dashboard. **Defaults to on here.**
53
+ *
54
+ * Umami's own default is off — the tracker reads `config('errors') ===
55
+ * 'true'`. Overridden for the reason `performance` is: a script error on a
56
+ * visitor's phone happens nowhere else, and this is the only place it can
57
+ * be seen. Needs Umami 3.5 on the server; an older one serves a tracker that
58
+ * ignores the attribute, so it is harmless before the upgrade.
59
+ *
60
+ * `false` turns it off, and writes the word rather than omitting it.
61
+ */
62
+ readonly errors?: boolean;
50
63
  /** Honour the browser's Do Not Track setting. */
51
64
  readonly doNotTrack?: boolean;
52
65
  /**
@@ -276,7 +289,7 @@ export function umamiScripts(
276
289
  src: at(umami.tracker?.path ?? "/script.js"),
277
290
  attrs: stated({
278
291
  ...common,
279
- // The two defaults lib overrides — see `UmamiTracker`. The
292
+ // The three defaults lib overrides — see `UmamiTracker`. The
280
293
  // others are left to Umami: `auto-track` and `auto-pageview`
281
294
  // are already on unless the word `false` appears, so stating
282
295
  // them would be bytes that change nothing, and whether to
@@ -284,6 +297,7 @@ export function umamiScripts(
284
297
  // this business rather than about this kind of site.
285
298
  "data-performance": flag(umami.tracker?.performance ?? true),
286
299
  "data-exclude-hash": flag(umami.tracker?.excludeHash ?? true),
300
+ "data-errors": flag(umami.tracker?.errors ?? true),
287
301
  "data-exclude-search": flag(umami.tracker?.excludeSearch),
288
302
  "data-do-not-track": flag(umami.tracker?.doNotTrack),
289
303
  "data-auto-track": flag(umami.tracker?.autoTrack),