async-browser-context 0.3.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change history
2
2
 
3
+ ## 0.3.1
4
+
5
+ This version fixes a bug, so it is a patch version.
6
+
7
+ - The event patch also reads the interfaces `HTMLCanvasElement` and `HTMLInstallElement`. In Chromium 158, `HTMLCanvasElement` has the properties `onpaint` and `onelementgeometryupdate`, and `HTMLInstallElement` has the property `onvalidationstatuschange`. Before, the patch did not change these properties, so their handlers did not get the context of the code that set them.
8
+
3
9
  ## 0.3.0
4
10
 
5
11
  This version changes some behaviors, so it is a minor version. The first section gives the changes that can affect existing code.
@@ -6,7 +6,7 @@
6
6
  * the patches took 16 to 22 ms when the page loaded. With this list, they
7
7
  * take 7 to 8 ms (the medians in CHANGELOG.md, version 0.2.0).
8
8
  *
9
- * The list is the union of Chromium 156, Firefox 157 and WebKit 27.2 in a
9
+ * The list is the union of Chromium 158, Firefox 157 and WebKit 27.2 in a
10
10
  * secure context. It also has some interfaces of Safari, of mobile browsers
11
11
  * and of workers. The test "patches each on... property of each interface" in
12
12
  * `test/browser/c13-events.test.ts` reads all globals in each browser of the
