Patch Changes
-
๐งน remove the unused dotenv dependency, the package has zero runtime dependencies again (by @gioboa in #742)
-
โจ
fallbackTimeout: 0disables the main thread fallback entirely (by @gioboa in #741) -
๐๐ฉน don't throw when the snippet runs in an iframe with a cross-origin top, run Partytown in the iframe itself instead (by @gioboa in #735)
-
๐๐ฉน support
document.createRange().createContextualFragment()anddocument.fonts(load/check/ready) in the worker (by @gioboa in #731) -
๐๐ฉน the main thread fallback now loads external scripts through their
src, previously only inline content was copied (by @gioboa in #739) -
๐๐ฉน keep forwarded globals (e.g. dataLayer) local to the worker instead of sync-proxying them to the main thread, forward items already pushed before Partytown loads, and stop dropping forwarded events when the worker global doesn't exist yet (by @gioboa in #721)
-
๐๐ฉน don't crash initialization when a Proxy global (e.g. vinxi's
MANIFEST) returns unclonable objects during the window snapshot (by @gioboa in #737) -
๐๐ฉน run
navigator.sendBeaconand iframecontentWindow.fetchurls throughresolveUrl, so analytics requests like GA4's/g/collectcan be proxied (by @gioboa in #740) -
๐๐ฉน allocate the atomics SharedArrayBuffer small and grow it on demand instead of eagerly reserving 1GB, which newer Chrome versions can refuse (by @gioboa in #729)
-
๐๐ฉน add a noindex robots meta to the sandbox html so crawlers stop reporting 404s for it in Search Console (by @gioboa in #738)
-
๐๐ฉน stop rewriting
thisinside string literals, template literal text and comments when preparing scripts for the worker (by @gioboa in #730) -
๐๐ฉน serialize underscore-prefixed object members for the worker (e.g.
wp.i18n.__), excluding only partytown internals (by @gioboa in #736) -
๐๐ฉน only treat digit property names as window frame indexes, so globals like
Infinityresolve correctly in the worker (by @gioboa in #732)