HumanOnlyWeb

🍁 writer of code. drinker of coffee. human on the web.

Nitro v3 is Coming, and I'm Excited

By HumanOnlyWeb

Nitro v3 is around the corner, and it comes packed with stuff I've been wanting for a while.

Built-in Cloudflare Dev Emulation

This one's big for me, as Cloudflare is my primary deployment platform. Nitro v3 now has built-in support for Cloudflare dev emulation. No more nitro-cloudflare-dev module.

That module was great and served me well, but it had some issues that I found myself creating hacks to just get around.

Now it's just:

import { env } from "cloudflare:workers"
const kv = env.MY_KV_NAMESPACE

Cloudflare-Specific Exports

Nitro v3 adds support for exports.cloudflare.ts.

What this means: you can easily use Durable Objects, Workflows, and other Cloudflare-specific stuff without doing gymnastics. Now you just define your class, add your logic, export it, done.

Rolldown

Nitro v3 uses Rolldown as its bundler. Better tree shaking, smaller bundles. TBH, this was never a huge issue for me, but I'm excited to use all the awesome stuff from the team at Voidzero.

That's It

There's a lot more goodness in the v3(alpha) release notes, but these are the ones that really excite me. Can't wait to migrate my stuff once it's stable.