Supported Node-RED Version in package.json

Hallo,

I've uploaded here a Node node-red-contrib-sds011-dust-sensor (node) - Node-RED and scorecard complains about missing Node-RED version.

package.json is

{
  "name": "node-red-contrib-sds011-dust-sensor",
  "version": "1.0.2",
  "description": "Node-RED node to enable a communication with the SDS011 sensor which is connected via UART/serial connection.",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/JsBergbau/node-red-contrib-sds011-dust-sensor.git"
  },
  "dependencies": {
    "serialport": "^9.2.0"
  },
  "keywords": [
    "sds011",
    "pm",
    "pm2.5",
    "pm10",
    "sensor",
    "air",
    "smog",
    "particulates",
    "node-red",
    "airquality",
    "dust"
  ],
  "contributors": [
    "Ikhaya Inkomishi",
    "JsBergbau"
  ],
  "license": "GPL-3.0",
  "bugs": {
    "url": "https://github.com/JsBergbau/node-red-contrib-sds011-dust-sensor/issues"
  },
  "node-red": {
    "version": ">=2.0.0",
    "nodes": {
      "SDS011": "sds011-node/sds011-node.js"
    }
  },
   "engines": {
   "node": ">=12.0.0"
 },
  "homepage": "https://github.com/JsBergbau/node-red-contrib-sds011-dust-sensor#readme",
  "author": "Ikhaya Inkomishi"
}

According to Packaging : Node-RED "version" must be put into the node-red section.
Also there is a complain about missing engine section, but it is also present.

Can you help me to fix my package json so score card doesn't complain about these two?

@JsBergbau Could you try your node against node-red-dev - npm and see what score you get?

I don't get a score like on the website, but here is the output of node-red-dev validate

 node-red-dev validate
    ---Validating Package---
   node-red-contrib-sds011-dust-sensor@1.0.2
✅ Package is GPL-3.0 licensed
✅ Repository/Bugs Link Supplied
 ›   Warning: P04 New Packages should use a scoped name
✅ Package uses a valid name
✅ No similar named packages found
✅ Node-RED Keyword Found
✅ Compatible with Node-RED v2.2.2
 ›   Warning: P06 NOT Compatible with Node-RED v1.3.7
✅ Compatible NodeJS Version found 12.0.0
    ---Validating Nodes---
✅ Nodes all have unique names
✅ Examples found for all nodes
    ---Validating Dependencies---
✅ Package has 1 dependencies
✅ No incompatible packages found in dependency tree
 ›   Warning: D03 serialport is not at latest version, package.json specifies: ^9.2.0, latest is: 10.3.0

@JsBergbau - The scorecard is still being developed, and it's clear it does not always deliver accurate/consistent results, there are a number of anomalies.
I realise that its disappointing when points are dropped, especially when other nodes gain points when they don't even meet the threshold! but I know a number of options are being considered, and hopefully this will be rectified soon.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.