October 31, 2023  |
CodiumAI | Generating meaningful tests for busy devscodium.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.0yarnpkg.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-modulenodejs.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. |
|
|
Introducing dependency divergence GitHub actionsocket.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. |
|
|
|
â |
This email was sent to {{ email | default }}. You can unsubscribe from this list here or update your preferences. |
â |