release 5.3.1

This commit is contained in:
Nick Krecklow 2020-05-05 23:45:04 -05:00
parent 4c2c8492b8
commit 49379acc77
No known key found for this signature in database
GPG Key ID: 5F149FDE156FFA94
6 changed files with 13 additions and 6 deletions

@ -1,9 +1,13 @@
const MOJANG_STATUS_BASE_CLASS = 'header-button header-button-group' const MOJANG_STATUS_BASE_CLASS = 'header-button header-button-group'
const MOJANG_SERVICE_NAMES = ['Auth', 'Sessions', 'API', 'Skins']
export class MojangUpdater { export class MojangUpdater {
updateStatus (services) { updateStatus (services) {
for (const name of Object.keys(services)) { for (const name of MOJANG_SERVICE_NAMES) {
this.updateServiceStatus(name, services[name]) if (services[name]) {
this.updateServiceStatus(name, services[name])
}
} }
} }

@ -15,7 +15,7 @@ export class SocketManager {
webSocketProtocol = 'wss:' webSocketProtocol = 'wss:'
} }
this._webSocket = new WebSocket(webSocketProtocol + '//' + location.host) this._webSocket = new WebSocket(webSocketProtocol + '//' + location.hostname + ':8080')
// The backend will automatically push data once connected // The backend will automatically push data once connected
this._webSocket.onopen = () => { this._webSocket.onopen = () => {

@ -9,6 +9,6 @@
"pingAll": 3000, "pingAll": 3000,
"connectTimeout": 2500 "connectTimeout": 2500
}, },
"logToDatabase": false, "logToDatabase": true,
"graphDuration": 86400000 "graphDuration": 86400000
} }

@ -1,3 +1,6 @@
**5.3.1** *(May 5 2020)*
- Fixes Mojang service status indicators not updating after initial page load.
**5.3.0** *(May 5 2020)* **5.3.0** *(May 5 2020)*
- Replaces socket.io library (and dependency) with vanilla WebSockets. - Replaces socket.io library (and dependency) with vanilla WebSockets.
- Frontend reconnect behavior has been improved to use exponential backoff behavior (up to 30 seconds) with unlimited retries. - Frontend reconnect behavior has been improved to use exponential backoff behavior (up to 30 seconds) with unlimited retries.

2
package-lock.json generated

@ -1,6 +1,6 @@
{ {
"name": "minetrack", "name": "minetrack",
"version": "5.3.0", "version": "5.3.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

@ -1,6 +1,6 @@
{ {
"name": "minetrack", "name": "minetrack",
"version": "5.3.0", "version": "5.3.1",
"description": "A Minecraft server tracker that lets you focus on the basics.", "description": "A Minecraft server tracker that lets you focus on the basics.",
"main": "main.js", "main": "main.js",
"dependencies": { "dependencies": {