Skip to content

Releases

PocketOne v0.0.1-alpha.15

Pre-release

Choose a tag to compare

@benallfree benallfree released this 04 Dec 07:50

Read the announcement on the blog

Install or upgrade

New install on macOS or Linux:

brew install pocketonehq/tap/pocketone

That's Homebrew; the formula comes from pocketonehq/homebrew-tap.

New install on Windows:

scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket
scoop install pocketone

That's Scoop; the manifest comes from pocketonehq/scoop-bucket. To install without Scoop, see Windows without Scoop.

Without Homebrew, on macOS or Linux:

curl -fsSL https://pocketone.dev/install.sh | sh

On Linux it installs the .deb, .rpm or .apk package below for your system, which adds a systemd service (Run PocketOne on a Linux server covers setting it up); on macOS it puts pocketone in /usr/local/bin.

Upgrade:

brew update && brew upgrade pocketone

brew update refreshes the tap first: Homebrew does that on its own only once a day, so a plain brew upgrade can miss a release that's hours old.

On Windows with Scoop, scoop update pocketone. If you used the install script (or a Linux package), run the script again. Otherwise, run pocketone upgrade (it keeps the old executable as pocketone-<version>, pocketone-<version>.exe on Windows) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.

What's in this release

Highlights

  • Billing (new). Sell subscriptions and one-time purchases from your app through Stripe, Paddle or Creem: products, checkout (signed in or pay first), webhooks, entitlements, manual grants, a Billing page in the dashboard and $billing in page code. Billing and its processors are community extensions, added in a custom build (Add Billing to your app).
  • Built on PocketBase v0.43.0. Apps pass Go contexts with app.WithContext(ctx), and an OAuth2 sign-in that finishes from a different IP gets a confirmation page instead of an error. Custom Go builds have a few renames (Upgrading, below).
  • Go contexts in JS. new TimeoutContext(seconds) and new CancelContext() stop work early in $app.withContext(ctx), fn.async(ctx, ...), $llm.withContext(ctx) and $wasm.withContext(ctx). They replace AbortController, AbortSignal and asyncWith, which are gone (JSVM, LLM).
  • Bulk Mail checks recipients at send time. A recipient deleted or no longer in the audience since the campaign was queued is skipped, and new Links URL and Unverify accounts on a bounce or complaint settings (Bulk Mail).

Upgrading

  • Custom Go builds on PocketOne: PocketBase v0.43.0 passes contexts through app.WithContext(ctx). Rewrite app.SaveWithContext(ctx, m) as app.WithContext(ctx).Save(m) (likewise Delete, Validate, the Aux* and *NoValidate variants), app.CreateBackup(ctx, name) / app.RestoreBackup(ctx, name) as app.WithContext(ctx).CreateBackup(name) / .RestoreBackup(name), and read e.App.Context() where a model, record, collection or backup hook used e.Context. Field, validator and interceptor methods lose their ctx argument. The full list is in CHANGELOG.pocketbase.md.

Fixed

  • pocketone --version and -v print the version without reading pocketone.yaml or its .env, so a config that doesn't load (a $VAR that isn't set, an unknown section) no longer stops them. This also fixes builds on binary.Main, such as pockethost --version.

Extensions

PocketBase

  • Built on PocketBase v0.43.0: app.Context() and app.WithContext(ctx), a confirmation page instead of an error when an all-in-one OAuth2 sign-in finishes from a different IP, and a JOIN alias delimiter that can't collide with collection or field names.

PocketOne v0.0.1-alpha.14

Pre-release

Choose a tag to compare

@benallfree benallfree released this 27 Nov 19:30

Install or upgrade

New install on macOS or Linux:

brew install pocketonehq/tap/pocketone

That's Homebrew; the formula comes from pocketonehq/homebrew-tap.

New install on Windows:

scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket
scoop install pocketone

That's Scoop; the manifest comes from pocketonehq/scoop-bucket. To install without Scoop, see Windows without Scoop.

