Subscribe free
Morning Merge JavaScript · Monday, November 30, 20264 min read

pnpm 12.25 lockfile fixes, Next.js 17's caching default

Also: why Tufte CSS sidenotes break reader modes, and a survey of design tool hover areas

Most of Monday's JavaScript news is about defaults. pnpm 12.25 got stricter about what it lets into a lockfile, and Next.js 17 will turn Cache Components on for every app.

The main thing

An isometric blueprint drawing of a conveyor line of white interlocking blocks, where one golden block with a misshapen connector tab is stopped at a socket-shaped inspection gate.

pnpm 12.25 stops a dependency from posing as a registry package. pnpm 12.25 is out, and its security section deserves your attention before the features. pnpm now refuses a tarball, git or directory dependency whose package.json has an invalid name, and fails with ERR_PNPM_INVALID_DEPENDENCY_NAME.

The weird part is why a name matters. The release notes use esbuild@0.20.0( as the example. A package with a name like that could pass for a registry package in the lockfile and in allowBuilds. So a git or tarball dependency could look like something you already trust.

The other fixes are the same bug in different clothes: two different things collapsing into one name. Resolution now fails when two packages with different resolutions would share one lockfile entry.

Two URL dependencies could also share a virtual store directory, because a URL with ( or ) could match one with _. They now get a hash suffix.

JSR had its own version. Before this release, jsr:@a_/b and jsr:@a/_b both resolved to the npm package @jsr/a___b. pnpm now rejects a jsr: specifier with an underscore in its scope or package name. Separately, on Unix, store lock files are now opened relative to a verified directory handle.

The feature list has its own oddity: a JavaScript package manager now builds Rust. pnpm add -g crate:ripgrep@14 builds a crate's executables and links them into the global bin directory, and pnx crate:ripgrep@14 --version runs one. pnpm can install its own rustup into the store and leave ~/.rustup alone.

That part needed a quick follow-up. pnpm 12.25.1 sets stable as the default toolchain of the rustup pnpm installs, so globally installed crates can run cargo and rustc outside a Rust project. Add the crate again to fix an existing install.

Two smaller changes matter at work. pnpm pack now takes package specs the way npm pack <spec> does, and verifies registry downloads against the declared integrity.

And pnpm finally trusts certificate authorities listed with ca[]= in .npmrc. It used to ignore them, so private-CA registries failed with invalid peer certificate: UnknownIssuer.

Upgrade to 12.25.1. If an install now stops with ERR_PNPM_INVALID_DEPENDENCY_NAME, look hard at that dependency before you work around the error.

Next.js 17 will turn caching on

An isometric blueprint drawing of a modular cabinet frame with empty drawer sockets, and one golden drawer sliding into its slot while a spare bracket lies beside it.

Next.js 16.4 makes Cache Components the recommended default. InfoQ's write-up is new; the release isn't. Next.js 16.4 came out on October 6, 2026. What's worth catching up on is the plan: Cache Components are now the suggested default for every app and become the framework default in Next.js 17.

New projects from create-next-app already ship with cacheComponents: true and partialPrefetching: true in next.config.ts. Existing apps set them by hand.

Two APIs try to keep the model predictable. ensureStatic, exported from a route or layout, fails the build if dynamic content sneaks into a page's shell, prefetch or full navigation.

navigation() and prefetch() from next/cache keep cached content out of a prefetch and defer it until a real navigation. Abhishek Gupta, writing on the CODERCOPS blog, called navigation() the most useful addition for inbox-style pages, where prefetching every visible link used to pull whole message threads over the wire.

Gupta's advice for ensureStatic is to put it on the root layout, then loosen it where a page really needs dynamic data. That's a cheap way to find out what Next.js 17 will do to your app before it does it.

If you're on 16.4, make sure you also took the October 14 security update. It patched three vulnerabilities in upstream dependencies, two Critical and one High.

One caveat if you don't host on Vercel. A Reddit user self-hosting with OpenNext saw page performance drop a little after the change, and guessed that OpenNext doesn't give you the edge caching and stream continuation Vercel does. Their advice is to test it yourself rather than assume it works.

Worth reading

An isometric blueprint drawing of a rectangular frame on a drafting board, ringed by measured dashed shapes, with a golden bracket slotted onto one corner.

Would you reconsider your Tufte CSS sidenotes? Tufte CSS puts each sidenote inline, in a span inside the paragraph, and uses a checkbox trick to collapse it on narrow screens. The author argues this breaks anything that reads the DOM instead of the CSS. Drag-select across a sidenote and you copy the note too.

Reader modes, text-mode browsers and screen readers lay text out in DOM order, so in the author's example "Bembo" runs straight into "See Tufte's comment" with no space between them. If your blog or docs site uses this pattern, open a post in Firefox Reader View and see what your readers get.

An exhaustive review of design tool hover areas. While redesigning tldraw's selection overlay, the post's author wanted to know where other tools put the invisible hit areas for resizing and rotation. A Hammerspoon script, written with Claude Code, moved the mouse over a 50x50 grid, recorded the cursor at each point and drew the result.

No two tools agree. Figma's rotate area is an arc that wraps the corner. Excalidraw and Canva use the same size for edges and corners. Miro's corners are smaller than its edges, and the edges overlap.

Rive's rotation arc looks, to the author, like degrees used where radians were meant, or a misplaced decimal: -4.5° rather than -45°. If you build editor UI in the browser, this is the survey you'd otherwise have to do yourself.

Upgrade to pnpm 12.25.1 today, and read any ERR_PNPM_INVALID_DEPENDENCY_NAME it throws before you work around it.

← All Morning Merge JavaScript issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →