@homebridge-plugins/homebridge-august 3.1.2 → 3.1.3
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/.github/scripts/normalize-changelog-header.cjs +86 -0
- package/CHANGELOG.md +7 -2
- package/dist/package.json +9 -9
- package/docs/variables/default.html +1 -1
- package/package.json +9 -9
- package/test/platform.matter.test.ts +668 -0
- package/test/platform.test.ts +642 -0
- package/test/settings.test.ts +148 -0
- package/vitest.config.ts +2 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const child_process = require('node:child_process')
|
|
4
|
+
const fs = require('node:fs')
|
|
5
|
+
|
|
6
|
+
const changelogPath = 'CHANGELOG.md'
|
|
7
|
+
|
|
8
|
+
function normalizeChangelogHeader(content) {
|
|
9
|
+
const headerStart = content.indexOf('# Changelog\n')
|
|
10
|
+
if (headerStart <= 0) {
|
|
11
|
+
return content
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const nextSectionStart = content.indexOf('\n## ', headerStart + 1)
|
|
15
|
+
const headerBlock = (nextSectionStart === -1 ? content.slice(headerStart) : content.slice(headerStart, nextSectionStart)).trim()
|
|
16
|
+
const prependedEntries = content.slice(0, headerStart).trim()
|
|
17
|
+
const remainingEntries = (nextSectionStart === -1 ? '' : content.slice(nextSectionStart)).trim()
|
|
18
|
+
|
|
19
|
+
return [headerBlock, prependedEntries, remainingEntries].filter(Boolean).join('\n\n') + '\n'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function getRepoUrl() {
|
|
23
|
+
try {
|
|
24
|
+
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'))
|
|
25
|
+
let url = (typeof pkg.repository === 'string' ? pkg.repository : pkg.repository?.url) || ''
|
|
26
|
+
url = url.replace(/^git\+/, '').replace(/\.git$/, '')
|
|
27
|
+
if (url.startsWith('https://')) return url
|
|
28
|
+
} catch {}
|
|
29
|
+
try {
|
|
30
|
+
const remote = child_process.execSync('git remote get-url origin').toString().trim()
|
|
31
|
+
return remote.replace(/^git\+/, '').replace(/\.git$/, '').replace(/^git@github\.com:/, 'https://github.com/')
|
|
32
|
+
} catch {}
|
|
33
|
+
return ''
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function getPreviousTag() {
|
|
37
|
+
try {
|
|
38
|
+
const tags = child_process
|
|
39
|
+
.execSync('git tag --sort=-version:refname')
|
|
40
|
+
.toString()
|
|
41
|
+
.trim()
|
|
42
|
+
.split('\n')
|
|
43
|
+
.filter(Boolean)
|
|
44
|
+
return tags[0] || ''
|
|
45
|
+
} catch {
|
|
46
|
+
return ''
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function appendFullChangelogLink(content, currentTag, repoUrl) {
|
|
51
|
+
const prefix = `**Full Changelog**: ${repoUrl}/compare/`
|
|
52
|
+
// Find the bounds of the first release section (the newly generated one)
|
|
53
|
+
const firstSectionStart = content.indexOf('\n## ')
|
|
54
|
+
if (firstSectionStart === -1) return content
|
|
55
|
+
const firstSectionEnd = content.indexOf('\n## ', firstSectionStart + 1)
|
|
56
|
+
const firstSection = firstSectionEnd === -1 ? content.slice(firstSectionStart) : content.slice(firstSectionStart, firstSectionEnd)
|
|
57
|
+
|
|
58
|
+
// Skip if a Full Changelog link is already present in that section
|
|
59
|
+
if (firstSection.includes(prefix)) return content
|
|
60
|
+
|
|
61
|
+
const prevTag = getPreviousTag()
|
|
62
|
+
if (!prevTag) return content
|
|
63
|
+
|
|
64
|
+
const link = `**Full Changelog**: ${repoUrl}/compare/${prevTag}...${currentTag}`
|
|
65
|
+
if (firstSectionEnd === -1) {
|
|
66
|
+
return content.trimEnd() + '\n\n' + link + '\n'
|
|
67
|
+
}
|
|
68
|
+
return content.slice(0, firstSectionEnd).trimEnd() + '\n\n' + link + '\n' + content.slice(firstSectionEnd)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
exports.preCommit = (props) => {
|
|
72
|
+
if (!fs.existsSync(changelogPath)) {
|
|
73
|
+
return
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
let content = fs.readFileSync(changelogPath, 'utf8')
|
|
77
|
+
content = normalizeChangelogHeader(content)
|
|
78
|
+
|
|
79
|
+
const repoUrl = getRepoUrl()
|
|
80
|
+
const currentTag = props?.tag || ''
|
|
81
|
+
if (repoUrl && currentTag) {
|
|
82
|
+
content = appendFullChangelogLink(content, currentTag, repoUrl)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
fs.writeFileSync(changelogPath, content)
|
|
86
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
## [3.1.2](https://github.com/homebridge-plugins/homebridge-august/compare/v3.1.1...v3.1.2) (2026-04-18)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* broaden engines.homebridge to support v1.x ([3d5cb8d](https://github.com/homebridge-plugins/homebridge-august/commit/3d5cb8d06b11e9a9b1e0d1111d372ef6e659d523))
|
|
6
|
+
* detect august-yale TimeoutError by error.name instead of message string ([03587f1](https://github.com/homebridge-plugins/homebridge-august/commit/03587f1c8e06d8ad41dd8d82a6852f67fb9803df))
|
|
7
|
+
|
|
8
|
+
**Full Changelog**: https://github.com/homebridge-plugins/homebridge-august/compare/v3.1.1...v3.1.2
|
|
4
9
|
|
|
5
10
|
## [3.1.1](https://github.com/homebridge-plugins/homebridge-august/compare/v3.1.0...v3.1.1) (2026-04-16)
|
|
6
11
|
|
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@homebridge-plugins/homebridge-august",
|
|
3
3
|
"displayName": "August",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "3.1.
|
|
5
|
+
"version": "3.1.3",
|
|
6
6
|
"description": "The August plugin allows you to access your August & Yale device(s) from HomeKit.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "donavanbecker",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"main": "dist/index.js",
|
|
40
40
|
"engines": {
|
|
41
|
-
"homebridge": "^1.
|
|
41
|
+
"homebridge": "^1.11.4 || ^2.0.0-beta.89",
|
|
42
42
|
"node": "^22 || ^24"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
@@ -62,22 +62,22 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@homebridge/plugin-ui-utils": "^2.2.3",
|
|
65
|
-
"august-yale": "^1.1.
|
|
65
|
+
"august-yale": "^1.1.7",
|
|
66
66
|
"rxjs": "^7.8.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@antfu/eslint-config": "^8.2.0",
|
|
70
70
|
"@types/node": "^25.6.0",
|
|
71
|
-
"@vitest/coverage-v8": "^4.1.
|
|
72
|
-
"eslint": "^10.2.
|
|
71
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
72
|
+
"eslint": "^10.2.1",
|
|
73
73
|
"eslint-plugin-format": "^2.0.1",
|
|
74
|
-
"eslint-plugin-perfectionist": "^5.
|
|
74
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
75
75
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
76
|
-
"homebridge": "^2.0.0-beta.
|
|
76
|
+
"homebridge": "^2.0.0-beta.101",
|
|
77
77
|
"nodemon": "^3.1.14",
|
|
78
78
|
"shx": "^0.4.0",
|
|
79
79
|
"typedoc": "^0.28.19",
|
|
80
|
-
"typescript": "^6.0.
|
|
81
|
-
"vitest": "^4.1.
|
|
80
|
+
"typescript": "^6.0.3",
|
|
81
|
+
"vitest": "^4.1.5"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>default | @homebridge-plugins/homebridge-august</title><meta name="description" content="Documentation for @homebridge-plugins/homebridge-august"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@homebridge-plugins/homebridge-august</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">default</a></li></ul><h1>Variable default</h1></div><div class="tsd-signature"><span class="tsd-kind-variable">default</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span></div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="__type"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/homebridge-plugins/homebridge-august/blob/
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>default | @homebridge-plugins/homebridge-august</title><meta name="description" content="Documentation for @homebridge-plugins/homebridge-august"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@homebridge-plugins/homebridge-august</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">default</a></li></ul><h1>Variable default</h1></div><div class="tsd-signature"><span class="tsd-kind-variable">default</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span></div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="__type"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/homebridge-plugins/homebridge-august/blob/ed9094358ab9ec6f724df58c1d98d38cee7db751/src/index.ts#L26">index.ts:26</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@homebridge-plugins/homebridge-august</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@homebridge-plugins/homebridge-august",
|
|
3
3
|
"displayName": "August",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "3.1.
|
|
5
|
+
"version": "3.1.3",
|
|
6
6
|
"description": "The August plugin allows you to access your August & Yale device(s) from HomeKit.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "donavanbecker",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"main": "dist/index.js",
|
|
40
40
|
"engines": {
|
|
41
|
-
"homebridge": "^1.
|
|
41
|
+
"homebridge": "^1.11.4 || ^2.0.0-beta.89",
|
|
42
42
|
"node": "^22 || ^24"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
@@ -62,22 +62,22 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@homebridge/plugin-ui-utils": "^2.2.3",
|
|
65
|
-
"august-yale": "^1.1.
|
|
65
|
+
"august-yale": "^1.1.7",
|
|
66
66
|
"rxjs": "^7.8.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@antfu/eslint-config": "^8.2.0",
|
|
70
70
|
"@types/node": "^25.6.0",
|
|
71
|
-
"@vitest/coverage-v8": "^4.1.
|
|
72
|
-
"eslint": "^10.2.
|
|
71
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
72
|
+
"eslint": "^10.2.1",
|
|
73
73
|
"eslint-plugin-format": "^2.0.1",
|
|
74
|
-
"eslint-plugin-perfectionist": "^5.
|
|
74
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
75
75
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
76
|
-
"homebridge": "^2.0.0-beta.
|
|
76
|
+
"homebridge": "^2.0.0-beta.101",
|
|
77
77
|
"nodemon": "^3.1.14",
|
|
78
78
|
"shx": "^0.4.0",
|
|
79
79
|
"typedoc": "^0.28.19",
|
|
80
|
-
"typescript": "^6.0.
|
|
81
|
-
"vitest": "^4.1.
|
|
80
|
+
"typescript": "^6.0.3",
|
|
81
|
+
"vitest": "^4.1.5"
|
|
82
82
|
}
|
|
83
83
|
}
|