Analog 3 came out this week. I recently started Soonly, a booking app for one-to-one and group sessions (think Calendly), and it's still in beta. So I switched it to v3 right away. While I was at it, I measured before and after to see whether the upgrade changes anything in practice. Here are the results, in case they help with your own upgrade.
The app
- Stack: Angular 22 (zoneless, signals), Analog, Vite 8, Nitro 2, Angular Material.
- Hosting: a single Cloudflare Worker serves the app, the API and the booking pages (D1 and Queues behind it).
- Rendering: about 145 public pages (marketing, help center, blog, in two languages) are prerendered, and Angular loads on the first interaction. The app and the booking pages are server-rendered on demand by the Worker.
The upgrade
The official updater did almost everything:
ng update @analogjs/platform@latest It split analog() into three explicit plugins in vite.config.ts, moved the options to the plugin that owns them, and added @analogjs/vite-plugin-angular and @analogjs/vite-plugin-nitro to the dev dependencies:
plugins: [ analog({ prerender: { routes } }), angular(), // the same Nitro options as before, moved out of analog({ nitro: { … } }) nitro({ preset: 'cloudflare-module', routeRules, cloudflare: { nodeCompat: true } }), ] Then I searched the codebase for every API, import and option the migration guide lists as removed. Nothing else was in use. Types, tests, build and dev server passed with no further change.
Things worth knowing
- No
angular.json?ng updatewon't run. Soonly uses Analog without the Angular CLI builder, so the CLI says it's not in a workspace. A throwawayangular.jsonis enough to run the official migrations; delete it afterwards:
{ "version": 1, "projects": { "app": { "root": "", "sourceRoot": "src", "projectType": "application", "architect": {} } } } -
requestContextInterceptornow registers itself, and the updater removes your manual registration. Analog 3 adds it after your own interceptors. If one of your interceptors rewrites request URLs, the server-side transfer cache can miss. Listing it first inwithInterceptors([...])keeps it first: Angular dedupes interceptors and keeps the first occurrence. - Analog 3.0.0 no longer ships
AGENTS.mdand the agent skill inside@analogjs/platform. If you work with an AI agent, point it tollms.txt,llms-full.txt, or any docs page with.mdappended.
Results
Measured locally on the same machine. Build and dev times are the median of 5 runs per version, with the cache cleared before each cold build. Response times come from an interleaved A/B run: old and new builds served in turn by wrangler dev, 90 requests per page and per version.
| Analog 2.9 | Analog 3.0 | Δ | |
|---|---|---|---|
| Production build (cold) | 41.3 s | 35.2 s | −15% |
| Worker bundle, gzip (Wrangler dry-run) | 2.52 MB | 2.21 MB | −12% |
| Worker bundle, raw | 12.35 MB | 10.97 MB | −11% |
Everything else stayed the same:
- Client JS: 1.21 MB brotli in 276 chunks.
- Initial JS of an SSR page: +0.9%.
- Server response time: 34 to 36 ms on an SSR page.
- Dev server startup: about 11 s, within noise.
The Worker size matters more than it looks: Cloudflare caps a Worker at 3 MB compressed on the free plan and 10 MB on paid plans, so 0.3 MB less is real headroom.
A word on method: my first sequential run showed a slowdown in response time. The A/B run showed it was a difference in machine load, not Analog. If you benchmark an upgrade, interleave old and new.
What I didn't adopt (yet)
- Nitro v3 (opt-in): h3 v2 changes the API used across ~180 server files, and Nitro v3 is still a release candidate.
- Typed routing (
LinkTo,injectNavigate): still experimental. I'll come back to it once it's stable, because broken links failing to compile is exactly what I want. -
defineApiRoutewith Standard Schema: Zod already validates inputs in my service layer. Adopting it means passing those schemas todefineApiRoute, not adding a second validation. - Streaming SSR: nothing to stream here. Public pages are prerendered, and SSR pages load their data in the browser.
-
fastCompile: the next thing I want to measure. Keep a separate type-check step if you enable it.
Wrapping up
For a recent app that keeps close to the framework's conventions, the upgrade cost one command and a checklist pass. In return: faster production builds and a smaller Worker, with nothing else changing. Thanks a lot to Brandon Roberts and every Analog contributor for a release this smooth. 🙏