4

Deno wants us to ditch CommonJS

 1 year ago
source link: https://nodeweekly.com/issues/493
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Node Weekly Issue 493

Easy to unsubscribe at any time. Your e-mail address is safe — here's our privacy policy.

#​493 — July 4, 2023

Read on the Web

Together with 
Node.js Weekly
gui00vkk270c01m5xjwd.jpg

RegExp's v Flag with Set Notation and Properties of Strings — The capability of regexes in Node has been turned up a few notches, especially in the support for, and manipulation of, Unicode character sets (for example, you can now do things like 'match all Greek symbols except π'). The post is from 2022 but we’ve been sitting on it as it’s taken till now for it to be supported.

Davis, Scherer. and Bynens

Setting Expectations for the Node.js Test Runner — An update on Node’s new test runner (stable since Node 20.0) from a TSC and core team member. He explains why an official test runner was introduced and how it tries to strike a balance between being powerful and minimal.

Colin J. Ihrig

Enterprise UI Development: Testing & Code Quality — Managing or migrating large apps and codebases? This video course covers what you need to know to scale efficiently whilst maintaining code quality. Covers unit testing, CI pipelines, mocking, code coverage, and more.

Frontend Masters sponsor

CommonJS is Hurting JavaScript — An interesting take on Node’s default module system, covering its history, its shortcomings, and the trickiness of managing both CommonJS and ES modules at once. Unsurprisingly, Andy wants us aboard the ESM train ASAP and to leave CommonJS at the station.

Andy Jiang (Deno)

Tangerine: DNS over HTTPS for Node.js — A drop-in replacement for dns.promises.Resolver that uses Undici to perform DNS requests over HTTPS, complete with built-in retries, timeouts, caching, and the ability to abort requests.

Forward Email

ASIDES:

A Massive Bug at the Heart of the npm Ecosystem? — In short, package manifests and their actual contents aren't necessarily aligned and this can be manipulated by bad actors into even catching out some security tools.

Darcy Clarke

The Register covered the story too, if you prefer their punchy writeups.

🚨Node 16 Is Hitting EOL on Sep 11 🚨 Need to Upgrade Fast? — Let us help with your Node upgrade. Collaborate with the @JSUpgrade team and upgrade your dependencies now 🚀

UpgradeJS | JavaScript Services sponsor

IP to Timezone: The 30 Second Way (on Netlify) — If you’re using Netlify’s Edge Functions, there’s a straightforward way to grab the user’s location right at your fingertips.

Remy Sharp

How to Add Playwright Tests to Your Pull Request CI with GitHub Actions
Liran Tal

🛠 Code & Tools

ku8jzoe96n08pgofazhb.jpg

rrule.js: Work with Recurrence Rules for Calendar Dates — iCalendar is a data format for representing calendars and schedules, and RRULE is its way to define recurring events. rrule.js allows you to work with such rules, and has an amazing ‘playground’ style homepage to show it off.

Jakub Roztocil

Simple Statistics: Statistical Methods in Readable JS — A lot of the functions are quite simple, but the API is easily understood and covers areas like averages, deviations, correlation, and randomness.

Tom MacWright

🎁 A Bonus Item

tdsmv5ec8x1os4ksqugk.jpg

NocoDB: An Open Source Airtable-a-Like — Airtable is a popular (though commercial) spreadsheet/database-hybrid service, but this is a good looking and mature open source pastiche (‘clone’ just doesn’t sound appropriate with something so well made).

nocodb team


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK