turbo-surf 0.8.2 → 0.8.4

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.
Files changed (159) hide show
  1. package/CHANGELOG.md +532 -0
  2. package/README.md +123 -152
  3. package/package.json +15 -11
  4. package/rust/README.md +72 -14
  5. package/rust/crates/turbo-surf-napi/README.md +32 -8
  6. package/rust/crates/turbo-surf-napi/index.d.ts +184 -7
  7. package/rust/crates/turbo-surf-napi/package.json +1 -1
  8. package/rust/playwright-shim/LIMITATIONS.md +211 -90
  9. package/rust/playwright-shim/action-commit-load.test.mjs +128 -0
  10. package/rust/playwright-shim/action-navigation-completion.test.mjs +469 -0
  11. package/rust/playwright-shim/actor-hub.mjs +423 -0
  12. package/rust/playwright-shim/actor-hub.test.mjs +978 -0
  13. package/rust/playwright-shim/actor-protocol-coverage.test.mjs +250 -0
  14. package/rust/playwright-shim/actor-read-queue.test.mjs +99 -0
  15. package/rust/playwright-shim/actor-runtime.test.mjs +54 -0
  16. package/rust/playwright-shim/animation-policy.mjs +6 -0
  17. package/rust/playwright-shim/animation-policy.test.mjs +50 -0
  18. package/rust/playwright-shim/artifact-options.mjs +17 -0
  19. package/rust/playwright-shim/assertion-retry-diagnostics.test.mjs +83 -0
  20. package/rust/playwright-shim/attempt-process.mjs +190 -0
  21. package/rust/playwright-shim/attempt-test-stub.mjs +11 -0
  22. package/rust/playwright-shim/attempt-worker.mjs +37 -0
  23. package/rust/playwright-shim/bin/turbo-surf-test.mjs +70 -9
  24. package/rust/playwright-shim/binding-drain.mjs +31 -0
  25. package/rust/playwright-shim/binding-drain.test.mjs +62 -0
  26. package/rust/playwright-shim/cli-entry.test.mjs +154 -0
  27. package/rust/playwright-shim/commit-navigation.test.mjs +177 -0
  28. package/rust/playwright-shim/concurrent-url-waits.test.mjs +71 -0
  29. package/rust/playwright-shim/config.mjs +183 -15
  30. package/rust/playwright-shim/config.test.mjs +527 -35
  31. package/rust/playwright-shim/console-events.test.mjs +101 -0
  32. package/rust/playwright-shim/console-message.mjs +28 -0
  33. package/rust/playwright-shim/context-cookie.test.mjs +63 -0
  34. package/rust/playwright-shim/context-emulation-forwarding.mjs +8 -0
  35. package/rust/playwright-shim/context-events.test.mjs +106 -0
  36. package/rust/playwright-shim/dialog.mjs +32 -0
  37. package/rust/playwright-shim/dialog.test.mjs +65 -0
  38. package/rust/playwright-shim/dom-traversal.test.mjs +114 -0
  39. package/rust/playwright-shim/e2e/describe-only.spec.mjs +19 -0
  40. package/rust/playwright-shim/e2e/dialogs.spec.mjs +168 -0
  41. package/rust/playwright-shim/e2e/fixture-dependencies.spec.mjs +20 -0
  42. package/rust/playwright-shim/e2e/fixture-info.spec.mjs +19 -0
  43. package/rust/playwright-shim/e2e/fixture-lifecycle.spec.mjs +28 -0
  44. package/rust/playwright-shim/e2e/fixture-scopes.spec.mjs +14 -0
  45. package/rust/playwright-shim/e2e/fixture-use.spec.mjs +18 -0
  46. package/rust/playwright-shim/e2e/private-infrastructure.spec.mjs +442 -0
  47. package/rust/playwright-shim/e2e/step-controls.spec.mjs +33 -0
  48. package/rust/playwright-shim/e2e/test-only.spec.mjs +9 -0
  49. package/rust/playwright-shim/e2e/tuple-fixtures.spec.mjs +25 -0
  50. package/rust/playwright-shim/e2e/worker-hooks.spec.mjs +16 -0
  51. package/rust/playwright-shim/equality.mjs +80 -0
  52. package/rust/playwright-shim/eval-input.test.mjs +304 -0
  53. package/rust/playwright-shim/evaluate-metadata-reentrancy.test.mjs +41 -0
  54. package/rust/playwright-shim/evaluate-sync.test.mjs +111 -0
  55. package/rust/playwright-shim/evaluation-codec.mjs +81 -0
  56. package/rust/playwright-shim/event-waiter.mjs +42 -0
  57. package/rust/playwright-shim/event-waiter.test.mjs +45 -0
  58. package/rust/playwright-shim/fixtures/popup-app.mjs +83 -0
  59. package/rust/playwright-shim/fixtures.mjs +150 -0
  60. package/rust/playwright-shim/geolocation-options.mjs +55 -0
  61. package/rust/playwright-shim/geolocation-options.test.mjs +44 -0
  62. package/rust/playwright-shim/geolocation.test.mjs +116 -0
  63. package/rust/playwright-shim/handle-lifecycle-branches.test.mjs +74 -0
  64. package/rust/playwright-shim/handles-behavior-coverage.test.mjs +280 -0
  65. package/rust/playwright-shim/handles.test.mjs +244 -0
  66. package/rust/playwright-shim/history-group-fixture.mjs +90 -0
  67. package/rust/playwright-shim/history-group-policy.test.mjs +286 -0
  68. package/rust/playwright-shim/history-groups.test.mjs +490 -0
  69. package/rust/playwright-shim/history-metadata-native.test.mjs +70 -0
  70. package/rust/playwright-shim/history-navigation.mjs +52 -0
  71. package/rust/playwright-shim/history-navigation.test.mjs +219 -0
  72. package/rust/playwright-shim/history-snapshot.mjs +158 -0
  73. package/rust/playwright-shim/history-snapshot.test.mjs +254 -0
  74. package/rust/playwright-shim/host-route-isolation.test.mjs +90 -0
  75. package/rust/playwright-shim/host-routes.mjs +143 -0
  76. package/rust/playwright-shim/host-routes.test.mjs +668 -0
  77. package/rust/playwright-shim/idle-callback.test.mjs +75 -0
  78. package/rust/playwright-shim/iframe-load.test.mjs +100 -0
  79. package/rust/playwright-shim/image-promotion.test.mjs +184 -0
  80. package/rust/playwright-shim/implicit-submit-contract.test.mjs +89 -0
  81. package/rust/playwright-shim/index.mjs +5325 -1460
  82. package/rust/playwright-shim/initial-hydration-timeout.test.mjs +178 -0
  83. package/rust/playwright-shim/inner-html-contract.test.mjs +27 -0
  84. package/rust/playwright-shim/input-hardware.test.mjs +439 -5
  85. package/rust/playwright-shim/intercepted-owner.test.mjs +114 -0
  86. package/rust/playwright-shim/js-handles.mjs +267 -0
  87. package/rust/playwright-shim/keyboard-bindings.test.mjs +187 -0
  88. package/rust/playwright-shim/keyboard-defaults.mjs +136 -0
  89. package/rust/playwright-shim/keyboard-keypress.test.mjs +107 -0
  90. package/rust/playwright-shim/keyboard-timers.test.mjs +46 -0
  91. package/rust/playwright-shim/keyboard.mjs +136 -0
  92. package/rust/playwright-shim/launcher-contract.test.mjs +323 -0
  93. package/rust/playwright-shim/lifecycle.test.mjs +89 -0
  94. package/rust/playwright-shim/loader-compatibility.test.mjs +237 -0
  95. package/rust/playwright-shim/loader-hooks.mjs +48 -0
  96. package/rust/playwright-shim/loader.mjs +1 -1
  97. package/rust/playwright-shim/locator-binding-reads.test.mjs +189 -0
  98. package/rust/playwright-shim/locator-page.test.mjs +90 -0
  99. package/rust/playwright-shim/module-cancellation.test.mjs +322 -0
  100. package/rust/playwright-shim/module-page-realms.test.mjs +246 -0
  101. package/rust/playwright-shim/native-load-state.mjs +23 -0
  102. package/rust/playwright-shim/native-load-state.test.mjs +43 -0
  103. package/rust/playwright-shim/native-platform-value-owners.test.mjs +94 -0
  104. package/rust/playwright-shim/navigation-deadline.test.mjs +409 -0
  105. package/rust/playwright-shim/navigation.test.mjs +412 -0
  106. package/rust/playwright-shim/network-wait-timeout.test.mjs +123 -0
  107. package/rust/playwright-shim/node-preloads.mjs +110 -0
  108. package/rust/playwright-shim/node-preloads.test.mjs +165 -0
  109. package/rust/playwright-shim/offline-context.test.mjs +253 -0
  110. package/rust/playwright-shim/opening-target-close.test.mjs +584 -0
  111. package/rust/playwright-shim/page-dispatch-event-contract.test.mjs +44 -0
  112. package/rust/playwright-shim/popup-facade.test.mjs +161 -0
  113. package/rust/playwright-shim/popup-geolocation.test.mjs +172 -0
  114. package/rust/playwright-shim/popup-networkidle-progress.test.mjs +60 -0
  115. package/rust/playwright-shim/popup-networkidle.test.mjs +24 -0
  116. package/rust/playwright-shim/popup-transport.test.mjs +419 -0
  117. package/rust/playwright-shim/press-signal-scope.test.mjs +285 -0
  118. package/rust/playwright-shim/programmatic-form-navigation.test.mjs +110 -0
  119. package/rust/playwright-shim/public-frame-page-contracts.test.mjs +166 -0
  120. package/rust/playwright-shim/public-index-branch-contracts.test.mjs +101 -0
  121. package/rust/playwright-shim/public-page-validation-contracts.test.mjs +64 -0
  122. package/rust/playwright-shim/public-value-branch-contracts.test.mjs +48 -0
  123. package/rust/playwright-shim/public-value-expect-contracts.test.mjs +125 -0
  124. package/rust/playwright-shim/redirect-responses.test.mjs +91 -0
  125. package/rust/playwright-shim/register.mjs +2 -2
  126. package/rust/playwright-shim/request-events.test.mjs +58 -0
  127. package/rust/playwright-shim/request-navigation.test.mjs +137 -0
  128. package/rust/playwright-shim/response-lifecycle.test.mjs +367 -0
  129. package/rust/playwright-shim/route-network-events.test.mjs +221 -0
  130. package/rust/playwright-shim/route-predicate.test.mjs +161 -0
  131. package/rust/playwright-shim/routing-regressions.test.mjs +195 -0
  132. package/rust/playwright-shim/routing-xhr-body.test.mjs +23 -0
  133. package/rust/playwright-shim/runner-probes.mjs +22 -0
  134. package/rust/playwright-shim/runtime-locator.test.mjs +95 -0
  135. package/rust/playwright-shim/screenshot-assets.test.mjs +75 -0
  136. package/rust/playwright-shim/screenshot-document-assets.test.mjs +250 -0
  137. package/rust/playwright-shim/screenshot-options.test.mjs +247 -0
  138. package/rust/playwright-shim/screenshot-resources.mjs +33 -0
  139. package/rust/playwright-shim/screenshot-resources.test.mjs +192 -0
  140. package/rust/playwright-shim/screenshot-scene.mjs +53 -0
  141. package/rust/playwright-shim/screenshot-scene.test.mjs +150 -0
  142. package/rust/playwright-shim/screenshot-test-utils.mjs +34 -0
  143. package/rust/playwright-shim/selector-keyboard-branches.test.mjs +131 -0
  144. package/rust/playwright-shim/selector-keyboard-contracts.test.mjs +257 -0
  145. package/rust/playwright-shim/set-content.test.mjs +488 -0
  146. package/rust/playwright-shim/shadow-locators.test.mjs +278 -0
  147. package/rust/playwright-shim/skip-isolation.test.mjs +46 -50
  148. package/rust/playwright-shim/small-behavior.test.mjs +151 -0
  149. package/rust/playwright-shim/storage-state.mjs +30 -0
  150. package/rust/playwright-shim/storage-state.test.mjs +76 -0
  151. package/rust/playwright-shim/style-resources.test.mjs +91 -0
  152. package/rust/playwright-shim/surface.test.mjs +3327 -24
  153. package/rust/playwright-shim/target-network-idle.mjs +40 -0
  154. package/rust/playwright-shim/target-network-idle.test.mjs +84 -0
  155. package/rust/playwright-shim/target-network-state.test.mjs +135 -0
  156. package/rust/playwright-shim/test.mjs +43 -7
  157. package/rust/playwright-shim/timeouts-retries.test.mjs +154 -0
  158. package/rust/playwright-shim/visible-selector.mjs +229 -0
  159. package/rust/playwright-shim/xhr-body-fixture.mjs +155 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,537 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.8.4] - 2026-11-19