Without Homebrew, on macOS or Linux:

curl -fsSL https://pocketone.dev/install.sh | sh

On Linux it installs the .deb, .rpm or .apk package below for your system, which adds a systemd service (Run PocketOne on a Linux server covers setting it up); on macOS it puts pocketone in /usr/local/bin.

Upgrade:

brew update && brew upgrade pocketone

brew update refreshes the tap first: Homebrew does that on its own only once a day, so a plain brew upgrade can miss a release that's hours old.

On Windows with Scoop, scoop update pocketone. If you used the install script (or a Linux package), run the script again. Otherwise, run pocketone upgrade (it keeps the old executable as pocketone-<version>, pocketone-<version>.exe on Windows) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.

What's in this release

Highlights

  • WASM modules stay compiled on servers without $HOME. Compiled modules are now cached in the app's pb_cache/wasm, so a server run as a systemd service no longer compiles a module on every call (about a second for a Go module). pocketone cache clear empties it (WASM).
  • Two Pages fixes. A filtered ctx.realtime.send with nobody subscribed sends nothing instead of failing with a 500, and an array read back with ctx.store(name) is a JS array again, so push works after the first request. Together they fix the Datastar starter's chat (Pages).
  • Multisite hosts know how each instance is doing. The host provides instance.status/v1: each instance is starting until /api/health answers, then running, and idle or failed when it ends, with every change sent to subscribers (Multisite).

Extensions

PocketOne v0.0.1-alpha.13

Pre-release

Choose a tag to compare

@benallfree benallfree released this 24 Nov 19:58

Read the announcement on the blog

Install or upgrade

New install on macOS or Linux:

brew install pocketonehq/tap/pocketone

That's Homebrew; the formula comes from pocketonehq/homebrew-tap.

New install on Windows:

scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket
scoop install pocketone

That's Scoop; the manifest comes from pocketonehq/scoop-bucket. To install without Scoop, see Windows without Scoop.

Without Homebrew, on macOS or Linux:

curl -fsSL https://pocketone.dev/install.sh | sh

On Linux it installs the .deb, .rpm or .apk package below for your system, which adds a systemd service (Run PocketOne on a Linux server covers setting it up); on macOS it puts pocketone in /usr/local/bin.

Upgrade:

brew update && brew upgrade pocketone

brew update refreshes the tap first: Homebrew does that on its own only once a day, so a plain brew upgrade can miss a release that's hours old.

On Windows with Scoop, scoop update pocketone. If you used the install script (or a Linux package), run the script again. Otherwise, run pocketone upgrade (it keeps the old executable as pocketone-<version>, pocketone-<version>.exe on Windows) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.

What's in this release

Highlights

  • LLM replaces Agent. Your app calls cloud models on your own keys: text, pictures, speech, transcription, music, video and embeddings, from Vultr, Cloudflare Workers AI, OpenRouter or any OpenAI-compatible API. Add providers in Settings → LLM, then await $llm.text.completeAsync({ model: "vultr/glm-5.3", prompt }) in page code. Every result says what it cost, every call is recorded, and limits in Settings → LLM (whole app, each user, each guest) stop a bill before it happens. Voice cloning and reference images are in too (AI in your app). Agent and its built-in model are gone (see Upgrading).
  • New: LLM Search. Named buckets of your app's content (files, folders, zips, web pages, Git repositories, collections) searched by meaning and keywords, and enrich: ["help"] on a completion or chat sends the best passages with the question. The new ask starter kit builds on it: pocketone pages create mydocs --starter ask (LLM Search).
  • Pages routes go by file extension, like PHP. about.ts beside about.ets is that page's code, and a .ts with no template is an endpoint; +page.ts and +api.ts are gone (see Upgrading). Async routes can wait up to 15 minutes, setTimeout and friends work, and ctx.realtime.subscribe() streams record changes to the visitor with the collection's rules applied (Pages).
  • New: Key-Value Store. $kv.get/set/delete/list keeps named JSON values without a collection or a migration, on by default (Key-Value Store).

