Subscribe free
Morning Merge JavaScript · Friday, December 4, 20264 min read

ArkType 3.0 precompiles your validators

Also: self-hosted Durable Objects, a Deno eulogy, DOMPurify and Mongoose fixes

ArkType 3.0 brings back the build step it once bragged about skipping, because agents do the setup now. If DOMPurify or Mongoose is in your lockfile, patch those first.

The main thing

A golden block, freshly pressed into shape, drops into its matching slot on an assembly rail beside a bin of uncut blocks.

ArkType 3.0 is out, and it precompiles. One build plugin turns each Type into a standalone validator, and your definitions and inferred types stay as they are. Where there's no bundler, ark emit runs after tsc.

ArkType says precompiled validators beat Zod 4 in all 32 scenarios of its benchmark, by a median of 15×, and beat Zod 4's z.compile in 32 of 32 by a median of 5.3×. Those are ArkType's numbers on ArkType's benchmark, so run your own hot paths before you quote them.

The weird part is the reasoning. When 2.0 launched, the team bragged that it needed no build step.

Now the argument is that a coding agent adds the plugin, reads the errors and fixes them, and a shadow mode runs your tests against both models and fails wherever they disagree. So the build step came back because the setup cost moved to the agent.

The Zod migration is pitched the same way. You add the skill with npx skills add arktypeio/arktype and ask your agent to convert.

Before it removes zod, it runs schemas your tests don't cover against their Zod originals on the same inputs. Where a dependency only accepts Zod, like MCP SDK v1, it keeps Zod for that call.

The release lists what doesn't carry over, which is the useful part:

Every Type is a Standard Schema that writes its own JSON Schema, so tRPC, TanStack Form, @t3-oss/env, the AI SDK from v6 and the MCP SDK from v2 take it directly. A Zod schema also works inside an ArkType definition, so you can convert one file at a time.

Start with npx arktype check "src/**/*.ts". It lists every definition the build would refuse before you commit to anything.

Runtime watch

Three identical machine housings are cabled through a single golden coupling into one shared storage crate.

workerd cluster is the self-hosted Durable Objects people waited for. Point several workerd processes at one object store bucket (R2, S3 or GCS) and they form a cluster. It succeeds celld, which emulated Workers.

This is the same runtime that runs Workers, and the stated goal is full Durable Objects compatibility. Point-in-time recovery isn't there yet, and the announcement says not to run it in production.

The Demise of Deno is a eulogy from employee #3. Kitson Kelly, who wrote oak and worked on Deno's TypeScript pipeline and language server, writes that the team has moved into Cloudflare. He was against chasing Node.js compatibility and quotes Ryan Dahl saying Deno was "sucked into the gravity well of node compatibility."

He also describes a wave of departures on March 18 and Fresh 2 development stalling, which pushed his own apps to Astro.

It's one insider's account, not a roadmap. If Deno or Fresh is in your stack, it's still the most candid read on how a runtime built around web standards got pulled toward Node compatibility.

Quick bits

AI SDK 7.1 adds code mode and a release calendar. In code mode, the model writes code that calls your tools in an isolated sandbox, so it can run calls concurrently and filter large responses before they reach its context. There's also an experimental decide call for typed choice, score, boolean and bounding-box answers.

The bigger change is the policy: a feature minor every month, one major a year in June, and a year of full support for prior majors, then six months of critical security fixes. You can finally plan upgrades around it.

Svelte 5.60.1 and 5.60.2 are mostly async and hydration fixes. Async components keep their enclosing DOM boundaries and CSS custom properties when they hydrate. Pending async initialization is released when its branch is destroyed. Shared derived dependencies no longer trigger exponential self-invalidation walks, and object rest destructuring stops picking up inherited properties. If you use async components, take both.

Patch check

A white piece passes through a sieve while a cracked golden piece sits under a magnifying lens for inspection.

DOMPurify's SAFE_FOR_TEMPLATES can be beaten with nested forms (CVE-2026-144292, rated high). DOMPurify 3.4.18 returns a string with no {{ in it, but the browser drops a nested <form> tag when you assign that string to innerHTML, and the brace fragments merge into a live expression. The advisory shows it executing with Vue 3 in-DOM templates and AngularJS 1.8.3.

Everything before 3.5.0 is affected. If you sanitize user markup and then let a template engine compile it, upgrade to dompurify@3.5.0.

Mongoose's sanitizeProjection leaks select: false fields (CVE-2026-142596, rated high). Projections like '-name +password' or { name: { $concat: ['$password'] } } return password hashes even with the option on. Some forms, such as nested exclusion objects, leak without it too. Affected ranges are >= 8.5.0, < 8.24.10 and >= 9.0.0, < 9.12.2. Upgrade to mongoose@8.24.10 or mongoose@9.12.2, and stop passing user-controlled projections in the meantime.

cross-spawn mis-escapes backslashes on Windows (CVE-2026-137198, rated high). Since the ReDoS fixes in 7.0.4, 7.0.5 and 6.0.6, runs of backslashes before a double quote aren't doubled correctly when commands go through cmd.exe, which opens argument injection.

It only bites on Windows. Run npm ls cross-spawn to see where it sits in your tree. The advisory text we have stops before the patched version, so check it before you bump.

Run npx arktype check on a branch this week. It costs nothing and tells you exactly how far you are from precompiled.

← All Morning Merge JavaScript issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →