Fresh 1.1 - automatic JSX, plugins, DevTools, and more
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.
Related posts
- Fresh 1.0
Deno mediumAdeptFresh 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.5: Partials, client side navigation and more
Deno mediumAdeptFresh 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.
- Fresh 1.2 – welcoming a full-time maintainer, sharing state between islands, limited npm support, and more
Deno mediumAdeptFresh 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.
- Fresh 1.6: Tailwind CSS plugin, simplified typings and more
Deno mediumAdeptFresh 1.6 replaces Twind with a first-class Tailwind CSS plugin that generates CSS once at build time instead of on every request, and adds Partials support for forms and error pages. Islands now bundle per source file rather than one tiny bundle each, manifest identifiers derive from file names to cut merge conflicts, and route matching falls back to string comparison for static routes, giving a 4-10x speedup on deno.com. The plugin API can now add islands, inject link elements and hook configResolved; router.basePath enables sub-path hosting; and context and props types collapse to FreshContext, RouteContext and PageProps, with the old names kept as aliases.
- Fresh 1.3 – Simplified Route Components and More
Deno mediumAdeptFresh 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.