Skip to content

Releases

v1.12.2

Choose a tag to compare

@cpojer cpojer released this 27 Nov 04:18
Immutable release. Only release title and notes can be modified.
  • Fixed self-hosted platform upgrades failing when adding the security scan scheduler.

v1.12.1

Choose a tag to compare

@cpojer cpojer released this 27 Nov 02:55
Immutable release. Only release title and notes can be modified.
  • Fixed self-hosted platform upgrades from 1.6.1, 1.6.2, and 1.8.0 through 1.11.0 being blocked by the database compatibility check.
  • Fixed large platform Zero Trust changes timing out. Changes now continue automatically in the background.
  • Fixed native Cloudflare deployments looking for the wrong Worker entry file.
  • Fixed platform uninstall leaving behind Workers and storage created by security scans.
  • Fixed Pages navigation in stale tabs after deployments by reloading the requested page when the server's build changes.
  • Added --json to void db execute for reading query results in scripts.
  • Fixed Vue starters using a TypeScript version that breaks imported props types.

Thanks to @0froq, @iPLAYCAFE-dev, and @karthickeyan-dev for their contributions!

v1.12.0

Choose a tag to compare

@cpojer cpojer released this 26 Nov 00:19
Immutable release. Only release title and notes can be modified.
  • Added optional AI security audits for self-hosted platforms, with reviews after deployment, findings in the dashboard and CLI, and a gate for making protected projects public.
  • Added calendar invitations, updates, and cancellations to sendEmail().
  • Added per-page titleTemplate overrides to head(), including an empty string to use the page title as written.
  • Added support for tsconfig path aliases in database seeds, including @schema and @auth-schema.
  • Fixed nested validation errors in useForm(), including paths such as profile.name and contacts.0.email.
  • Fixed typed routing rejecting routeUrl() results with an appended query string or hash.
  • Fixed islands added while the development server is running failing to hydrate.
  • Fixed @auth-schema imports requiring a manually configured alias.
  • Fixed native Cloudflare development starting the Worker before its dependencies were ready.
  • Fixed local .env values being included in Astro Worker bundles.
  • Fixed deployments ignoring inference.appType and uploading the wrong output directory for static apps built with Void.
  • Fixed Cloudflare deployments failing when a newly uploaded Worker version takes time to appear.
  • Fixed platform upgrades failing when the database connection holding the upgrade lock is dropped.
  • Improved errors for missing email configuration, rejected deployments, and invalid platform credentials.
  • Improved development startup time and updated Cloudflare, Vite+, SvelteKit, and Analog tooling.

Thanks to @0froq, @ashunar0, @konaito, @liangmiQwQ, and @morinokami for their contributions!

Security Audits

Enable security audits on a self-hosted platform, set a spending limit, and choose which projects to scan after deploying an app:

void platform upgrade --security-audits
void platform security budget --platform-usd 50
void platform security policy public

Security audits

Calendar Invitations

Pass iCalendar text to sendEmail() to send an invitation or update:

import { sendEmail } from 'void/email';

function sendInvite(to: string, icsText: string) {
  return sendEmail({
    to,
    subject: 'Project kickoff',
    text: 'Please join the project kickoff. See the invite for the time.',
    calendar: { method: 'REQUEST', content: icsText },
  });
}

Calendar invitations

Page Title Templates

Override the site's title template for a single page. An empty string keeps the title exactly as returned:

import { defineHead } from 'void';

export const head = defineHead(() => ({
  title: 'My Site | Guides and Tutorials',
  titleTemplate: '',
}));

Page title templates

v1.11.0

Choose a tag to compare

@cpojer cpojer released this 19 Nov 01:37
Immutable release. Only release title and notes can be modified.
  • Added database.readReplication to enable or disable D1 replicas. New databases default to replication off.
  • Added setSession() and getBookmark() from void/db, plus bookmark support in createDb(), to preserve previously observed database state across requests.
  • Added large SQL file imports for void db execute --remote --file on direct Cloudflare D1 deployments.
  • Added --yes to void db execute to skip interactive confirmation.
  • Improved void init with a concise setup summary, installation progress, and clearer next steps.
  • Fixed authentication clients triggering dependency re-optimization and page reloads during development.
  • Fixed generated authentication schemas and migrations dropping indexes declared by Better Auth plugins.
  • Fixed cancellation of AI provider requests and response streams.
  • Fixed local void db execute hiding rows returned by WITH, PRAGMA, EXPLAIN, and RETURNING statements.
  • Fixed remote SQL scripts incorrectly skipping confirmation, and D1 queries failing with Windows line endings.
  • Improved sending-only Cloudflare email setup, preserving inbound mail routing and avoiding repeated onboarding prompts.
  • Fixed intermittent platform upgrades and application deployments failing on stale Cloudflare verification reads.
  • Improved dependency alignment to avoid duplicate Cloudflare tooling in fresh installs.

