Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Deno 7 min read Release mediumAdept

Fresh 1.5: Partials, client side navigation and more

Fresh 1.5 introduces Partials, a client-side navigation model where marked regions of a page are swapped with server-rendered HTML without a full reload, preserving island state. Developers opt in with an f-client-nav attribute and <Partial name> wrappers, can point links at slimmed partial endpoints via f-partial, return multiple partials in one response, and choose replace, prepend or append merge modes. The release also adds automatic data-current/data-ancestor attributes for active link styling, configurable esbuild targets, an exposed esbuild metafile for bundle analysis, a new dev error overlay, automatic CSP nonces on inline scripts, and experimental buildStart/buildEnd plugin hooks.

Assumes: server-side renderingislands architectureJSX components

Related posts

  • Fresh 1.1 - automatic JSX, plugins, DevTools, and more

    Deno mediumAdept

    Fresh 1.1, Deno's zero-client-JS, no-build-step web framework, switches new projects to automatic JSX via the deno.json jsxImportSource setting. It also adds a first plugin system for injecting styles and scripts, with an official Twind plugin that drops the tw wrapper, plus Preact Signals and Preact DevTools support. Route handlers can call ctx.renderNotFound(), and middleware files can export an array of stacked handlers. Experimental Deno.serve support is opt-in via experimentalDenoServe. An update script with codemods migrates existing projects.

  • Fresh 2.3: Zero JS by default, View Transitions, and Temporal support

    Deno mediumAdept

    Fresh 2.3 now skips the client-entry bootstrap script entirely on pages that use no islands or partials, cutting static pages from roughly 5–9 KB gzipped JavaScript to zero with no configuration. It adds opt-in View Transitions wired into partial navigation, built-in WebSocket routes via app.ws() and ctx.upgrade(), CSP nonce and CIDR-based IP filter middleware, W3C traceparent injection for browser-side OpenTelemetry, Temporal types as island props, and trustProxy handling of X-Forwarded headers. Vite integration drops two Babel passes, fixes CJS and duplicate-Preact issues, and middleware chains are now precompiled at startup; upcoming work targets Vite 8 with Rolldown and build-time prerendering.

  • Fresh 1.0

    Deno mediumAdept

    Fresh is a full stack web framework for Deno that renders pages just-in-time on the server and ships zero JavaScript to the client by default, using the islands architecture so only explicitly opted-in components are hydrated in the browser. It uses Preact and JSX/TSX on both server and client, has file-system routing with handlers for custom responses and async data loading, and has no build step: TypeScript and JSX are transpiled on demand, so deployments are near-instant. Version 1.0 is declared production-ready and is well suited to edge runtimes such as Deno Deploy, Netlify Edge Functions and Supabase Edge Functions.

  • Fresh 1.3 – Simplified Route Components and More

    Deno mediumAdept

    Fresh 1.3 lets route components be async functions that load data directly, removing the handler-plus-props-interface boilerplate, while the existing ctx.render() pattern keeps working. Plugins can now inject routes and middlewares, thrown handler errors fall back to the _500.tsx template, and Preact error boundaries can catch rendering errors. Multiple islands can be exported from one file to cut requests, best when grouping islands used on the same page. The release also adds Fresh-specific lint rules, clearer error messages, and uses the now-stable Deno.serve API when available.

  • Fresh 1.2 – welcoming a full-time maintainer, sharing state between islands, limited npm support, and more

    Deno mediumAdept

    Fresh 1.2 brings on Preact maintainer Marvin Hagemeister as full-time lead after a backlog of 60+ unreviewed PRs, and ships features centred on islands. Island props can now carry circular objects, Uint8Arrays and Preact Signals beyond plain JSON, which lets islands share state through a common signal. Islands also accept server-rendered JSX children, recovered from the HTML alone, and can nest, with inner islands treated as ordinary Preact components. Other additions include limited npm: specifier support (not yet on Deno Deploy), custom HEAD handlers, status and header overrides on ctx.render, island subdirectories, an async renderAsync plugin hook, and a createHandler helper for testing.

The quest for software engineering knowledge.

Look:
Layout: