unstale

npm / @qwik.dev/partytown

@qwik.dev/partytown

What changed in @qwik.dev/partytown 0.14 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

4 breaking2 security2 new APIs and options2 performance10 behavior and defaults37 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@qwik.dev/partytown 111 changes

Breaking changes 2

  • A response larger than the shared buffer's 1GB limit now returns an error instead of a cut, unparsable response.

    1.0.5release notes

  • In atomics mode, blocking main access now times out after 10s, or 120s in debug, instead of blocking forever; late responses are dropped rather than read by the next request.

    1.0.5release notes

Security 1

  • When the service worker cannot find the requesting tab's sandbox, it now answers NoParty instead of sending the request to another tab's sandbox and returning that page's DOM.

    1.0.5release notes

Performance 1

  • In atomics mode, main-thread responses use UTF-8 bytes in the shared buffer instead of one 4-byte slot per character, making responses roughly 3–20x faster and using up to 4x less memory.

    1.0.5release notes

Behavior and default changes 1

Fixes and other changes 6

  • Partytown no longer reads window.fence while reading the main window's members, avoiding Chrome's FencedFrame deprecation reported by Lighthouse.

    1.0.5release notes

  • Scripts with the data-ptworkeronly attribute run only in the web worker; the main thread fallback skips them.

    1.0.4release notes

  • Forwarded calls with a source property no longer throw after the sandbox iframe is detached.

    1.0.3release notes

  • Falls back to the main thread immediately when the service worker does not answer, preventing scripts from being lost.

    1.0.2release notes

  • Element interface introspection skips HTMLFencedFrameElement to avoid a Lighthouse deprecated API warning and prevent <fencedframe> creation in the sandbox.

    1.0.1release notes

  • The main thread fallback keeps objects whose properties are forwarded with preserveBehavior, so data pushed before the fallback is not lost.

    1.0.1release notes

@qwik.dev/partytown 0.1514 changes

Breaking changes 1

  • Worker nodes expose only members shared by every Node; elements no longer inherit Text-only members such as splitText.

    0.15.0release notes

New APIs and options 1

  • Properties set on DOM elements by worker scripts are also set on the real elements, with functions calling back into the worker.

    0.15.0release notes

Behavior and default changes 3

  • CSS is defined in the worker; CSS.escape runs there and other members are forwarded to the main thread.

    0.15.0release notes

  • Worker message listeners can reply through MessagePorts sent with the message.

    0.15.0release notes

  • Worker scripts can message cross-origin iframes loaded by the browser, and replies reach the page's message listeners instead of stopping at the Partytown sandbox.

    0.15.0release notes

Fixes and other changes 9

  • For messages from page iframes, event.source is the iframe's window, allowing replies to reach it.

    0.15.0release notes

  • Passing a Request object preserves its method, headers, body, and credentials instead of sending a GET to its URL.

    0.15.0release notes

  • The href property of link and base elements is read and set on the main thread, allowing worker-added stylesheets to load.

    0.15.0release notes

  • Scripts loaded on the main thread now fire worker-registered load and error handlers, including handlers registered with addEventListener.

    0.15.0release notes

  • Calls on an iframe's window from the worker go through its iframe element, including for about:blank frames without a Partytown window on the main thread.

    0.15.0release notes

  • Partytown scripts are not read until the window environment has been sent to the worker, preventing scripts added during page load from failing without being run again.

    0.15.0release notes

  • Tabs starting Partytown in the same millisecond get different tab IDs, preventing a service worker from routing one tab's requests to another.

    0.15.0release notes

  • Window properties whose classes Partytown does not emulate, such as caches and scheduler, return the worker's own object instead of throwing.

    0.15.0release notes

  • Code passed to window.eval in a Partytown script runs in the window's scope, where page globals are defined.

    0.15.0release notes

@qwik.dev/partytown 0.1432 changes

Breaking changes 1

  • Forwarded globals stay local to the worker, pre-load items are forwarded, and events are no longer dropped when the worker global does not yet exist.

    0.14.2release notes