Thanks to @0froq, @iPLAYCAFE-dev, and @morinokami for their contributions!

D1 Sessions and Bookmarks

Enable replicas with database.readReplication: true. To carry database progress between requests, return a bookmark after your queries and send it with the next request:

// routes/users.ts
import { users } from '@schema';
import { defineHandler } from 'void';
import { db, getBookmark, setSession } from 'void/db';

export const GET = defineHandler(async (c) => {
  const bookmark = c.req.header('X-DB-Bookmark');
  setSession(bookmark ? { bookmark } : 'first-primary');

  const result = await db.select().from(users);
  c.header('Cache-Control', 'private, no-store');

  return { users: result, bookmark: getBookmark() };
});

D1 replication and bookmarks

Large SQL Imports

Import SQL files into a directly deployed Cloudflare D1 database. Files larger than 100 KB use D1’s import API, which temporarily pauses database queries while the import runs:

void db execute --remote --file ./data.sql --yes

Database commands

Upgrade Guide

Previously deployed D1 databases may already have replicas enabled. Unless your app intentionally uses replicas with consistency handling, set database.readReplication to false and run void deploy:

import { defineConfig } from 'void/config';

export default defineConfig({
  database: { readReplication: false },
});

v1.10.0

Choose a tag to compare

@cpojer cpojer released this 17 Nov 02:13
Immutable release. Only release title and notes can be modified.
  • Upgraded to Cloudflare Vite plugin 2.0 RC and Cloudflare Build Output v1.
  • Added server-side WebSocket room actions, with typed arguments and results through getRoom() from void/ws/server.
  • Added storage.locationHint to choose a preferred region for new R2 buckets, with a configurable default for self-hosted platforms.
  • Added maxConcurrency to queue consumer exports to limit how many batches run at once.
  • Added the basic Sandbox instance size with 1 GiB of memory.
  • Added support for existing Hyperdrive configurations backed by Workers VPC when installing a platform.
  • Improved Markdown compilation performance by approximately 15× with a new syntax highlighter.
  • Fixed cookies set by getAuth(c).api calls not reaching the browser, including session updates and sign-out.
  • Fixed pending prefetches blocking Pages navigation while waiting for deferred data.
  • Fixed Pages replacing HTTP statuses set by loaders and middleware with 200.
  • Fixed HTTPException bypassing page error components and causing full-page reloads during navigation.
  • Fixed env.ts validation, defaults, and conversions being ignored in TanStack Start, React Router, and vinext.
  • Fixed typed fetch responses losing tuple types and incorrectly typing JSON nulls and omitted properties.
  • Fixed root dynamic routes allowing invalid URLs through routing.typedRoutes checks.
  • Fixed the previous page title remaining after navigating to a page without a title.
  • Fixed public platform installations failing when Cloudflare Access is disabled.
  • Improved Cloudflare deployment reliability when Worker version verification is temporarily unavailable.
  • Fixed void init suggesting the wrong development command when creating a project in a subfolder.

Thanks to @0froq, @iPLAYCAFE-dev, @karthickeyan-dev, @kotarotaniguchi0523, @max-voloshyn, @morinokami, and @yangshun for their contributions!

Server-Side Room Actions

Declare actions in a WebSocket room to broadcast messages, close connections, or update room state from other server code:

// routes/chat.ws.ts
import * as v from 'valibot';
import { defineRoom } from 'void/ws';

export default defineRoom({
  messages: {
    client: v.string(),
    server: v.string(),
  },
  actions: {
    async announce(ctx, text: string) {
      await ctx.room.broadcast(text);
    },
  },
});

Call the action from a route, auth hook, queue consumer, or cron job. Arguments are checked against the room definition:

// routes/announce.ts
import { defineHandler } from 'void';
import { requireAuth } from 'void/auth';
import { getRoom } from 'void/ws/server';

export const POST = defineHandler(async (c) => {
  requireAuth(c);
  await getRoom('/chat').actions.announce('Hello, everyone!');
  return { ok: true };
});

