---
title: "TypeScript 4.7 supports ES modules in Node.js"
publication: "Node Weekly"
issue: 439
published_at: "2022-05-26"
canonical_url: "https://nodeweekly.com/issues/439"
---

Plus GitHub Actions gets Node 16 support, another option for serverless Node functions, and a way to make your console.log a bit more colorful. |        

🇺🇦 #​439 — May 26, 2022 

[Read on the Web](https://nodeweekly.com/issues/439)  

![Node.js Weekly](https://res.cloudinary.com/cpress/image/upload/v1653576619/lgfqinzbdqttwmhvljxb.png) 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/q0hgdaydzeshqzlyhg6f.jpg)](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/)  

[TypeScript 4.7 Released](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/) — We wouldn’t usually make TypeScript a top feature in Node Weekly although many of you _are_ using it, but this release has a huge feature in the shape of ES module support for Node – a feature that has been infamously difficult to implement, and whose reliance on file extensions [continues to provoke debate](https://github.com/microsoft/TypeScript/issues/49083). 

Daniel Rosenwasser   

[Payload, a Node-Based Headless CMS, Now Fully Open Source](https://payloadcms.com/blog/open-source) — [Payload](https://payloadcms.com/docs/getting-started/what-is-payload), is a full-featured [headless](https://payloadcms.com/docs/getting-started/what-is-payload#what-does-headless-mean) CMS (built on top of Express.js, MongoDB, and React) and has just moved to the MIT license which opens up a lot more use cases. [GitHub repo](https://github.com/payloadcms/payload). 

James Mikrut (Payload CMS Blog)    [![\](https://copm.s3.amazonaws.com/7de9b0f5.png)](https://dashboard.redisgreen.net/nodeweekly) 

[RedisGreen: Secure, Scalable, Full-Featured Redis 7 Hosting](https://dashboard.redisgreen.net/nodeweekly) — The latest Redis features, instrumented and scaled with the tools teams need as they grow. 

RedisGreen sponsor    

[DigitalOcean Releases New _Functions_ Service](https://www.digitalocean.com/blog/introducing-digitalocean-functions-serverless-computing) — AWS Lambda launched in November 2014 essentially popularizing a paradigm you now see everywhere: functions as a service. DigitalOcean now joins the party with _Functions_ and, as with Lambda, Node.js gets first class support. 

Anshu Agarwal   

**Quick bytes:** 

- You can now [run GitHub Actions in a Node 16 runtime](https://github.blog/changelog/2022-05-20-actions-can-now-run-in-a-node-js-16-runtime/).
- AWS has announced [the end of support for Node.js 12.x](https://aws.amazon.com/blogs/developer/announcing-the-end-of-support-for-node-js-12-x-in-the-aws-sdk-for-javascript-v3/) in the AWS SDK for JavaScript (v3). As Node.js 12 reached its general 'end of life' last month, this is no big surprise, and you should be upgrading ASAP.
- For that matter, [Node.js 17 goes end of life next week](https://twitter.com/trott/status/1529593378190393344) as well. Node 16 or 18 are your places to head to next.
- [npm 8.11.0](https://github.com/npm/cli/releases/tag/v8.11.0) has been released.
- Google Cloud is certainly excited about its updated [Cloud Logging Library for Node.js](https://cloud.google.com/blog/products/devops-sre/get-more-insights-with-the-new-version-of-the-nodejs-library).   

[Avoiding Puppeteer Antipatterns](https://serpapi.com/blog/puppeteer-antipatterns/) — [Puppeteer](https://github.com/puppeteer/puppeteer) remains a fantastic way to control a headless browser from code but I, personally, find it hard to develop best practices around using it. Greg, thankfully, has a bunch of things here _not_ to do in future. 

Greg Gorlen   

[See How Many Hours Engineers Really Spend Coding in the State of Engineering Time Report](https://retool.com/reports/state-of-engineering-time-2022/) 

Retool: State of Engineering Time Report sponsor   

[Making a Podcast Transcription Server in Node](https://medium.com/picovoice/making-a-podcast-transcription-server-with-express-js-e73861f10660) — The author likes listening to podcasts but wants to be able to search back for things that were _said_ in them. He brought it together using the [Leopard speech-to-text engine](https://github.com/Picovoice/leopard) and some Node.js glue code – [source here](https://github.com/Picovoice/leopard/tree/master/demo/expressjs). 

Ian Lavery   

🛠 Code & Tools 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/j8drnuetnvclrjkhhm6c.jpg)](https://github.com/Olian04/better-logging)  

[better-logging: A Drop-In Replacement for Node's Default Logging Methods](https://github.com/Olian04/better-logging) — Extends `console.debug`, `console.log` and friends with the time and a colorful tag. Simple and sweet. 

Oliver Anteros   

[Keyv: Simple Key-Value Storage with Support for Multiple Backends](https://github.com/jaredwray/keyv) — A Promise-based abstraction you can use with a memory based store (by default) or, if you need persistence, Redis, SQLite, Postgres, MySQL, etcd and Mongo. 

Jared Wray   

[CSV Parse: Convert CSV Formatted Text into Arrays of Objects](https://csv.js.org/parse/) — Extends the native Node.js transform stream API so you can get up and running quickly – see [some example code.](https://csv.js.org/project/examples/) Part of [a suite of CSV libraries](https://csv.js.org/) that can also generate and transform CSV. 

Adaltas   

[Debug Node.js Apps Without Stopping Them in Prod. Try Rookout Free Today](https://www.rookout.com/lp-nodejs/?utm_campaign=node&utm_source=nl&utm_medium=cooper) 

Rookout sponsor   

[Electron 19.0.0 Released](https://www.electronjs.org/blog/electron-19-0) — The popular cross platform app building framework upgrades to Chromium 102, V8 10.2, and Node 16.14.2. 

Electron Team   

[Got 12.1: A Powerful HTTP Request Library for Node](https://github.com/sindresorhus/got) — A popular HTTP request library. [v12.1](https://github.com/sindresorhus/got/releases/tag/v12.1.0) adds a way to _manually_ check that a response was successful that’s useful if you otherwise set Got to not throw errors as it usually does. 

Sindre Sorhus   

[Fontkit: An Advanced Font Engine for Node and Browser](https://github.com/foliojs/fontkit) — Works with TrueType, OpenType, WOFF, and other formats - supports mapping characters to glyphs, substitutions, reading metrics, laying out glyphs, font subsetting, and more. Used as part of the [PDFKit](https://github.com/foliojs/pdfkit) PDF generation library. 

foliojs   

[postgres-pool 6.0: Connection Pool Implementation for `pg`](https://github.com/postgres-pool/postgres-pool) 
James Geurts   

[env-schema 5.0: Validate Environment Variables with Ajv and Dotenv](https://github.com/fastify/env-schema) 
Fastify   

[mock-os: Testing Module for the `os` Built-in Module](https://github.com/lfortin/node-mock-os) 
Laurent Fortin     

💻 Jobs  

[Software Engineer at Blueground (Remote)](https://www.theblueground.com/careers?department=Engineering) — Help us build the world’s leading next-gen platform for home rentals and shape the future of living. 
Blueground   

[Web Academic Lead - US (Remote)](https://www.comeet.com/jobs/masterschool/57.005/web-academic-lead---usa/D9.D21) — Mentor aspiring developers seeking to build inspiring careers. Create and lead the online sessions, being the role model for our students. 
Masterschool   

[Find Tech Jobs with Hired](https://hired.com/join/?utm_source=newsletter&utm_medium=sponsor&utm_campaign=%28b2c%29%28l-all%29%28r-all%29%28cooper-nodeweekly%29&utm_content=find-your-next-job) — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It's free for job-seekers. 
Hired      

**Got a new email?** You can [change your address here](https://nodeweekly.com/edit_subscription/*|UID|*). 

--- 

**Bored of us?** [Click here to stop getting Node Weekly](https://nodeweekly.com/leave/*|UID|*). 

--- 

**Got a link for us?** Reply and tell us. We can't include everything but we'll look at anything you send. _Thanks!_ 

--- 

**Want to sponsor?** Email `[kristina@cooperpress.com](mailto:kristina@cooperpress.com)` for details. 

--- 

Published by Cooper Press Ltd.
Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom 

[Stop getting this newsletter.](https://nodeweekly.com/leave/*|UID|*)
