Skip to content

Update @astrojs/partytown to Partytown 0.14.4 - #17986

Merged
matthewp merged 3 commits into
withastro:mainfrom
hanford:hanford/upgrade-partytown
Sep 18, 2026
Merged

matthewp merged 3 commits into
withastro:mainfrom
hanford:hanford/upgrade-partytown

Conversation

@hanford

@hanford hanford commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Updates the Partytown dependency in @astrojs/partytown from 0.13.2 to 0.14.4, the latest release. Includes the lockfile update and a patch changeset.

This brings in several useful upstream improvements:

  • More reliable analytics events. Events queued before Partytown starts are forwarded, and events are no longer dropped when the worker's target global is still being initialized. Analytics requests made through sendBeacon, including GA4 collection requests, also respect resolveUrl. (0.14.2 release notes)
  • Scripts added during navigation run automatically. Partytown detects scripts added after initialization, such as during client-side route changes, without requiring a manual ptupdate event. (0.14.3 release notes)
  • Google Tag Manager preview support. Tag Assistant can connect when GTM runs in Partytown, making it easier to debug tags. (0.14.3 release notes)
  • Less time blocking the main thread. Large batches of non-blocking DOM operations periodically yield, helping reduce long tasks. (0.14.3 release notes)
  • Better iframe compatibility. Cross-origin widgets such as reCAPTCHA can load natively when their content cannot be fetched. The latest patch also fixes iframe service worker behavior when using loadScriptsOnMainThread. (0.14.3, 0.14.4 release notes)

The docs smoke-test fixture also pins a Lunaria preview that returns HTTP 404. A docs>@lunariajs/core override selects the available preview at 502ada46073a7f0b003949d78870cefb9290a54f. This override only applies to the cloned docs project; it does not change Astro or integration runtime dependencies. It can be removed when the docs repo updates its dependency.

Testing

  • GitHub CI passed on 2684a2e, including Linux and Windows smoke and E2E tests.
  • pnpm install --frozen-lockfile
  • Smoke tests: cloned the same docs revision as CI (99dba9d), installed with the override, and ran the full test:smoke command with CI's English/Korean configuration. All 44 example build tasks passed, and the docs build generated 1,273 pages.
  • pnpm build — all 32 build tasks passed, including TypeScript checks.
  • pnpm -C packages/astro exec astro-scripts test 'test/ssr-partytown.test.ts' --strip-types — both existing SSR tests passed.
  • Chrome E2E: the full view-transition and Solid-component suites passed (106 passed, 2 skipped), without retries.
  • Firefox E2E: the full view-transition suite passed (92 passed, 2 skipped), without retries.
  • pnpm format, pnpm lint:ai, and git diff --check passed. Formatting and lint reported existing warnings and configuration hints.

The existing SSR tests cover script injection and inclusion of Partytown's assets in the SSR manifest. The upstream improvements listed above were not individually browser-tested here.

Also fixes a hydration race exposed by the Linux E2E check: the framework-router test could click React's server-rendered button before its event handler was attached. It now uses the existing waitForHydrate helper before clicking. The original test failed in 5 of 10 local runs; with the fix, all 10 passed without retries.

Docs

Includes a patch changeset describing the upgrade. No integration API or configuration changes are needed; the upstream release notes above describe the included fixes and improvements.

@changeset-bot

changeset-bot Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2684a2e

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added the pkg: integration Related to any renderer integration (scope) label Sep 12, 2026
@github-actions github-actions Bot added the pkg: astro Related to the core `astro` package (scope) label Sep 12, 2026
@hanford hanford changed the title Upgrade Partytown to 0.14.4 Update @astrojs/partytown to 0.14.4 Sep 14, 2026
@hanford hanford changed the title Update @astrojs/partytown to 0.14.4 Update @astrojs/partytown to Partytown 0.14.4 Sep 14, 2026
@matthewp
matthewp merged commit b1f9088 into withastro:main Sep 18, 2026
25 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope) pkg: integration Related to any renderer integration (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants