Skip to content

Commit

Permalink
Enforce node 20+
Browse files Browse the repository at this point in the history
  • Loading branch information
bratanon committed Jun 16, 2024
1 parent f9faf9c commit 90fe68c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18.16.x'
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.14.0
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- .`nvmrc` file.
- Enforce node 20+.

### Changed
- Dependabot uses node version from `.nvmrc`.

### Fixed
- RSSI sensors `device_class` should be `signal_strength`.

Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "nodesos_mqtt",
"version": "2.0.1",
"description": "MQTT client to report state of LifeSOS security system and devices.",
"repository": {
"type": "git",
"url": "https://github.com/bratanon/nodesos_mqtt.git"
},
"license": "MIT",
"author": "Emil Stjerneman <[email protected]>",
"main": "./dist/index.js",
Expand Down Expand Up @@ -36,7 +40,7 @@
"figlet": "^1.7.0",
"js-yaml": "^4.1.0",
"mqtt": "^5.3.2",
"nodesos": "^1.0.2",
"nodesos": "file:.yalc/nodesos",
"sprintf-js": "^1.1.3"
},
"devDependencies": {
Expand All @@ -56,5 +60,8 @@
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"typescript": "^5.3.2"
},
"engines": {
"node": ">=20.0.0"
}
}

0 comments on commit 90fe68c

Please sign in to comment.