Home

2023.03.13 - TypeScript's Migration to Modules

Pi

Ping Xia

March 13, 20235 min read

Title: 2023.03.13 – TypeScript’s Migration to Modules

Rspack & Google I/O 2023 & TypeScript features & Clever Code & 读毛主席 & 上止正

This Week’s Highlights

TypeScript’s Migration to Moduleshttps://devblogs.microsoft.com/typescript/typescripts-migration-to-modules/
One of the most impactful things we’ve worked on in TypeScript 5.0 isn’t a feature, a bug fix, or a data‑structure optimization. Instead, it’s an infrastructure change. In TypeScript 5.0 we restructured our entire codebase to use ECMAScript modules and switched to a newer emit target.

React Is Holding Me Hostagehttps://emnudge.dev/blog/react-hostage
A love‑and‑hate relationship. My current job is React. My next job will be React. The one after that might as well be. tant pis. Related: Were React Hooks a Mistake?.

Rspack正式发布了!https://zhuanlan.zhihu.com/p/612776782
Rspack is a web‑build tool incubated by ByteDance’s Web Infra team, written in Rust. It offers high performance, Webpack‑compatible ecosystem support, strong customizability, and solves many problems we encountered in production, dramatically improving developers’ experience. To let more people join this fun project, we’ve open‑sourced Rspack—welcome to contribute.

Introducing ChatGPT and Whisper APIshttps://openai.com/blog/introducing-chatgpt-and-whisper-apis
Developers can now integrate ChatGPT and Whisper models into their apps and products through our API. Related:

Let’s go. It’s Google I/O 2023https://developers.googleblog.com/2023/03/lets-go-its-google-io-2023.html
Google I/O is back and you’re invited to join us online May 10! Related: How we created this year’s I/O save‑the‑date puzzle.

Deep Dives

All JavaScript and TypeScript features of the last 3 yearshttps://medium.com/@LinusSchlumberger/all-javascript-and-typescript-features-of-the-last-3-years-629c57e73e42
Not all of the following features will be relevant to you or even practical, but they should serve to show what’s possible and deepen your understanding of these languages.

How GitHub Docs’ new search workshttps://github.blog/2023-03-09-how-github-docs-new-search-works/
GitHub Docs recently switched its site‑search to Elasticsearch. Here’s how it was implemented.

Trigonometric functions in CSShttps://web.dev/css-trig-functions/
Calculate sine, cosine, tangent, and more directly in CSS.

An end to typographic widows on the webhttps://clagnut.com/blog/2424/
Currently shipping in Chrome Canary and soon in other Blink‑based browsers (including Edge), a relatively new CSS declaration promises to virtually eliminate typographic widows.

Why You Should Consider Graphs For Your Next GraphQL Projecthttps://www.smashingmagazine.com/2023/03/consider-graphs-graphql-project/
Let’s explore a solution for complex, highly connected datasets or future‑proofing against complicated database migrations and refactoring. Adam Cowley examines the “graph” behind GraphQL and shows why Neo4j could be the best fit for your next project.

Why Turborepo is Migrating From Go to Rusthttps://vercel.com/blog/turborepo-migration-go-rust
Turborepo is a high‑performance build system for JavaScript and TypeScript codebases. Inspired by tools like Buck and Bazel, we’re reimagining build systems to be accessible to everyone. As usage has grown and product needs have shifted, we’re beginning an incremental migration from Go to Rust in version 1.7. This article explains our motivations and the problems Rust solves for the team. Related: Nannou: A Creative Coding Framework for Rust.

Clever Code Considered Harmfulhttps://www.joshwcomeau.com/career/clever-code-considered-harmful/
There’s something undeniably satisfying about devising clever solutions to hard problems—whether it’s using recursion instead of iteration or building elegant, cascading layers of abstraction that avoid duplication.

Fresh Finds

2023 Web Framework Performance ReportFeathers 5: The API and Real‑Time App FrameworkFull‑Stack TypeScript with tRPC and ReactInk 4.0: React for interactive command‑line apps

curl 25‑year online celebrationMicrosoft Designer – Stunning designs in a flash

Products & Others

The words you choose within an app are an essential part of its user experiencehttps://developer.apple.com/design/human-interface-guidelines/foundations/writing/
The wording inside your app is a crucial component of its UX. Whether you’re crafting onboarding flows, alerts, or accessibility descriptions, designing with language in mind helps users get the most out of your app or game.

Reflecting on Software Development: Knowledge Flowhttps://ourai.ws/posts/the-effect-of-knowledge-on-efficiency-part-3/
A modern enterprise includes not only human employees but also “digital employees” that view all digital tools holistically. The most advanced of these are intelligent assistants; the smart workbench fulfills this role. Intelligent assistants effectively handle repetitive tasks, freeing humans to focus on creative work—shifting from physically intensive to mentally intensive labor. They act like a “thoughtful” personal secretary, so they should be seen as partners, not servants. Because of their nature, a requirement or idea can be quickly validated the moment it’s entered; after collective discussion and refinement, the final conclusion is stored as knowledge in the assistant and directly reflected in the final digital product.

Why Are Young People Falling in Love with the “Eight‑Section Brocade”?https://mp.weixin.qq.com/s/qRI63VdmCf946dzT5rOdyAhttps://www.zhihu.com/question/587875712
You might think the Eight‑Section Brocade, Five‑Animal Qigong, Tai Chi… are just exercises for seniors in parks. Yet on video platforms popular with youth, a State Sports Administration version of the Eight‑Section Brocade has amassed over 10 million views.

Reading Mao Zedong Healed Mehttps://mp.weixin.qq.com/s/N2tJX-23aYzACdCbbhh3sQ
Chairman Mao led his team to create Mao Zedong Thought amid hardship and brilliance, leaving a timeless arsenal of methodology and spiritual inspiration that still resonates with countless young people today. Recently a reader mentioned a spiritual‑distress issue, with suggestions ranging from brain‑science control to “master”‑level mysticism. My advice: read Mao Zedong’s quotations. Also see: My evolving understanding of Chairman Mao.

Three Characters from the I Ching Capture a Whole Life!https://mp.weixin.qq.com/s/eL3jK3ZUE_XRCMb7cT4Wdw
Living with hope, enthusiasm, and vigor is “上” (up). Knowing when to advance or retreat, being willing to let go, is “止” (stop). Maintaining an unshakable moral baseline in any circumstance—living with a clear conscience and integrity—is “正” (correct).


Originally written by Ping Xia (平侠) and published in Chinese on Web技术周刊 (Web Tech Weekly). Translated and adapted for DriftSeas with permission.

Keep reading

More related articles from DriftSeas.