@@ -1 +1 @@
1
- {"version":3,"file":"handler-interfaces.d.ts","sourceRoot":"","sources":["../../src/patches/handler-interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,EAAG,SAAS,MAAM,EA0BhD,CAAC"}
1
+ {"version":3,"file":"handler-interfaces.d.ts","sourceRoot":"","sources":["../../src/patches/handler-interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,EAAG,SAAS,MAAM,EA2BhD,CAAC"}
@@ -6,7 +6,7 @@
6
6
  * the patches took 16 to 22 ms when the page loaded. With this list, they
7
7
  * take 7 to 8 ms (the medians in CHANGELOG.md, version 0.2.0).
8
8
  *
9
- * The list is the union of Chromium 156, Firefox 157 and WebKit 27.2 in a
9
+ * The list is the union of Chromium 158, Firefox 157 and WebKit 27.2 in a
10
10
  * secure context. It also has some interfaces of Safari, of mobile browsers
11
11
  * and of workers. The test "patches each on... property of each interface" in
12
12
  * `test/browser/c13-events.test.ts` reads all globals in each browser of the
@@ -20,8 +20,9 @@ export const HANDLER_INTERFACES = [
20
20
  "BluetoothRemoteGATTService", "BroadcastChannel", "CaptureController", "Clipboard", "CloseWatcher", "CookieStore",
21
21
  "CreateMonitor", "DedicatedWorkerGlobalScope", "DevicePosture", "Document", "DocumentPictureInPicture",
22
22
  "EditContext", "Element", "EventSource", "FileReader", "FontFaceSet", "GPUDevice", "HID", "HIDDevice",
23
- "HTMLBodyElement", "HTMLCameraElement", "HTMLElement", "HTMLFrameSetElement", "HTMLGeolocationElement",
24
- "HTMLMediaElement", "HTMLMicrophoneElement", "HTMLUserMediaElement", "HTMLVideoElement", "IDBDatabase",
23
+ "HTMLBodyElement", "HTMLCameraElement", "HTMLCanvasElement", "HTMLElement", "HTMLFrameSetElement",
24
+ "HTMLGeolocationElement", "HTMLInstallElement", "HTMLMediaElement", "HTMLMicrophoneElement", "HTMLUserMediaElement",
25
+ "HTMLVideoElement", "IDBDatabase",
25
26
  "IDBOpenDBRequest", "IDBRequest", "IDBTransaction", "IdleDetector", "LanguageModel", "ManagedMediaSource",
26
27
  "ManagedSourceBuffer", "MathMLElement", "MediaDevices", "MediaKeySession", "MediaQueryList", "MediaRecorder",
27
28
  "MediaSource", "MediaStream", "MediaStreamTrack", "MessagePort", "MIDIAccess", "MIDIInput", "MIDIPort",
@@ -1 +1 @@
1
- {"version":3,"file":"handler-interfaces.js","sourceRoot":"","sources":["../../src/patches/handler-interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAuB;IAClD,aAAa,EAAE,WAAW,EAAE,iBAAiB,E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uBAAuB,EAAE,QAAQ,EAAE,mBAAmB;IACxG,gBAAgB,EAAE,2BAA2B,EAAE,aAAa,EAAE,iBAAiB,EAAE,iBAAiB;IAClG,cAAc,EAAE,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAE,UAAU;CAC7E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "async-browser-context",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "AsyncLocalStorage and the TC39 AsyncContext API (Variable, Snapshot) for browsers. The context stays through await, promises, timers, events and generators. A Babel preset and a Vite plugin transform async functions. On Node.js, the package uses the native AsyncLocalStorage.",
5
5
  "license": "MIT",
6
6
  "author": "Mark Russell",
@@ -145,6 +145,7 @@
145
145
  }
146
146
  },
147
147
  "devDependencies": {
148
+ "@mark1russell7/rigor-generators": "^0.1.8",
148
149
  "@opentelemetry/api": "^1.9.1",
149
150
  "@stryker-mutator/core": "^10.0.0",
150
151
  "@swc/core": "^1.16.18",
@@ -176,6 +177,8 @@
176
177
  "site:dev": "pnpm --filter ./site dev",
177
178
  "site:build": "pnpm --filter ./site build",
178
179
  "site:data": "tsx scripts/site-data.ts",
180
+ "site:stamps": "tsx scripts/data-stamps.ts",
181
+ "mutation:run": "tsx scripts/mutation-run.ts",
179
182
  "readme:media": "tsx scripts/readme-media.ts",
180
183
  "test:bundlers": "pnpm build && tsx test/bundlers/run.ts",
181
184
  "bench:size": "tsx bench/size.ts",
@@ -6,7 +6,7 @@
6
6
  * the patches took 16 to 22 ms when the page loaded. With this list, they
7
7
  * take 7 to 8 ms (the medians in CHANGELOG.md, version 0.2.0).
8
8
  *
9
- * The list is the union of Chromium 156, Firefox 157 and WebKit 27.2 in a
9
+ * The list is the union of Chromium 158, Firefox 157 and WebKit 27.2 in a
10
10
  * secure context. It also has some interfaces of Safari, of mobile browsers
11
11
  * and of workers. The test "patches each on... property of each interface" in
12
12
  * `test/browser/c13-events.test.ts` reads all globals in each browser of the
@@ -20,8 +20,9 @@ export const HANDLER_INTERFACES : readonly string[] = [
20
20
  "BluetoothRemoteGATTService", "BroadcastChannel", "CaptureController", "Clipboard", "CloseWatcher", "CookieStore",
21
21
  "CreateMonitor", "DedicatedWorkerGlobalScope", "DevicePosture", "Document", "DocumentPictureInPicture",
22
22
  "EditContext", "Element", "EventSource", "FileReader", "FontFaceSet", "GPUDevice", "HID", "HIDDevice",
23
- "HTMLBodyElement", "HTMLCameraElement", "HTMLElement", "HTMLFrameSetElement", "HTMLGeolocationElement",
24
- "HTMLMediaElement", "HTMLMicrophoneElement", "HTMLUserMediaElement", "HTMLVideoElement", "IDBDatabase",
23
+ "HTMLBodyElement", "HTMLCameraElement", "HTMLCanvasElement", "HTMLElement", "HTMLFrameSetElement",
24
+ "HTMLGeolocationElement", "HTMLInstallElement", "HTMLMediaElement", "HTMLMicrophoneElement", "HTMLUserMediaElement",
25
+ "HTMLVideoElement", "IDBDatabase",
25
26
  "IDBOpenDBRequest", "IDBRequest", "IDBTransaction", "IdleDetector", "LanguageModel", "ManagedMediaSource",
26
27
  "ManagedSourceBuffer", "MathMLElement", "MediaDevices", "MediaKeySession", "MediaQueryList", "MediaRecorder",
27
28
  "MediaSource", "MediaStream", "MediaStreamTrack", "MessagePort", "MIDIAccess", "MIDIInput", "MIDIPort",