Upgrading

  • Pages, API Tokens, LLM Chat and Remotes have upgrade steps of their own: see each one's changelog under Extensions below. In Pages, rename each +page.ts to the name of the page it serves (products/[id]/+page.ts beside index.ets becomes products/[id]/index.ts) and each +api.ts to <folder>.ts beside its folder.
  • Agent is replaced by LLM: add your providers (Vultr, Cloudflare Workers AI, OpenRouter, or any OpenAI-compatible API) in Settings → LLM, then change $agent.complete(opts) to await $llm.text.completeAsync({ model: "<provider>/<model>", ...opts }) in an async handler (every $llm call that reaches a provider is async). The built-in model, pocketone.yaml's agent: section and a multisite host's shared model are gone. Agent Chat is now LLM Chat ($llm.chat).

Added

  • LLM, a standard extension: text, pictures, speech, transcription, music, video and embeddings from cloud providers on your own keys, as $llm.<kind> in page code and the llm.* contracts. Every call names its model as provider/model.

Changed

  • PocketPages is now just Pages, a feature of every PocketOne app: the docs, starter kits and pocketone pages create say "PocketOne app" (a new app's title and heading read PocketOne). The pocketpages Agent Skill is folded into the pocketone skill (pages.md); reinstall the plugin to drop the old skill.

Fixed

  • Realtime messages reach each subscriber in the order they were sent: two quick changes to the same record could arrive swapped, so a client could end on the stale one.
  • A realtime client that disconnects no longer races the messages still being sent to it.

Extensions

PocketOne v0.0.1-alpha.12

Pre-release

Choose a tag to compare

@benallfree benallfree released this 22 Nov 07:09

Install or upgrade

New install on macOS or Linux:

brew install pocketonehq/tap/pocketone

That's Homebrew; the formula comes from pocketonehq/homebrew-tap.

New install on Windows:

scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket
scoop install pocketone

That's Scoop; the manifest comes from pocketonehq/scoop-bucket. To install without Scoop, see Windows without Scoop.

Without Homebrew, on macOS or Linux:

curl -fsSL https://pocketone.dev/install.sh | sh

On Linux it installs the .deb, .rpm or .apk package below for your system, which adds a systemd service (Run PocketOne on a Linux server covers setting it up); on macOS it puts pocketone in /usr/local/bin.

Upgrade:

brew update && brew upgrade pocketone

brew update refreshes the tap first: Homebrew does that on its own only once a day, so a plain brew upgrade can miss a release that's hours old.

On Windows with Scoop, scoop update pocketone. If you used the install script (or a Linux package), run the script again. Otherwise, run pocketone upgrade (it keeps the old executable as pocketone-<version>, pocketone-<version>.exe on Windows) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.

What's in this release

Highlights

  • JS hooks no longer crash the app on shared maps. A hook that got a record or other value another goroutine was writing could abort the whole process with concurrent map iteration and map write. Fixed in JSVM. Upgrade if you run JS hooks under load.
  • PocketOne branding in every dashboard. Instances on a multisite host and other builds on the standard set now show PocketOne's logo and version, with Docs pointing at pocketone.dev.

Extensions

PocketOne v0.0.1-alpha.11

Pre-release

Choose a tag to compare

@benallfree benallfree released this 21 Nov 15:36

Read the announcement on the blog

Install or upgrade

New install on macOS or Linux:

brew install pocketonehq/tap/pocketone

That's Homebrew; the formula comes from pocketonehq/homebrew-tap.

New install on Windows:

scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket
scoop install pocketone

That's Scoop; the manifest comes from pocketonehq/scoop-bucket. To install without Scoop, see Windows without Scoop.

Without Homebrew, on macOS or Linux:

curl -fsSL https://pocketone.dev/install.sh | sh

On Linux it installs the .deb, .rpm or .apk package below for your system, which adds a systemd service (Run PocketOne on a Linux server covers setting it up); on macOS it puts pocketone in /usr/local/bin.

Upgrade:

brew upgrade pocketone

On Windows with Scoop, scoop update pocketone. If you used the install script (or a Linux package), run the script again. Otherwise, run pocketone upgrade (it keeps the old executable as pocketone-<version>, pocketone-<version>.exe on Windows) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.

What's in this release

Highlights

  • New installation tools. Windows installs with Scoop, macOS and Linux with curl -fsSL https://pocketone.dev/install.sh | sh, and every release has .deb, .rpm and .apk packages that set PocketOne up as a systemd service (Installation). The Homebrew formula moved to pocketonehq/tap (see Upgrading).
  • pocketone clone. Start a local project from a running app: pocketone clone <url> signs you in as a superuser, pulls its code, and you're ready for pocketone dev (Deploy).

Upgrading

  1. A multisite host runs one runtime: docker when pocketone.yaml has a docker section, else pocker. A host that had a docker section and served most instances on pocker now serves them all on docker; remove the docker section to stay on pocker.
  2. Remove runtime: from instance records (instances file or mothership): it's no longer read, and every instance runs on the host's runtime.
  3. providers: { runtime/v1: ... } takes one name (runtime/v1: docker), not a list.
  4. Installed with Homebrew? The formula moved to the pocketonehq/tap tap: brew uninstall pocketone, then brew install pocketonehq/tap/pocketone. The pockethost/tap formula no longer gets new releases.

Added

  • Builds on top of PocketOne can be the whole pocketone binary plus their own commands: pocketone.dev/examples/pocketone/binary.Main takes the build's --version text, where upgrade gets releases, and extra commands (one with a PocketOne command's name replaces it). PocketHost's pockethost uses it.
  • Install on Windows with Scoop: scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket, then scoop install pocketone. Every release updates the manifest; manual steps are in Windows without Scoop.
  • Install script for macOS and Linux: curl -fsSL https://pocketone.dev/install.sh | sh installs the newest release, checking its checksum; run it again to upgrade (Installation).
  • Linux packages: every release has .deb, .rpm and .apk packages; the .deb and .rpm add a pocketone systemd service running as its own user, configured in /etc/pocketone, with data in /var/lib/pocketone (Run PocketOne on a Linux server).