Server-side room actions

R2 Location Hints

Choose a preferred region when Void creates your app’s R2 bucket. Hints are best effort and do not move existing buckets:

import { defineConfig } from 'void/config';

export default defineConfig({
  storage: { locationHint: 'apac' },
});

Storage location · Platform defaults

Queue Concurrency

Limit concurrent batches when a queue consumer calls a rate-limited API or another service that needs bounded parallel work. Add this export to your queue file:

export const maxConcurrency = 2;

Consumer options

Upgrade Guide

  • With routing.typedRoutes enabled, URLs handled only by root dynamic routes such as /[slug] or /[...slug] now require routeUrl() with parameters.
  • Calls such as getAuth(c).api.signUpEmail() now sign the current browser in. Use the admin plugin’s createUser when creating accounts for someone else.
  • If you reuse .cloudflare/output between build and deployment steps, rebuild it with the updated toolchain.

v1.9.1

Choose a tag to compare

@cpojer cpojer released this 14 Nov 03:28
Immutable release. Only release title and notes can be modified.
  • Fixed dev server startup on fresh clones when database schemas reference generated authentication tables.
  • Fixed titleTemplate changing page titles containing dollar-sign sequences such as $$ and $&.
  • Fixed titleTemplate being ignored for default 404 and 500 page titles.

Thanks to @karthickeyan-dev for their contributions!

v1.9.0

Choose a tag to compare

@cpojer cpojer released this 13 Nov 23:55
Immutable release. Only release title and notes can be modified.
  • Added throwRedirect to requireAuth() to redirect unauthenticated visitors to a login page.
  • Added titleTemplate support to middleware headDefaults for section-specific page titles.
  • Added automatic resolution of relative Open Graph and Twitter image URLs against the current request.
  • Added AI Gateway logging defaults to platform plans, with project-specific settings taking precedence.
  • Added copyLabel to voidMarkdown() for translating code-block copy-button tooltips.
  • Improved native Cloudflare deployments of SvelteKit, Nuxt, Analog, and Astro to serve static files and prerendered pages without Worker invocations, while respecting run_worker_first.
  • Fixed AI requests failing with 503 ai_logging_policy_unavailable on hosted Void Cloud.
  • Fixed Pages routers reporting the destination URL after a rewrite instead of the URL in the browser.
  • Fixed spurious React hydration errors on pages using deferred data.
  • Fixed Pages and island action redirects losing URL fragments.
  • Fixed loader c.notFound() responses being replaced by static files at the same URL.
  • Fixed ISR serving cached HTML to requests that negotiate Markdown.
  • Fixed Markdown task lists rendering as plain text instead of checkboxes.
  • Improved right-to-left Markdown layouts and fixed heading anchors overlapping text.
  • Improved errors when void.config.ts imports unsupported TypeScript path aliases.
  • Improved dashboard deployment logs so filters and time ranges survive navigation and background refreshes.

Thanks to @0froq, @harshbhx, @karthickeyan-dev, @morinokami for their contributions!

Authentication Redirects

Send unauthenticated visitors to your login page from loaders, actions, or middleware. The redirect stops execution and uses 303 after mutations:

import { defineHandler } from 'void';
import { requireAuth } from 'void/auth';

export const loader = defineHandler((c) => {
  const user = requireAuth(c, { throwRedirect: '/login' });
  return { email: user.email };
});

Protecting pages

Page Titles and Social Previews

Override title templates for a section through middleware. Social preview URLs can use relative paths and Void resolves them against the current request:

import { defineMiddleware } from 'void';

export default defineMiddleware(async (c, next) => {
  if (c.req.path.startsWith('/admin')) {
    c.set('headDefaults', {
      ...c.get('headDefaults'),
      titleTemplate: '%s | Admin',
      meta: [{ property: 'og:image', content: '/og-image.png' }],
    });
  }
  await next();
});

Middleware defaults · Social preview URLs

AI Logging Defaults

Set aiLogging in a plan file to choose the default for its projects. You can also change the default through Plans in the dashboard.

{
  "aiLogging": "metadata"
}
void platform config plans set team --file team-plan.json --yes

AI Gateway logging

v1.8.0

Choose a tag to compare

