homebridge-ring 12.1.1 → 13.0.0-beta.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
@@ -1,5 +1,18 @@
1
1
  # homebridge-ring
2
2
 
3
+ ## 13.0.0-beta.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#1435](https://github.com/dgreif/ring/pull/1435) [`614621c`](https://github.com/dgreif/ring/commit/614621ca8957beb7f46a3f26347059ad5772dd48) Thanks [@tsightler](https://github.com/tsightler)! - Updated to new push notification interface. This will change the shape of push notifications for projects which manually consume push notifications, but should not impact homebridge-ring users. If your push notifications for cameras (motion events, dings, etc) do not work after updating, please reboot and try again, then see https://github.com/dgreif/ring/wiki/Notification-Troubleshooting if issues continue.
8
+
9
+ ### Patch Changes
10
+
11
+ - [`dcdd90f`](https://github.com/dgreif/ring/commit/dcdd90f2ebbdd0596d4df6d31c1b6f52dca9d0df) Thanks [@dgreif](https://github.com/dgreif)! - Updated dependencies
12
+
13
+ - Updated dependencies [[`dcdd90f`](https://github.com/dgreif/ring/commit/dcdd90f2ebbdd0596d4df6d31c1b6f52dca9d0df), [`614621c`](https://github.com/dgreif/ring/commit/614621ca8957beb7f46a3f26347059ad5772dd48)]:
14
+ - ring-client-api@13.0.0-beta.0
15
+
3
16
  ## 12.1.1
4
17
 
5
18
  ### Patch Changes
package/lib/camera.js CHANGED
@@ -174,7 +174,7 @@ class Camera extends base_data_accessory_1.BaseDataAccessory {
174
174
  */
175
175
  if (this.device.operatingOnBattery && !imageUuid) {
176
176
  await Promise.race([
177
- (0, rxjs_1.firstValueFrom)(this.device.onNewNotification.pipe((0, operators_1.filter)((notification) => Boolean(notification.ding.image_uuid)))),
177
+ (0, rxjs_1.firstValueFrom)(this.device.onNewNotification.pipe((0, operators_1.filter)((notification) => Boolean(notification.img?.snapshot_uuid)))),
178
178
  // wait up to 2 seconds for the second notification
179
179
  (0, util_1.delay)(2000),
180
180
  ]);
package/lib/config.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.debug = exports.getSystemId = exports.updateHomebridgeConfig = exports.controlCenterDisplayName = void 0;
3
+ exports.debug = exports.controlCenterDisplayName = void 0;
4
+ exports.updateHomebridgeConfig = updateHomebridgeConfig;
5
+ exports.getSystemId = getSystemId;
4
6
  const fs_1 = require("fs");
5
7
  const crypto_1 = require("crypto");
6
8
  const path_1 = require("path");
@@ -14,7 +16,6 @@ function updateHomebridgeConfig(homebridge, update) {
14
16
  }
15
17
  return false;
16
18
  }
17
- exports.updateHomebridgeConfig = updateHomebridgeConfig;
18
19
  function createSystemId() {
19
20
  return (0, crypto_1.createHash)('sha256').update((0, crypto_1.randomBytes)(32)).digest('hex');
20
21
  }
@@ -33,5 +34,4 @@ function getSystemId(homebridgeStoragePath) {
33
34
  (0, fs_1.writeFileSync)(filePath, JSON.stringify(ringContext));
34
35
  return systemId;
35
36
  }
36
- exports.getSystemId = getSystemId;
37
37
  exports.debug = process.env.RING_DEBUG === 'true';
package/lib/hap.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setHap = exports.hap = void 0;
3
+ exports.hap = void 0;
4
+ exports.setHap = setHap;
4
5
  function setHap(hapInstance) {
5
6
  exports.hap = hapInstance;
6
7
  }
7
- exports.setHap = setHap;
package/lib/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = default_1;
3
4
  const ring_platform_1 = require("./ring-platform");
4
5
  const hap_1 = require("./hap");
5
6
  function default_1(homebridge) {
6
7
  (0, hap_1.setHap)(homebridge.hap);
7
8
  homebridge.registerPlatform(ring_platform_1.pluginName, ring_platform_1.platformName, ring_platform_1.RingPlatform, true);
8
9
  }
9
- exports.default = default_1;
package/lib/util.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateMacAddress = void 0;
3
+ exports.generateMacAddress = generateMacAddress;
4
4
  const crypto_1 = require("crypto");
5
5
  function generateMacAddress(uuid) {
6
6
  const sha1sum = (0, crypto_1.createHash)('sha1');
@@ -9,4 +9,3 @@ function generateMacAddress(uuid) {
9
9
  let i = 0;
10
10
  return 'xx:xx:xx:xx:xx:xx'.replace(/[x]/g, () => s[i++]).toUpperCase();
11
11
  }
12
- exports.generateMacAddress = generateMacAddress;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-ring",
3
3
  "displayName": "Ring",
4
- "version": "12.1.1",
4
+ "version": "13.0.0-beta.0",
5
5
  "description": "Homebridge plugin for Ring doorbells, cameras, security alarm system and smart lighting",
6
6
  "main": "lib/index.js",
7
7
  "scripts": {
@@ -12,18 +12,18 @@
12
12
  "dev:run": "nodemon --watch . --watch ../ring-client-api/lib --exec 'RING_DEBUG=true homebridge -P ./ -U ../../.homebridge'"
13
13
  },
14
14
  "dependencies": {
15
- "@homebridge/camera-utils": "^2.2.4",
16
- "@homebridge/plugin-ui-utils": "^1.0.0",
17
- "ring-client-api": "12.1.1",
18
- "werift": "0.18.17"
15
+ "@homebridge/camera-utils": "^2.2.6",
16
+ "@homebridge/plugin-ui-utils": "^1.0.3",
17
+ "ring-client-api": "13.0.0-beta.0",
18
+ "werift": "0.19.3"
19
19
  },
20
20
  "devDependencies": {
21
21
  "concurrently": "^8.2.2",
22
22
  "eslint-config-shared": "*",
23
- "homebridge": "1.7.0",
24
- "nodemon": "^3.0.2",
23
+ "homebridge": "1.8.3",
24
+ "nodemon": "^3.1.4",
25
25
  "tsconfig": "*",
26
- "typescript": "5.2.2"
26
+ "typescript": "5.5.2"
27
27
  },
28
28
  "engines": {
29
29
  "node": "^18 || ^20",