Release Notes
A running log of what shipped in each zero release, newest first. The planned work lives on the Roadmap) page.
TIP
Docs always track main. Pin to a tagged release in your own project. The Getting Started) guide shows how to fetch a specific version (e.g. v0.5.0).
Release & Zig support
| Release | Zig toolchain |
|---|---|
up to 0.0.3 | Zig 0.15.2 |
up to 0.5.3 | Zig 0.16.0 |
0.5.4 (unreleased) and newer | Zig 0.17.0 |
0.5.4 (unreleased)
Zero 0.5.4 targets Zig 0.17.0. It continues from 0.5.3 and moves the whole framework, and all of its examples, onto the Zig 0.17 toolchain.
This line tracks the experimental-0.17 branch. Recent activities:
Zig 0.17.0 support
- The framework and all examples are migrated to Zig 0.17 (
112e5dc). - CI toolchain images are bumped to the Zig 0.17 build (
1c5b56d). - Dependencies updated for 0.17 compatibility: SQLite (
4d202f3) and thezbenchbenchmark harness (0a4c9e7).
Examples & tooling
zero-vault-pgexample — combines Vault secret injection with Postgres. The Vault loader gained KV v2data/auto-insert on a404, input trimming, and an ownedvault_overridesmap so secrets never land in an empty env map (dbbe1d7).- Dockerize steps added to the Dockerfiles for a quick local look (
117c89a).
Work is tracked on the
experimental-0.17branch; this section is updated as the release firms up.
0.5.3 (2026-10-24)
Zero 0.5.3 is the cloud-backends release. It targets Zig 0.16.0.
This release adds AWS and Google managed services, rebuilds the MySQL client on a real connection pool with TLS, keeps outbound connections honest (websocket client, circuit breakers), and raises test coverage to 90% with a kcov pipeline that actually reports.
Breaking changes
Read these before you upgrade.
- Datasource
Interface.initsignature — if you registered a custom datasource backend,Interface.initnow also takes the circuit breaker and metricz handles. Apps that only reach datasources throughctx.SQL/ctx.NoSQL/ … are unaffected. - WebSocket OAuth token field —
wsclient.zigreadoauth.tokeninstead oftoken.access_token; outbound OAuth on the websocket client failed at connect time. Fixed in this release (pick up the fix, no action needed).
New data sources
- DGraph backs
ctx.Graphover its HTTP query/mutate API. Auto-wired from config; a mock backend covers tests. See Dgraph). - ArangoDB backs
ctx.NoSQLover HTTP. - Meilisearch got a full HTTP client (
meiliClient.zig): index documents, query, fetch and delete by id. This is the handle thectx.Searchinterface rides on. - OpenTSDB backs
ctx.Timeseriesover HTTP. - Supabase SQL — set
DB_DIALECT=supabase+SUPABASE_DB_*. Reuses the Postgres backend with SSL forced and project-scoped host/port. See Supabase). - GCS file store —
FILE_STORE_BACKEND=gcs+GCS_*. OAuth2 client-credentials, or a suppliedGCS_ACCESS_TOKENfor workload-identity setups. Supabase Storage reuses the S3 backend. See File Store).
MySQL rebuilt
The MySQL dialect is now a native client:
- Connection pool with per-request sessions. There is no shared transaction state between concurrent requests.
MYSQL_SSL_MODE=disabled|preferred|required; withMYSQL_SSL_CAthe handshake verifies the server cert and host.- Configurable pool size (
MYSQL_POOL_SIZE). - TLS identity uses RSA-OAEP from a simplified pure-Zig RSA (
src/datasource/sql/rsa.zig), unit-tested on a pinned key.
TLS (experimental)
A shared OpenSSL TLS layer (src/tls/openssl.zig), already linked for Postgres, now serves the MySQL client and the NoSQL drivers, starting with Cassandra TLS (CASSANDRA_TLS_ENABLED=true; CASSANDRA_TLS_VERIFY checks the server cert against CASSANDRA_TLS_CA, system trust store when empty). Still experimental.
Pub/Sub
- AWS SQS and GCP Pub/Sub join MQTT/Kafka/NATS/Redis behind
PUBSUB_BACKEND. SQS signs requests with a pure-Zig SigV4 (src/utils/sigv4.zig, header + query variants, shared with S3); GCP authenticates via OAuth2 client-credentials. See AWS SQS) and GCP Pub/Sub). - Dispatch semantics —
pubsub/dispatch.zigintroduces aDispatchStatus. Backends acknowledge a message only when its hook succeeded, or when the message itself landed in the dead-letter queue. An unhandled failure is left for the native redelivery. (Fixes the silent socket close that surfaced asWriteFailedon reconnect.)
Outbound WebSocket client
zero-ws-client is an example that connects out to a websocket server. It spins its own thread, auto-reconnects with backoff, and self-terminates on app shutdown. zero.WebSocketClient sends text/binary frames through the same service-oauth/breaker plumbing as the HTTP client. Includes an install script for the zero binary. See WebSocket Client) and Getting Started#install-the-zero-cli).
Security & secrets
- Vault injection — set
VAULT_ADDR+ a token or AppRole login, and everyVAULT_SECRETS_PATHmapping is merged into the process environment before datasources wire up. Credentials never live in a file or an image, and secret values are never logged. See Vault). - Distributed rate limiting (
RATE_LIMIT_STORE=memory|redis) — the limiter now keeps shared buckets when Redis is configured. See Rate Limiter). - W3C baggage propagation (
mw/baggage.zig) — the middleware parses the inbound header behind a hard member cap, handlers read/modify members viactx, and the outbound service client re-emits them downstream. - Auth hardening (security-audit remediation) — KV-stored credentials for basic/API-key auth, fixed OAuth validation, RBAC refinements, expanded authz branches behind feature flags. See Authentication).
- The outbound service client validates its OAuth flow end-to-end (Keycloak round-trip) and threads failures through the circuit breaker.
Observability & bench
- The bench harness grew a route probe and an allocation probe that write JSON reports; plus a k6 script driving the same routes.
- Fixed metric counts over-counting hits and a mixed structured/plain log output issue, so the OTel view stays consistent.
Fixes
- MySQL connect timeout — asking Zig 0.16's I/O backend for a connect timeout panicked (
netConnectIpPosiximplements no timeout); the dial no longer requests one, and a blocked connect surfaces as the usual connection error instead. - Cast fix in SQL
lastInsertIdhandling. - CLI app leak — one-shot exit runs leaked the command context.
- Migration leak — re-running migrations leaked SQL buffers.
- Gated config changes — experimental switches no longer activate silently.
- WebSocket timeout — unavailable switch case handled.
- Example configs —
.envupdates across all examples; migration dialect list extended to MySQL.
Quality
- Coverage 88.92% measured by kcov in CI (Docker image
imng/zero-kcov:0.3.4), up from 0. Zig 0.16 Debug emits DWARFv5 that kcov cannot read; the test step now builds withuse_llvmto emit a readable DWARFv4 CU. - Three test layers:
zig build test(191 tests through kcov), atest-integrationlayer (153, with a real Postgres / fakeserver-backed suites) and atest-validationlayer (3, proofs that request memory is released per request/cron/pubsub). - FakeServers for search, SQS, GCP Pub/Sub, and GCS. The cloud clients run their tests without cloud access.
- All 14 Zig deps are vendored in
zig-pkg/at Zig 0.16-compatible versions.
Soak and Gates tests
Soak & chaos testing (new): an independent pipeline runs against every commit, booting 12+ example services wired to real backends (Postgres, MySQL, SQLite, DuckDB, Cassandra, Redis, Solr, InfluxDB, RustFS/S3, some over TLS) under load, with three gates:
- Leak gate — VmRSS sampled every 10s; a leak is flagged only when growth passes both relative and absolute thresholds; passing services hold flat RSS after startup.
- Chaos gate — backend IP blackholed (iptables) for 2s under live traffic; server must survive and the data route recover.
- Functional gate — health, GraphQL query, and filestore upload→download→delete round-trips under load.
- Full per-service logs, RSS samples and thresholds published at zero-extended.
Upgrade checklist
- Install Zig 0.16.0 (the deps are vendored; no fetch needed).
- Opt into the new backends via config keys:
DB_DIALECT=supabase,FILE_STORE_BACKEND=gcs,PUBSUB_BACKEND=SQS|GCP,RATE_LIMIT_STORE=redis, or leave defaults for local behavior. - If you keep a custom datasource backend, adapt to the new
Interface.init. - MySQL users: go from
MYSQL_SSL_MODE=disabledtopreferred/requiredwithMYSQL_SSL_CA. - Re-run
zig build testand your example builds.
0.5.2 (2026-09-27)
Released as the v0.5.2 tag:
Data sources
- Cassandra rewired into a generic
ctx.NoSQLhandle — verbs now take a full CQL statement instead of collection+key args. The pure-Zig client speaks the CQL native binary protocol v4. Cassandra is now experimental; see Cassandra). - ClickHouse (experimental) — columnar OLAP over HTTP, on
ctx.SQL. See ClickHouse). - Couchbase (experimental) — document store over N1QL/HTTP, on
ctx.NoSQL. See Couchbase). - MongoDB (experimental) —
ctx.NoSQLover the OP_MSG wire protocol with SCRAM-SHA-256 auth and optional TLS. See MongoDB). - InfluxDB v3 (experimental) —
ctx.Timeseriesnow hits/api/v3/write_lp,/api/v3/query_sql, and/api/v3/configure/database. See InfluxDB).
Migrations & metrics
- NoSQL migrations — new
.nosqltarget runs CQL throughctx.NoSQL; SQL dialects now cover duckdb (SQLite-shaped DDL) and clickhouse (MergeTree). See Migrations). - Unified datasource metrics —
app_datasource_response(histogram) andapp_datasource_error_total(counter), labeled bybackend/operation/status. See Observability#metrics).
Auth & runtime
- Auth header fix — API Key / Basic auth no longer crashes on a malformed or bare header; the request is rejected with
401instead. See Authentication). zfresource module — cross-platform system-info gathering replaces direct/procreads (works on macOS too).- Stability — memory-leak fixes across the examples and a
metriczshutdown segfault fix.
v0.5.1 (2026-09-20)
Highlights of the 0.5.1 release:
- Automated migration creation - a new
zeroCLI (zig build zero) scaffolds migrations withzero migrator add --name <name>, generatingsrc/migrations/<name>.zigand auto-regeneratingsrc/migrations/all.zig. See Migrations). - Experimental OpenTelemetry — opt-in traces and logs over OTLP HTTP/protobuf, default-targeting the rootPrint OSS collector (any OTLP HTTP collector works). Automatic server spans,
traceparentpropagation, and astd.log→ OTel logs bridge. See OpenTelemetry). - RBAC limited via JSON config, remote log-level retrieval format revisited.
- HTTP server tuning — new knobs:
ZERO_HTTP_WORKERS(I/O workers),ZERO_HTTP_THREAD_POOL_COUNT(handler threads),ZERO_HTTP_MAX_BODY_SIZE(413 on overflow), andZERO_KEEPALIVE_TIMEOUT_MS(idle keep-alive now defaults to 60s). Inbound concurrency is now bulkhead-capped at 1024 by default. See Configuration#http-server). - Postgres pool tuning —
PG_POOL_SIZEandPG_POOL_ACQUIRE_TIMEOUT_MS. See Configuration#database). - Bootstrap arena —
ZERO_FRAMEWORK_MEM_SIZEsizes a fixed bootstrap allocator for early / short-lived allocations. See Configuration#app). - OAuth hardening —
OAUTH_AUDIENCE/OAUTH_ISSUERenforce the JWTaud/issclaims when set. See Configuration#auth). - Health & startup probe — new
GET /.well-known/startupendpoint plusapp.addHealthCheck(...), per-check timeout viaHEALTH_CHECK_TIMEOUT_MS. See Container#health-checks).
v0.5.0 (2026-09-14)
The 0.16 baseline.
std.Ioinjection threaded throughApp → container → Context, enabling the new pluggable I/O layer.- New data layers: DuckDB, NoSQL via Cassandra, Time Series via InfluxDB, Search via Solr.
- Per-service circuit breaker, rate limiter, and outbound auth for HTTP clients.
- SQL handler API refresh for ergonomics.
- Interface dispatch for datasource and pubsub examples.
- Expanded metrics surface.
- Zig 0.16 support.
- 144 test blocks (unit + integration + validation).
v0.0.3 (2026-06-03)
- Stable 0.15.2 support.
v0.0.2 (2026-05-23)
- Circuit breaker for the HTTP client.
- Custom metrics registration.
v0.0.0 (2025-11-16)
Initial public surface.