Skip to content

Drizzle ORM strips query caching and CommonJS before its 1.0

Release candidate 6 removes the caching layer, cast codecs and CJS output entirely, and raises the Node.js version Drizzle needs. More breaking changes before the stable release.

Drizzle ORM has published release candidate 6 on the way to its 1.0, and it removes two features outright rather than deprecating them. Query caching is gone entirely: the cache option on drizzle() constructors, db.$cache, .$withCache() and the drizzle-orm/cache/core and drizzle-orm/cache/upstash modules have all been deleted. So have “cast codecs”, the automatic casts (::text, cast(... as char), epoch-millisecond conversions) that used to wrap selected columns.

The package is also now ESM only. CommonJS output (.cjs, .d.cts) and require export conditions are removed, and Drizzle now needs Node ^20.19.0 or >=22.12.0, the versions with ESM require support. Migration table upgrade helpers across MySQL, Postgres and SQLite are gone too, replaced by migrators shared across drivers.

Why it matters: if you’ve been tracking the Drizzle 1.0 release candidates, this one breaks you in three separate ways at once: cached queries stop working, CommonJS builds stop resolving, and manual cast handling that relied on the old codecs needs rewriting. Pin your Drizzle version until you’ve read the diff, not just the version number.

The caveat: this is still a release candidate, not the stable 1.0. Each RC so far has carried its own breaking changes, so treat every new one as a migration to review, not a routine bump.

Share

Related reading

More from The Wire

All briefs