@ai-ecoverse/slicc-shared-web 1.24.0 → 1.24.1

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/README.md CHANGED
@@ -157,7 +157,7 @@ SLICC_UNIT_ALL=1 git commit
157
157
 
158
158
  CPU profiling is off by default. V8's sampler interrupts each page and worker thread every 100 µs with a signal, and the renderer SIGSEGVs in slicc-bios#114 all fault inside a signal handler walking the interrupted thread's frames, which points at it. Turn it on with `profile: true` or `SLICC_PROFILE=1` to get one CPU profile per target and snapshot in the test's artifact directory, and the 15 frames with the most self time in the repo's own scripts in `hotspots.md`. Without it, `hotspots.md` says that profiling is off.
159
159
 
160
- `monocart-coverage-reports` is a peer dependency; pin it in the repo's `devDependencies`. The browser is the first of these:
160
+ `monocart-coverage-reports` is a peer dependency (2.13 or later, 3.x included); pin it in the repo's `devDependencies`. The harness works with both majors: 3.x's `/util` entry has only a named `Util` export and 2.x's a default one, and CI runs the recorder and the unit-cover hook on 2.13.2 and the latest 3.x. The browser is the first of these:
161
161
  - `launch({ executable })`;
162
162
  - `$CHROME_PATH`;
163
163
  - `findBrowser()` from `@ai-ecoverse/slicc-cdp`. It finds a Chrome for Testing that `npx slicc-cdp install-browser --version <x.y.z.w>` installed, or a system Chrome;
@@ -2,11 +2,13 @@ import { mkdir, readFile, writeFile } from 'node:fs/promises';
2
2
  import { basename, relative } from 'node:path';
3
3
  import { cwd } from 'node:process';
4
4
  import { pathToFileURL } from 'node:url';
5
- import Util from 'monocart-coverage-reports/util';
5
+ import * as mcrUtil from 'monocart-coverage-reports/util';
6
6
  import { CRASHED } from './cdp.mjs';
7
7
  import { trace } from './trace.mjs';
8
8
  import { bounded, ignore, raw, samples, sleep, TIMED_OUT } from './util.mjs';
9
9
 
10
+ const Util = mcrUtil.Util ?? mcrUtil.default;
11
+
10
12
  const profiled = new Set(['page', 'worker', 'service_worker', 'shared_worker']);
11
13
  const sampling = [['Profiler.setSamplingInterval', { interval: 100 }], ['Profiler.start']];
12
14
  const unload = "addEventListener('beforeunload', () => { debugger; })";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-shared-web",
3
- "version": "1.24.0",
3
+ "version": "1.24.1",
4
4
  "description": "Shared Renovate, Biome, TypeScript, lefthook and GitHub Actions configuration, plus the CDP integration-test harness, for SLICC's web repos",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@ai-ecoverse/slicc-cdp": "*",
74
- "monocart-coverage-reports": ">=2.13.0",
74
+ "monocart-coverage-reports": ">=2.13.0 <4",
75
75
  "playwright-core": ">=1.50.0"
76
76
  },
77
77
  "peerDependenciesMeta": {