Skip to content

Releases

@stagepass/modules 2.2.3

Choose a tag to compare

@stagepass-build stagepass-build released this 27 Nov 09:38
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).

@stagepass/loader 2.5.2

Choose a tag to compare

@stagepass-build stagepass-build released this 27 Nov 09:38
5f31e0c

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@2 and /loader@2.5.1 are treated as directories when resolving session chunks (flag.min.js, flag-card.min.js, live.min.js). Previously flagBase(..., true) always used new URL('./', src), so those aliases resolved to the CDN origin and requested /flag.min.js at 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@2 and https://cdn.stagepass.one/modules@2. An exact pin (e.g. /loader@2.5.2/loader.min.js, optionally with data-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, then v, then _cb) and data-stagepass-nocache vs legacy data-stagepass-cachebust (#138).

Tests

  • Session and swap branch coverage for surviving mutants: expiry at the now boundary, non-finite expires, custom vs fallback session hours, production/debug paths that must not swap (#142).
  • Flag base resolution covers Stagepass CDN short aliases and jsDelivr / unpkg file paths (#161).

@stagepass/cli 2.7.0

Choose a tag to compare

@stagepass-build stagepass-build released this 27 Nov 09:39
5f31e0c

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; :443 is stripped; other ports, credentials, and non-http(s) schemes are rejected. Prints Using <host> when normalised (#168).
  • Footer snippets: a concrete production host fills data-src / data-href (https://<host>/js/main.js, …/css/styles.css); wildcards fall through to GitHub jsDelivr or YOUR-PRODUCTION-URL. stagepass new and stagepass upgrade pass production (#170).
  • stagepass new no 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@2 without data-stagepass-version. Exact pins stay documented via SNIPPET_LOADER_VERSION / SNIPPET_MODULES_VERSION (#162).
  • Docs and templates prefer stagepass build / watch / dev over calling npm scripts directly (#139).

@stagepass/loader 2.5.1

Choose a tag to compare

@stagepass-build stagepass-build released this 22 Nov 12:08
9b441eb

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

  • localStorage and sessionStorage capability is probed lazily and memoized, on sp.can('localStorage'|'sessionStorage') or when sp.vars.client.capabilities.localStorage / .sessionStorage is read, not on every page load.

Fixed

  • Ordinary visits no longer write and delete __stagepass_test__ in localStorage or sessionStorage (os#155). Each load still reads stagepass_domain and removes that key only when the value is stale or invalid.

Privacy

  • No cookies. An ordinary visit reads stagepass_domain once 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.js as 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

Choose a tag to compare

@stagepass-build stagepass-build released this 22 Nov 12:08
3d8527c

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 (--yes and the wizard), stagepass start, and stagepass upgrade default to the Stagepass CDN (https://cdn.stagepass.one) with exact pins and full file paths.
  • stagepass new --cdn jsdelivr and a persisted "cdn": "jsdelivr" in stagepass.json keep the jsDelivr major pin @2.
  • Default Stagepass CDN snippets also print a jsDelivr alternative line.
  • Live-site detection recognises cdn.stagepass.one.
  • stagepass doctor CDN hints recommend an exact version on the Stagepass CDN, or @2 on jsDelivr, instead of "prefer @2".

Added

  • stagepass new persists the snippet host as cdn in stagepass.json (stagepass or jsdelivr). stagepass upgrade reads that key.

Verification

  • Self-hosted CI on Cerebro for PR #158 was green on 84502a1 before merge. Release stage run 45019217444 was green. Post-merge master Tests run 45019082422 failed once on e2e (live-reload.spec.ts CSS swap, 100ms) and was green on rerun (attempt 2).
  • npm latest is 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

Choose a tag to compare

@arobertherz arobertherz released this 17 Nov 17:13
557e7d6

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 new and stagepass upgrade write AGENTS.stagepass.md, owned by the CLI. AGENTS.md stays user-owned and keeps only a short pointer between managed markers.
  • .cursor/rules/stagepass.mdc is 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 upgrade can retrofit editor types in an existing project, including a stagepass.d.ts file when a plain types array is not present.
  • stagepass dev also watches api/ and .php/ when "php": true.

Changed

  • Without a TTY and without --yes, stagepass upgrade leaves an unmodified scripts/build.mjs in 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_ENV is local, development, or dev. client_ip() reads X-Forwarded-For or Forwarded only when REMOTE_ADDR is listed in TRUSTED_PROXIES. stagepass upgrade does not change api/. 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 src stays on the major pin @2.
  • Footer snippets use a jsDelivr GitHub file URL when origin is a GitHub remote, otherwise https://YOUR-PRODUCTION-URL/js/main.js and the matching CSS file.
  • The release workflow runs scripts/check-published-versions.mjs before npm 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 557e7d6 passed.
  • npm latest is 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

Choose a tag to compare

@arobertherz arobertherz released this 13 Nov 08:23
23d0814

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 --php ship a web-root .htaccess that denies hidden path segments (HTML5 Boilerplate file_access, with visible files under /.well-known/ left reachable). stagepass build copies that file into dist/ when "php": true and the project has one. It still does not copy .env, .php/.env, or .php/rate-limit/. An existing project .htaccess is not replaced. A dist/.htaccess stays when the project has none. A symlink .htaccess is not copied. Published CLI 2.4.0 does not include this file.
  • nginx does not read .htaccess. In the server block, before location ~ \.php$:
location ~* /\.(?!well-known\/) {
    deny all;
}

If this location comes later, /.php/config.php can be passed to php-fpm.

  • stagepass upgrade writes that same .htaccess when stagepass.json has "php": true and the project root has no .htaccess. The bytes match stagepass new --php. An existing .htaccess is never overwritten. If the file has no RewriteRule "(^|/)\." - [F] line, upgrade prints a hint (https://stagepass.one/docs/php/ and api/README.md) and still exits 0. A symlink or directory named .htaccess is left in place. Projects without "php": true are unchanged. --dry-run writes 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 contains api/ (the project root locally, dist/ after stagepass build). load_config() reads .env in that folder and .php/.env. It does not read a file named api/.env.
  • OPTIONS preflight on a 2.4.1 api/action.php removes X-Powered-By before the 204 response. header_remove previously ran only in respond(), which that path does not call. The new lines, after the origin check and before http_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.php from 2.4.0. stagepass upgrade does not replace PHP sources. An allowed OPTIONS preflight is still HTTP 204 and still sends X-Powered-By: PHP/8.2.35 (measured on the upgrade fixture). GET ping already omits the header, because respond() calls header_remove.
  • Remedy, verified 13 November 2026 on php:8.2-apache (AllowOverride All, a2enmod rewrite), Origin https://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. ping stays 200.
    • Or set expose_php = Off in php.ini (or a file in the PHP scan directory). expose_php is PHP_INI_SYSTEM (access bitmask 4). OPTIONS and GET then omit X-Powered-By, including a PHP file that never calls header_remove.
    • php_flag expose_php off in .htaccess does not change it. In the same file, php_flag display_errors off does apply (display_errors is PHP_INI_ALL). ini_set('expose_php', '0') returns false and leaves the value On. OPTIONS still sends X-Powered-By.
  • Rate limiting is unchanged and is documented only. rate_limit_allows() is meant to be fail-open (a failed flock or 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 only REMOTE_ADDR. X-Forwarded-For is 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.1

Then, in each PHP project ("php": true in stagepass.json):

stagepass upgrade

That 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/HEAD HTTP 403 with no secret leak; /api/action.php?action=ping HTTP 200, {"status":"success","data":{"pong":true},"message":null}; /.well-known/test.txt HTTP 200, body well-known-ok; OPTIONS /api/action.php HTTP 204 with no X-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 = Off both clear the header; .htaccess php_flag and ini_set do not.

  • macOS smoke test, 13 November 2026, 01:07 to 01:11 Europe/Berlin: new --php, build, dev, watch with the local .sp API (ping 200, preflight 204 without X-Powered-By), upgrade of a 2.4.0 PHP project, and doctor all passed.

  • After publish, 13 November 2026, 09:21 to 09:22 Europe/Berlin: clean Docker Node 22 npm i -g @stagepass/cli@latest installed 2.4.1 and stagepass --version printed 2.4.1. stagepass new is refused in Linux Docker ("Stagepass CLI supports macOS only"). Isolated native install on Cerebro: stagepass new testht --php --no-link --yes --no-install --no-git wrote the web-root .htaccess; after npm install and stagepass build, dist/.htaccess was byte-identical (sha256 ccddae64b7cd82b82c6f74f8f7750a6aa07929ad251c2e6dd39794526ff278dc). The registry tarball sha256 matches freeze r2.

@stagepass/loader 2.5.0

Choose a tag to compare

@arobertherz arobertherz released this 12 Nov 11:10

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.

@stagepass/cli 2.4.0

Choose a tag to compare

@arobertherz arobertherz released this 12 Nov 17:52

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> suggests stagepass link --origin <host>. Nothing is executed; the hint is stderr-only and the exit code stays non-zero.
  • stagepass watch and stagepass dev write only stable dist/main.js and dist/styles.css (no hash files, no manifest.json writes) (#79). stagepass build still writes hashes, stable copies, and SRI, then removes stale hashed files, including CLI 2.2.x string manifests.
  • stagepass upgrade replaces an unmodified scaffold scripts/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, and watch warn when PHP is missing, older than 8.2, or has no php-fpm/php-cgi, and the JS build continues. On a "php": true project, dev / watch start Homebrew php-fpm. stagepass build copies api/ and .php/config.php into dist/ and skips .env, rate-limit files, logs, pid files, and key, certificate, or database files. load_config() reads .env in the project root (the folder that contains api/) and .php/.env. It does not read a file named api/.env. stagepass build never copies those files into dist/. Real environment variables on the host are the safest option. Any .env file you place in the deployed web root needs a deny rule; published 2.4.0 does not ship one.
  • Interactive stagepass new --no-link no longer asks to link on macOS (#83).
  • Linked .sp responses set a single Access-Control-Allow-Origin on HTTP 2xx (Caddy v3). That block needs Caddy 2.9 or newer. When Caddy is known to be older than 2.9, link / reload / start leave existing blocks unchanged and print brew upgrade caddy. doctor reports 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 upgrade still replaces an unmodified scaffold scripts/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 tag cli-v2.4.0 succeeded (43269299518) and staged 2.4.0 directly on latest.
  • The published tarball sha256 d569578e3e5ba2df5352caf085fd808136af68f40a7e4f9fd9cd824a45f6ba34 and integrity match the accepted freeze at 9886c4a. Registry gitHead is 9886c4a541a52cea5e39c828d40980b32eff1d78.
  • 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

Choose a tag to compare

@arobertherz arobertherz released this 12 Nov 11:10

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/node shim when the running node is a versioned Cellar path, so brew upgrade node no longer leaves login autostart pointing at a deleted binary.
  • stagepass doctor fails 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 on waits 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 doctor 32 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 runs stagepass autostart on.