Skip to content

@stagepass/loader 2.5.0

Choose a tag to compare

@arobertherz arobertherz released this 12 Nov 11:10
· 140 commits to master since this release

Loader-only minor release

Published on npm as @stagepass/loader@2.5.0 on 12 November 2026 at 12:06 Europe/Berlin, directly on dist-tag latest. Source tag loader-v2.5.0 → 1e88b5237e7d9cd4d9cdbfdfd9b51479dfcbb27d (tag object b17eebe). npm package shasum 7be5dec96404e7f95b339411485c07369ecf1429, integrity sha512-wNpfIdsux330PbRoFQxchg2uqdxjEGPLxr3ZAy1njRM1Qyan9N2UOB9AH4grZ+UrEA5MMcrEmfdhya3y+DVWWQ==. CLI and Modules are unchanged.

Added

  • data-stagepass-nocache on a single data-stagepass asset (present or ="true" on, ="false" off): permanent production cache busting for that asset, for every visitor on every page view. Use case: a script that embeds forms via iframes and must never be served stale.
    • Sets exactly one ?_cb=<timestamp>. An existing _cb in the query is replaced, not duplicated; & in the path and the hash stay untouched.
    • Order: original query (without _cb), then v=<version> from data-stagepass-v / data-stagepass-version, then _cb.
    • No effect during an active local swap session or on data-stagepass-live-src="true" assets.
  • data-stagepass-cachebust stays legacy and unchanged. Assets without the new attribute load exactly as in 2.4.0.
<script
  data-stagepass
  data-stagepass-nocache
  data-src="https://cdn.example.com/js/forms-embed.js"
></script>

Size

loader.min.js 15065 / 6664 / 5958 B (min / gzip / brotli); 2.4.0 was 14852 / 6562 / 5856. Budget 15070 / 6685 / 5974 unchanged.

Verification

  • Self-hosted CI green (Node 22 / 24, e2e) on PR #77 and on the release workflow.
  • Independent paid review findings fixed before release (existing _cb replaced, query-only replacement, extra tests); browser tests in Chromium, Firefox and WebKit 72/72 each against the release tarball.
  • The published tarball is byte-identical to the accepted release pack; jsDelivr @2.5.0/dist/loader.min.js serves the same file (sha256 ac5ff425e4010147752a45b18fad8d6cb2b981cb17019d9edd414712bb1fa43c).

@2 on jsDelivr is a major range alias, not the npm latest tag, and can briefly serve the previous 2.x build after a publish. Pin @2.5.0 when this exact build must load.