Changed

  • On a multisite host, an instance's pb_cache is hoisted out of its folder to the host's pb_cache/instances/<instance id>/ (extkit.CacheDir and extkit.CacheRoot return it; hosts use extkit.InstanceCacheRoot). instances is reserved in a host's pb_cache.
  • runtime/v1 has one provider per host: pocketone serve with a multisite section registers only the runtime it runs (docker with a docker section, else pocker), and the instance record's runtime field is gone.
  • The pocketone commands that talk to a remote wait and try again when it answers 429 (rate limited), after its Retry-After (up to 4 times; a wait over a minute is reported instead).
  • pocketone login, link and clone sign in as a superuser in the browser: the app's sign-in page opens on the superuser form, even when the browser is signed in there as an app user (whose token the deploy API refuses).

Fixed

  • pocketone deploy no longer overwrites files changed on the remote since your last deploy, pull or dev: it stops and lists them, and --force overwrites (Deploy).
  • Contract streams (instance.watch/v1's stream, remote/v1 logs and the rest) no longer end after 5 minutes: they clear the server's write timeout, as PocketBase's realtime does. Edges following the mothership reconnected (and refetched every hostname) every 5 minutes.

Extensions

PocketOne v0.0.1-alpha.10

Pre-release

Choose a tag to compare

@benallfree benallfree released this 20 Nov 21:17

Read the announcement on the blog

Install or upgrade

New install:

brew install pockethost/tap/pocketone

Homebrew on macOS or Linux; the formula comes from pockethost/homebrew-tap. Or download the zip for your platform below and run ./pocketone serve.

Upgrade:

brew upgrade pocketone

Or, if you didn't install with Homebrew, run pocketone upgrade (it keeps the old executable as pocketone-<version>) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.

What's in this release

Highlights

  • ctx.pb() writes work in PocketPages. create, update and every other call with a body threw TypeError: operand 'prototype' property is not an object, because instanceof failed on Go constructors such as FormData. They work now, and validation and rule failures come back as ClientResponseError (JSVM, Pages).
  • require() works on every request. A require() inside a handler or any function that runs at request time failed with require("x"): not found from the second request on. It now resolves and loads files on its own (Pages).

Extensions

PocketOne v0.0.1-alpha.9

Pre-release

Choose a tag to compare

@benallfree benallfree released this 19 Nov 18:08

Read the announcement on the blog

Install or upgrade

New install:

brew install pockethost/tap/pocketone

Homebrew on macOS or Linux; the formula comes from pockethost/homebrew-tap. Or download the zip for your platform below and run ./pocketone serve.

Upgrade:

brew upgrade pocketone

Or, if you didn't install with Homebrew, run pocketone upgrade (it keeps the old executable as pocketone-<version>) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.

What's in this release

Highlights

  • A fix for multisite hosts running Pocker. On alpha.8, every Pocker instance that had API tokens failed to start: the API Tokens rename hit a bug in the sandbox's database driver, which also broke renaming any collection on a Pocker instance. Both work again. A single app (pocketone serve) never had the bug (Sandbox).

Extensions

PocketOne v0.0.1-alpha.8

Pre-release

Choose a tag to compare

@benallfree benallfree released this 19 Nov 16:30

Read the announcement on the blog

Install or upgrade

New install:

brew install pockethost/tap/pocketone

Homebrew on macOS or Linux; the formula comes from pockethost/homebrew-tap. Or download the zip for your platform below and run ./pocketone serve.

Upgrade:

brew upgrade pocketone

Or, if you didn't install with Homebrew, run pocketone upgrade (it keeps the old executable as pocketone-<version>) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.

What's in this release

Highlights

  • A language model in every app. $agent.complete() and $agent.stream() in pb_hooks answer from your own API or from a small model PocketOne runs itself, in the same binary: answers that match a JSON schema, threads, prompt caching, and stored conversations with Agent Chat. Pick the model in the dashboard under Settings → LLM (Agent).
  • WASM modules. Put a <name>.pb.wasm built from Go, TinyGo, Rust, Zig or C in pb_hooks and call it from your hooks with await $wasm.run.async(name, input); each call runs in its own box with memory and time limits. Thanks to @octavonu (WASM).
  • Desktop apps. pocketone desktop build turns the app folder you run with pocketone serve into a native desktop app for macOS, Windows and Linux, one executable each, from any machine (Desktop).

Upgrading

  1. The tokens extension is now api-tokens: rename tokens: to api-tokens: in pocketone.yaml, use $apiTokens in JS hooks (was $tokens), and upgrade the pocketone CLI with your apps (the token API moved to /api/_c/api-tokens/v1). Its collections are renamed on the first start (ext/api-tokens changelog).
  2. Go import paths moved from github.com/pockethost/pocketone/... to pocketone.dev/... (the code is still on GitHub; pocketone.dev points Go at it). In your own Go code, replace github.com/pockethost/pocketone/ with pocketone.dev/ in imports and go.mod (for example pocketone.dev/ext/multisite), change replace ganigeorgiev.com/pocketbase/pocketbase => github.com/pockethost/pocketone <version> to => pocketone.dev <version>, then run go mod tidy.

Added

  • pocketone runs WASM modules: put a <name>.pb.wasm in pb_hooks and call it from your hooks with await $wasm.run.async(name, input) (ext/wasm).
  • Contract streams can push: a stream operation (extkit.Stream) may be a POST with a JSON body, and its provider can send entries as they happen with Run instead of being polled every 500 ms; a Run error ends the stream with event: error. pocketone remote <contract> <op> and the generated clients follow (Contracts).
  • Extensions can own their schema: an extension that has Migrations() gets them applied at startup, after PocketBase's own migrations and before the app's pb_migrations, recorded in _extension_migrations apart from the app's history. pocketone extensions migrations lists them; pocketone extensions migrate down <extension> [n] reverts them (Writing an extension).
  • types.d.ts types every contract pb_hooks can touch, generated from its Go interface: action hooks take their operation's input (onAgentComplete((e) => e.input.maxTokens ...)), and e.provide("mail.fallback/v1", ...) checks the object's methods and arguments; unknown ids stay untyped (Contracts).
  • pb_cache/, next to pb_data, is where extensions keep files they can rebuild, one folder each (pb_cache/<extension>/). It's never backed up, deployed or synced; pocketone cache shows what's in it and pocketone cache clear [extension...] empties it (Folders). Add pb_cache/ to your app's .gitignore.

Changed

  • Extension collections are named _<extension>_<table>, with hyphens in the extension's name as underscores (_agent_chat_messages for agent-chat); the conformance test no longer accepts a bare _<extension>, and CI refuses a table that falls under another extension's longer prefix (Writing an extension).
  • Extensions keep their end-user docs in ext/<name>/docs/ (was site/). docs/index.md is required and names the main docs nav section that links it (section: Reference); the README is the extension's page in the Extensions reference, at /docs/extensions/<name>/extension, and no longer appears in the docs' sidebar (Writing an extension).
  • PocketOne's Go modules are now pocketone.dev/ext/<name>, pocketone.dev/examples/pocketone and pocketone.dev (core, for the replace), so the import path no longer names where the repo lives.
  • The repo moved to github.com/pocketonehq/pocketone (old pockethost/pocketone links redirect), and its PocketBase mirror to github.com/pocketonehq/pocketbase. In an existing clone: git remote set-url origin https://github.com/pocketonehq/pocketone.git.

Extensions

PocketBase

  • Built on PocketBase v0.42.3 plus one later upstream commit (c5003ce; was v0.42.2). Realtime subscription changes no longer need to come from the connection's IP, OAuth2 redirects also accept the subscribing IP and log failures at WARN, and S3 multipart uploads that S3 reports as failed in a 200 response now fail. See its changelog.

PocketOne v0.0.1-alpha.7

Pre-release

Choose a tag to compare

@benallfree benallfree released this 17 Nov 23:25

Install or upgrade

New install:

brew install pockethost/tap/pocketone

Homebrew on macOS or Linux; the formula comes from pockethost/homebrew-tap. Or download the zip for your platform below and run ./pocketone serve.

Upgrade:

brew upgrade pocketone

Or, if you didn't install with Homebrew, run pocketone upgrade (it keeps the old executable as pocketone-<version>) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.

What's in this release

Upgrading

  1. Put app and serve flags after the command name: pocketone serve --hooksDir x, not pocketone --hooksDir x serve. Only --config and --env-file (and core's --dir, --dev, --encryptionEnv, --queryTimeout, still accepted anywhere) can come before it.
  2. In pocketone.yaml, move public_dir, index_fallback, hooks_watch and automigrate from app: to server: (see the config changelog).

Added

  • Agent Skills: a third skill, pocketone-extensions, for writing an extension and contributing it as a pull request; the pocketone skill now covers only using PocketOne in an app, and no longer carries its own copy of the PocketPages docs (the pocketpages skill has them). Update with /plugin marketplace update pocketone or npx skills add pockethost/pocketone.
  • app: js_limits: in pocketone.yaml sets the JS engine's limits for the app: memory (default 64MiB), task_time (JS time per task, default 5s) and task_wall (wall time per task, default 30s).
  • pocketone.dev has a Remote administration page and CLI, REST and MCP references generated from the pocketone binary; every contract and extension page lists its commands, endpoints and MCP tools.
  • pocketone.dev has a Tutorials section: QuickJS (limits, why there's no VM pool, a benchmark against goja) and Configure with pocketone.yaml.
  • pocketone.dev shows the current release in its header, linked to its release notes.

Changed

  • Each flag is now on the commands that read it instead of on every command: --dir, --dev, --encryptionEnv, --queryTimeout, --jsvm, --hooksDir, --hooksPool and --migrationsDir on the commands that open the app (serve, migrate, superuser, pitr, token, oauth, template); --hooksWatch, --automigrate, --publicDir, --indexFallback, --pagesDir, --pitr*, --s3Redirect* and --autotls* on serve only. Remote commands such as deploy and link list just their own flags plus --config and --env-file, and reject the others.

Extensions

PocketOne v0.0.1-alpha.6

Pre-release

Choose a tag to compare

@benallfree benallfree released this 16 Nov 16:17

Install or upgrade

New install:

brew install pockethost/tap/pocketone

Homebrew on macOS or Linux; the formula comes from pockethost/homebrew-tap. Or download the zip for your platform below and run ./pocketone serve.

Upgrade:

brew upgrade pocketone

Or, if you didn't install with Homebrew, run pocketone upgrade (it keeps the old executable as pocketone-<version>) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.

What's in this release

Upgrading

  • jsvm: PocketBase's plugins/jsvm is upstream's again: Config.Extensions, jsvm.Run and jsvm.ScriptPath are gone from it. Use ext/jsvm (its extension methods and js.Run) instead. ext/jserrors is removed; ext/jsvm reports real file positions.
  • jsvm: Go code that binds JS takes js.Runtime (github.com/pockethost/pocketone/ext/extkit/js) instead of *goja.Runtime: extkit.JSBinder.BindJS(app, rt), extkit.BindJS(app, rt, ...), extkit.AppSet.BindJS, Pocker's InitJS(inst, app, rt), mcp.BindJS(app, rt), tokens.BindJS(app, rt), bulkmail.BindJS(app, rt). extkit.JSContracts(app) no longer takes a runner. standard.Set.Register takes an ext/jsvm config.
  • sandbox: MaxCallStackSize and MaxConcurrent are gone (the engine caps call depth with jsvm.Config.VM.StackSize; set jsvm.Config.VM.MaxConcurrent). Sandbox.Limits() gives the execution and sleep limits for jsvm.Config.VM.
  • bundle: ext/jsembed is now ext/bundle and runs on the ext/jsvm engine. Import github.com/pockethost/pocketone/ext/bundle, register ext/jsvm instead of plugins/jsvm, and pass bundle.Hooks(...) / bundle.Migrations(...) in jsvm.Config.Extensions. A require() that isn't found now says "Cannot find module".
  • Environment variables: every PocketOne variable now starts with P1_, in every build (PB_ stays PocketBase's own). Rename POCKETONE_TOKEN → P1_TOKEN, POCKETONE_TOKEN_<REMOTE> → P1_TOKEN_<REMOTE>, POCKETONE_CONFIG_DIR → P1_CONFIG_DIR and PB_MAILTRAP_HTTP/PB_MAILTRAP_SMTP → P1_MAILTRAP_HTTP/P1_MAILTRAP_SMTP in CI and scripts. The pockethost build reads P1_TOKEN too, no longer POCKETHOST_TOKEN.
  • tokens: The CLI's built-in OAuth client is now pocketone-cli (was pocketbase-cli). Browser logins made before this release can't renew once the remote is upgraded: run pocketone login <remote> again when one expires.
  • remotes: login and link no longer take a password: --email, --password, --collection and POCKETONE_PASSWORD are gone. Sign in through the browser (--device on a machine without one), or pass an API token with --token, --token-stdin or P1_TOKEN. A saved login made with a password keeps working; logout no longer revokes its token, so delete it in the dashboard.

Added

  • jsvm: pb_data/types.d.ts now covers PocketOne: generated from PocketOne's core (its extra hooks, e.g. onFilesystemCreate), with typed .async on every Go function, require, process, Buffer, import.meta, and the API of each extension on in the app ($mcp, $tokens, $bulkmail, onContracts). Extensions add theirs with a TypeScript() method.

  • jsvm: TypeScript: .ts, .mts and .cts hooks (*.pb.ts, *.pb.mts, *.pb.cts), migrations and modules run directly, with types stripped by esbuild and error positions in the .ts source. .ts and .mts are ES modules, .cts is CommonJS; import "./x.js" finds x.ts. No runtime type checking: use tsc --noEmit with pb_data/types.d.ts.

  • jsvm: ES modules: pb_hooks/*.pb.mjs hook files, pb_migrations/*.mjs migrations and .mjs modules use import/export with top-level await and import.meta. *.pb.js and the new *.pb.cjs stay CommonJS scripts with require(). import and require() share one resolver (relative paths, node_modules, package.json exports conditions) and one instance per module; require() of an ES module without top-level await returns its namespace, as in Node 22.

  • jsvm: jsvm: goja under app: in pocketone.yaml, or --jsvm goja, runs a single app on PocketBase's own JS engine for pure PocketBase compatibility (pages, $mcp, $tokens, $bulkmail and JS contracts are off; the startup lines say so). The default is quickjs.

  • bundle: bundle.Public(app, fsys, indexFallback) serves public files embedded in the binary, like pb_public.

  • jsvm: new ext/jsvm extension, PocketOne's JS engine: one QuickJS VM per app with real globals, async handlers and .async Go calls, and hard per-app memory and time limits. It runs PocketBase's JS API unchanged, and is pure Go (no cgo), so CGO_ENABLED=0 builds and cross-compiles work as with stock PocketBase.

Changed

  • A request with an unknown or expired Authorization token now gets a 401 instead of going on as a guest (PocketBase v0.42.0). Clients that send a stale token should drop it and sign in again. /mcp keeps answering with its own sign-in challenge, so MCP clients still re-authenticate.
  • jsvm: the pocketone binary and every Pocker instance run JS on ext/jsvm (QuickJS, one VM per app) instead of goja. Hooks, routes and migrations run as before; hook files now share one global scope, handlers can be async, and errors name pb_hooks/<file>:<line>:<col> on their own (ext/jserrors is no longer used). --hooksPool is accepted and ignored.
  • sandbox, pocker: each instance's JS has a hard memory cap (64 MiB: JS heap plus Go objects it holds); gradual growth is now limited per instance, not only one-shot allocations. Process-reaching Go methods are also hidden when an app type embeds *core.BaseApp.
  • contracts: contract providers and on<Contract><Op> handlers written in pb_hooks can use the file's top-level variables.
  • pages: runs on ext/jsvm. Templates can include each other at most 32 deep (was 64). A page that runs away now fails with the engine's "interrupted" or "out of memory" error.
  • tokens: The CLI's OAuth client id, the CLI's User-Agent and the default deploy source are now pocketone-cli, matching the "pocketone CLI" name on the sign-in pages.

Fixed

  • jsvm, sandbox: a hook can no longer pin a CPU with an Array method on a huge sparse array or array-like (new Array(1e9).join("x"), [].indexOf.call({ length: 2 ** 53 - 1 }, 1)), which QuickJS ran without checking the time limit. Array methods that walk every index, and passing an array to a Go function, now throw a RangeError past MemoryLimit / 16 elements (4,194,304 at the default 64 MiB), a length no dense array fits in that memory.
  • A crash or data race when an app stops its cron scheduler (on shutdown or restart), a PocketBase v0.42 regression; fixed in core until upstream has it.

PocketBase

  • Built on PocketBase v0.42.2 (was v0.41.1). See its changelog for v0.42.0 to v0.42.2.