Repository navigation
Releases
@stagepass/modules 2.2.3
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).
@stagepass/loader 2.5.2
Loader-only patch
Loader patch on top of 2.5.1. Released together with @stagepass/modules 2.2.3 and @stagepass/cli 2.7.0 (separate packages, own tags). Published on npm as @stagepass/loader@2.5.2 on 26 November 2026 at 07:04 Europe/Berlin. Source tag loader-v2.5.2 (5f31e0c). npm package shasum 912aab782bc325f81839e6141007528b5771bba3, integrity sha512-TwMPXT/+g4L+NpIba+qaGoscbMRw32Xufs5Lwv1xgJVfa5LNcEKyGQhUdtyykDficqcGDjfQyFELmkmEXwGtrw==, tarball sha256 daa0be34dcdade0412854484073ea332dfd0a5d386253c8f85eb62650482dd75. loader.min.js sha256 9ee4ca69ab9322ecbdba1e8e86e9c129a73809c69afbb038ebbd785feb546062 (15175 bytes). npm dist-tag latest is @stagepass/loader@2.5.2.
Fixed
- Short Stagepass CDN URLs such as
/loader@2and/loader@2.5.1are treated as directories when resolving session chunks (flag.min.js,flag-card.min.js,live.min.js). PreviouslyflagBase(..., true)always usednew URL('./', src), so those aliases resolved to the CDN origin and requested/flag.min.jsat the site root (#161).
Notes
- Measured
loader.min.js: 15175 / 6730 / 5999 (raw / gzip / brotli); 2.5.1 was 15135 / 6690 / 5971. The short-CDN file-vs-folder check adds about 40 B raw / gzip.
Docs
- Default documented embed is the major alias without
data-stagepass-version:https://cdn.stagepass.one/loader@2andhttps://cdn.stagepass.one/modules@2. An exact pin (e.g./loader@2.5.2/loader.min.js, optionally withdata-stagepass-version) remains documented for sites that want no automatic updates (#163). - Loader npm README: cachebust / version example spells out query order (original query without
_cb, thenv, then_cb) anddata-stagepass-nocachevs legacydata-stagepass-cachebust(#138).
Tests
@stagepass/cli 2.7.0
CLI-only minor release
Minor release on top of 2.6.0 (changed defaults). Released together with @stagepass/loader 2.5.2 and @stagepass/modules 2.2.3 (separate packages, own tags). Published on npm as @stagepass/cli@2.7.0 on 26 November 2026 at 07:04 Europe/Berlin. Source tag cli-v2.7.0 (5f31e0c). npm package shasum 0f2463b378587c5c25e7ef27dafae09a58824806, integrity sha512-ewtJ4Sj/Mp+OGmj43eEmr5tkKi3PMY5ri6UcJaaNbMeXsu6YnzAe08bV0N6Lfx5vGumdBKBEglYYbM/xRatduQ==, tarball sha256 915788dada1f03175a67b6a9728e59c1dd6d4d7f7b8fa6992be197c77953e28b. npm dist-tag latest is @stagepass/cli@2.7.0.
Changed
- Origins: pasted
http(s)://URLs (path, query, fragment, trailing slash) are normalised to a lowercase hostname;:443is stripped; other ports, credentials, and non-http(s) schemes are rejected. PrintsUsing <host>when normalised (#168). - Footer snippets: a concrete
productionhost fillsdata-src/data-href(https://<host>/js/main.js,…/css/styles.css); wildcards fall through to GitHub jsDelivr orYOUR-PRODUCTION-URL.stagepass newandstagepass upgradepassproduction(#170). stagepass newno longer asks for a CDN; default remains Stagepass CDN. Default CLI snippet output no longer prints a jsDelivr alternative line (--cdn jsdelivr/"cdn": "jsdelivr"still work) (#169).- Default Stagepass CDN snippets use
loader@2/modules@2withoutdata-stagepass-version. Exact pins stay documented viaSNIPPET_LOADER_VERSION/SNIPPET_MODULES_VERSION(#162). - Docs and templates prefer
stagepass build/watch/devover calling npm scripts directly (#139).
@stagepass/loader 2.5.1
Loader-only patch
Published on npm as @stagepass/loader@2.5.1 on 22 November 2026 at 12:17 Europe/Berlin, directly on dist-tag latest. Source tag loader-v2.5.1 → 9b441eb7c07c712a25a56d23b4a796eb1f6c3626. npm package shasum df6b47cff8ea3a3c9aab7bfb3fbf0081522c087b, integrity sha512-7XbJc8XrxhPWl91k0g7AS/gBES1h9tshkfK0Oi7tablxX1kE7CIejdugtlVfFS+ooJu3myDc00+802hBKSEPAg==, tarball sha256 bb9f5b2d202351bbf6621c1179a2d4b5efaf8b5902aa780b85608f32fdde13f5. loader.min.js sha256 490774a35dfca9e07d1ddf0e4e975ebcd4456146ab6f7d39fc8d78056fcb1ebb (15135 bytes). CLI and Modules are not part of this package release (CLI 2.6.0 shipped the same day under its own tag). Only latest is used; there is no next or preview dist-tag.
Changed
localStorageandsessionStoragecapability is probed lazily and memoized, onsp.can('localStorage'|'sessionStorage')or whensp.vars.client.capabilities.localStorage/.sessionStorageis read, not on every page load.
Fixed
- Ordinary visits no longer write and delete
__stagepass_test__inlocalStorageorsessionStorage(os#155). Each load still readsstagepass_domainand removes that key only when the value is stale or invalid.
Privacy
- No cookies. An ordinary visit reads
stagepass_domainonce and writes nothing, except removing that key when it holds a stale or invalid value. A preview session is written only when started via?stagepass=.
Size
loader.min.js 15135 / 6690 / 5971 B (raw / gzip / brotli); 2.5.0 was 15065 / 6664 / 5958.
Verification
- Self-hosted CI on Cerebro was green for the loader 2.5.1 work (os#156) and for the repo-guard merge that the tag points at (os#160). The published tarball is byte-identical to the accepted freeze pack. The Stagepass CDN serves
/loader@2.5.1/loader.min.jsas the same 15135-byte file.
A short embed such as /loader@2 is still resolved by this build as a file, so session chunks are requested at the CDN root. The CDN 302-redirects /flag.min.js, /flag-card.min.js, and /live.min.js to /loader@2/<file> as a compatibility shim. The proper loader fix is tracked as os#161 (Loader 2.5.2, Sprint 01). Prefer the full file path for an exact pin.
@stagepass/cli 2.6.0
CLI-only minor release
Published on npm as @stagepass/cli@2.6.0 on 22 November 2026 at 13:00 Europe/Berlin. Source tag cli-v2.6.0 → 3d8527cc281ad9f00d1e99ddd23815d7c8efe860. npm package shasum d2137232b310ceb0f9c5baf5081981a4c3b6e2a9, integrity sha512-0387LdUKLaodxuTemr4eUddm4FAid//BLVcB1k2mNSqjU9uCiU9IiCxrXxitdZDHAey5CEQdgaT3xzKl5m4kSQ==, tarball sha256 fe10d0e115b17bb5811e1148ff909c1ced4c71842eb15ef35748556d61e78e1d. npm dist-tag latest is 2.6.0. Only latest is used; there is no next or preview dist-tag.
Install or update with npm install -g @stagepass/cli@2.6.0. Loader 2.5.1 is a separate package and was published the same day (own tag, own stage). Modules are unchanged (2.2.2).
The published tarball was frozen with snippet pin SNIPPET_LOADER_VERSION 2.5.0, because loader 2.5.1 was not yet on npm at freeze time. After this publish, GitHub docs and the website use exact pin 2.5.1. Generated snippets from this installed CLI 2.6.0 still print 2.5.0 until a later CLI release.
Highlights
Minor release on top of 2.5.0. Merged on master as 3d8527c (PR #158).
Changed
- Generated Webflow snippets,
stagepass new(--yesand the wizard),stagepass start, andstagepass upgradedefault to the Stagepass CDN (https://cdn.stagepass.one) with exact pins and full file paths. stagepass new --cdn jsdelivrand a persisted"cdn": "jsdelivr"instagepass.jsonkeep the jsDelivr major pin@2.- Default Stagepass CDN snippets also print a jsDelivr alternative line.
- Live-site detection recognises
cdn.stagepass.one. stagepass doctorCDN hints recommend an exact version on the Stagepass CDN, or@2on jsDelivr, instead of "prefer @2".
Added
stagepass newpersists the snippet host ascdninstagepass.json(stagepassorjsdelivr).stagepass upgradereads that key.
Verification
- Self-hosted CI on Cerebro for PR #158 was green on
84502a1before merge. Release stage run 45019217444 was green. Post-merge master Tests run 45019082422 failed once on e2e (live-reload.spec.tsCSS swap, 100ms) and was green on rerun (attempt 2). - npm
latestis 2.6.0 as of 22 November 2026, 13:00:33 Europe/Berlin.
Known limits
This is a CLI-only release. Loader 2.5.1 shipped separately the same day. Modules are unchanged. Existing projects keep their current embeds until stagepass upgrade.
@stagepass/cli 2.5.0
CLI-only release
Published on npm as @stagepass/cli@2.5.0 on 17 November 2026 at 18:06 Europe/Berlin. Source tag cli-v2.5.0 → 557e7d63de5fa6b0f19021494084d293cc9da80a. npm package shasum af14c64886db8df13e28633417101d421d98b876, integrity sha512-K6T7PwK3j4jMLyYDC/Gpzy9/KA7w+xM4b+ibY16khmArUbwDMtwsXAHoFzsnTiCLqQMG3IWTJZ0PiItmGTMx/Q==, tarball sha256 fe83b7ea5d0c8bb8e509191221a79e6588bf210085f7bd8e4db81a9ec563ceb3. npm dist-tag latest is 2.5.0. next remains 2.3.0-beta.1.
Install or update with npm install -g @stagepass/cli@2.5.0. Loader (2.5.0) and Modules (2.2.2) are separate packages and are not part of this release.
Highlights
Minor release on top of 2.4.1. Merged on master as 557e7d6 (PR #94).
Added
stagepass newandstagepass upgradewriteAGENTS.stagepass.md, owned by the CLI.AGENTS.mdstays user-owned and keeps only a short pointer between managed markers..cursor/rules/stagepass.mdcis written only when.cursor/already exists, or when you pass--cursor-rule. An existing rule is never deleted.- After a successful start, the CLI prints the Webflow Custom Code head snippets: the loader, then only the modules declared in
stagepass.json. The project footer is not printed. A failed start prints no head snippet. stagepass upgradecan retrofit editor types in an existing project, including astagepass.d.tsfile when a plaintypesarray is not present.stagepass devalso watchesapi/and.php/when"php": true.
Changed
- Without a TTY and without
--yes,stagepass upgradeleaves an unmodifiedscripts/build.mjsin place and prints a hint. CLI 2.4.0 and 2.4.1 replaced that file.
Security
- PHP projects created with CLI 2.5.0 refuse rate-limit storage faults unless
APP_ENVislocal,development, ordev.client_ip()readsX-Forwarded-FororForwardedonly whenREMOTE_ADDRis listed inTRUSTED_PROXIES.stagepass upgradedoes not changeapi/. Copy the files from a new scaffold, or re-scaffold.
Fixed
- Snippet exact pins use published loader 2.5.0 and modules 2.2.2. Script
srcstays on the major pin@2. - Footer snippets use a jsDelivr GitHub file URL when
originis a GitHub remote, otherwisehttps://YOUR-PRODUCTION-URL/js/main.jsand the matching CSS file. - The release workflow runs
scripts/check-published-versions.mjsbeforenpm stage publish.
Verification
- Self-hosted CI on Cerebro for PR #94 was green before merge. Release run 44115245452 was green. macOS smoke on the merge commit
557e7d6passed. - npm
latestis 2.5.0 as of 17 November 2026, 18:06:42 Europe/Berlin.
Known limits
This is a CLI-only release. Loader and modules versions are unchanged. stagepass upgrade does not rewrite an existing project's api/ files; the rate-limit and trusted-proxy behaviour applies to new 2.5.0 PHP scaffolds, or to files copied from one.
@stagepass/cli 2.4.1
CLI security patch
Published on npm as @stagepass/cli@2.4.1 on 13 November 2026 at 09:19 Europe/Berlin. Source tag cli-v2.4.1 → 23d081481ff8eb17cfcb0387dc262a97f64df66d. npm package shasum 283e2a96972958a692adbf3eca701490b3c56dc4, integrity sha512-bMFgvimkApM5JmApheLc/1TTkptflyntAsJqdcQc/jKB1Bdy7LnV5SW7lmEomaDmMiUUxWGiXWYN3KnNRFIeMg==, tarball sha256 ab7462d0235a7ede563fe1150430b4fa3a49e1eb62b433a1349d3e7889231153 (matches the accepted freeze r2). npm dist-tag latest is 2.4.1. next remains 2.3.0-beta.1.
Install or update with npm install -g @stagepass/cli@2.4.1. In a PHP project, run stagepass upgrade. nginx hosts add the snippet below. Projects created with published CLI 2.4.0 also apply the api/action.php remedy below. Loader (2.5.0) and Modules (2.2.2) are separate packages and not part of this release.
Highlights
Security patch on top of 2.4.0. Merged on master as 23d0814 (PR #88) after eb72e0c (PR #87).
- PHP projects from
stagepass new --phpship a web-root.htaccessthat denies hidden path segments (HTML5 Boilerplatefile_access, with visible files under/.well-known/left reachable).stagepass buildcopies that file intodist/when"php": trueand the project has one. It still does not copy.env,.php/.env, or.php/rate-limit/. An existing project.htaccessis not replaced. Adist/.htaccessstays when the project has none. A symlink.htaccessis not copied. Published CLI 2.4.0 does not include this file. - nginx does not read
.htaccess. In the server block, beforelocation ~ \.php$:
location ~* /\.(?!well-known\/) {
deny all;
}If this location comes later, /.php/config.php can be passed to php-fpm.
stagepass upgradewrites that same.htaccesswhenstagepass.jsonhas"php": trueand the project root has no.htaccess. The bytes matchstagepass new --php. An existing.htaccessis never overwritten. If the file has noRewriteRule "(^|/)\." - [F]line, upgrade prints a hint (https://stagepass.one/docs/php/ andapi/README.md) and still exits 0. A symlink or directory named.htaccessis left in place. Projects without"php": trueare unchanged.--dry-runwrites nothing. Published CLI 2.4.0 does not write this file.- PHP comments and the starter README no longer say
.php/sits outside the public root. The document root is the folder that containsapi/(the project root locally,dist/afterstagepass build).load_config()reads.envin that folder and.php/.env. It does not read a file namedapi/.env. - OPTIONS preflight on a 2.4.1
api/action.phpremovesX-Powered-Bybefore the 204 response.header_removepreviously ran only inrespond(), which that path does not call. The new lines, after the origin check and beforehttp_response_code(204), are:
if (!headers_sent()) {
header_remove('X-Powered-By');
}Notes for upgraders
- Projects created with published CLI 2.4.0 keep
api/action.phpfrom 2.4.0.stagepass upgradedoes not replace PHP sources. An allowed OPTIONS preflight is still HTTP 204 and still sendsX-Powered-By: PHP/8.2.35(measured on the upgrade fixture). GETpingalready omits the header, becauserespond()callsheader_remove. - Remedy, verified 13 November 2026 on php:8.2-apache (
AllowOverride All,a2enmod rewrite), Originhttps://your-project.sp:- Insert the three lines above into the 2.4.0 OPTIONS branch (same lines, same place, as the 2.4.1 template, lines 43-45). OPTIONS is then 204 without
X-Powered-By.pingstays 200. - Or set
expose_php = Offin php.ini (or a file in the PHP scan directory).expose_phpisPHP_INI_SYSTEM(access bitmask 4). OPTIONS and GET then omitX-Powered-By, including a PHP file that never callsheader_remove. php_flag expose_php offin.htaccessdoes not change it. In the same file,php_flag display_errors offdoes apply (display_errorsisPHP_INI_ALL).ini_set('expose_php', '0')returns false and leaves the value On. OPTIONS still sendsX-Powered-By.
- Insert the three lines above into the 2.4.0 OPTIONS branch (same lines, same place, as the 2.4.1 template, lines 43-45). OPTIONS is then 204 without
- Rate limiting is unchanged and is documented only.
rate_limit_allows()is meant to be fail-open (a failedflockor a thrown limiter error lets the request through). A rate-limit directory or file that cannot be written can instead end in HTTP 500, because the PHP warning is turned into an exception before that handling (measured with a read-only mount).client_ip()uses onlyREMOTE_ADDR.X-Forwarded-Foris not trusted without a proxy allowlist. Behind a reverse proxy every visitor can share one counter. A fix is planned for a later patch. Still open: sgt7wKlT.
Full list: CHANGELOG.md section [2.4.1].
Upgrade
npm install -g @stagepass/cli@2.4.1Then, in each PHP project ("php": true in stagepass.json):
stagepass upgradeThat writes a missing web-root .htaccess and can replace an unmodified scripts/build.mjs. It does not replace api/action.php. Apply the OPTIONS remedy above on projects created with 2.4.0. nginx administrators add the snippet before location ~ \.php$. Rebuild with stagepass build so dist/ receives the .htaccess. .env, .php/.env, and .php/rate-limit/ are still not copied.
Verification
-
Docker Node 22 and Node 24 on the release tree: CLI 747 passed (1 skipped), loader 198, modules 54, packed smoke passed.
-
Docker deny tests, 13 November 2026, 01:02 Europe/Berlin, php:8.2-apache and nginx 1.27 with php:8.2-fpm. Fresh 2.4.1 scaffold:
/.env,/.php/.env,/.php/config.php,/.htaccess,/api/.env.example,/.git/HEADHTTP 403 with no secret leak;/api/action.php?action=pingHTTP 200,{"status":"success","data":{"pong":true},"message":null};/.well-known/test.txtHTTP 200, bodywell-known-ok; OPTIONS/api/action.phpHTTP 204 with noX-Powered-By. Same path results on nginx. -
The same deny run on a project created with published CLI 2.4.0 and then upgraded with 2.4.1: path probes passed, and OPTIONS stayed HTTP 204 with
X-Powered-By: PHP/8.2.35. That is the remainder above. -
Remedy retest, 13 November 2026, 03:31 Europe/Berlin: header lines and
expose_php = Offboth clear the header;.htaccessphp_flagandini_setdo not. -
macOS smoke test, 13 November 2026, 01:07 to 01:11 Europe/Berlin:
new --php,build,dev,watchwith the local.spAPI (ping 200, preflight 204 withoutX-Powered-By),upgradeof a 2.4.0 PHP project, anddoctorall passed. -
After publish, 13 November 2026, 09:21 to 09:22 Europe/Berlin: clean Docker Node 22
npm i -g @stagepass/cli@latestinstalled 2.4.1 andstagepass --versionprinted 2.4.1.stagepass newis refused in Linux Docker ("Stagepass CLI supports macOS only"). Isolated native install on Cerebro:stagepass new testht --php --no-link --yes --no-install --no-gitwrote the web-root.htaccess; afternpm installandstagepass build,dist/.htaccesswas byte-identical (sha256ccddae64b7cd82b82c6f74f8f7750a6aa07929ad251c2e6dd39794526ff278dc). The registry tarball sha256 matches freeze r2.
@stagepass/loader 2.5.0
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-nocacheon a singledata-stagepassasset (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_cbin the query is replaced, not duplicated;&in the path and the hash stay untouched. - Order: original query (without
_cb), thenv=<version>fromdata-stagepass-v/data-stagepass-version, then_cb. - No effect during an active local swap session or on
data-stagepass-live-src="true"assets.
- Sets exactly one
data-stagepass-cachebuststays 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
_cbreplaced, 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.jsserves the same file (sha256ac5ff425e4010147752a45b18fad8d6cb2b981cb17019d9edd414712bb1fa43c).
@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.
@stagepass/cli 2.4.0
CLI-only minor release
Published on npm as @stagepass/cli@2.4.0 on 12 November 2026 at 18:38 Europe/Berlin. Source tag cli-v2.4.0 → 9886c4a541a52cea5e39c828d40980b32eff1d78 (tag object 2f936ad). npm package shasum 43d883c87a97d0efe16332cadc122a402634c07e, integrity sha512-WXaKsuNdnFd6xab/nXUOGvXXzlxxvsr+mg3l8swU0eCb3PQKNcAjfUgigEz/ldCzJn5xbpIxPEQudLJSdc/kAQ==, tarball sha256 d569578e3e5ba2df5352caf085fd808136af68f40a7e4f9fd9cd824a45f6ba34. npm dist-tag latest is 2.4.0. next remains 2.3.0-beta.1.
Install or update with npm install -g @stagepass/cli@latest. If stagepass doctor then reports a daemon version that differs from the CLI, run stagepass autostart on once. The v3 site block needs Caddy 2.9 or newer (brew upgrade caddy).
Loader (2.5.0) and Modules (2.2.2) are separate packages and not part of this release.
Highlights
- Command suggestions for a misplaced top-level option (#78): for example
stagepass --origin <host>suggestsstagepass link --origin <host>. Nothing is executed; the hint is stderr-only and the exit code stays non-zero. stagepass watchandstagepass devwrite only stabledist/main.jsanddist/styles.css(no hash files, nomanifest.jsonwrites) (#79).stagepass buildstill writes hashes, stable copies, and SRI, then removes stale hashed files, including CLI 2.2.x string manifests.stagepass upgradereplaces an unmodified scaffoldscripts/build.mjs(#80). Line endings are ignored. An edited script is left unchanged. On a TTY the prompt defaults to yes; without a TTY, and with--yes, the file is replaced.- Optional PHP boilerplate from
stagepass new --php(plain PHP 8.2, no Composer, no mail) (#82):api/action.php, allowlisted actions,api/.env.example, and.php/config.php. The interactive wizard always asks.doctor,dev, andwatchwarn when PHP is missing, older than 8.2, or has no php-fpm/php-cgi, and the JS build continues. On a"php": trueproject,dev/watchstart Homebrew php-fpm.stagepass buildcopiesapi/and.php/config.phpintodist/and skips.env, rate-limit files, logs, pid files, and key, certificate, or database files.load_config()reads.envin the project root (the folder that containsapi/) and.php/.env. It does not read a file namedapi/.env.stagepass buildnever copies those files intodist/. Real environment variables on the host are the safest option. Any.envfile you place in the deployed web root needs a deny rule; published 2.4.0 does not ship one. - Interactive
stagepass new --no-linkno longer asks to link on macOS (#83). - Linked
.spresponses set a singleAccess-Control-Allow-Originon HTTP 2xx (Caddy v3). That block needs Caddy 2.9 or newer. When Caddy is known to be older than 2.9,link/reload/startleave existing blocks unchanged and printbrew upgrade caddy.doctorreports the version and warns (does not fail) below 2.9.
Full list: CHANGELOG.md section [2.4.0].
Notes for upgraders
- Known limit, still open on Trello
jd36WpR1: without a TTY and without--yes,stagepass upgradestill replaces an unmodified scaffoldscripts/build.mjs(same as with--yes). Customised scripts stay untouched.
Verification
- Self-hosted CI green (Node 22 / 24, e2e) on PR #84 (final head
9886c4a, PR run 43258848863, push 43258834522) and on master after merge (43268292074). The release workflow on tagcli-v2.4.0succeeded (43269299518) and staged 2.4.0 directly onlatest. - The published tarball sha256
d569578e3e5ba2df5352caf085fd808136af68f40a7e4f9fd9cd824a45f6ba34and integrity match the accepted freeze at9886c4a. RegistrygitHeadis9886c4a541a52cea5e39c828d40980b32eff1d78. - Docker Node 22 / 24 on the release tree: CLI 737 passed (1 skipped), loader 198, modules 54, packed smoke passed.
@stagepass/cli 2.3.1
CLI-only patch release
Published on npm as @stagepass/cli@2.3.1 on 12 November 2026 at 12:06 Europe/Berlin. Source tag cli-v2.3.1 → 2688c811cf1beb59a7d460c0df49c73737b8c1b1 (tag object 8d8b1d5). npm package shasum f858a0a83612f2b4e91e7183f908c5e9bec058b1, integrity sha512-ZcAE3YAw8z59RmjPcxjiYRSS94ZUqDDcD1aL12GxqqEVANI3QhVHyZenUkLgOv749251cAwKyaUIzoiXCc2UrQ==. npm dist-tag latest is 2.3.1.
Install or update with npm install -g @stagepass/cli@latest. If stagepass doctor then reports a daemon version that differs from the CLI, run stagepass autostart on once.
Loader (2.5.0) and Modules (2.2.2) are separate packages and not part of this release.
Fixed (#74)
- The LaunchAgent plist uses the Homebrew
bin/nodeshim when the running node is a versioned Cellar path, sobrew upgrade nodeno longer leaves login autostart pointing at a deleted binary. stagepass doctorfails when a LaunchAgent node or CLI path is missing, and warns when that node path is a versioned Cellar path or the running daemon version differs from the CLI (fix:stagepass autostart on). The daemon records its version in~/.stagepass/daemon.json.stagepass autostart onwaits for launchd to unload the previous job and retries a racing bootstrap, so re-running it with the daemon loaded no longer leaves autostart unloaded.
Full list: CHANGELOG.md section [2.3.1].
Verification
- Self-hosted CI green (Node 22 / 24, e2e) on PR #76 and on the release workflow that staged 2.3.1 directly on
latest. - The published tarball is byte-identical to the accepted release pack.
- Real global update on a Mac from 2.3.0 to 2.3.1 with
scripts/mac-update-check.sh latest: version 2.3.0 → 2.3.1, LaunchAgent moved from the Cellar node path to/opt/homebrew/bin/node, daemon version 2.3.1,stagepass doctor32 ok / 0 warn / 0 fail, all local certificates sha256-identical before and after.
Known limits
- A daemon started by 2.3.0 does not write
daemon.json, so doctor can only detect a version mismatch once a 2.3.1 daemon has run; the update check script treats a missing version as a mismatch and runsstagepass autostart on.