Urgent.News

What's breaking now, across thousands of outlets.

Tech

TypeScript 7.1 Beta: Restores the Compiler API and Makes Vue and Svelte First-Class

TypeScript 7.1 Beta, announced October 20, 2026, restores the compiler API removed in 7.0, now split into separate entry points. It adds content mappers, letting tools like Vue check non-standard files. One Vue project's type checks fell from 14.19 to 3.10 seconds. An editor issue remains open, and teams may need TypeScript 6 alongside 7. By Daniel Curtis

Microsoft has released the TypeScript 7.1 Beta, the first update to the Go-based native compiler that landed as TypeScript 7.0 in July. The update restores the Compiler API, which was dropped in TypeScript 7.0, and introduces content mappers to support Vue and Svelte first-class integration. Content mappers allow packages to provide a virtual view of non-standard files like .vue or .svelte components, enabling editors to derive new state from old snapshots without rebuilding the entire world.

The team expects the feature to be backward compatible across all of 7.x once stable. Notable improvements include a speedup of type checks in Directus admin app by 4.6x and a 2.76x reduction in a 353,000 line NestJS check. However, teams adopting the beta will need to run 7.1 in CI alongside an older TypeScript in the editor until Vue tooling stabilises on top of the stable release.

Brief written by urgent.news from InfoQ's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at infoq.com →

More in Tech

How to Select Test Equipment for IEC 60335-2: From Standard Requirements to Laboratory Setup

Selecting test equipment for household appliance safety testing is not simply a matter of purchasing instruments listed in a standard.

  • IEC 60335 regulates safety for household appliances like cooking equipment and refrigerators.
  • IEC 60335-2 adds specific requirements for particular appliance types.
  • Selecting test equipment requires understanding both general and appliance-specific standards.

Which USB-C port should a customer use? A Shopify product specification guide

Official manufacturer image of the model discussed in the guide. A customer looking for a monitor with a one-cable laptop connection needs two clear answers: which USB-C port carries the video signal…

  • Use rear port #5 for one-cable laptop connection
  • Port #5 supports up to 90W power delivery
  • Downstream port #15 delivers up to 15W power

Simulating the Two-Heads-in-a-Row Puzzle in 20 Lines of Python

You flip a fair coin until you get two heads in a row. How many flips does it take, on average? Most people say 4. It feels right: two flips for HH would be 4 if you somehow "double" a 50/50 wait.

  • Simulation confirms expected 6 flips for two consecutive heads
  • Python code defines function to track coin flip streaks
  • Streak resets to 0 after tails, lengthening wait time

More from Friday 6 November →