@cpojer cpojer released this 12 Nov 01:18
Immutable release. Only release title and notes can be modified.
  • Added _not-found and _error Pages components to show errors inside your layouts, with support for nested boundaries across all four framework adapters.
  • Added throwOnError: false to useForm() to keep authentication and server errors inline without losing form input.
  • Added a session option to createDb() for D1 reads that need to start on the primary.
  • Added per-project AI Gateway logging controls, including metadata-only logging that omits prompt and response bodies.
  • Added ActionResult and getValidationErrors() exports to all framework adapters.
  • Added Drizzle’s SQL, SQLWrapper, AnyColumn, and BatchItem type exports to void/db.
  • Added query parameter support to typed named action URLs.
  • Upgraded to Vite+ 1.6, including newly created projects, and updated Cloudflare tooling.
  • Fixed actions dropping the current page’s query parameters and changing the URL, scroll position, or history when updating the page in place.
  • Fixed Vue, Svelte, and Solid forms losing edits made during submission and older submissions overwriting newer form state.
  • Fixed React navigation losing its destination and method while a transition is pending.
  • Fixed D1 authentication reads seeing stale data from replicas.
  • Fixed defaults and automatic updatedAt values when writing to generated Better Auth tables through Drizzle.
  • Fixed async env.ts validators failing in app requests and background jobs.
  • Fixed Vue pages with inline typed props failing to receive their props correctly.
  • Fixed app tests failing because Void tried to start a Worker or run migrations under Vitest.
  • Fixed intentional Worker 404 responses being replaced by static assets on native Cloudflare deployments.
  • Fixed Cloudflare preview and deployment failures for static apps with overlapping server route patterns.
  • Fixed a race between void secret put and the first Cloudflare deployment.
  • Improved diagnostics for queue options and Pages settings that cannot be inferred.
  • Fixed new projects’ .gitignore encouraging .env.example files that Void does not support.
  • Added a testing guide and an llms.txt index for the documentation.

Thanks to @dvkam, @jong-kyung, @karthickeyan-dev, @morinokami, @ubugeeei, and @yangshun for their contributions!

Not Found & Error Pages

Add _not-found and _error components to pages/ or a subdirectory to show errors inside your layouts. Both receive an error prop with status and message. A loader can show the nearest not-found component with c.notFound():

import { defineHandler } from 'void';

export const loader = defineHandler((c) => c.notFound());

Not found and errors

Inline Form Errors

Keep authentication and server errors in form.error, with the form and its input still visible:

import { useForm } from '@void/react'; // or "@void/vue", "@void/svelte", "@void/solid"

const form = useForm(
  '/users',
  { name: '', email: '' },
  { throwOnError: false },
);

Handling action errors

Fresh D1 Reads

Use session: 'first-primary' when a request needs the latest primary data while keeping Drizzle’s schema and query types:

import { users } from '@schema';
import { env } from 'cloudflare:workers';
import { defineHandler } from 'void';
import { createDb } from 'void/db';

export const GET = defineHandler(async () => {
  const db = createDb(env.DB, { session: 'first-primary' });
  return db.select().from(users).all();
});

D1 read replication

Per-Project AI Logging

Platform administrators can keep prompt and response bodies out of a project’s AI Gateway logs while retaining request metadata:

void platform project ai-logging <project-id> metadata

AI Gateway logging

v1.7.0

Choose a tag to compare

@cpojer cpojer released this 09 Nov 03:08
Immutable release. Only release title and notes can be modified.
  • Added rich Pages data serialization. Date, Map, Set, bigint, and other supported values now keep their types through server rendering, hydration, navigation, and deferred loading.
  • Added bracket patterns such as /users/[id] and /files/[...path] to typed routing APIs. Existing colon patterns remain supported.
  • Added route-pattern inference to useParams(), including checks for page names and parameter names.
  • Extended routing.typedRoutes checks to redirects, island forms, ISR revalidation paths, and SSE and live stream client URLs.
  • Added routing.trailingSlash for Pages URLs ending in / and directory-style prerender output.
  • Added automatic types for custom Cloudflare bindings declared in void.config.ts.
  • Added getAuth(c) from void/auth to access the request’s Better Auth instance, including plugin APIs.
  • Added void deploy --skip-migrations for deployments where database migrations run separately.
  • Added support for Nitro 3 prereleases while retaining Nitro 2 compatibility.
  • Added support for custom ASSETS fetchers in Node.js, Bun, and Deno servers, including apps packaged as single executables.
  • Fixed React form status, errors, and resets during overlapping submissions, preserving edits made while a submission is in flight.
  • Fixed body validation for multipart and URL-encoded forms, including nested fields and file uploads.
  • Fixed prerender URLs containing multiple route parameters and catch-all segments.
  • Fixed pagination and filter links being marked active when their query parameters don’t match.
  • Fixed Pages response caching by preserving headers that distinguish HTML from page-data responses.
  • Fixed local .env values being included in native framework Worker bundles.
  • Fixed server values from void/env being unavailable in cron and queue jobs, and env.ts validation being removed from apps marked as having no side effects.
  • Fixed SvelteKit cron and queue job bundles being uploaded as public assets.
  • Fixed Worker Loader bindings being dropped when deploying with existing secrets.
  • Fixed vinext middleware being bypassed for public assets and not being detected on case-insensitive filesystems.
  • Fixed shared asset caches bypassing worker-first routing on Void platforms.
  • Fixed deployments of Workers without a public readiness URL.
  • Improved Cloudflare deployment errors and recovery when updating Worker triggers fails.
  • Fixed AI endpoints ignoring disabled platform capabilities.

