InfoQ Homepage TypeScript Content on InfoQ
-
Grain: Your WebAssembly-First Programming Language - WebAssembly Summit 2021
Oscar Spencer recently presented Grain, a new strongly-typed, high-level language that compiles to WebAssembly. Grain includes functional programming features (e.g., type inference, pattern matching, closures) while allowing mutable variables. Grain also has a standard library with composite data structures (Option, Stack, Result) and system calls (e.g., I/O, process handling).
-
Sentry Migrates Its Frontend to Typescript - Lessons Learned
Mark Story and Priscila Oliveira recently shared lessons learned when converting Sentry’s frontend codebase (one-year effort, 100,000 lines of code) to TypeScript. The pair described a gradual conversion process in which TypeScript progressively replaced JavaScript, types were continuously refined as new TypeScript language features were released, and complex types were built incrementally.
-
.NET News Roundup - Week of March 29th, 2021
The last week of March was pretty intense in the .NET community, with the release of Project Reunion 0.5, Dapr 1.1, and more. InfoQ examined these and a number of smaller stories in the .NET ecosystem from the week of March 29th, 2021.
-
Deno 1.8 Ships with WebGPU Support, Dynamic Permissions, and More
Deno 1.8 recently shipped with plenty of new features, including WebGPU support, internationalization APIs, stabilized import maps, support for fetching private modules, and more. Deno permissions, links, and symlinks are now stable. Deno 1.8 additionally ships with TypeScript 4.2.
-
Typescript 4.2 Released, Improves Types and Developer Experience
The TypeScript team announced the release of TypeScript 4.2, which features more flexible type annotations, stricter checks, extra configuration options, and a few breaking changes. Tuple types now allow rest arguments in any position (instead of only in last position). Type aliases are no longer expanded in type error messages, providing a better developer experience.
-
Deno Now Compiles to Self-Contained, Standalone Binaries
Deno 1.6 introduced the compilation of Deno projects into standalone executables, whose size Deno 1.7 further reduced (up to 60%). Deno now has a dedicated language server that seeks to improve the experience of Deno developers in code editors. Deno also added support for data URLs, enabling the execution of computer-generated code.
-
New Deno Module Builds and Compiles Vue Applications
The vno Deno module, which self-describes as the first build tool for compiling and bundling Vue single-file components in a Deno runtime environment, recently released its first stable version. vno v1.0 features a parser, compiler, bundler, and an adapter. A server-side renderer is planned.
-
TypeScript 4.1 Adds Template Literal Types
The TypeScript team announced the release of TypeScript 4.1, which includes powerful template literal types, key remapping of mapped types, and recursive conditional types.
-
Server-Rendered Web Applications in Deno with Aleph.js
Aleph.js, a React framework for server-rendered applications in Deno, is now available through an alpha release. Aleph makes many of Next.js’ core features available in Deno environments: zero-config server-side rendering, static site generation, file-system and API routing, and more. Aleph uses the standard EcmaScript Modules (ESM) import syntax and does not need a bundler in development.
-
Deno 1.5 Sees 3x Bundling Performance Improvement Due to Rust-Based JavaScript/TypeScript Compiler
The team behind the Deno runtime for JavaScript and TypeScript recently released Deno 1.5. Deno 1.5 improved bundling time by using Rust-based JavaScript/TypeScript compiler swc. Deno further reduces bundle size with tree-shaking and implements the alert, confirm, and prompt web platform APIs. The latter may allow developers to write simple interactive applications in the terminal.
-
Bloomberg Engineering Share Experiences of Adopting TypeScript across a Large Codebase
Rob Palmer, JavaScript infrastructure and tooling lead at Bloomberg, recently shared a few learning points and insights from the adoption of TypeScript at scale at Bloomberg. While some learning points are specific to Bloomberg’s custom runtime, others may be valuable across any large codebase switching to TypeScript.
-
Cypress 5.x Adds Test Retries and Shadow DOM Support
Cypress, a browser-based test runner and dashboard, recently introduced native support for test retries in the Cypress 5.0 release, helping developers avoid intermittent test failures. Other recent Cypress advances include networking stubbing and shadow DOM support.
-
NativeScript 7 Moves from ES5 to ES2017+
NativeScript 7 aligns with modern JavaScript standards by targeting es2017+. Additionally, it streamlines app configuration by consolidating it in a single file and replaces JavaScriptCore with V8 for iOS apps.
-
Airbnb Releases Tool to Convert Large Codebases to Typescript
The Airbnb engineering team recently released ts-migrate, a tool to help migrate JavaScript code to TypeScript. While the resulting TypeScript code will compile, manual revision of a few annotations (e.g. any) will still be necessary. An automated process may however be more productive than starting from scratch. The Airbnb team reports converting projects with over 50,000 lines of code in a day.
-
TypeScript 4.0 Adds Long-Awaited Variadic Tuple Types
The TypeScript team announced the release of TypeScript 4.0, which includes long-awaited variadic tuple type support and other improvements without introducing any major breaking changes.