Release v5.0.2 (#386)

Release v5.0.2
* Suppress spurious message from push-receiver
* Fix minor typos in error logging
* Bump ring-client-api version to 11.0.4
This commit is contained in:
tsightler
2022-06-05 22:10:44 -04:00
committed by GitHub
parent 1b7cfe113c
commit 7add21d409
8 changed files with 731 additions and 740 deletions

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2021 tsightler
Copyright (c) 2022 tsightler
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@@ -1,7 +1,14 @@
## v5.0.1
## v5.0.2
**!!!!! WARNING !!!!!**\
The 5.x releases are breaking releases when upgrading from 4.x versions! Please be sure to read the [v5.0.0 release notes](#v500) below for full details as manual steps may be required.
The 5.x releases are breaking release when upgrading from 4.x versions, please be sure to read the [v5.0.0](#v500) release notes below for full details as manual steps may be required.
**Dependency Updates***
- Bump ring-client-api to v11.0.4 (hopefully fixes some live stream connection issues)
**Other Changes**
- Suppress spurious error messages from push-receiver dependency during startup
## v5.0.1
**Fixed Bugs**
- Fixed a bug where some camera motion events were reported as dings
- Fixed an issue where camera events sometimes had timestamps from far in the past

View File

@@ -72,7 +72,7 @@ const main = async() => {
console.log('State file ' +stateFile+ ' saved with updated refresh token.')
} catch (err) {
console.log('Saving state file '+stateFile+' failed with error: ')
conslog.log(err)
console.log(err)
}
const configData = {

View File

@@ -2,7 +2,6 @@ const debug = require('debug')('ring-mqtt')
const colors = require('colors/safe')
const fs = require('fs')
const writeFileAtomic = require('write-file-atomic')
const url = require('url')
class Config {
constructor() {

View File

@@ -11,6 +11,13 @@ const isOnline = require('is-online')
class Main {
constructor() {
// Hack to suppress spurious message from push-receiver during startup
console.warn = (data) => {
if (data.includes('PHONE_REGISTRATION_ERROR') || data.match('^Retry...')) {
return
}
console.error(data)
};
// Start event listeners
utils.event.on('generated_token', (generatedToken) => {

View File

@@ -37,7 +37,7 @@ class State {
if (!this.data.hasOwnProperty('devices') || Array.isArray(this.data.devices)) {
this.data.devices = {}
}
} catch {
} catch (err) {
debug(err.message)
debug(colors.red('Saved state file exist but could not be parsed!'))
await this.initStateData()

1440
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "ring-mqtt",
"version": "5.0.1",
"version": "5.0.2",
"description": "Ring Devices via MQTT",
"main": "ring-mqtt.js",
"dependencies": {
@@ -14,7 +14,7 @@
"minimist": "^1.2.6",
"mqtt": "4.3.7",
"aedes": "0.46.3",
"ring-client-api": "11.0.0"
"ring-client-api": "11.0.4"
},
"devDependencies": {
"eslint": "^7.19.0"