@homebridge/hap-client 3.3.1-beta.4 → 3.3.1-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,14 +2,15 @@
2
2
 
3
3
  All notable changes to `@homebridge/hap-client` will be documented in this file. This project tries to adhere to [Semantic Versioning](http://semver.org/).
4
4
 
5
- ## v3.4.0 (2026-02-24)
5
+ ## v3.4.0 (2026-03-04)
6
6
 
7
7
  ### Changed
8
8
 
9
- - feat: add `nameBasedUniqueId` for stable device identification across re-pairings
10
9
  - feat: added more granular control for discovery (#32) (@kovapatrik)
11
10
  - docs: added new discovery-stopped event to README (#33) (@kovapatrik)
12
11
  - fix: restore map in monitor to fix service-update events
12
+ - feat: add `nameBasedUniqueId` for stable device identification (#35) (@copilot)
13
+ - update gen script to adhere to new linting rules
13
14
  - chore: dependency updates
14
15
 
15
16
  ### Homebridge Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebridge/hap-client",
3
- "version": "3.3.1-beta.4",
3
+ "version": "3.3.1-beta.5",
4
4
  "description": "A client for HAP-NodeJS.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,14 +15,14 @@ for (const [name, value] of Object.entries(Service)) {
15
15
  if (value.UUID) {
16
16
  if (!uuidMap.has(value.UUID)) {
17
17
  // If the UUID does not exist, add a new entry
18
- Services.push(` '${value.UUID}': '${name}',`);
18
+ Services.push(` '${value.UUID}': '${name}',`);
19
19
  uuidMap.set(value.UUID, Services.length - 1);
20
20
  }
21
- Services.push(` '${name}': '${value.UUID}',`);
21
+ Services.push(` '${name}': '${value.UUID}',`);
22
22
  }
23
23
  }
24
24
 
25
- Services.push(`};\n\n`);
25
+ Services.push(`}\n\n`);
26
26
  Services = Services.join('\n');
27
27
 
28
28
  /** Generate Characteristic Types */
@@ -33,12 +33,12 @@ let Characteristics = [
33
33
 
34
34
  for (const [name, value] of Object.entries(Characteristic)) {
35
35
  if (value.UUID) {
36
- Characteristics.push(` '${value.UUID}': '${name}',`);
37
- Characteristics.push(` '${name}': '${value.UUID}',`);
36
+ Characteristics.push(` '${value.UUID}': '${name}',`);
37
+ Characteristics.push(` '${name}': '${value.UUID}',`);
38
38
  }
39
39
  }
40
40
 
41
- Characteristics.push(`};\n\n`);
41
+ Characteristics.push(`}\n\n`);
42
42
  Characteristics = Characteristics.join('\n');
43
43
 
44
44
  /** Generate Category Types */
@@ -50,11 +50,11 @@ let Category = [
50
50
  // @ts-ignore
51
51
  for (const [name, value] of Object.entries(Categories)) {
52
52
  if (typeof value === 'number') {
53
- Category.push(` '${name}': ${value},`);
53
+ Category.push(` ${name}: ${value},`);
54
54
  }
55
55
  }
56
56
 
57
- Category.push(`};\n\n`);
57
+ Category.push(`}\n\n`);
58
58
  Category = Category.join('\n');
59
59
 
60
60
  let Enums = [
@@ -81,7 +81,7 @@ for (const [name, value] of Object.entries(Characteristic)) {
81
81
  }
82
82
  }
83
83
  }
84
- Enums.push(`};\n`);
84
+ Enums.push(`}\n`);
85
85
  Enums = Enums.join('\n');
86
86
 
87
87
  const out = `/* This file is automatically generated */\n\n` + Services + Characteristics + Category + Enums