Changelog
What changed, release by release.
borgo follows semantic versioning, with a written policy for what stable means. Anything a release changes that you can notice without asking for it is in the upgrade guide, with a checklist.
Features
- a page that throws keeps its layout, and the browser side says what failed (d6c63bd)
- a tab opened before a deploy loads the next page whole (6f25567)
- an opener policy on every response, and HSTS and Permissions-Policy the operator can say (26df833)
- BindValid and Invalid, one shape for a form that is wrong (c9fa9c8)
- BORGO_HOST chooses the interface the public port listens on (ab094e9)
- head.links, for a page's canonical address and its other languages (eff08c8)
- helpers for the tests of an app (446baa5)
- once() for what the loaders of a request share, and head is told the layouts (6bc08da)
- onServerError, for what fails while a page is rendered (3804608)
Bug Fixes
⚠ BREAKING CHANGES
CSRF_COOKIEandbrowserEnvare no longer exported from "borgo-framework". An app that imported CSRF_COOKIE reads the token with csrfCookieValue(document.cookie); browserEnv was only ever imported by generated code, which a build rewrites.
Features
- a layout can have a loader (f53874e)
- api() in the browser, the typed client where a page calls the api itself (c8db34e)
- ApiError.json(), what the api wrote with its refusal (988af76)
- navigate() and revalidate(), what the runtime already did for a link (ed3e320)
- subscribe says when it joined, and a handler's exception is the page's again (1e0e8b2)
- the root entry holds what an app writes by hand, and nothing else (4264ce7)
Bug Fixes
- a bare "#" link is left to the browser (1bc8dce)
- a page is stripped of its server code wherever the app directory is named from (5a0f1cf)
- a rewritten page hydrates as the page that was rendered (1fce36d)
- dev: children are stopped from the first moment, and the watcher's error is said (c3675a8)
- dev: the session lock is taken, not checked and then written (207a481)
- subscribe spreads its reconnects (b2424c2)
- what waits for a closed socket is bounded, and a page that cannot hydrate says so (9eb3ecb)
Features
- //borgo:export, the typed bridge from TypeScript to Go (f59abcd)
- borgo.With, borgo.Value and borgo.Forward, and ctx.locals (f5aa31b)
- loaders and actions receive the session go verified (cae05bb)
- middleware.ts guards all three doors of a page (1ec1dd2)
Bug Fixes
- a .go save in borgo dev reloads the browser again (6f779cb)
- a file the front refused was served by the render service (c6decdc)
- a head request no longer calls a page empty (4a6fda6)
- a lock's pid read after its holder died names someone else (0674341)
- a restart dev asked for is not a crash, and go gets only its half (1f66b31)
- a stale build lock nothing can remove is given up on in time (002fe78)
- an app type named like borgo's keeps its name (46ea8a5)
- back and forward restore the position the page had when it was left (60ab44f)
- borgo dev's watcher honours the app's .gitignore, as it promised (1f5c872)
- borgo export publishes no page api/middleware.go guards, and any app's 404 (6ee9a91)
- borgo start lets requests in flight finish, and serves its fresh build (cb32eaf)
- close the findings of the phase 7 verifier (38ef156)
- fast refresh reads a division after ++ as one, and the docs say 0.30 (e186480)
- one asset build per directory at a time (F10) (5514979)
- the findings of the phase verifier (382bc6c)
- the phase 2 verifier's findings, and the page that documents the phase (105b8e7)
- the typed client follows no redirect and sends the path it was given (72f5a4d)
- two borgo apps on one machine no longer answer each other's pages 403 (376cfa6)
- what the page cache keys on and what a shared render is told (a6854c6)
- what the verifier of S11-S12 found (24510ec)
- what the verifier of S5-S8 found, the guard bypass first (5d240b7)
- what the verifier of S9-S10 and the guard fix found (d198765)
⚠ BREAKING CHANGES
- borgo now requires go >= 1.27.
bunx borgo doctornames the version and the install link on an older machine. - deps: scaffolded apps now declare typescript ^7.0.2 in their devDependencies. Apps generated by older create-borgo keep 5.9 and keep working; borgo itself never runs their tsc.
- borgo now requires bun >= 1.4.0. On an older bun,
bunx borgo doctornames the version and the one-line upgrade. - borgo now requires bun >= 1.3.14. On an older bun,
bunx borgo doctornames the version and the one-line upgrade.
Features
- @/ imports are the default, guarded exactly like the climb they replace (c8015d9)
- env: the app's environment, declared once and refused at boot (7c2df2d)
- export: a revalidate page is skipped by name - it asked for a server (21fbed3)
- isr: copies survive a restart, and every replay re-mints its csp nonce (309b83d)
- isr: the grammar, the guard and the bounded cache - the pure core first (dfbb372)
- isr: the orchestrator, the wiring, and borgo.Revalidate on the channel that already exists (fe05e9b)
- the dev refresh transform is bun's own, and babel leaves the tree (c374575)
Bug Fixes
- a stale if-range survives bun 1.4's own slicer (c1af84a)
- doctor: a second bun in ~/.bun is checked, because bin shims run it (0115bcd)
- env: the default keeps the contract it was skipping (dd23877)
- env: the schema travels on a file, debugging travels on stdout (8c0e3c8)
- isr: a refused page renders for its visitor, once-per-window, and a (ca0838f)
- isr: an invalidation dooms the render in flight instead of losing to it (4eeb4ba)
- isr: the invalidation matches what it says - the starred base, both spellings (fad143f)
- refresh: export default memo() is registered, not remounted (0432a44)
- refresh: only react's own memo and forwardRef register, aliases included (9ea5eac)
- refresh: the post-bundle passes stop reading strings as code (50a4a86)
- start: an empty NODE_ENV must not re-exec forever (e80d38e)
- start: the NODE_ENV default rides the launch environment - module code is too late (078c0ef)
- the bun floor borgo declares is the one it proves (4b8ffeb)
- the floor moves to bun 1.4.0, and the release pays for it once (7eb586c)
- the go floor moves to 1.27, the toolchain the release is verified against (61a22ec)
- the second hunt's first wave - the env wall, the blind mask, one spelling per path (cf3e1f6)
- the second hunt's last wave - every finding closed, none parked (dca9d19)
Performance Improvements
- routing: a route outranks an extension-less file, and pages stop paying its stat (2ea2bc0)
- ssr: documents share a pool of gzip streams, +7% at c=50 and +20% at c=10 (453811a)
- ssr: production loads production react, +36% on the bench ssr page (913f050)
- static: the indexed path stats without holding the event loop, +14% (9666fd5)
Build System
- deps: typescript 7, and the two places 5.9 was letting slide (5207917)
- borgo now requires go >= 1.27.
⚠ BREAKING CHANGES
- a build whose emitted bundles reference a file beside their own source now fails instead of warning. No app in examples/, e2e/ or create-borgo uses the channel, and examples/tasks reports 0 faults over 24 bundles.
- borgogen: request types are renamed to <Name>$Request and their fields are optional and nullable. A caller that constructed a request object with every field set still compiles; one that declared a variable of the old type name does not.
- the body limit counted a header, so not declaring one removed it
- borgo's own errors on /api went out without borgo's headers
- BORGO_DEV=0 turned dev mode on, and four switches beside it
- BORGO_CSRF=true turned off the check it names
- an unsigned cookie could authenticate, and the two halves disagreed
- prefix the two unprefixed env vars
- ts: freeze the typescript api for 1.0
- go: freeze the go api for 1.0 and flush sse headers on open
Features
- build: name a reference only a case-insensitive filesystem forgives (72a2f4c)
- build: name a relative import only a case-insensitive filesystem resolves (143a06e)
- build: name the url an emitted bundle asks for and the server does not have (e40be2e)
- doctor checks versions, docker, permissions, disk and the bun shim (70ca753)
- go: freeze the go api for 1.0 and flush sse headers on open (8272431)
- ts: freeze the typescript api for 1.0 (7376032)
Bug Fixes
- a 304 could tell a browser to keep bytes that were gone (326c40c)
- a BORGO_PARENT_PID that is not the parent is said at boot, not discovered from an orphan (5d87a93)
- a fatal generator crash, a wedged upstream, and a spliced download (2ed6631)
- a file referenced beside its own source is refused, and no document carries this machine's path (e77bb34)
- a killed doctor left a probe file, and it was not inert (d070fb2)
- a refused websocket handshake named the wrong cause, to nobody (fb4e107)
- a stream held warm below bun's timer floor was cut before its first sweep (a64b712)
- a topic the relay cannot carry now fails at the call site (36a7d37)
- a websocket refused for its origin now says so, once, instead of being redialled forever (7f99684)
- an exported page carried a token minted for one request (d8e5d40)
- an unsafe /api request was proxied without any csrf check (517a8fb)
- an unsigned cookie could authenticate, and the two halves disagreed (0fff5de)
- borgo start raises its own in-flight request cap (c0700b2)
- borgo start rebuilt in silence, and said the wrong thing when it spoke (ff13b0c)
- BORGO_CSRF=true turned off the check it names (5da4a19)
- BORGO_DEV=0 turned dev mode on, and four switches beside it (4b9d3e6)
- borgo's own errors on /api went out without borgo's headers (50ab128)
- borgogen: a request type promised fields the decoder never requires (47d0761)
- compress: measure whether the filesystem folds case instead of guessing the platform (3741b03)
- compress: stop precompressing what serveAsset will never serve (0784e74)
- deploy init wrote a live signing key into a file nothing ignored (68b6db5)
- doctor claimed more than it had checked, and died on the thing it diagnoses (b82ede4)
- drive tailwind through the postcss plugin so no postinstall is blocked (43f59b1)
- export: dist/site adopts the dot-directory rule borgo start now enforces (522789e)
- export: dist/site no longer ships what borgo start refuses to serve (37f5d4e)
- one 40-byte GET held a connection until the process restarted (4cdbfaf)
- production assets shipped with no cache-control at all (2faf652)
- raise the front server's in-flight request cap (9d2ad80)
- serve the compressed sibling an asset actually has (8e4dd6f)
- the asset validator promised a strength it never had (502a015)
- the body limit counted a header, so not declaring one removed it (2978ee1)
- the build called things finished that it had not verified (930379c)
- the Caddyfile we print opened a real ACME order in the operator's name (6fd65fc)
- the front server probes its parent before opening the port (94b8e7e)
- the front server, the build, and every doc claim the code denied (a1932e8)
- the front server's parent watch was wrong in both directions at once (4bf68da)
- the last two parent watches read a corpse as alive and a live parent as dead (3144995)
- the props carried this machine's path past the redaction, and dot-directories were still served (d819038)
- the second audit wave, and the regressions the first one caused (c8dac83)
- the third pass, and the guards that failed open (7880f3c)
- the three residues the build round left behind (8431765)
- three ways the suite passed on windows and could not pass on linux (ffe075b)
- two commands left behind what they had made to work with (bfaa0b4)
Performance Improvements
- the entry bundle could not be cached, so every navigation paid for it (b2af5aa)
Code Refactoring
- prefix the two unprefixed env vars (0f6931e)
Features
- api client accepts an opt-in per-call timeout (d514e2b)
- enhanced form actions submit over fetch and keep the scroll position (df38c43)
- opt-in tailwind v4 pipeline behind the --tailwind flag (2d2f725)
- pwa mechanics - precache manifest, no-cache service worker, guarded registration helper (061b155)
- ship production security headers, csp included (2c7ce07)
Bug Fixes
- a channel closed during its reconnect backoff stays closed (015899a)
- a client that hangs up mid-body no longer buys a 500 render (425d740)
- a connection header the client malformed no longer answers /api with a document (2b6dd02)
- a deadline that fires under arriving headers answers 504, not an empty 200 (16238ee)
- a document typed TEXT/HTML is still a document to the csp and to the runtime (9ec71bb)
- a dot-segment prerender param no longer writes the page outside dist/site (5d4cd0e)
- a failed prefetch import no longer surfaces as an unhandled rejection (649da0b)
- a form with a submit in flight swallows re-entrant submits (2cfbecf)
- a head no longer answers content-length zero for a body it never measured (1162f80)
- a head on an asset reports the length a get would return, not zero (11b5465)
- a link to the current page replaces its history entry instead of doubling it (27414be)
- a missing pages/ dir fails with a framework message instead of a bare enoent (03fa5b1)
- a range whose validator no longer matches gets the whole file, not a splice (10235a4)
- a repeated content-length no longer costs the proxy its retry (8334bfa)
- a stale if-range answer states the content type its stream cannot carry (270347f)
- a torn watcher read no longer double-builds and double-reloads the api (b4c3798)
- a tossed duplicate cookie cannot survive the post-action jar rebuild (6e3692a)
- an asset whose precompressed sibling vanished degrades instead of failing (8a074ee)
- an upstream 101 becomes a 502 instead of a desynchronised client (890369e)
- api client caps error bodies, drops empty query values, names the route on bad json (3847050)
- api client rejects a route key with no method (54fc8e2)
- attach the dev channel before the no-route bail so unrouted pages hot-reload (62952b7)
- block ntfs stream aliases on windows asset paths, allow header on the json 405 (3a9aca0)
- borgo start propagates the api's real exit code and stops cleanly on sigint/sigterm (9bbaf89)
- bound the runtime's long-lived state - link observer, props cache, socket retries (bcf9904)
- build and export fail hard when borgogen fails instead of shipping stale types (f6e797b)
- builds stamp their mode so borgo start rebuilds a dev-built asset tree for production (88b1946)
- cap websocket topic subscriptions and message payloads (16c36f5)
- claim the history entry a fragment link creates so scroll keys stay distinct (aa3ad32)
- compressing a document no longer undoes its backpressure (5276302)
- dev fallback server reports a busy port instead of rethrowing unhandled (d68056d)
- dev handles sigterm, tells the truth when the binary swap gives up, ignores nested node_modules (2729ed7)
- dev says so when the api dies on its own instead of quietly serving 502s (a0407ab)
- dev watcher forgets the content hash of a deleted file (0d76b89)
- doctor reads localized netstat by row shape and skips the write-lock probe off windows (fc60ebe)
- doubled slashes no longer alias the single-slash route (c9af8d9)
- drop a raw action document that lands after a popstate (b042c63)
- duplicate csrf cookies with differing values read as no token (d65f4e3)
- enhanced posts surface errors and redirects faithfully, csrf covers anonymous actions, ws checks origin (bb9f4be)
- enhanced submits echo the live csrf cookie, not a stale field (c3e7f42)
- enhanced submits keep native form encoding semantics (e06d2be)
- export picks distinct ephemeral ports and ignores a shell API_URL (c1264f5)
- export writes decoded directory names so non-ascii params resolve behind static servers (6f6308e)
- fragment history entries stop refetching, hover prefetch waits for real intent (4b18f43)
- head requests drop the body on every path, healthz and error pages included (39f9ed4)
- help and version exit 0, overlay reconnects over wss on https, deploy init reports an unwritable file (ad73c02)
- hop-by-hop request headers stop at the proxy instead of reaching go (37097e9)
- inline script json escapes u+2028/u+2029 alongside the angle bracket (1316ebd)
- precompression survives a file that vanished between the scan and the read (26471c6)
- production limits on the front server - api header deadline with 504, bounded request bodies, csrf reject before body parse, 405 carries allow, healthz probe memoized (ee4f7c0)
- replay the saved scroll position on a back/forward full load (ac6228e)
- runtime rejects script-scheme redirects and survives malformed action payloads (761bec1)
- ssr streams with backpressure, stops when the client goes away (8c2b8f8)
- the browser's host stops deciding what go reads as its own (16ec3a1)
- the csrf registry can be cleared, so its bare-path test owns its state (3698e89)
- the port probe binds the wildcard, so a port the go api holds reads busy (f7a0fb1)
- the precache stamp folds in the bytes of the assets whose names never move (ab334e8)
- the server reads the csrf token like the browser does, ambiguity and all (ab3c76f)
- the whole dev and start tree dies with its parent, no more stale processes (03a1fd5)
- the ws and push endpoints answer with the security headers too (272f749)
- unserializable props fail before the render, not after it (81998d1)
Performance Improvements
- hoist the ssr hot path's per-request string and route work to boot (5e00b7c)
- index public/ at boot, serve assets with etags and 304s (aa2a817)
- scriptJson chains replaceAll instead of a regex callback pass (3bb5156)
Miscellaneous Chores
- cut the 0.20 release (cd2503d)
Features
- /healthz on both servers and opt-in prometheus metrics on the front (530810e)
- borgo deploy init writes the blessed caddy, nginx, systemd and compose configs (3f6e6fc)
- borgo doctor diagnoses the environment with actionable fixes (01ff323)
- borgo export prerenders static routes into dist/site, loaders opt in with prerender (7d7cfa2)
- systematic auth, borgo.Auth handlers over stdlib pbkdf2, Authed middleware and csrf-protected actions (304b144)
- typed channel.publish, borgogen rejects slashed push topics, export writes 404.html (462bcee)
- typed websocket events, borgo.PushT feeds a generated event map that types subscribe (3eaad62)
Bug Fixes
- a client disconnect mid-stream crashed the server, cancel through the reader (2a323c9)
- answer head requests instead of 405, body stripped after render (3aece13)
- cap proxy retry buffering at 10mb, large or unsized bodies stream through (067e971)
- compare the push key in constant time (c15905b)
- decode static paths and route params safely, check traversal on the decoded form (6a5c8a1)
- dev kills its children on any exit, a broken go edit keeps the previous api serving (2a5a4d5)
- export lists 404.html apart, counts assets logically and survives zero pages (10319fe)
- export summary reports page failures instead of a green check (07e1b05)
- friendly guidance when a stale api process blocks the binary swap (441718a)
- retry refused connections while the api restarts, actions and loaders included (c1d0c35)
- stale navigations must not render over newer ones, back flushes the pending scroll save (5b20547)
- stamp-guard reloads on hydrated pages, a reconnect must not replay them (ae29812)
Version convergence: both packages now share one linked version.
Bug Fixes
- serve precompressed assets and gzip dynamic responses (e68a8ef)
Bug Fixes
- compile scss with sass-embedded, dropping the postinstall bun blocks on fresh installs (bb4ba67)
- document the bun shim path failure and the safe ways around it (f6404d0)
- fall back to ascii marks on legacy windows consoles (f4ef03d)
- make hot reload reliable and give hook edits next-level fast refresh (51ff7e1)
- publish the runtime as borgo-framework, npm rejects the short name (1c8d5ca)
- rename the generated entry imports to borgo-framework (35e1a73)
- treat piped windows output as legacy too, powershell decodes it as ansi (a9450df)
Features
- branded cli and server output (8906f7e)
- client-side navigation (285faf2)
- complete the typed bridge - helpers, writejson, type overrides, typed request bodies (d9471ee)
- deploy story - dockerfiles, compose, deploy guide, split-mode start (6bc02d6)
- error overlay, custom error pages and framework violation messages (6252297)
- fast refresh over a dev websocket channel, css hot swap (33f9ff4)
- first-class server-sent events (dd0b714)
- first-class websockets - topic relay on the front server, borgo.Push from go (ac35262)
- form actions (cf5f81e)
- islands - independent hydration on hydrate=false pages (d4d8b15)
- nested layouts, head management and streaming ssr (45865b0)
- per-page code splitting with lazy route chunks (454493b)
- per-page partial hydration (50674d1)
- prefetch on hover and viewport, per-entry scroll restoration (6d81af1)
- route directives replace init boilerplate (82f891e)
- signed-cookie sessions, cache helpers, loader guards with cookie forwarding (334ff70)
- strip loaders and actions from client chunks (0f92044)
- typed go-to-ts bridge via borgogen (eef2c27)
Bug Fixes
- debounce watch rebuilds per side (66e2dd8)