Skip to content

v0.14.2

Choose a tag to compare

@github-actions github-actions released this 24 Aug 21:14
· 11 commits to main since this release
fbf365f

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)