Skip to content

@stagepass/modules 2.2.3

Choose a tag to compare

@stagepass-build stagepass-build released this 27 Nov 09:38
· 15 commits to master since this release
5f31e0c

Modules-only release

Modules patch on top of 2.2.2. Released together with @stagepass/loader 2.5.2 and @stagepass/cli 2.7.0 (separate packages, own tags). Published on npm as @stagepass/modules@2.2.3 on 26 November 2026 at 07:04 Europe/Berlin. Source tag modules-v2.2.3 (5f31e0c). npm package shasum 7c25fd46c2d52d099ce18b3fb8ba20583b46575e, integrity sha512-/abddF3LohrKvruatkKAb1X1ZkdfT2txlF7GiQZnUKtSEhQz5FEib8gFfgpyocgtNEKXkTQ9Hakr3YD0yWZA1w==, tarball sha256 b5731cadd7684481a1e142914453d9c12aee0afc9f624412f2c568566b46818d. npm dist-tag latest is @stagepass/modules@2.2.3.

Fixed

  • First-party modules no longer read sp.vars. Attach and runtime checks use the public loader API (typeof sp.env === 'function' / typeof sp.use === 'function'; inject resolves local URLs via sp.resolveLocalUrl). Sites that only call documented modules APIs no longer trigger the flag public-API warning Prefer sp.env()/is()/can()/client()/on() over reading sp.vars directly. (#164).
  • Inject logging goes through sp.log / sp.warn / sp.error (loader no-ops those without an active session). Modules no longer print [Stagepass] Injected: … on live or staging hosts just because env looks non-production (#164).
  • Cookies: SameSite=None without Secure still enforces Secure and falls back to console.warn with the same text when sp.warn is not a function.

Notes

  • MODULE_VERSION strings passed to sp.use stay 2.0.0 (module API id, not the package version).