Skip to content

Commit

Permalink
8.1.0 (#274)
Browse files Browse the repository at this point in the history
* Update CHANGELOG.md

* Switch serial port method

* Final
  • Loading branch information
marcus-j-davies authored May 2, 2023
1 parent e6d85e6 commit 1f40cfb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# node-red-contrib-zwave-js Change Log

- 8.0.1
- 8.1.0

**Changes**
- Update dependencies.
- Switch serial port list to use Driver provided methods, removing the dependency on the serilaport package


- 8.0.0
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "node-red-contrib-zwave-js",
"version": "8.0.1",
"version": "8.1.0",
"license": "MIT",
"description": "The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.",
"dependencies": {
"limiter": "^2.1.0",
"lodash": "^4.17.21",
"serialport": "^10.4.0",
"winston": "^3.8.2",
"winston-transport": "^4.5.0",
"zwave-js": "^10.16.0"
Expand Down
2 changes: 1 addition & 1 deletion validation_result.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"package":{"name":"node-red-contrib-zwave-js","version":"8.0.0"},"P01":{"test":true,"license":"MIT"},"P03":{"test":true},"P04":{"test":true},"P08":{"test":true},"P05":{"test":true},"P06":{"test":true,"versions":["3.0.2","2.2.3"]},"P07":{"test":false,"version":">=14.13.0"},"N01":{"test":true},"N02":{"test":true,"nodes":["zwave-js","zwave-device","event-filter","cmd-factory"]},"D01":{"test":true,"total":6},"D02":{"test":true},"D03":{"test":true}}
{"package":{"name":"node-red-contrib-zwave-js","version":"8.1.0"},"P01":{"test":true,"license":"MIT"},"P03":{"test":true},"P04":{"test":true},"P08":{"test":true},"P05":{"test":true},"P06":{"test":true,"versions":["3.0.2","2.2.3"]},"P07":{"test":false,"version":">=14.13.0"},"N01":{"test":true},"N02":{"test":true,"nodes":["zwave-js","zwave-device","event-filter","cmd-factory"]},"D01":{"test":true,"total":5},"D02":{"test":true},"D03":{"test":true}}
8 changes: 3 additions & 5 deletions zwave-js/ui/server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const SP = require('serialport').SerialPort;
const ModulePackage = require('../../package.json');
const { CommandClasses } = require('@zwave-js/core');
const ZWaveJS = require('zwave-js');
Expand Down Expand Up @@ -80,13 +79,12 @@ const SetupGlobals = function (RED) {
`/zwave-js/cfg-serialports`,
RED.auth.needsPermission('flows.read'),
(req, res) => {
SP.list()
ZWaveJS.Driver.enumerateSerialPorts()
.then((ports) => {
const a = ports.map((p) => p.path);
res.json(a);
res.json(ports);
})
.catch((err) => {
RED.log.error('Error listing serial ports', err);
RED.log.error(`Error listing serial ports: ${err}`);
res.json([]);
});
}
Expand Down

0 comments on commit 1f40cfb

Please sign in to comment.