DEV Community

Pelle Wessman
Pelle Wessman

Posted on

2 1

installed-check 5.0.0: Robustness galore

A few seconds ago I shipped version 5.0.0 of installed-check CLI and its companion installed-check-core module, delivering a more robust, more well tested and all-round better tool.

So what does installed-check do?

It check's that your project's engine.node is equal to, or a subset of, of that of your dependencies.

What's new?

Replaced old @voxpelli/semver-set, a fork of another project, with a brand new rewritten from scratch 3.x version of it.

The new @voxpelli/semver-set is well tested and hardened – all to ensure better intersection calculations of semantic versioning ranges – essential for calculating engine.node compatibility. Eg. ^10.17.0 || >=12.0.0 and >=8.0.0 now properly calculates.

The new @voxpelli/semver-set also fixes an issue with the license of the former module. Since its a full rewrite I could pick a license myself, so it's now under MIT.

Other news for the installed-check modules includes a swap from the non-standard VError to my pony-cause pony-fill for the now standardised Error Causes

installed-check in general now also has much more tests and have fixes for issues those tests uncovered, making for a much more robust experience going forward.

How do I get started?

Add it to your project:

npm install -d installed-check@latest
Enter fullscreen mode Exit fullscreen mode

Then add it (early) to the tests in your package.json:

"scripts": {
  "test": "installed-check"
}
Enter fullscreen mode Exit fullscreen mode

A more full-featured example can be found in eg. my list-installed project.

Happy compatibility checking! 🥳

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay