CodiumAI; Yarn 4.0; Node v21.1.0; test assertion styles; dependency divergence; performance-compare

CodiumAI | Generating meaningful tests for busy devs

codium.ai Sponsor

Redefining software development: Meet CodiumAI. Bypass the tedium of unit testing. Our VS Code & JetBrains extensions instantly suggests & crafts tests for you. Benefit from superior code suggestions and comprehensive behavior coverage—all seamlessly within your IDE.

Release: Yarn 4.0

yarnpkg.com @arcanis@mastodon.online github.com/yarnpkg

Highlights:
  • By default, Yarn is now installed via the package.json property packageManager.
  • Hardened mode performs two additional validations (quoting the blog post):
    • It will validate the resolutions stored in the lockfile are consistent with what the ranges could resolve to.
    • It will validate that the package metadata stored in the lockfile are consistent the remote registry metadata.
  • Yarn’s rule-based constraints were previously written in Prolog and are now written in JavaScript.
  • More functionality is built-in that was previously implemented as plugins.
  • Improved CLI user interface
  • Faster performance
  • Content and look of the website were updated.

Node v21.1.0 (current): --experimental-detect-module

nodejs.org @targos@fosstodon.org @nodejs@social.lfx.dev

Highlight (quoting the blog post):

The new flag --experimental-detect-module can be used to automatically run ES modules when their syntax can be detected. For “ambiguous” files, which are .js or extensionless files with no package.json with a type field, Node.js will parse the file to detect ES module syntax; if found, it will run the file as an ES module, otherwise it will run the file as a CommonJS module. The same applies to string input via --eval or STDIN.

We hope to make detection enabled by default in a future version of Node.js. Detection increases startup time, so we encourage everyone — especially package authors — to add a type field to package.json, even for the default "type": "commonjs". The presence of a type field, or explicit extensions such as .mjs or .cjs, will opt out of detection.

Test assertion styles in JavaScript

blog.izs.me @isaacs@fosstodon.org

Question that triggered the blog post: “Reminding myself of tap’s api, can you sell me on why people like a test runner to have built in assertions?”

Introducing dependency divergence GitHub action

socket.dev github.com/bmeck @SocketSecurity@fosstodon.org

JavaScript’s various package managers all work differently. One area in which they differ is “dependency divergence”: “when 2 different dependencies specifying the same constraint differ in what they install”. “When installing dependencies, [package managers] may choose to update versions automatically, may keep a minimal matching version, may refer to a tooling specific lockfile, etc. the choice is theirs to make and all could be valid given a constraint that spans multiple versions.”

Running our new Dependency Divergence GitHub Action will expose when installations differ in your project. This can be used to assert that moving to a new shiny package manager or a battle tested package manager won't alter your dependencies in an unexpected way or introduce problematic packages.

performance-compare: benchmark that compares Farm, Webpack, Vite, Rspack and Turbopack

github.com @bluwy@m.webtoo.ls

This is what the results of the benchmark look like.

Bloomberg invests in Node.js. Shouldn’t you?

www.nearform.com @littledan@hachyderm.io

Topics:
  • Node.js work sponsored by Bloomberg: faster startup time via code caching and snapshotting, Async Context, deferred module evaluation, and more.
  • WinterCG (Web-interoperable runtimes community group), is a standards group where Node.js has an important voice
  • It’s important that the web community keeps contributing to Node.js (via money, work, etc.).

This email was sent to you. You can unsubscribe from this list here or update your preferences.

Older messages

Oxc tool chain; Node.js 21; Biome v1.3.0; Biome toolchain; ESLint v8.52.0; Compiling JS to Wasm

Tuesday, October 24, 2023

Oxc: suite of high-performance tools for JavaScript and TypeScript written in Rust github.com Included tools: AST and parser, linter, resolver, minifier, formatter, transpiler, ezno type checker Node.

Task group for source maps; Parcel v2.10.0; ESLint flat config

Tuesday, October 24, 2023

Ecma TC39 “ECMAScript” initiates a new task group to standardize source maps www.ecma-international.org github.com/jkup @littledan@hachyderm.io @TC39@fosstodon.org “The group's plan is to identify

You Might Also Like

Overcoming Perfectionism: How to Break Free from the Enemy of Progress

Wednesday, November 27, 2024

Discover how perfectionism hinders progress and learn practical strategies to overcome the fear of imperfection, boost productivity, and achieve your goals without getting stuck in the pursuit of

🖤 Laravel Black Friday Deals!

Wednesday, November 27, 2024

The biggest deals of the year Laravel Black Friday Deals View in browser Laravel News Editor Note: We are sending this outside the regular Sunday newsletter schedule because some of these specials end

BetterDev #271 - Memory: The Forgotten History and Why did Windows 95 setup use three operating systems?

Wednesday, November 27, 2024

Better Dev #271 Nov 26, 2024 Hi all, Welcome to thanksgiving issue of BetterDev. Hope everyone had a safe and warm thanksgiving. It's getting so cold these days. If you are in warzone such as

Mapped | Unemployment Rate By U.S. State in 2024 💼

Tuesday, November 26, 2024

As of October 2024, DC and Nevada tied for the highest unemployment rate in the US at 5.7%. Which states saw the lowest rates? View Online | Subscribe | Download Our App FINAL CHANCE - ENDS TONIGHT!

🔊 7 DIY Tips for Soundproofing a Room — Why I Switched to Xfce for Linux Mint

Tuesday, November 26, 2024

Also: Home Theater Sound Terms Explained, and More! How-To Geek Logo November 26, 2024 Did You Know The shiny layer of a CD doesn't contain the data; the plastic polycarbonate layer does. The shiny

JSK Daily for Nov 26, 2024

Tuesday, November 26, 2024

JSK Daily for Nov 26, 2024 View this email in your browser A community curated daily e-mail of JavaScript news JavaScript Certification Black Friday Offer – Up to 54% Off! Certificates.dev, the trusted

NumPy, Loop Targets, Vector Animation, and More

Tuesday, November 26, 2024

NumPy Practical Examples: Useful Techniques #657 – NOVEMBER 26, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo NumPy Practical Examples: Useful Techniques In this tutorial, you'll learn how to

Your Games Quarterly newsletter has arrived

Tuesday, November 26, 2024

What's new for games in Google Play and Android Email not displaying correctly? View it online November 2024 The First Developer Preview of Android 16 The First Developer Preview of Android 16

Daily Coding Problem: Problem #1620 [Hard]

Tuesday, November 26, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Sudoku is a puzzle where you're given a partially-filled 9 by 9 grid with

Final Hours: Help Save "The Art of Data" From Falling Short 🙏

Tuesday, November 26, 2024

Will Visual Capitalist end up revealing the secrets behind data storytelling? There are 12 hours left to change the fate of "The Art of Data". View Online | Subscribe | Download Our App Help