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@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.
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.
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.
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.
Behavior and default changes 1
Partytown exits beta and is now stable.
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.
Scripts with the data-ptworkeronly attribute run only in the web worker; the main thread fallback skips them.
Forwarded calls with a source property no longer throw after the sandbox iframe is detached.
Falls back to the main thread immediately when the service worker does not answer, preventing scripts from being lost.
Element interface introspection skips HTMLFencedFrameElement to avoid a Lighthouse deprecated API warning and prevent <fencedframe> creation in the sandbox.
The main thread fallback keeps objects whose properties are forwarded with preserveBehavior, so data pushed before the fallback is not lost.
@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.
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.
Behavior and default changes 3
CSS is defined in the worker; CSS.escape runs there and other members are forwarded to the main thread.
Worker message listeners can reply through MessagePorts sent with the message.
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.
Fixes and other changes 9
For messages from page iframes, event.source is the iframe's window, allowing replies to reach it.
Passing a Request object preserves its method, headers, body, and credentials instead of sending a GET to its URL.
The href property of link and base elements is read and set on the main thread, allowing worker-added stylesheets to load.
Scripts loaded on the main thread now fire worker-registered load and error handlers, including handlers registered with addEventListener.
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.
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.
Tabs starting Partytown in the same millisecond get different tab IDs, preventing a service worker from routing one tab's requests to another.
Window properties whose classes Partytown does not emulate, such as caches and scheduler, return the worker's own object instead of throwing.
Code passed to window.eval in a Partytown script runs in the window's scope, where page globals are defined.
@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.
Security 1
Script tags are matched case-insensitively when rewriting iframe srcdoc HTML, preventing uppercase variants from bypassing the rewrite.
New APIs and options 1
Adds a config flag to enable debug logging for forwarded events and triggers.
Performance 1
Large batches now yield the main thread about every 40ms, keeping tasks under the 50ms long-task threshold and reducing reported TBT.
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.
Scripts added after initialization, such as during client-side route transitions, now execute automatically without dispatching a ptupdate event.
When the snippet runs in an iframe with a cross-origin top, Partytown runs in the iframe itself instead of throwing.
Setting fallbackTimeout to 0 disables the main thread fallback entirely.
URLs passed to navigator.sendBeacon run through resolveUrl so analytics requests can be proxied.
resolveUrl can now return a Readonly<URL>.
Fixes and other changes 22
Defines HTMLCollection in the web worker so
x instanceof HTMLCollectionno longer throws.Falls back right away if registration fulfills without a registration, avoiding an error when service workers are blocked.
Reads scroll offsets from the main thread rather than caching them, so scripts can observe scrolling after their initial read.
Iframes matching this option now load natively, preserving document semantics such as service worker registration.
This property stays thenable inside worker-virtualized iframes.
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.
Partytown scripts added after the main-thread fallback has run now fall back too, avoiding silent drops in webviews without service worker support.
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.
Pages enforcing
require-trusted-types-for 'script'can use Partytown by addingpartytownto the CSPtrusted-typesdirective.Methods called unbound by scripts no longer crash the worker proxy, fixing Google Publisher Tag ad serving.
The atomics SharedArrayBuffer is allocated small and grows on demand instead of eagerly reserving 1GB, which newer Chrome versions can refuse.
Iframe contentWindow.fetch URLs run through resolveUrl so analytics requests can be proxied.
Only digit property names are treated as window frame indexes, allowing globals like Infinity to resolve correctly in the worker.
Supports document.createRange().createContextualFragment() in the worker.
The fallback now loads external scripts through their src; previously only inline content was copied.
A noindex robots meta is added to the sandbox HTML so crawlers stop reporting 404s for it in Search Console.
Preparing scripts for the worker no longer rewrites this inside string literals, template literal text, or comments.
Underscore-prefixed object members are serialized for the worker, excluding Partytown internals.
Initialization no longer crashes when a Proxy global returns unclonable objects during the window snapshot.
Scripts assigning an invalid value to a.href, such as http://, no longer cause an error.
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.
Initializes ErrorObject to Error instead of null to prevent an instanceof crash.