From 3fd562c57d2afb9d9d8eb071ee15c8cf25a3cee6 Mon Sep 17 00:00:00 2001
From: joe <133191653+excom-dev@users.noreply.github.com>
Date: Wed, 23 Sep 2026 06:55:46 -0500
Subject: [PATCH 1/6] fix view dist
---
.../heft-rig/main_2026-09-23-dist-files.json | 11 +++++++++++
.../views/install-section/install-section.html | 2 +-
.../heft-rig/scripts/build-package-metas.mjs | 11 +++++++++--
.../support/tests/build-package-metas.test.ts | 16 ++++++++++++++++
4 files changed, 37 insertions(+), 3 deletions(-)
create mode 100644 common/changes/@excom/heft-rig/main_2026-09-23-dist-files.json
diff --git a/common/changes/@excom/heft-rig/main_2026-09-23-dist-files.json b/common/changes/@excom/heft-rig/main_2026-09-23-dist-files.json
new file mode 100644
index 0000000..f7eced2
--- /dev/null
+++ b/common/changes/@excom/heft-rig/main_2026-09-23-dist-files.json
@@ -0,0 +1,11 @@
+{
+ "changes": [
+ {
+ "packageName": "@excom/heft-rig",
+ "comment": "Package metas read `exports` from the built `dist/exports.generated.json` when package.json has none (it is only applied at publish time), so the docs-site \"View Dist Files\" dialog is no longer empty",
+ "type": "patch"
+ }
+ ],
+ "packageName": "@excom/heft-rig",
+ "email": "133191653+excom-dev@users.noreply.github.com"
+}
diff --git a/packages/docs-site/public/views/install-section/install-section.html b/packages/docs-site/public/views/install-section/install-section.html
index 97a079b..a906310 100644
--- a/packages/docs-site/public/views/install-section/install-section.html
+++ b/packages/docs-site/public/views/install-section/install-section.html
@@ -60,7 +60,7 @@
All exported dist files:
- + \ No newline at end of file + diff --git a/packages/dom-observer/support/tests/__snapshots__/simple.view.test.ts.snap b/packages/dom-observer/support/tests/__snapshots__/simple.view.test.ts.snap index f65c3ae..2f8ad22 100644 --- a/packages/dom-observer/support/tests/__snapshots__/simple.view.test.ts.snap +++ b/packages/dom-observer/support/tests/__snapshots__/simple.view.test.ts.snap @@ -1,8 +1,8 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`simple view > logs attribute mutations on the details element > complexity 1`] = ` +exports[`simple view > reports each mutation of the details element > complexity 1`] = ` { - "attributeRuns": 0, + "attributeRuns": 1, "closest": 0, "getVar": 0, "importNode": 0, @@ -11,10 +11,10 @@ exports[`simple view > logs attribute mutations on the details element > complex "parentElement": 0, "quarkRuns": 0, "queryScopeCost": 0, - "querySelectorAll": 0, + "querySelectorAll": 1, "removeAttribute": 0, "ruleRuns": 0, - "schedulePaint": 0, + "schedulePaint": 1, "setAttribute": 1, "setVar": 0, "textContent": 1, diff --git a/packages/dom-observer/support/tests/simple.view.test.ts b/packages/dom-observer/support/tests/simple.view.test.ts index eef0295..f38c3c7 100644 --- a/packages/dom-observer/support/tests/simple.view.test.ts +++ b/packages/dom-observer/support/tests/simple.view.test.ts @@ -2,7 +2,6 @@ import "@excom/quark-sheet"; import "../../index"; import { afterEach, - beforeEach, describe, expect, it, @@ -10,31 +9,29 @@ import { import { expectComplexity, flush, - installDemoModules, measureComplexity, mountView, readDemo, - restoreDemoModules, } from "@excom/quark/support/tests/view-helpers"; describe("simple view", () => { - beforeEach(() => installDemoModules()); afterEach(() => { document.body.innerHTML = ""; - restoreDemoModules(); }); - it("logs attribute mutations on the details element", async () => { + it("reports each mutation of the details element", async () => { const { root, quark } = await mountView(readDemo(import.meta.url, "simple")); const details = root.querySelector("details")!; + const output = root.querySelector("output")!; const meter = measureComplexity(quark!); details.setAttribute("open", ""); await flush(); const budget = meter.take(); meter.stop(); - expect(root.querySelector("output")?.textContent).toMatch( - /HTMLDetailsElement|MutationRecord/, - ); + expect(output.textContent).toBe("1 mutation(s), open: true"); + details.removeAttribute("open"); + await flush(); + expect(output.textContent).toBe("1 mutation(s), open: false"); expectComplexity(budget); }); }); diff --git a/packages/event-handler/support/demos/debounce.html b/packages/event-handler/support/demos/debounce.html index 3bd67f3..25b2256 100644 --- a/packages/event-handler/support/demos/debounce.html +++ b/packages/event-handler/support/demos/debounce.html @@ -1,21 +1,21 @@No reading yet — click above. Requires a device sensor (desktop browsers usually have none).
-Seeded at:
+key-name is re-set; a write from another tab is picked up
live.
New checkout
+Gift cards
+