github QwikDev/partytown v0.14.2

3 hours ago

Patch Changes

  • ๐Ÿงน remove the unused dotenv dependency, the package has zero runtime dependencies again (by @gioboa in #742)

  • โœจ fallbackTimeout: 0 disables 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() and document.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.sendBeacon and iframe contentWindow.fetch urls through resolveUrl, so analytics requests like GA4's /g/collect can 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 this inside 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 Infinity resolve correctly in the worker (by @gioboa in #732)

Don't miss a new partytown release

NewReleases is sending notifications on new releases.