Security 1

  • Script tags are matched case-insensitively when rewriting iframe srcdoc HTML, preventing uppercase variants from bypassing the rewrite.

    0.14.1release notes

New APIs and options 1

  • Adds a config flag to enable debug logging for forwarded events and triggers.

    0.14.0release notes

Performance 1

  • Large batches now yield the main thread about every 40ms, keeping tasks under the 50ms long-task threshold and reducing reported TBT.

    0.14.3release notes

Behavior and default changes 6

  • Tag Assistant preview now connects to GTM running inside Partytown, with main-thread fallback for unreadable scripts and debug-session bridging for the container queue and message sources.

    0.14.3release notes

  • Scripts added after initialization, such as during client-side route transitions, now execute automatically without dispatching a ptupdate event.

    0.14.3release notes

  • When the snippet runs in an iframe with a cross-origin top, Partytown runs in the iframe itself instead of throwing.

    0.14.2release notes

  • Setting fallbackTimeout to 0 disables the main thread fallback entirely.

    0.14.2release notes

  • URLs passed to navigator.sendBeacon run through resolveUrl so analytics requests can be proxied.

    0.14.2release notes

  • resolveUrl can now return a Readonly<URL>.

    0.14.1release notes

Fixes and other changes 22

  • Defines HTMLCollection in the web worker so x instanceof HTMLCollection no longer throws.

    0.14.5release notes

  • Falls back right away if registration fulfills without a registration, avoiding an error when service workers are blocked.

    0.14.5release notes

  • Reads scroll offsets from the main thread rather than caching them, so scripts can observe scrolling after their initial read.

    0.14.5release notes

  • Iframes matching this option now load natively, preserving document semantics such as service worker registration.

    0.14.4release notes

  • This property stays thenable inside worker-virtualized iframes.

    0.14.4release notes

  • Cross-origin iframes whose content cannot be fetched now load natively, allowing widgets such as the reCAPTCHA badge to work instead of crashing with a NetworkError.

    0.14.3release notes

  • Partytown scripts added after the main-thread fallback has run now fall back too, avoiding silent drops in webviews without service worker support.

    0.14.3release notes

  • The sandbox service-worker HTML is now shipped as a real library file, so requests that bypass the service worker receive a 200 instead of a 404.

    0.14.3release notes

  • Pages enforcing require-trusted-types-for 'script' can use Partytown by adding partytown to the CSP trusted-types directive.

    0.14.3release notes

  • Methods called unbound by scripts no longer crash the worker proxy, fixing Google Publisher Tag ad serving.

    0.14.3release notes

  • The atomics SharedArrayBuffer is allocated small and grows on demand instead of eagerly reserving 1GB, which newer Chrome versions can refuse.

    0.14.2release notes

  • Iframe contentWindow.fetch URLs run through resolveUrl so analytics requests can be proxied.

    0.14.2release notes

  • Only digit property names are treated as window frame indexes, allowing globals like Infinity to resolve correctly in the worker.

    0.14.2release notes

  • Supports document.createRange().createContextualFragment() in the worker.

    0.14.2release notes

  • The fallback now loads external scripts through their src; previously only inline content was copied.

    0.14.2release notes

  • A noindex robots meta is added to the sandbox HTML so crawlers stop reporting 404s for it in Search Console.

    0.14.2release notes

  • Preparing scripts for the worker no longer rewrites this inside string literals, template literal text, or comments.

    0.14.2release notes

  • Underscore-prefixed object members are serialized for the worker, excluding Partytown internals.

    0.14.2release notes

  • Initialization no longer crashes when a Proxy global returns unclonable objects during the window snapshot.

    0.14.2release notes

  • Scripts assigning an invalid value to a.href, such as http://, no longer cause an error.

    0.14.1release notes

  • The snippet is wrapped in an IIFE so top-level helpers no longer leak t, e, and n into the page's global scope and break other classic scripts.

    0.14.1release notes

  • Initializes ErrorObject to Error instead of null to prevent an instanceof crash.

    0.14.0release notes