#352 — August 20, 2020

Read on the Web

Node Weekly

npm v7 Series Now in Beta — Isaac is back bearing good news: there’s a new major beta version of npm. Run npm i -g npm@next-7 to try it now, but he notes it’s “a big one” and there are rough edges and breaking changes ahead. Trouble-free improvements are promised for the majority of users, but this post digs into the changes if you want to take care. Progress is fast with 5 beta releases in the past week alone!

Isaac Z. Schlueter

ts-migrate: A Tool for Migrating to TypeScript at Scale — Learn about how Airbnb used codemods to accelerate migration from JavaScript to TypeScript and how their new ts-migrate tooling (GitHub repo) can help with the process.

Sergii Rudenko

Scout APM Now Available for Node.js — Scout gets developers back to coding faster. An intuitive UI streamlines real-time performance insight so you can quickly pinpoint and resolve issues before the customer ever sees them. Get started for free.

Scout APM sponsor

Node.js Project Prodded to Patch Chromium XHR Bug After Developer Refuses to Let Flaw Stand — Dig into this one and you might well fall down the rabbit hole, but essentially the way Chrome uses HTTP/2 can throw up a significant issue with Node-based HTTP/2 servers and numerous people, including us and Thomas Claburn of The Register, have been getting emails about it to highlight the problem. A fix now appears to be in the pipeline.

Thomas Claburn (The Register)

npm 6.14.8 Released“A new v6 patch release is out with a few bug fixes from the community and dependency updates.”

The npm Blog

💻 Jobs

Node.js Developer at X-Team (Remote) — Join the most energizing community for developers and work on projects for Riot Games, FOX, Sony, Coinbase, and more.

X-Team

Get Tech Interviews This Week — Create a profile on Vettery to connect with hiring managers at startups and Fortune 500 companies. It's free for job-seekers.

Vettery

🧑‍💻 Interested in running a job listing in this newsletter? There's more info here.

📗 Tutorials

Some Security Best Practices for Node — High level coverage of a variety of potential vulnerabilities or remedies in Node-powered web applications like injection attacks, HSTS, XML entity attacks, and XSS.

Diogo Souza

▶  Learn How to Create a Stock Trading Bot — A 25 minute screencast covering the basics of automating financial trading from Node. Note/warning: Always take care with anything involving real money as you could lose it(!)

Web Dev Profesh

AppSignal Automatically Instruments Apollo for Node.js Applications — With AppSignal’s automatic instrumentation, you get to debug GraphQL queries that seem to take a long time with ease.

AppSignal sponsor

How To Scrape a Website Using Node & Puppeteer — A through walkthrough of building a web scraping app using both Node and Puppeteer. As always, make sure you do this in an ethical and good-mannered way.

Gbadebo Bello

Migrating from Node and Express to the Jamstack: A Series — Some interesting insights and experiences on taking a server-rendered Node.js app and converting it to Jamstack with serverless functions and third-party services. Part 2, Part 3.

Raymond Camden

▶  An Overview of Higher Order Functions in JavaScript — A 10 minute screencast covering one aspect of functional programming in JavaScript.

Brodey Newman

Writing a Game Boy Assembler in Node.js — Runs through the bare basics of writing an assembler/disassembler for Nintendo’s Game Boy architecture.

Alan Vivona

🛠 Tools, Resources and Libraries

Mock Service Worker: API Mocking Library for Browser and Node — Interestingly uses the Service Worker API to intercept requests which you can then mock. Capture outgoing requests using an Express-like routing syntax, complete with parameters, wildcards, and regexes. GitHub repo.

Artem Zakharchenko

BootBot: A Facebook Messenger Bot Framework — Want to create bots that work on Facebook Messenger? BootBot gives you a modular foundation, the ability to subscribe to message events, helpers to send all supported message types, etc. See some sample code to see how easy it is.

Maxi Ferreira

watchr: Better File System Watching for Node — If you want to watch/wait for changes on the file system (including in nested directories) and get accurate detailed events for those changes, this is worth a try.

Bevry

Optimize Node.js App Performance with End-To-End Tracing with Datadog APM

Datadog sponsor

Prisma 2.5: A Modern Database Toolkit for Node and TypeScript — Auto-generated and type-safe query builder for Node and TypeScript, as well as experimental tools for data modelling and working with data via a GUI.

Prisma

Node.js Client for Google Cloud Pub/SubCloud Pub/Sub is Google’s managed real-time messaging service for sending and receiving messages between independent applications.

Google

An Elixir API for Calling Node.js Functions — I don’t do any Elixir (a Ruby inspired language on the Elixir VM) but if you do, this may be of use for working alongside Node.

Revelry

Alibaba Midway Serverless v1.0: Node.js Serverless Tooling — A serverless framework used to build serverless functions with Node, currently for Alibaba Cloud and Tencent Cloud only. GitHub repo.

Midwayjs