@homebridge-plugins/homebridge-smarthq 0.3.0-beta.1 → 0.3.0

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,13 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
4
4
 
5
- ## [1.0.0](https://github.com/homebridge-plugins/homebridge-smarthq/releases/tag/v1.0.0) (2025-XX-XX)
5
+ **No New Releases During Lent**
6
+
7
+ ## [0.3.0](https://github.com/homebridge-plugins/homebridge-smarthq/releases/tag/v0.3.0) (2025-03-04)
6
8
 
7
9
  ### What's Changes
8
10
 
9
- - Release of [@homebridge-plugins/homebridge-smarthq](https://github.com/homebridge-plugins/homebridge-smarthq) which allows to interact with SmartHQ API.
11
+ - Opal Ice Maker Production/Progress Feature. [#17](https://github.com/homebridge-plugins/homebridge-smarthq/pull/17), Thanks [@jamesh48](https://github.com/jamesh48)
12
+ - Housekeeping and updated dependencies.
10
13
 
11
- **Full Changelog**: https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.2.0...v1.0.0
14
+ **Full Changelog**: https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.2.0...v0.3.0
12
15
 
13
16
  ## [0.2.0](https://github.com/homebridge-plugins/homebridge-smarthq/releases/tag/v0.2.0) (2025-02-23)
14
17
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;8BAMhB,GAAG,KAAG,IAAI;AAA/B,wBAEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;yBAMrB,KAAK,GAAG,KAAG,IAAI;AAA/B,wBAEC"}
@@ -1,2 +1,2 @@
1
1
  <!DOCTYPE html><html class="default" lang="en" data-base=".."><head><style>body { visibility: hidden; }</style><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="IE=edge"><title>default | @homebridge-plugins/homebridge-smarthq</title><meta name="description" content="Documentation for @homebridge-plugins/homebridge-smarthq"><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><link rel="stylesheet" href="../assets/dmt/dmt-components.css"><link rel="stylesheet" href="../assets/dmt/dmt-theme.css"><script src="../assets/dmt/dmt-components.js" type="module"></script><noscript><style>body { visibility: visible; }</style></noscript></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";</script><div class="overlay"></div>
2
- <main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="../index.html" class="title">@homebridge-plugins/homebridge-smarthq</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" 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></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>Function default</h1></div></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="default" class="tsd-anchor"></a><span class="tsd-kind-call-signature">default</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><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div 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><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/homebridge-plugins/homebridge-smarthq/blob/fcd5ac6ea0409e9caba0f038f168b53ea24c0181/src/index.ts#L11">index.ts:11</a></li></ul></aside></div></li></ul></section></div><div class="col-sidebar" tabindex="-1"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>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" tabindex="-1"><nav class="tsd-navigation"><a href="../modules.html">@homebridge-plugins/homebridge-smarthq</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"></ul></nav></div></div></div></main></body></html>
2
+ <main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="../index.html" class="title">@homebridge-plugins/homebridge-smarthq</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" 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></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>Function default</h1></div></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="default" class="tsd-anchor"></a><span class="tsd-kind-call-signature">default</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><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div 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><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/homebridge-plugins/homebridge-smarthq/blob/7f433dc91ac813f7e6860bc454491a83a3f9246d/src/index.ts#L11">index.ts:11</a></li></ul></aside></div></li></ul></section></div><div class="col-sidebar" tabindex="-1"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>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" tabindex="-1"><nav class="tsd-navigation"><a href="../modules.html">@homebridge-plugins/homebridge-smarthq</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"></ul></nav></div></div></div></main></body></html>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@homebridge-plugins/homebridge-smarthq",
3
3
  "displayName": "SmartHQ",
4
4
  "type": "module",
5
- "version": "0.3.0-beta.1",
5
+ "version": "0.3.0",
6
6
  "description": "The SmartHQ plugin allows you to interact with SmartHQ Devices in HomeKit and with Siri.",
7
7
  "author": {
8
8
  "name": "donavanbecker",
@@ -62,15 +62,15 @@
62
62
  },
63
63
  "dependencies": {
64
64
  "@homebridge/plugin-ui-utils": "^2.0.1",
65
- "axios": "^1.7.9",
65
+ "axios": "^1.8.1",
66
66
  "axios-cookiejar-support": "^5.0.5",
67
67
  "axios-form-data": "^1.1.1",
68
68
  "cheerio": "^1.0.0-rc.12",
69
69
  "lodash": "^4.17.21",
70
70
  "openid-client": "5.7.0",
71
71
  "rxjs": "^7.8.2",
72
- "tough-cookie": "^5.1.1",
73
- "undici": "^7.2.0",
72
+ "tough-cookie": "^5.1.2",
73
+ "undici": "^7.4.0",
74
74
  "ws": "^8.18.1"
75
75
  },
76
76
  "optionalDependencies": {
@@ -78,18 +78,18 @@
78
78
  "utf-8-validat": "*"
79
79
  },
80
80
  "devDependencies": {
81
- "@antfu/eslint-config": "^4.3.0",
81
+ "@antfu/eslint-config": "^4.4.0",
82
82
  "@types/aes-js": "^3.1.4",
83
83
  "@types/debug": "^4.1.12",
84
84
  "@types/fs-extra": "^11.0.4",
85
- "@types/lodash": "^4.17.15",
85
+ "@types/lodash": "^4.17.16",
86
86
  "@types/mdast": "^4.0.4",
87
- "@types/node": "^22.13.5",
87
+ "@types/node": "^22.13.9",
88
88
  "@types/semver": "^7.5.8",
89
89
  "@types/source-map-support": "^0.5.10",
90
- "@types/ws": "^8.5.14",
90
+ "@types/ws": "^8.18.0",
91
91
  "@typhonjs-typedoc/typedoc-theme-dmt": "^0.3.1",
92
- "@vitest/coverage-v8": "^3.0.6",
92
+ "@vitest/coverage-v8": "^3.0.7",
93
93
  "eslint": "^9.21.0",
94
94
  "eslint-plugin-format": "^1.0.1",
95
95
  "homebridge": "^1.9.0",
@@ -99,8 +99,8 @@
99
99
  "shx": "^0.3.4",
100
100
  "ts-node": "^10.9.2",
101
101
  "ts-node-dev": "^2.0.0",
102
- "typedoc": "^0.27.8",
103
- "typescript": "^5.7.2",
104
- "vitest": "^3.0.3"
102
+ "typedoc": "^0.27.9",
103
+ "typescript": "^5.8.2",
104
+ "vitest": "^3.0.7"
105
105
  }
106
106
  }
@@ -1,97 +0,0 @@
1
- #!/bin/env node
2
-
3
- /**
4
- * This scripts queries the npm registry to pull out the latest version for a given tag.
5
- */
6
-
7
- import assert from 'node:assert'
8
- import child_process from 'node:child_process'
9
- import fs from 'node:fs'
10
- import process from 'node:process'
11
-
12
- const BRANCH_VERSION_PATTERN = /^([A-Z]+)-(\d+\.\d+\.\d+)$/i
13
-
14
- // Load the contents of the package.json file
15
- const packageJSON = JSON.parse(fs.readFileSync('package.json', 'utf8'))
16
-
17
- const refArgument = process.argv[2]
18
- const tagArgument = process.argv[3] || 'latest'
19
-
20
- if (!refArgument) {
21
- console.error('ref argument is missing')
22
- console.error('Usage: npm-version-script-esm.js <ref> [tag]')
23
- process.exit(1)
24
- }
25
-
26
- /**
27
- * Queries the NPM registry for the latest version for the provided base version and tag.
28
- * If the tag is latest, then the base version is returned if it exists. For other tags, the latest
29
- * version found for that base version and tag is returned.
30
- * @param baseVersion The base version to query for, e.g. 2.0.0
31
- * @param tag The tag to query for, e.g. beta or latest
32
- * @returns {string} Returns the version, or '' if not found
33
- */
34
- function getTagVersionFromNpm(baseVersion, tag) {
35
- try {
36
- return JSON.parse(child_process.execSync(`npm info ${packageJSON.name} versions --json`).toString('utf8').trim())
37
- .filter(v => tag === 'latest' ? v === baseVersion : v.startsWith(`${baseVersion}-${tag}.`)) // find all published versions for this base version and tag
38
- .reduce((_, current) => current, '') // choose the last as they're sorted in ascending order, or '' if there are none
39
- } catch (e) {
40
- console.error(`Failed to query the npm registry for the latest version for tag: ${tag}`, e)
41
- // throw e;
42
- return ''
43
- }
44
- }
45
-
46
- function desiredTargetVersion(ref) {
47
- // ref is a GitHub action ref string
48
- if (ref.startsWith('refs/pull/')) {
49
- throw new Error('The version script was executed inside a PR!')
50
- }
51
-
52
- assert(ref.startsWith('refs/heads/'))
53
- const branchName = ref.slice('refs/heads/'.length)
54
-
55
- const results = branchName.match(BRANCH_VERSION_PATTERN)
56
- if (results !== null) {
57
- if (results[1] !== tagArgument) {
58
- console.warn(`The base branch name (${results[1]}) differs from the tag name ${tagArgument}`)
59
- }
60
-
61
- return results[2]
62
- }
63
-
64
- throw new Error(`Malformed branch name for ref: ${ref}. Can't derive the base version. Use a branch name like: beta-x.x.x or alpha-x.x.x`)
65
- }
66
-
67
- // derive the base version from the branch ref
68
- const baseVersion = desiredTargetVersion(refArgument)
69
-
70
- // query the npm registry for the latest version of the provided tag name
71
- const latestReleasedVersion = getTagVersionFromNpm(baseVersion, tagArgument) // e.g. 0.7.0-beta.12
72
-
73
- let publishTag
74
-
75
- if (latestReleasedVersion) {
76
- console.warn(`Latest published version for ${baseVersion} with tag ${tagArgument} is ${latestReleasedVersion}`)
77
- publishTag = latestReleasedVersion // set this released beta or alpha to be incremented
78
- } else {
79
- console.warn(`No published versions for ${baseVersion} with tag ${tagArgument}`)
80
- publishTag = baseVersion // start off with a new beta or alpha version
81
- }
82
-
83
- if (packageJSON.version !== publishTag) {
84
- // report the change for CI
85
- console.warn(`Changing version in package.json from ${packageJSON.version} to ${publishTag}`)
86
-
87
- // save the package.json
88
- packageJSON.version = publishTag
89
- fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2))
90
-
91
- // perform the same change to the package-lock.json
92
- const packageLockJSON = JSON.parse(fs.readFileSync('package-lock.json', 'utf8'))
93
- packageLockJSON.version = publishTag
94
- fs.writeFileSync('package-lock.json', JSON.stringify(packageLockJSON, null, 2))
95
- } else {
96
- console.warn(`Leaving version in package.json at ${packageJSON.version}`)
97
- }