Repository navigation
@stagepass/modules 2.2.3
·
15 commits
to master
since this release
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 viasp.resolveLocalUrl). Sites that only call documented modules APIs no longer trigger the flag public-API warningPrefer 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 becauseenvlooks non-production (#164). - Cookies: SameSite=None without Secure still enforces Secure and falls back to
console.warnwith the same text whensp.warnis not a function.
Notes
MODULE_VERSIONstrings passed tosp.usestay2.0.0(module API id, not the package version).