It's tempting to think cleaning up a JS project just means swapping one slow tool for a fast Rust equivalent. Drop in a new formatter or bundler and everything flies. In reality, time leaks in several places at once: mismatched formatting breaks diffs, heavy modules evaluate eagerly, and servers keep running requests for clients that already closed the tab. Here are five releases and patterns that plug those leaks.
tidy: a Rust formatter matching Prettier output including plugins
Switching off Prettier usually stalls on style drift and missing plugins. tidy v2.1.2 (GitHub) solves both: a single Rust binary with no Node.js required (plus a tidyrs Node binding). Against Prettier 3.9.9, output matched on all 3,906 JS files and 3,308 of 3,309 TS files (with JSDoc formatting off, since tidy formats JSDoc like prettier-plugin-jsdoc by default). It also fixes Prettier's CI jitter where a second pass alters its own output. Built-in support covers XML/SVG, TOML, Dockerfile, INI, and embedded blocks in HTML/Vue/Markdown:
Formatting 12,071 files on M1 Max (excl. XML)
On large repos, pre-commit hooks and CI checks stop dragging. Existing Prettier or oxfmt configs migrate to tidy.json via tidy init:
# Install and run CI check (exits 1 on formatting diffs)
curl -fsSL https://tidy.lukeed.com | sh
tidy check
# Format only files modified on the current branch
tidy up --changed
tidy check drops straight into PR checks, while --changed keeps local pre-commits instant.
Rolldown 1.4: experimental import defer support
A normal import runs a module's top-level code immediately at startup, even if you need it much later. The TC39 import defer proposal keeps the module in your graph while deferring execution until a namespace property is first accessed—no await import() rewrite required. Rolldown 1.4.0 (December 2, 2026) enables it behind a flag:
// rolldown.config.js
export default { experimental: { importDefer: true } };
// app.js — heavy.js executes only when heavy.value is read
import defer * as heavy from './heavy.js';
console.log('start');
console.log(heavy.value);
Per the Rolldown docs, multi-chunk builds, cycles, top-level await, CJS/JSON, and all output formats are supported. Dev mode, Vite, and experimentalInlineCommonChunks currently fall back to eager imports with a warning. 1.4.0 also makes nativeMagicString permanent and fixes duplicate require() calls on bundled ESM.
Server-side cancellation: saving resources with AbortSignal in Node.js 26.1+ and Cloudflare Workers
In the browser, AbortSignal has long canceled stray fetch calls. On the server, teams forget it: a user closes the tab, yet the backend keeps querying APIs and burning LLM tokens. As detailed in this server cancellation walkthrough, Node.js 26.1.0+ exposes a lazy req.signal on http.IncomingMessage (sped up in 26.14 LTS), and Cloudflare Workers enables request.signal by default starting 2026-11-17:
// Node.js 26.1+ — forward req.signal into fetch
import http from 'node:http';
http.createServer(async (req, res) => {
try {
const r = await fetch('https://api.example.com/report', {
signal: req.signal,
});
res.end(await r.text());
} catch {
if (req.signal.aborted) return;
res.statusCode = 500;
res.end('Internal Server Error');
}
}).listen(3000);
Pass the same signal to Promise.all or via request.signal in Cloudflare Workers. Just don't tie payments, emails, or exports to socket aborts (those belong in queues)—and remember an aborted fetch only stops an upstream SQL query or LLM stream if that service honors cancellation.
The Register pattern in TypeScript: type-safe SDKs via declare module without generic plumbing
Typing feature-flag keys usually means threading useFeatureIsOn<AppFeatures>() everywhere or wrapping hooks—wrappers that developers or AI agents easily bypass by importing the original hook. TanStack Router and GrowthBook SDK 2.1.0 use TypeScript's declare module (module augmentation) to extend an interface without forking the package:
// In SDK: empty Register interface and NoInfer default
export interface Register {}
type Features = Register extends { features: infer F }
? F : Record<string, any>;
class GrowthBook<T extends Record<string, any> = Features> {
constructor(options?: Options<NoInfer<T>>) {}
}
// In app (needs at least one import or export)
import type { AppFeatures } from './types';
declare module '@growthbook/growthbook' {
interface Register { features: AppFeatures; }
}
const gb = new GrowthBook({ clientKey: 'sdk-abc123' });
gb.isOn('new-chekout'); // Compile error: typo caught
Watch three gotchas: without NoInfer, TypeScript infers the type from the buggy call itself; without an import or export, the declare module file is silently ignored; and Register is project-wide. GrowthBook generates features, attributes, and events types via npx growthbook generate-types --output ./src/generated.
ESLint Plugin MobX 1.0: full flat config support for ESLint 9.10+ and 10
eslint-plugin-mobx 1.0.0 (November 26, 2026) moves the plugin to ESLint flat config (eslint.config.js arrays with explicit imports instead of .eslintrc). It supports ESLint 9.10+ and 10 only (stay on 0.2.x for ESLint 8) and drops @types/eslint. missing-observer is removed in favor of manual wrappers or mobx-react-plugin, and no-anonymous-observer defers to react/display-name:
// eslint.config.js (ESLint 9.10+ / 10)
import pluginMobx from 'eslint-plugin-mobx';
export default [
// Replaces the removed pluginMobx.flatConfigs.recommended
pluginMobx.configs.recommended,
{
plugins: { mobx: pluginMobx },
rules: {
'mobx/exhaustive-make-observable': 'warn',
'mobx/unconditional-make-observable': 'error',
},
},
];
When upgrading from 0.2.x, note the rename: flatConfigs.recommended is gone, replaced by pluginMobx.configs.recommended. Only two store rules remain, and exhaustive-make-observable now catches bare makeObservable calls with no annotations (which throw in MobX 7).





