This range is a small but useful update for Partytown. The main themes are better third-party script compatibility in the worker, a new opt-in proxy behavior for scripts that rely on in checks, and expanded Drupal documentation.
What's new
-
Adds full attribute-method support to the worker-side
HTMLImageElement, includinggetAttribute(),setAttribute(),hasAttribute(),removeAttribute(), andtoggleAttribute(). This fixes third-party scripts that callsetAttribute()onImageinstances inside Partytown, andsrchandling is wired into the new attribute storage as part of the implementation. (#681) -
Introduces a new
strictProxyHasconfiguration option for more accurateinoperator checks on the window proxy. This is useful for scripts like FullStory loaded through Google Tag Manager, where namespace conflict detection depends onif (!("FS" in window)); when enabled, Partytown usesReflect.has()instead of always returningtrue, and the default staysfalsefor backwards compatibility. (#692) -
Adds Drupal integration documentation, including installation, configuration, and Drupal-specific ways to Partytown user scripts. The docs also cover manual module installation cases where sites do not use Composer but still want to manage Partytown through the Drupal module UI. (#701, #703)
Fixes
-
Fixes
document.adoptedStyleSheetsaccess in the worker by addingadoptedStyleSheets.get()to the patcheddocument, which resolves integration issues such as Microsoft Clarity reading that property. (#674) -
Fixes Lighthouse deprecation warnings triggered during window introspection by skipping Chrome Privacy Sandbox properties like
sharedStorageandattributionReporting, avoiding warning noise that could drag down scores. (#697)
Other notable changes
- Repository metadata now points at
QwikDev/partytown, and the publishing setup was updated to use Node 24.x for OIDC trusted publishing.
Contributors
@AlexJohnSadowski, @mws19901118, @chadgauth, @yeskunall, @quickshiftin, @gioboa, @leeroybrun, @github-actions[bot], @codr, @ghsamm, @thejackshelton, @OulipianSummer