Thanks to @0froq, @Dazzanova, @kotarotaniguchi0523, @L4Ph, @magurotuna, @morinokami, @niteshseram, @Saeris, and @yangshun for their contributions!

Rich Pages Data

Return values directly from loaders without converting dates, sets, or big integers yourself:

import { defineHandler } from 'void';

export const loader = defineHandler(() => ({
  publishedAt: new Date(),
  tags: new Set(['void', 'vite']),
  views: 42n,
}));

Loaders and props

Typed Routing

Route patterns can now match your filenames directly. For a page at pages/users/[id].tsx, .vue, or .svelte. Bracket patterns also work with typed fetch(), WebSocket connections, page actions, and useParams():

import { routeUrl } from 'void/routes';

const profile = routeUrl('/users/[id]', {
  params: { id: 42 },
  query: { tab: 'activity' },
});
// /users/42?tab=activity

Typed routing · Typed page params

Trailing-Slash Pages

Enable trailing slashes and directory-style output for hosts such as GitHub Pages. A page at /posts/hello/ is written to posts/hello/index.html:

import { defineConfig } from 'void/config';

export default defineConfig({
  output: 'static',
  routing: { trailingSlash: true },
});

Trailing slashes and directory indexes

More Control over Deployments

Skip application and authentication SQL migrations when they run in a separate release step:

void deploy --skip-migrations

Deployment options

Upgrade Guide

  • Typed fetch() calls to non-GET endpoints now require an explicit method, such as { method: 'POST' }.
  • With routing.typedRoutes enabled, redirects, island forms, ISR revalidation paths, and stream URLs receive additional checks. Use routeUrl() for internal URLs with dynamic parameters.
  • Pages loader values such as dates now arrive as their original types rather than JSON strings. Update code that expects their JSON representation. Already-open tabs automatically reload on their next navigation when the page-data format changes.

v1.6.2

Choose a tag to compare

@cpojer cpojer released this 05 Nov 00:47
Immutable release. Only release title and notes can be modified.
  • Added isVoidActionError() to recognize action errors at any status, including thrown 401, 403, and 5xx errors. Available from all four framework adapters.
  • Fixed overlapping routes choosing the wrong handler. Pages, API routes, and WebSocket routes now consistently prefer more specific paths.
  • Fixed c.redirect() unintentionally forwarding incoming query parameters to its destination.
  • Fixed unnecessary static page-data requests during development and for pages with prerender = false, avoiding 404s and extra round trips.
  • Fixed Solid's useParams() returning stale parameters after client-side navigation.
  • Fixed Better Auth OAuth state not being shared correctly in local development.
  • Fixed framework _headers files being dropped on native Cloudflare deployments that preserve existing secrets.
  • Fixed configuration errors and diagnostics referring to void.json in projects using void.config.ts.

Thanks to @0froq, @dvkam, @karthickeyan-dev, @morinokami, @niteshseram, @yangshun, and @yujiym for their contributions!

Recognizing Action Errors

Use isVoidActionError() in error handling to distinguish failed actions from other errors and read their status and message:

import { isVoidActionError } from '@void/react';

function describeError(error: unknown) {
  if (isVoidActionError(error)) {
    if (error.status === 401) return 'Please sign in again.';
    return error.message;
  }
  return 'Something went wrong.';
}

Action error handling