4
+
5
+ - Refresh actor readiness after native opening completes, reject navigation closed during final metadata refresh, and honor network-idle waits on the initial actor navigation.
6
+ - Check realtime timer-wait interruption against the requested completion marker rather than treating unrelated background-task completion as that timer.
7
+
8
+ - Validate background watchdog recovery against its actual completion marker across competing tasks, retaining the original execution budget and total recovery deadline.
9
+
10
+ - Keep realtime background work pending when a ready timer deadline only schedules a repoll, instead of reporting that a callback has already run.
11
+ - Keep healthy page recovery usable after an interrupted timer-owner entry, preserving the actual termination exception and retaining genuine document authority failures.
12
+
13
+ - Retain reached interaction effects when the operation's own watchdog interrupts selected document work, without hiding the same native predicate error when its deadline has not expired.
14
+ - Keep input recovery usable when an execution interruption blocks resource owner entry, while retaining genuine document authority failures and the original cancellation budgets.
15
+
16
+ - Refresh dirty page snapshots after iframe metadata reads and network callbacks, so authored DOM reentrancy cannot leave `page.content()` behind the live document.
17
+
18
+ - Reject navigation as closed when page disposal completes during live-session attachment, preserving successful initialization and unrelated native errors.
19
+ - Make the paused-host collector regression wait for its actual queued timer within the original budget, checking that each collector turn leaves document hydration paused even when older rendering work runs first.
20
+
21
+ - Avoid repeated full timer-queue scans for ordered task bursts, preserving CSP violation capacity, release-before-reentry, timer ordering and execution budgets.
22
+
23
+ - Hand timer-only post-load work to the existing full quiescence phase instead of exhausting initial hydration pumps, while preserving fetch completion, dynamic scripts, animation callbacks and finite animations.
24
+
25
+ - Roll back unpublished frame allocations after interrupted creation, preserving healthy root input, installed frames and peers without admitting incomplete document owners.
26
+
27
+ - Reap owned web-server processes before checking their groups, and bound transient Darwin group-retirement probes by the existing shutdown deadline while preserving descendant termination and permission errors.
28
+
29
+ - Preserve posted-message order against later timers in virtual-time pages by using the running task clock across windows; keep real-time scheduling and existing document authority unchanged.
30
+
31
+ - Preserve ordered nested-frame history notifications after completed page commands, including consecutive changes to the same URL.
32
+
33
+ - Settle interrupted initial-hydration script waiters before returning a retained partial page, so later healthy evaluations remain usable within their original execution budget.
34
+
35
+ - Update native DOM, layout and raster together, including canvas background and quirks layout corrections.
36
+
37
+ - Settle closed navigation waiters after guest checkpoints without waiting for unrelated target work.
38
+
39
+ - Adopt the native layout correction for quirks-mode root and body viewport sizing, preserving explicit viewport geometry without changing standards-mode content boxes.
40
+
41
+ - Return actual child markup from Locator and Frame innerHTML reads, preserving missing-element results and live document ownership.
42
+
43
+ - Deliver Page.dispatchEvent through the existing live Locator dispatch path, preserving event initialization, settlement and missing-target errors.
44
+
45
+ - Retire interrupted child-script work consistently after watchdog cancellation, preserving healthy roots and peers and settling queued waiters.
46
+
47
+ - Keep URL construction and updates independent of a page-replaced URLSearchParams constructor.
48
+
49
+ - Capture URL and URLSearchParams string conversions before authored scripts can replace the global String constructor, while retaining user-defined coercions and mutation errors.
50
+ - Preserve canonical DOMException types and messages for native SecurityError rejections, including cross-origin private frame operations.
51
+
52
+ - Preserve retained stream operations after source-frame retirement, keep retired document tasks and fetches inadmissible, and release the frontend realm after the actual source sink closes.
53
+
54
+ - Complete legacy root async evaluation using native document ownership and actual Promise dependencies, without waiting for unrelated popup work. Preserve borrowed crypto/stream error realms, module source URLs, peer IndexedDB continuations and retired-document collection.
55
+ - Expose native CompressionStream and DecompressionStream through the existing private stream backend, and report empty AES-GCM IVs as owning-realm OperationError values.
56
+
57
+ - Resolve native Location navigation against the trusted live document base, preserve same-document identity for repeated and empty fragments, and retain sandbox navigation checks.
58
+
59
+ - Enforce dynamic-compilation CSP and Trusted Types through the default native V8 callback, preserving direct-eval lexical scope, Function-family identity and bounded violation delivery. Enable the three source-pinned native code-generation controls in the default gate.
60
+
61
+ - Keep supported native Page actors recoverable after driver navigation deadlines while retiring only unfinished owned frame/module work; preserve completed child documents, healthy module caches and surviving peer Pages.
62
+
63
+ - Preserve native document-group history and structured-cloned state across real navigation, replacement and back/forward traversal; authenticate current-document ownership and retire only interrupted, unacknowledged mutations. Navigation API traversal remains limited to its current document group.
64
+ - Complete native click and locator-press navigation at the owning main-document commit, retain accepted background form jobs across interrupted reads, and preserve sibling navigation isolation.
65
+ - Resolve inherited frame form bases through native parent capabilities, keep physical key sequences bound to their original page across document replacement, and capture private frame/font map operations before authored scripts.
66
+ - Hand bounded, owner-scoped static image bytes into the initial guest document without refetching them, and discard retired or reset document seeds.
67
+
68
+ - Preserve authored getter exceptions from native JSON collectors and reject undefined results consistently across root and child targets.
69
+
70
+ - Dispatch native host input in its actual guest document realm, retain the operation owner for cancellation, skip retired realms and use captured cleanup primitives.
71
+
72
+ - Cancel opening root targets without retiring surviving popups, join concurrent closes, and await actual response-body completion before the final actor runtime exits.
73
+
74
+ - Publish classic-script response headers before body completion and report actual canceled script bodies, preserving redirect, integrity and CSP enforcement.
75
+
76
+ - Export live screenshot image-asset reads from the NAPI crate root, keeping the async task reachable in strict all-target builds.
77
+
78
+ - Enumerate `Locator.all()` from the current query count instead of a stale pre-hydration snapshot.
79
+
80
+ - Read locator counts from the current native document after hydration, preserving static execution policy, indexed/scoped queries and nonblocking reads.
81
+
82
+ - Retire screenshot image bytes and retained paint scenes when a native document navigates, including same-URL replacements.
83
+ - Reuse bounded Rust-owned current-document image bodies for native screenshots, including no-store images, without exposing opaque bytes to guest JavaScript or accepting retired image completions.
84
+
85
+ - Strengthen retained-Page commit reload controls with actual document/global
86
+ replacement, stable native ownership and exact client requests; verify commit
87
+ returns before a held script completes and genuine load follows its release.
88
+
89
+ This candidate includes the unshipped v0.8.3 work; there was no v0.8.3 product release.
90
+ The v0.8.4 release requires the published `turbo-dom`, `turbo-dom-browser-env`,
91
+ `turbo-dom-layout`, and `turbo-dom-raster` 0.8.4 distributions and one registry
92
+ `turbo-dom-v8` 150.4.2. Development Git candidate results remain separate from
93
+ validation of that final registry graph. Combined release validation is still in
94
+ progress; the entries below describe changes already integrated into the release
95
+ branch.
96
+
97
+ ### Engine and performance
98
+
99
+ - Register actual guest Page contexts with the native inspector, keeping eval,
100
+ function and child-script inventory visible while retiring replaced contexts.
101
+
102
+ - Execute initial and replacement native Page modules in registered document-owned
103
+ module maps, isolating inline-source authority and cancelling retired module work.
104
+ Consume the published core 0.412.5 and matching extension dependency closure.
105
+
106
+ - Allocate opaque geometry and Web Audio values in their actual frontend realm,
107
+ preserving borrowed constructors, subclass prototypes and guest stream identity
108
+ without exposing infrastructure objects.
109
+
110
+ - Retain native Window hooks when iframe documents change, keeping nested frame
111
+ counts live and sandbox navigation errors consistent with Chromium.
112
+
113
+ - Align navigation regression controls with independent execution permission:
114
+ load and commit permit later on-demand execution, while an explicitly disabled
115
+ policy remains static without client requests.
116
+
117
+ - Preserve explicit driver navigation referrers and authentic request metadata.
118
+ Read root history from the actual native Location, retain prior document
119
+ entries, and keep the active document/history on 204/205 responses.
120
+
121
+ - Refresh legacy Window frame counts until the actual canonical read-only surface
122
+ is registered, preserving iframe adoption, indexed identities and parent links.
123
+
124
+ - Preserve an empty fragment for `location.hash = ""`, keeping child document
125
+ identity and genuine hashchange events consistent with Chromium.
126
+
127
+ - Keep frame locator navigation in its actual child realm and handle fragment
128
+ history through the native Location without navigating the parent Page.
129
+
130
+ - Install the initial root Location before page bootstrap, so guest assign/reload
131
+ uses real native navigation without extra bootstrap network requests.
132
+
133
+ - Align retained-frame validation with Chromium: a stable WindowProxy denies
134
+ cross-origin reads, while the old document and retired code remain isolated.
135
+
136
+ - Restore standalone renderer cross-origin Window messaging, preserving cloned
137
+ payloads, sender realm identity and authenticated nested-frame completion.
138
+
139
+ - Keep Deno service algorithms in a private stable realm while persistent Page
140
+ sessions start in actual native guest Window contexts. Preserve cached-fetch
141
+ and stream completion across document replacement, guest object identity and
142
+ BYOB aliasing/detachment; bind private value conversion to the live frontend
143
+ owner and reject closed guest snapshots instead of reading engine state.
144
+
145
+ - Report asynchronous host-binding collection failures to foreground callers
146
+ without making keyboard input wait for unrelated host callback completion.
147
+
148
+ - Preserve actual Page ownership for intercepted responses, including opening
149
+ roots and children retained after opener closure; reject retired target tokens.
150
+ - Preserve genuine cross-window message clone exceptions instead of replacing
151
+ them with unsupported-operation errors.
152
+ - Recheck canonical frame surfaces during bootstrap to avoid writing read-only
153
+ Window properties after native admission.
154
+ - Service navigation host bindings within the original deadline, publish content
155
+ lifecycle events once, preserve page-close errors and update native dialog
156
+ policy only when dialog listeners change. Delegate Page selector waits to the
157
+ locator's existing query preparation.
158
+
159
+ - Retain the actual root form response in legacy Rust and MCP callers after
160
+ native document replacement, including same-URL POST metadata and committed
161
+ responses followed by a guest exception. Keep child target responses separate.
162
+
163
+ - Add real native popup Pages, named-window reuse, opener ownership, context
164
+ bootstrap inheritance and retained child operation after opener closure. Keep
165
+ actual Window identities, Location/history, caller promise realms and document
166
+ lifecycle events correct across root and iframe replacement (#326).
167
+ - Observe network idle from each actual Page's native HTTP/navigation activity,
168
+ including pre-header and streamed-body work, while naturally progressing due
169
+ real timers and callbacks without advancing virtual clocks or waiting on
170
+ unrelated sibling requests (#326).
171
+ - Admit explicit attachment responses for native target navigation while keeping
172
+ other non-HTML document responses rejected and preserving the original page.
173
+
174
+ - Pierce open shadow roots for CSS and getBy locators, retaining real action
175
+ targets, tree-scoped accessible names and asynchronous actor reads (#476).
176
+
177
+ - Finish keyboard events without waiting for unrelated exposed host callbacks.
178
+ Keep those callbacks running with their real guest values/errors and retain
179
+ collection failures, frame ownership, key ordering and editing defaults (#518).
180
+ - Apply configured geolocation and origin-scoped permission grants to live
181
+ documents. Deliver asynchronous position callbacks, watch updates and
182
+ permission changes; enforce document policy and retire canceled watches (#391).
183
+ - Pause native alert/confirm/prompt execution for a host Dialog accept/dismiss
184
+ response, with no-listener auto-dismiss, page ownership and close cancellation.
185
+ Host replies bypass the blocked isolate command queue (#405).
186
+ - Add an explicit enabled/disabled animation presentation policy across Rust,
187
+ NAPI, Playwright contexts and MCP render mode configuration. Disabled canonical
188
+ effects use underlying styles while their genuine timing, events and promises,
189
+ application timers and frame callbacks continue. Fresh producer suppression
190
+ proof is distinct from enabled-mode finite completion (#500).
191
+
192
+ - Keep the original native geometry admission/cache path first. Inspect fresh
193
+ canonical effect state only for actual animation-resource blockers, recapture
194
+ before the bounded final pass, and never cache lifecycle-waived views. Opt-in
195
+ layout profiles count these inspections separately (#522).
196
+
197
+ - Admit underlying native geometry for an element only when fresh canonical CSS
198
+ effect state proves its matching declared animations completed without fill.
199
+ Playback changes invalidate reuse; active, paused, infinite, filling, unknown
200
+ and mismatched effects keep their guards. Scoped shadow stylesheet lifecycle
201
+ uses the producer's canonical scoped-sheet discovery, while unknown or
202
+ mismatched effect proofs remain strict (#511; turbo-dom #509).
203
+
204
+ - Keep on-demand JavaScript available after `waitUntil: "commit"` navigation,
205
+ reload and history replacement, while preserving the immediate raw-response
206
+ path and explicit static-only execution permission. Later actions, evaluation
207
+ and web-first assertions can hydrate client-rendered data (#520).
208
+
209
+ - Reuse native geometry across query targets only when the actual styled scene
210
+ passed strict resource admission. Preserve all document, stylesheet, viewport,
211
+ composition, image and font freshness keys and target-specific animation
212
+ rejection when strict admission is unavailable (#519).
213
+ - Implement native per-context offline conditions after cache lookup, preserving
214
+ already-started HTTP responses and independent API request contexts. Owned
215
+ frames receive trusted connectivity events; established WebSocket frames wait
216
+ for reconnection (#508).
217
+ - Yield Node while asynchronous locator reads wait for the native actor, without
218
+ pumping unrelated host callbacks or relaxing read deadlines (#515, #517).
219
+ - Recognize native and supported ARIA disabled states, including inherited state
220
+ and explicit overrides, in locator actionability and assertions (#514).
221
+ - Honor request/response waiter timeout defaults, explicit overrides and zero;
222
+ isolate worker-hook deadlines from test bodies while preserving the shared
223
+ beforeEach/body budget (#513, #516).
224
+
225
+ - Use wall-clock timer deadlines in Playwright shim sessions so consecutive
226
+ keystrokes preserve editor character queries instead of expiring future
227
+ callbacks between digits. Direct native callers retain virtual timers unless
228
+ they opt in (#512).
229
+
230
+ - Dispatch React-compatible Enter and printable `keypress` events with legacy
231
+ character codes, preserving cancellation and keyup ordering so chat inputs
232
+ using `onKeyPress` can submit. Command chords omit keypress while retaining
233
+ select-all editing defaults (#506).
234
+
235
+ - Enforce an optional immutable host-origin allowlist before native cache access,
236
+ redirects, resource/module loads, reports, and WebSocket connections. Invalid
237
+ configured policies fail closed; challenge helpers are disabled under the
238
+ restriction and denied resource diagnostics redact URL queries (#505).
239
+ - Construct asynchronous MCP dispatch state on the heap before polling it,
240
+ preserving stack headroom for cold V8 initialization without changing thread
241
+ stack sizes, execution budgets, or synchronous read paths (#501).
242
+ - Preserve the reached interaction state when a watchdog terminates native DOM
243
+ signature sampling, while retaining errors for genuine namespace exceptions
244
+ and missing helpers (#498).
245
+ - Let concurrent URL observers advance host callbacks without waiting for
246
+ unrelated response bodies; losing observers retain their deadline without
247
+ aborting sibling requests (#498).
248
+ - Recover once from a reset or broken pipe when sending a bodyless `GET` or
249
+ `HEAD` through a stale pooled connection, preserving the configured transport.
250
+ Requests with bodies, uploads, other methods, and unrelated errors are not
251
+ replayed. Preserve nested transport error causes for diagnosis (#498).
252
+ - Scope `offsetTop`, `offsetLeft`, and `offsetParent` resource checks to the
253
+ queried box dependencies, so unrelated transform animations do not break
254
+ Popper positioning or Autocomplete option measurements. Animated targets,
255
+ ancestors, and layout-changing effects retain strict admission checks (#498).
256
+ - Add opt-in, diagnostic-only Page/Locator operation timings for auth profiling;
257
+ correctness and comparative speed runs remain uninstrumented.
258
+ - Keep native runtime initialization state off nested MCP dispatch frames,
259
+ preserving stack headroom during official Deno extension loading.
260
+ - Prepare nested CSS rules in their original tree scopes, including conditional
261
+ groups, while preserving the page's CSSOM.
262
+ - Compile text regular expressions once per query, restrict role/name work to the
263
+ requested scope, construct global action indices once, and retain a bounded LRU
264
+ of parsed pages when reads alternate between pages (#492, #493, #494, #495).
265
+ - Download deferred classic scripts concurrently while preserving their required
266
+ execution order (#491).
267
+ - Count locator matches and read visibility without serializing unnecessary HTML,
268
+ text, or accessible-name snapshots. Successful assertions reuse their observed
269
+ value instead of making extra queries to construct unused errors (#461, #486,
270
+ #487).
271
+ - Skip redundant document/cookie refreshes after acknowledged read-only collectors,
272
+ while invalidating synchronization for real DOM, cookie, navigation, child-frame,
273
+ scheduled task and event changes (#297).
274
+ - Avoid repeated idle DOM-signature scans after scalar evaluations, stop completed
275
+ watchdogs promptly, and skip unchanged stylesheet host reads (#463, #484, #309).
276
+ - Use an ordered, early-terminating title search. Consumer coverage verifies large
277
+ unrelated bodies, title movement, removal, and writes (#462).
278
+ - Bracket official timeout-signal callbacks with the canonical engine-task scope
279
+ and re-enable the unchanged Chrome 156 abort-order oracle. Legacy
280
+ `document.createEvent("Event")` aliases remain usable after full runtime
281
+ initialization, including the React development callback path (#295, #347).
282
+ - Admit opacity-only animation keyframes and constant longhands equal to the
283
+ element's computed style for geometry reads, while retaining resource admission
284
+ checks for geometry-changing animations (#345).
285
+ - Keep unrelated transform-only animations from rejecting independent rectangle
286
+ reads, and read viewport client dimensions directly under the existing overlay
287
+ scrollbar policy. Animated targets, ancestors, and uncertain scroll or layout
288
+ dependencies retain resource admission checks (#498).
289
+ - Classify vendor-prefixed transforms and SVG stroke-dash animation properties
290
+ by their parsed types when proving independent rectangle reads (#498).
291
+ - Allow definitely clipped animation-only descendant branches in independent
292
+ rectangle reads, retaining shared-ancestor, scrolling, and uncertain-overflow
293
+ checks. Evaluate that dependency proof only for effects that need it (#498).
294
+ - Scope box, computed-size, observer, pointer-center, and leaf scroll-extent
295
+ reads to their actual animation dependencies. Cache receiver and read purpose
296
+ separately, retaining checks for affected targets, descendants of extent
297
+ queries, nonzero scrolling, uncertain gutters, and true hit testing (#498).
298
+ - Read a native element's known zero scroll offset without an unrelated layout
299
+ rejection, allowing modal reflow checks. Preserve owner-document/realm checks
300
+ and the existing layout/clamping path for retained nonzero offsets (#498).
301
+ - Preserve unchanged zero scroll assignments after numeric conversion and smooth
302
+ scroll interruption, so modal mounting does not request unrelated layout.
303
+ Actual movement retains the existing clamping and resource checks (#498).
304
+ - Correct TreeWalker parent/backward/filtered-child traversal, propagate filter
305
+ exceptions, maintain NodeIterator's root and reference cursor, and honor idle
306
+ callback timeout and deadline behavior (#449, #450, #451, #452).
307
+
308
+ ### Locators and accessibility
309
+
310
+ - Pierce actual open shadow roots for live CSS and getBy locators, including
311
+ nested roots, scoped accessible names and actions targeting the original node.
312
+ Mutation invalidates the trusted locator index; closed roots remain opaque and
313
+ XPath keeps physical-tree semantics. Metadata reads avoid application custom
314
+ element construction, and shadow anchor fallback honors the document base URL
315
+ (#476).
316
+
317
+ - Expose `Locator.page()` with stable owning-Page identity for direct, derived,
318
+ and nested-frame locators (#503).
319
+ - Use one canonical live selector plan for extended `:visible` actions and compose
320
+ scoped `has`/`hasNot`, text and visibility filters without dropping earlier
321
+ filters (#349, #328).
322
+ - Preserve chained `first`/`last`/`nth` selections, indexed ancestor scopes, nested
323
+ `:scope`, and parents created through `getBy*` locators (#472, #473, #474, #475).
324
+ - Match regular-expression test IDs and keep placeholder, alternative-text, and
325
+ title queries inside their parent scopes (#477, #380).
326
+ - Resolve native heading, table, and image roles; honor heading levels, pressed
327
+ state, accessibility visibility, and exact matching. Accessible names resolve
328
+ ordered `aria-labelledby` references and native labels (#375, #376, #377, #379).
329
+ - Read rendered `innerText`, raw DOM `textContent`, and live input values according
330
+ to their distinct contracts. CSS and visibility reads use the live document and
331
+ its CSSOM rather than an outdated markup snapshot (#378, #421, #350, #352, #353).
332
+ - Preserve XPath engine prefixes and relative parent/axis traversal. Locator
333
+ evaluation uses the selected live element or full matched collection, and
334
+ locator unions/intersections retain indexing, uniqueness, and document order
335
+ (#365, #364, #363, #330).
336
+ - Enforce strict single-target actions and assertions, wait for actionable controls,
337
+ return live bounding boxes, and scroll the target into view (#334, #346, #418,
338
+ #361).
339
+
340
+ ### Input, forms, and events
341
+
342
+ - Preserve mouse button masks, held-button state, click counts, and locator click
343
+ position/modifier/button options. Double clicks and ancestor hover boundaries
344
+ dispatch their corresponding events (#439, #440, #441, #370, #360).
345
+ - Honor touch cancellation before compatibility mouse activation, preserve native
346
+ touch payloads when available, and reject unavailable payload construction
347
+ explicitly. Drag/drop stops after canceled starts or unaccepted drop targets
348
+ (#442, #471).
349
+ - Keep keyboard modifiers and down/up transitions distinct; apply cancellable
350
+ editing and activation defaults; route locator key presses through the keyboard
351
+ driver (#356, #358, #323).
352
+ - Fill contenteditable nodes through DOM selections, honor canceled `beforeinput`,
353
+ defer changes until blur, type at the current selection, and reject invalid
354
+ numeric text before changing the existing value (#408, #409, #410, #411).
355
+ - Apply checkbox/radio activation once, read live checked state, validate supported
356
+ checkbox types, and avoid duplicate form submit activation (#351, #419, #348).
357
+ - Resolve select options by value, label, or index with proper multiple selection;
358
+ infer upload MIME types from file extensions and preserve single-file input
359
+ cardinality (#337, #339, #340).
360
+ - Dispatch synthetic events on the selected node with their initializer fields;
361
+ remove once listeners before callbacks and remove only one duplicate listener
362
+ registration at a time (#371, #372, #373, #374).
363
+
364
+ ### Pages, frames, and evaluation
365
+
366
+ - Preserve generic Rust host bindings in current and future child realms after
367
+ native page registration, including late driver updates without rerunning
368
+ guest initialization or sharing page scripts with sibling popups.
369
+
370
+ - Wait for URL changes through the configured deadline, including unlimited
371
+ waits, without canceling requests or sibling URL waits when one wait expires
372
+ (#497).
373
+ - Honor configured integer and percentage worker limits in the test CLI,
374
+ preserving project caps and serial suite execution (#499).
375
+ - Await live evaluation after ordinary navigation, preserve tagged JavaScript
376
+ values such as undefined, non-finite numbers, negative zero and BigInt, and
377
+ reject with the original page exception details (#362, #359, #357).
378
+ - Hydrate when a web-first assertion misses its initial snapshot, rather than
379
+ failing against an inert post-navigation document (#310).
380
+ - Replace live document contents without resetting the Window realm or custom
381
+ element registry, run the replacement parser/resource lifecycle, and retire old
382
+ pending image/script work before waiting for the new document (#386).
383
+ - Keep handle-returning APIs as realm-bound remote handles, preserving object
384
+ identity and explicit disposal instead of substituting serialized values (#343).
385
+ - Preserve sparse-array lengths and undefined entries when handle arguments cross
386
+ the realm boundary.
387
+ - Insert and execute script/style tags in the live document, including external
388
+ scripts and stylesheet loading (#387, #388).
389
+ - Keep frame identities, parent/child relationships and detach state; use live child
390
+ documents and realms for reads, evaluation, and actions. Resolve frame URLs
391
+ against their owners and return the owning Locator from `FrameLocator.owner`
392
+ (#443, #444, #445, #446, #447, #448).
393
+ - Resize the trusted live viewport independently for each page, updating geometry,
394
+ CSS media queries and resize events (#369).
395
+ - Preserve same-document SPA state and structured history entries without replacing
396
+ the DOM; make actual reloads and history document traversals execute the intended
397
+ navigation/scripts (#319, #425).
398
+ - Honor per-navigation deadlines through fetch and initial hydration, preserve
399
+ authored referrers, and retain the current document for HTTP 204/205 responses
400
+ (#427, #426, #428).
401
+ - Track browser contexts and closed pages, close owned contexts on browser shutdown,
402
+ and wait for the requested selector state (#401, #402, #403).
403
+ - Reject duplicate exposed-function registrations, settle returned values and
404
+ exceptions correctly, and identify the calling frame in exposed bindings
405
+ (#415, #416, #417).
406
+
407
+ ### HTTP requests, responses, and downloads
408
+
409
+ - Match `Page.route` URL predicates in the host, preserving captured closures,
410
+ fallback ordering, original-URL matching, and unroute identity without exposing
411
+ host callbacks to page JavaScript (#507).
412
+ - Apply XHR body conversion before discarding GET/HEAD payload bytes in routed
413
+ requests, preserving synchronous conversion errors, POST bodies and caller
414
+ headers while keeping Fetch's body restrictions strict (#504).
415
+ - Retain native connection pools across API requests while bypassing browser HTTP
416
+ cache reuse for those requests (#485).
417
+ - Preserve standalone cookie jars and cached `page.request` / `context.request`
418
+ properties; encode query parameters, form and multipart fields, string bodies,
419
+ and raw Buffer bytes correctly (#329, #331, #333, #434, #435, #341).
420
+ - Apply request context user agents and scoped Basic credentials, merge headers
421
+ without case-sensitive duplicates, enforce disposal, and honor redirect and
422
+ failure-status policies (#433, #432, #431, #335).
423
+ - Preserve actual captured request headers and POST bytes, link requests to their
424
+ responses, and report document navigations and redirects with the originating
425
+ frame identity (#311, #344, #307).
426
+ - Preserve redirect response chains, status text, complete response headers, and
427
+ binary response bodies. Header helpers expose the expected normalized and raw
428
+ forms (#399, #398, #400, #338).
429
+ - Preserve literal HTTP header names such as `__proto__` and `constructor` without
430
+ inheriting object properties or invoking prototype setters.
431
+ - Publish response headers before body completion, including during initial and
432
+ form navigation. Body reads await their own completion; unread bodies, failures,
433
+ cancellation, and console handles retain correct lifecycle and ownership (#483).
434
+ - Emit transport failures as `requestfailed`, not fabricated successful responses.
435
+ Response waits reject on timeout, only observe newly delivered events, use URL
436
+ glob semantics and await async predicates; native polling uses a lower floor
437
+ (#407, #308, #354, #355, #296).
438
+ - Execute request routes through actual host callbacks, including fulfilled and
439
+ fetched responses, while preserving CSP, cancellation, deadlines, and genuine
440
+ host dependencies in module initialization. Fulfilled and rewritten requests
441
+ publish the same response lifecycle without duplicate internal-fetch events,
442
+ preserving ordinary guest and continued-request events (#320).
443
+ - Apply route registration changes to live sessions, traverse fallback handlers,
444
+ remove obsolete interceptors, and honor XHR abort/continue outcomes (#322, #324).
445
+ - Emit HTTP attachment downloads, reject missed download waits, keep commit-mode
446
+ attachment actions usable, and preserve Blob bytes through path, save and stream
447
+ access (#325, #327).
448
+ - Configure finite response and script/module byte budgets through navigation and
449
+ resource admission instead of silently imposing the old fixed bundle cap (#342).
450
+
451
+ ### Context state
452
+
453
+ - Observe genuine context page, close, and network events with predicate/deadline
454
+ waiters and lazy page subscriptions; expose the captured response frame. Popup
455
+ creation remains deferred rather than returning a fabricated page (#509).
456
+ - Normalize URL-form cookies for native jars; replace cookie identities rather than
457
+ append duplicates; filter cookie reads and removals by URL and identity; propagate
458
+ clearing into live pages (#314, #315, #422, #423, #424).
459
+ - Import and export origin-localStorage storage state before authored scripts run,
460
+ preserving shared tabs and UTF-16 values (#317).
461
+ - Apply locale defaults to native requests and Intl without inserting an
462
+ application cookie, and isolate color-scheme/reduced-motion preferences by
463
+ context (#395, #396).
464
+ - Replace extra HTTP header sets, forward context headers to native live requests,
465
+ and answer origin-scoped browser Basic-auth challenges without leaking credentials
466
+ across redirects (#393, #392, #394).
467
+
468
+ ### Screenshots
469
+
470
+ - Retain image bytes for the current document, invalidate them on navigation,
471
+ coalesce in-flight requests, and fetch independent resources with bounded
472
+ concurrency (#489, #490).
473
+ - Use trusted intrinsic metadata and native paint-resource planning to avoid
474
+ fetching images that cannot contribute viewport pixels, while retaining
475
+ conservative handling for unknown sizes and effects/full-page captures (#496).
476
+ - Retain an owned immutable prepared screenshot scene between unchanged captures;
477
+ invalidate on changed inputs, reuse its layout/resource plan, and release it on
478
+ close. Regression controls cover unchanged bytes, mutations, metadata, masks,
479
+ transparency, and device scale (#488).
480
+ - Encode JPEG output and quality correctly; honor clips, masks, transparent initial
481
+ backgrounds, device/CSS scale selection and positioned full-page overflow
482
+ (#467, #466, #469, #464, #470, #468).
483
+
484
+ ### Assertions
485
+
486
+ - Compare typed values, cycles, strict prototypes, promise rejection overloads,
487
+ property-path existence, array subset lengths, thrown error expectations,
488
+ recursive asymmetric matchers, and numeric/infinity cases correctly
489
+ (#381, #382, #383, #384, #385, #389, #390).
490
+ - Preserve missing-attribute versus empty-value distinctions, match CSS/ID regular
491
+ expressions, compare actual JavaScript property values, and honor expected-state
492
+ options and viewport intersection ratios (#436, #437, #438, #429, #430).
493
+ - Match complete class sets, ordered text arrays, and emptiness using current text
494
+ and control values (#336, #332, #420).
495
+ - Retry awaited `expect.poll` and `toPass` callbacks; accumulate soft failures
496
+ without stopping the test body (#366, #367, #368).
497
+
498
+ ### Test runner and fixtures
499
+
500
+ - Bind the build-and-test Playwright gate to an immutable snapshot of its freshly
501
+ built Cargo addon, so an older optional platform package cannot shadow the
502
+ current binary. Hash final signed bytes, preserve explicit artifact overrides,
503
+ and retain production loading and bare-test skip behavior (#502).
504
+ - Execute the CLI through npm bin symlinks, load TypeScript suites, exit completed
505
+ HTML-report runs, and reject unsupported runtime capability combinations
506
+ (#305, #300).
507
+ - Respect grep/inverse-grep, regular-expression test-file selectors, project setup
508
+ dependencies, and no-tests failure semantics. Step callbacks receive step info
509
+ and support explicit step skipping (#454, #458, #457, #456, #459).
510
+ - Resolve fixture dependencies lazily, share each attempt's fixture graph, honor
511
+ tuple/auto/worker lifetimes and plain scoped overrides, and retain setup across
512
+ sibling suites. All-suite hooks receive their supported browser fixture
513
+ (#453, #313, #321, #460, #479, #478).
514
+ - Enforce per-test deadlines with isolated timed-out attempts and restart retry
515
+ workers so attempts do not share a stale test execution (#318).
516
+ - Retain TestInfo outcomes and attachments, honor file/hook/TestInfo skip guards,
517
+ expected-failure and exclusive selection semantics, and run all cleanup hooks
518
+ before reporting errors (#312, #316, #414, #413, #412).
519
+ - Resolve web-server commands relative to the configuration, require an acceptable
520
+ readiness response, and stop the full owned process tree while preserving reused
521
+ servers (#480, #482, #481).
522
+
523
+ ### Diagnostics and explicit limitations
524
+
525
+ - Deliver console events with live argument handles, correct source locations and
526
+ frame ownership, and bounded native retention that releases evicted arguments
527
+ (#404).
528
+ - Send page script/module/frame/timer diagnostics to stderr and emit uncaught page
529
+ exceptions as `pageerror`. Context-isolation regressions avoid nested registrar
530
+ deadlocks (#302, #406, #299).
531
+ - Reject unsupported reporter configurations and trace/video recording requests
532
+ explicitly instead of silently ignoring them or inventing artifacts (#455, #465).
533
+ Offline emulation now uses native context conditions (#306, #508).
534
+
3
535
  ## [0.8.2] - 2026-11-10
4
536
 
5
537
  Pinned at `turbo-dom = "0.8.2"` on crates.io (all four turbo-dom crates: `turbo-dom`, `turbo-dom-browser-env`, `turbo-dom-layout`, `turbo-dom-raster`; `turbo-dom-v8` 150.4.1 unchanged). `[patch.crates-io]` git bridge dropped.