All entries

July 3, 2026

ccda5568eda7ae546931b2ecc8507b6636226d1154267de927a09b36d52fba28
Previous: cd7d0f3d Bundle: 90.4 KB

Telemetry now reports element attributes and Polaris version; cleanup listener switched from beforeunload to pagehide.

Highlights

  • The telemetry module now includes the custom element's attribute names in its ui-component telemetry payload.
  • Telemetry increment calls now attach the Polaris design system version when globalThis.polaris.version is available.
  • The internal utilities module now cleans up navigation listeners on the pagehide event instead of beforeunload.
3 files changed +14 -9

Infrastructure Changes

REPORT.md
+3 -3
@@ -1,6 +1,6 @@
# Shopify App Bridge — Unminification Report

Generated: 2026-06-17T09:31:45.467Z
Generated: 2026-07-03T09:00:15.331Z

## Files

@@ -37,7 +37,7 @@ Generated: 2026-06-17T09:31:45.467Z
| shortcut.js | 461B | 24 | Module |
| sidekick.js | 4.7KB | 154 | Module |
| support.js | 508B | 21 | Module |
| telemetry.js | 813B | 30 | Module |
| telemetry.js | 935B | 35 | Module |
| title-bar.js | 7.6KB | 290 | Module |
| toast.js | 1.6KB | 71 | Module |
| tools.js | 1.6KB | 57 | Module |
@@ -46,7 +46,7 @@ Generated: 2026-06-17T09:31:45.467Z
| user.js | 940B | 37 | Module |
| visibility.js | 973B | 34 | Module |
| web-vitals.js | 1.8KB | 64 | Module |
| **Total** | **172.2KB** | **6541** | |
| **Total** | **172.4KB** | **6546** | |

## Pipeline Stages


modules/_utilities.js
+1 -1
@@ -969,7 +969,7 @@ const zt = ({ internalApiPromise, saveBarManager, rpcEventTarget }) => {
  abortController.signal.addEventListener('abort', () => {
    rpcEventTarget.removeEventListener('navigate', r);
  });
  addEventListener('beforeunload', () => abortController.abort());
  addEventListener('pagehide', () => abortController.abort());
  addEventListener(
    'click',
    (t) => {

Module Changes

modules/telemetry.js
+10 -5
@@ -18,12 +18,17 @@ const telemetryModule = async ({ internalApiPromise }) => {
      })(e);
      const r = JSON.stringify(o);
      const a = await internalApiPromise;
      if (a && a.telemetry && typeof a.telemetry.increment == 'function') {
      if (!a || !a.telemetry || typeof a.telemetry.increment != 'function') return;
        a.telemetry.increment('ui-component', {
      const s = globalThis.polaris?.version;
          component: i,
      a.telemetry.increment('ui-component', {
        });
        attributes: r,
      }
        ...(s
          ? {
              version: s,
            }
          : {}),
      });
    });
  }
};