Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* text=auto
* text=auto eol=lf
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#
name: "CodeQL"

env:
HUSKY: 0

on:
push:
branches: [ master, dev ]
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Dev publish

env:
HUSKY: 0

on:
push:
branches:
Expand All @@ -16,7 +19,7 @@ jobs:
- run: |
npm ci
npm run build
npm run test
npm run test:ci

publish-npm:
needs: build
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Release publish

env:
HUSKY: 0

on:
push:
branches:
Expand All @@ -16,7 +19,7 @@ jobs:
- run: |
npm ci
npm run build
npm run test
npm run test:ci

publish-npm:
needs: build
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: Tests

on: [ pull_request ]
env:
HUSKY: 0

on:
push:
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node_version: [ 18, 20, 22 ]
node-version: [ 20, 22, 24 ]
os: [ ubuntu-latest, windows-latest, macOS-latest ]
steps:
- uses: actions/checkout@v4
Expand All @@ -17,7 +23,8 @@ jobs:
- name: build and test
run: |
npm ci
npm run lint
npm run build
npm run test
npm run test:ci
env:
CI: true
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ typings/
# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

Expand Down
10 changes: 1 addition & 9 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
#!/usr/bin/env sh

# .husky/pre-commit
# ...
[ -n "$CI" ] && exit 0

. "$(dirname -- "$0")/_/husky.sh"

npm run prettier && npm test && npm run eslint
npm run format && npm test
8 changes: 0 additions & 8 deletions .prettierrc.js

This file was deleted.

28 changes: 23 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#### ⚠️ CAUTION ⚠️

##### Before upgrading make sure that you are using the latest version of [Node-RED](https://nodered.org/docs/getting-started/local) and latest LTS version of [Node.js](https://nodejs.org/en/download/)
##### Before upgrading make sure that you are using the latest version of [Node-RED](https://nodered.org/docs/getting-started/local) and the latest LTS version of [Node.js](https://nodejs.org/en/download/)

# Changelog

Expand All @@ -9,11 +9,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.0] - 2025-11-22

Lost backward compatibility for Camera Service and MDNS Custom Configuration.

### Changed

- Updated hap-nodejs [0.12.3 to 2.0.2](https://github.com/homebridge/HAP-NodeJS/blob/latest/CHANGELOG.md) (features
and bug fixes)
- Dependencies upgrade
- Node `18` no longer supported, use Node
24 [#578](https://github.com/NRCHKB/node-red-contrib-homekit-bridged/issues/578)! Or at least 20.
- Due to a major upgrade of hap-nodejs, some breaking changes might be present, including Camera Service and MDNS Custom
Configuration.

## [1.7.3] - 2025-01-16

### Changed

- Updated hap-nodejs [0.12.3-beta.18 to 0.12.3](https://github.com/homebridge/HAP-NodeJS/blob/latest/CHANGELOG.md) (features
- Updated hap-nodejs [0.12.3-beta.18 to 0.12.3](https://github.com/homebridge/HAP-NodeJS/blob/latest/CHANGELOG.md) (
features
and bug fixes)
- Dependencies upgrade

Expand All @@ -31,7 +46,8 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### Fixed

- Fix bad listeners detachment for characteristics [#563](https://github.com/NRCHKB/node-red-contrib-homekit-bridged/issues/563)
- Fix bad listeners detachment for
characteristics [#563](https://github.com/NRCHKB/node-red-contrib-homekit-bridged/issues/563)

## [1.7.0] - 2024-09-19

Expand All @@ -43,11 +59,13 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Added

- Adaptive Lighting support [#335](https://github.com/NRCHKB/node-red-contrib-homekit-bridged/issues/335)
- By default, registered Eve.app Characteristics for power management - for existing setup, requires old custom characteristics file to be removed
- By default, registered Eve.app Characteristics for power management - for existing setup, requires old custom
characteristics file to be removed

### Changed

- Updated hap-nodejs [0.11.1 to 0.12.3-beta.18](https://github.com/homebridge/HAP-NodeJS/blob/latest/CHANGELOG.md) (features
- Updated hap-nodejs [0.11.1 to 0.12.3-beta.18](https://github.com/homebridge/HAP-NodeJS/blob/latest/CHANGELOG.md) (
features
and bug fixes)
- Dependencies upgrade
- Node `10`, `12` and `16` no longer supported, use Node 20! Or at least 18
Expand Down
51 changes: 51 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": [
"src/**",
"examples/**",
"docs/**",
"*.md",
"*.json",
"*.yml",
".husky/**"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "off"
},
"complexity": {
"useArrowFunction": "warn"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded",
"trailingCommas": "none"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
Loading
Loading