Spacefast 0.5.0 release notes
Spacefast version 0.5.0: CLI and package changes.
CLI
Minor Changes
-
Default new share links and password credentials to the viewer role. Pass
--role commenterto grant commenting access. Showstatus: "stored"insf feedback --jsonreceipts. -
Every worker has a database and outbound fetch — nothing to declare.
sf.jsoncno longer takesruntime.databaseorruntime.fetch; a stale key is warned about and ignored, not obeyed. A Functions worker always getsenv.DB, and how far outboundfetchreaches is decided by the space: an unclaimed space reaches a trusted host list, a claimed one reaches any public host. -
sf devruns actions and their fetches.A capsule’s
actionsrun locally overaction.run, andfetch()inside any local handler goes through the isolate’s host bridge instead of failing as undefined. -
Claim a hostname attached to another Space with a unique DNS TXT record, or move it directly when authorized to manage both Spaces. Expose ownership instructions and move status through the API and CLI, including
sf domains check --move. -
A coding agent can sign the CLI in from its MCP session — no second login.
The MCP server has a new
cli_logintool. It returns a one-use link thatsf login --handoffredeems over stdin, and the CLI gets the same access as the MCP connection: disconnect Spacefast and the CLI login stops too. The MCP guidance now tells agents that can run shell commands to publish local files withsf publish, which reads them from disk instead of sending every file through the conversation. -
Connect custom domains directly to a Space through WP Cloud, without team inventory or registration prerequisites. Domain removal deletes the Space attachment instead of retaining an unassigned serving record. Keep apex/www redirects in the existing routing engine without redirecting version or branch preview URLs.
Keep domain registration and managed-DNS commands as separate, opt-in features. Their feature flags are disabled by default and do not affect Space custom-domain attachment.
Custom-domain serving integrations must use
/v1/spaces/{spaceId}/domainsand its attachment endpoints. The optional registration and DNS APIs do not manage Space attachments. -
Add numeric and optional database fields, user references, indexed counts, application sign-in policies, and transactional guest upgrades to Zero. Query hooks now distinguish loading from empty or null results. Uploads are private by default, with explicit public sharing.
Add local development identities, multiple isolated dev servers, query inspection, storage transfers, and retained Space archive and restore commands. Newly compiled apps require an engine that implements these contracts before publication.
Patch Changes
-
When a detected
bun install --frozen-lockfilefails becausebun.lockno longer matchespackage.json,sf buildandsf publishinstall frompackage.jsonwithbun installand report abuild_install_lockfile_stalewarning instead of failing the build. -
Link the team’s billing page when a plan limit that a paid plan raises blocks a command.
-
Allow approved rollback and promotion requests to resume with their continuation token.
-
Retry CLI update checks after registry failures and whenever the installed CLI version changes.
-
sf setup agentno longer fails withvalidation_errorwhen you keep the picker’s default Universal (.agents) choice. -
Publish TanStack Start apps built with Nitro’s
cloudflare-modulepreset automatically:.output/publicships as files and the Nitro server runs as the site’s worker with its Wrangler settings and D1 databases. -
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
- @spacefast/common@0.5.0
- @spacefast/routing@0.5.0
- @spacefast/zero@0.5.0
- @spacefast/mcp@0.5.0
- @spacefast/sdk@0.5.0
- @spacefast/builders@0.5.0
- @spacefast/domain-search-terminal@0.5.0
- @spacefast/zero-compat-emdash@0.5.0
- @spacefast/zero-compat-payloadcms@0.5.0
- @spacefast/zero-compile@0.5.0
- @spacefast/adapter-kit@0.5.0
- @spacefast/next-adapter@0.5.0
- @spacefast/build-output@0.5.0
-
Build CLI commands as self-contained entry bundles with declared package dependencies resolved by Node. Keep the canonical WordPress block serializer private to the compiler so CLI installation does not inherit editor peer dependencies, and publish the browser API declarations.
-
Fix CLI domain and storage lists and the MCP Space domains view to read the API response shapes returned by the shared transport.
-
Framework builds and Zero compose in one project.
sf buildandsf publishrun the framework build, compile the capsule from the project root, and publish the build output at/with the runtime beside it; a Zero project whose build script renders into the project root publishes the root. Sources, lockfiles,tsconfig*.json, TypeScript files, andtools/stay out of the published files. Thebuildsettings insf.jsoncapply to local builds too,sf publish --remotetakes the build lane when the project has a build, and a host project’stsconfig.jsonno longer rebinds the JSX runtime of Zero pages.Local Zero previews also accept source-backed Markdown and HTML documents. Their source preview escapes author markup instead of requiring compiled HTML or executing the source.
Prebuilt publishes reuse compiled Zero and Functions metadata from the build archive’s sidecar instead of recompiling sources removed during packaging. Invalid runtime metadata fails before upload.
-
Ship native CLI executables with an immutable compiler dependency tree so build and dev work without a workspace or runtime dependency downloads. Verify each platform’s release archive with real compilation, a local query and MCP worker execution.
Use host filesystem paths when naming compiler platform assets so Windows builds emit valid portable asset names.
-
Build Next.js 16
proxy.tsapplications with the current OpenNext runtime adapter. -
Detect Worker entries and compatibility settings from Wrangler JSON, JSONC, and TOML configs. Preserve JSONC strings and trailing commas. Explain that D1 SQLite queries and migrations cannot use Spacefast’s MySQL binding unchanged.
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
- @spacefast/zero-compile@0.5.0
- @spacefast/common@0.5.0
- @spacefast/sdk@0.5.0
- @spacefast/mcp@0.5.0
- @spacefast/zero@0.5.0
- @spacefast/builders@0.5.0
- @spacefast/zero-compat-emdash@0.5.0
- @spacefast/zero-compat-payloadcms@0.5.0
- @spacefast/domain-search-terminal@0.5.0
- @spacefast/routing@0.5.0
- @spacefast/next-adapter@0.5.0
- @spacefast/build-output@0.5.0
@spacefast/adapter-kit
Patch Changes
- Updated dependencies
- @spacefast/routing@0.5.0
- @spacefast/build-output@0.5.0
- @spacefast/routing@0.5.0
- @spacefast/build-output@0.5.0
@spacefast/astro
Patch Changes
- Updated dependencies
- @spacefast/routing@0.5.0
- @spacefast/adapter-kit@0.5.0
- @spacefast/routing@0.5.0
- @spacefast/adapter-kit@0.5.0
@spacefast/builders
Patch Changes
- Updated dependencies
- @spacefast/common@0.5.0
- Detect Worker entries and compatibility settings from Wrangler JSON, JSONC, and TOML configs. Preserve JSONC strings and trailing commas. Explain that D1 SQLite queries and migrations cannot use Spacefast’s MySQL binding unchanged.
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/common@0.5.0
@spacefast/common
Minor Changes
-
Claim a hostname attached to another Space with a unique DNS TXT record, or move it directly when authorized to manage both Spaces. Expose ownership instructions and move status through the API and CLI, including
sf domains check --move. -
Add numeric and optional database fields, user references, indexed counts, application sign-in policies, and transactional guest upgrades to Zero. Query hooks now distinguish loading from empty or null results. Uploads are private by default, with explicit public sharing.
Add local development identities, multiple isolated dev servers, query inspection, storage transfers, and retained Space archive and restore commands. Newly compiled apps require an engine that implements these contracts before publication.
Patch Changes
-
One hostname rule everywhere:
normalizeHostnamenow lives in@spacefast/common/utils/hostname(@spacefast/routing/hostnamestill re-exports it). It folds ASCII case and trims ASCII whitespace only, as DNS does, so a non-ASCII host likeK.example(Kelvin sign) no longer collapses into a different ASCII name.verifyVisitorTokenin@spacefast/zerocompares hosts with the same rule, soexample.com.andexample.comare one host. -
Build CLI commands as self-contained entry bundles with declared package dependencies resolved by Node. Keep the canonical WordPress block serializer private to the compiler so CLI installation does not inherit editor peer dependencies, and publish the browser API declarations.
-
Framework builds and Zero compose in one project.
sf buildandsf publishrun the framework build, compile the capsule from the project root, and publish the build output at/with the runtime beside it; a Zero project whose build script renders into the project root publishes the root. Sources, lockfiles,tsconfig*.json, TypeScript files, andtools/stay out of the published files. Thebuildsettings insf.jsoncapply to local builds too,sf publish --remotetakes the build lane when the project has a build, and a host project’stsconfig.jsonno longer rebinds the JSX runtime of Zero pages.Local Zero previews also accept source-backed Markdown and HTML documents. Their source preview escapes author markup instead of requiring compiled HTML or executing the source.
Prebuilt publishes reuse compiled Zero and Functions metadata from the build archive’s sidecar instead of recompiling sources removed during packaging. Invalid runtime metadata fails before upload.
@spacefast/compat-lakebed
Patch Changes
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/zero@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/zero@0.5.0
@spacefast/domain-sdk
Minor Changes
-
Publish
@spacefast/domain-sdk, the Spacefast provider fordomain-sdk. A product that lets its customers bring a domain can now drive Spacefast through the same typed client it already uses for Vercel, Cloudflare, or Netlify:add,get,list,verify, andremoveover the custom domains on one Space.An apex and its
wwwtwin are one Spacefast attachment, so either spelling resolves to the same domain and each answer reports the hostname that was asked for. The Space’s own*.view.fasthostname stays hidden,add()is idempotent across a concurrent attach, and record and certificate state come from the Space’s live diagnostics — reported asunknownwhen those cannot be read, rather than claiming something was observed.
@spacefast/domain-search-terminal
Patch Changes
- Updated dependencies
- Updated dependencies
- @spacefast/common@0.5.0
- @spacefast/sdk@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/common@0.5.0
- @spacefast/sdk@0.5.0
@spacefast/domain-services
Patch Changes
- Updated dependencies
- @spacefast/common@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/common@0.5.0
@spacefast/image
Patch Changes
@spacefast/imageloads fromnext.config.ts: the package exports gained adefaultcondition, and the documented recipe uses a project-local loader file, which is what Next’simages.loaderFileexpects. Verified against a packed install on Next 15.5 and 16.x.
@spacefast/mcp
Minor Changes
- Agents see fewer, sharper MCP tools. Work mode, visual review feedback, page screenshots, and traffic rules now run inside
execute, which also teaches agents to show screenshots as images. The build log view no longer reopens while a build runs, and the database view drops its console button: usesf db consoleor the dashboard. The prompt menu adds a tour, visual review, source browsing, and guided workflows for domains, sharing, rollbacks, and failed builds. - Claim a hostname attached to another Space with a unique DNS TXT record, or move it directly when authorized to manage both Spaces. Expose ownership instructions and move status through the API and CLI, including
sf domains check --move.
Patch Changes
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/common@0.5.0
- @spacefast/routing@0.5.0
- @spacefast/zero@0.5.0
- @spacefast/sdk@0.5.0
- @spacefast/zero-compile@0.5.0
- Fix CLI domain and storage lists and the MCP Space domains view to read the API response shapes returned by the shared transport.
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/zero-compile@0.5.0
- @spacefast/common@0.5.0
- @spacefast/sdk@0.5.0
- @spacefast/zero@0.5.0
- @spacefast/routing@0.5.0
@spacefast/next-adapter
Patch Changes
- @spacefast/adapter-kit@0.5.0
- @spacefast/build-output@0.5.0
- @spacefast/adapter-kit@0.5.0
- @spacefast/build-output@0.5.0
@spacefast/routing
Patch Changes
- One hostname rule everywhere:
normalizeHostnamenow lives in@spacefast/common/utils/hostname(@spacefast/routing/hostnamestill re-exports it). It folds ASCII case and trims ASCII whitespace only, as DNS does, so a non-ASCII host likeK.example(Kelvin sign) no longer collapses into a different ASCII name.verifyVisitorTokenin@spacefast/zerocompares hosts with the same rule, soexample.com.andexample.comare one host. - Updated dependencies
- @spacefast/common@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/common@0.5.0
@spacefast/sdk
Minor Changes
-
Claim a hostname attached to another Space with a unique DNS TXT record, or move it directly when authorized to manage both Spaces. Expose ownership instructions and move status through the API and CLI, including
sf domains check --move. -
Bind every upload to the API the caller selected, and to the session response that API returned.
uploadSessionFilesnow requiresapiUrl: it is the origin a relative target resolves against, and the only non-runtime origin an upload may reach. Previously any HTTPS target the session response named was accepted, so a substituted target received the caller’s bytes and session headers.An upload destination now has to satisfy two independent facts, and route shape is neither. Its host must be one the session response named (or the selected API origin), and it must be a runtime upload endpoint naming the caller’s own Space or upload session — anything else has to be verbatim a destination that session issued. Matching
/spaces/<id>/blobs/<sha>no longer admits a host: the Space id is already in every legitimate target, so it is not a secret and cannot establish who receives the bytes. Reaching a trusted origin is likewise not enough to reach an arbitrary resource on it.This is a breaking change for direct callers of
uploadSessionFilesfrom@spacefast/sdk/publish. Pass the API base URL you already configured for the transport; never read it back out of the upload session. Direct callers ofassertUploadDestinationin@spacefast/common/utils/upload-sessionmust now supplynamed— useuploadSessionDestinations(session).
Patch Changes
- Reject an unreadable tracked publish operation instead of reporting a completed wait.
- Updated dependencies
- @spacefast/common@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/common@0.5.0
@spacefast/vite-plugin
Patch Changes
- Updated dependencies
- @spacefast/routing@0.5.0
- @spacefast/adapter-kit@0.5.0
- @spacefast/routing@0.5.0
- @spacefast/adapter-kit@0.5.0
@spacefast/zero
Minor Changes
-
Add
ctx.jwt.signandctx.cryptoto Zero server handlers.ctx.jwt.sign({ key, kid, claims, ttlSeconds })signs short-lived Ed25519at+jwtaccess tokens with a key held in a secret variable that never entersctx.env.ctx.cryptoaddssha256,hmacSha256, andtimingSafeEqualfor webhook signature checks and key hashing. -
Add
@spacefast/zero/react: React hooks (useQuery,useMutation,useAction,usePaginatedQuery,useAuth) and a typedcreateClient<typeof app>()over the same browser client as@spacefast/zero/client. React is an optional peer dependency; the React entry never loads Preact. -
Add per-Space app accounts with Google, Gravatar, and native Spacefast Access sign-in, verified email addresses, and revocable sessions. Add Users settings and account management to the API, SDK, CLI, and MCP.
-
Actions are back, endpoints take
readOnly, andfetch()works everywhere.capsule({ actions })declares handlers that read the database and reach the network without holding a transaction —action()on the server,useAction()on the client, overaction.run. Persist what an action learned by handing its result to a mutation.endpoint({ method, path, readOnly? })replacesmode: aGETorHEADreads, anything else writes, andreadOnlyoverrides that when the method and the intent disagree. The derived mode still rides the compiled artifact.fetch()is a global in every handler kind. How far it reaches is decided by the space, not the build — an unclaimed space reaches a trusted host list, and claiming it opens the rest of the public web. -
Add numeric and optional database fields, user references, indexed counts, application sign-in policies, and transactional guest upgrades to Zero. Query hooks now distinguish loading from empty or null results. Uploads are private by default, with explicit public sharing.
Add local development identities, multiple isolated dev servers, query inspection, storage transfers, and retained Space archive and restore commands. Newly compiled apps require an engine that implements these contracts before publication.
Patch Changes
- One hostname rule everywhere:
normalizeHostnamenow lives in@spacefast/common/utils/hostname(@spacefast/routing/hostnamestill re-exports it). It folds ASCII case and trims ASCII whitespace only, as DNS does, so a non-ASCII host likeK.example(Kelvin sign) no longer collapses into a different ASCII name.verifyVisitorTokenin@spacefast/zerocompares hosts with the same rule, soexample.com.andexample.comare one host. verifyUserreads only the__Host-sfi_sessioncookie over HTTPS, so a session cookie planted by a sibling host under the same parent domain is ignored.- Updated dependencies
- @spacefast/common@0.5.0
- Keep query results associated with their arguments while subscriptions change. Paginated clients no longer append the previous page again while the next cursor is loading.
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/common@0.5.0
@spacefast/zero-compat-emdash
Patch Changes
- Updated dependencies
- @spacefast/common@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/common@0.5.0
@spacefast/zero-compat-payloadcms
Patch Changes
- Updated dependencies
- @spacefast/common@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @spacefast/common@0.5.0
@spacefast/zero-compile
Minor Changes
-
Add numeric and optional database fields, user references, indexed counts, application sign-in policies, and transactional guest upgrades to Zero. Query hooks now distinguish loading from empty or null results. Uploads are private by default, with explicit public sharing.
Add local development identities, multiple isolated dev servers, query inspection, storage transfers, and retained Space archive and restore commands. Newly compiled apps require an engine that implements these contracts before publication.
Patch Changes
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
- @spacefast/common@0.5.0
- @spacefast/zero@0.5.0
-
Build CLI commands as self-contained entry bundles with declared package dependencies resolved by Node. Keep the canonical WordPress block serializer private to the compiler so CLI installation does not inherit editor peer dependencies, and publish the browser API declarations.
-
Framework builds and Zero compose in one project.
sf buildandsf publishrun the framework build, compile the capsule from the project root, and publish the build output at/with the runtime beside it; a Zero project whose build script renders into the project root publishes the root. Sources, lockfiles,tsconfig*.json, TypeScript files, andtools/stay out of the published files. Thebuildsettings insf.jsoncapply to local builds too,sf publish --remotetakes the build lane when the project has a build, and a host project’stsconfig.jsonno longer rebinds the JSX runtime of Zero pages.Local Zero previews also accept source-backed Markdown and HTML documents. Their source preview escapes author markup instead of requiring compiled HTML or executing the source.
Prebuilt publishes reuse compiled Zero and Functions metadata from the build archive’s sidecar instead of recompiling sources removed during packaging. Invalid runtime metadata fails before upload.
-
Ship native CLI executables with an immutable compiler dependency tree so build and dev work without a workspace or runtime dependency downloads. Verify each platform’s release archive with real compilation, a local query and MCP worker execution.
Use host filesystem paths when naming compiler platform assets so Windows builds emit valid portable asset names.
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
-
Updated dependencies
- @spacefast/common@0.5.0
- @spacefast/zero@0.5.0