InfoQ Homepage JavaScript Content on InfoQ
-
The Road to Removing JQuery from Gov.uk
When the team that maintains the gov.uk website faced the issue of updating their old and outdated jQuery dependency, they decided instead to get rid of it altogether. Among other benefits, they achieved a not negligible performance improvement and, in the process, created a migration guide for other developers to tap into.
-
The Tao of Node: an Attempt to Formalise JS Development Patterns
Alex Kondov, principal engineer at News UK, reached the conclusion that Node’s focus on freedom and flexibility led to various approaches, many borrowed from other languages. As a trial to provide a more organic approach, he wrote the Tao Of Node as a set of development principles for an improved development experience. InfoQ reached out to him to find out more about these principles.
-
Slate 0.82 and Plate 15 Releases Improve Rich-Text Editing Experience
Slate 0.82.0 made significant updates for its support of editing on Android devices and introduces `useSlateSelection` and additionally adds a React hook that triggers whenever the selection changes. Plate 15 improves its Link toolbar, improves paste handling of hyperlinks into an editor page, and provides greater control over rendering within plugins.
-
TypeScript 4.7 and 4.8 Beta Releases Add ESM for Node.js and Better Type Inference
TypeScript 4.7 and 4.8 introduce ES Module (ESM) support for Node.js, improved type inference and control flow analysis, and significant performance improvements.
-
Partytown, Offloading 3RD Party Scripts to Web Workers
Partytown is a small JavaScript library that speeds up web application load times by helping developers to move third party scripts into web workers and off the main thread.
-
AWS Lambda Powertools for TypeScript Now Generally Available
Amazon recently announced the general availability (GA) of AWS Lambda Powertools TypeScript. The set of utilities for Node.js Lambda functions helps developers follow best practices for tracing, structured logging, and custom metrics.
-
Trivago’s Journey from PHP+Melody to Next.js and Typescript
Trivago’s platform was built using PHP and their Melody framework. A small number of engineers at Trivago maintained Melody, which was a continuity risk. Melody’s documentation and examples could not be as rich as desired due to a lack of capacity, making engineer onboarding and support much more difficult. Trivago then decided to rewrite its platform on Typescript using Next.js.
-
Angular 14 - Typed Forms and Standalone Components
Angular 14 was released earlier this month with the most significant update since Ivy. It includes two long-awaited features, Typed Reactive Forms and Standalone Components, as well as several minor improvements.
-
React 18, Introducing the Concurrent Renderer
React 18 is out and includes the long-awaited concurrent renderer, which enables React to offer several improvements, including the ability to interrupt the rendering process.
-
Minze, a Minimalistic JS Library for Creating Web Components
Minze is a modern JavaScript library that abstracts many of the difficulties of writing Web Components with a minimal overhead (2kb minified and compressed) and good developer ergonomics.
-
Vaadin Introduces Hilla to Unify Frontend/Backend Web Development
Vaadin has introduced Hilla, a new framework for Java developers that combines the backend with Spring Boot and the frontend as a mix of TypeScript and Lit. Hilla offers many capabilities to simplify business application development, such as providing a unified project setup for Java and TypeScript that remains in sync.
-
Shepherd JavaScript Library: Guided User Tours of Your Application
Shepherd is a JavaScript library that provides a simple interface for creating guided user journeys in web applications. It's framework-agnostic, easy to use, and works great on desktop and mobile applications alike.
-
How GitHub Uses Machine Learning to Extend Vulnerability Code Scanning
Applying machine learning techniques to its rule-based security code scanning capabilities, GitHub hopes to be able to extend them to less common vulnerability patterns by automatically inferring new rules from the existing ones.
-
TypeScript 4.6 Beta Improves Type Inference and Error Checking
The TypeScript team released version 4.6 beta, which introduces improvements to control flow analysis, class constructor definitions, error checks in JavaScript files, and others. TypeScript can now narrow down the signature for a function parameter whose type is a discriminated union.
-
Etsy Moves from React to Preact to Lower Migration Risks
Ben Sangster, software engineer at Etsy, recently detailed the reasoning behind Etsy’s migration from React v15.6 to Preact 10. Going beyond the difference in library size, Sangster argued that adopting Preact lowered the risk associated to migrating Etsy’s large codebase. As Preact was already used by Etsy’s front-end team, migrating to Preact would avoid maintaining a fragmented stack.