From 7c8661c88320bf3a4d5e8716f72854817655de05 Mon Sep 17 00:00:00 2001 From: JovannMC Date: Mon, 19 Aug 2024 20:43:46 +0300 Subject: [PATCH] v3.0.0 This was a while in the making to align with v1.2.0 for SlimeTora! This is only a major version change increment because I renamed some functions, lol (following semver, I love the two updates v2 had). + (BREAKING) Rename some functions from "get[Event]()" to "fire[Event]()" + BLE (wireless) updates + Remove artificial delay for BLE info (fixed my flawed code lol) + Add missing data/characteristics + Fully support wireless BT trackers for battery events (has all info now - percentage, voltage, status) + Auto-detect functions + Try to automatically find the devices and its connection mode (BLE/COM) + Supports wireless (BT/GX) and wired (untested) + New HaritoraX functions: getAvailableDevices() & getDevicePorts(device) + Update "connect" event + "connectionMode" shows what connection mode the tracker was connected by + "port" shows what COM port the tracker was from (if provided) + Re-add support of "processSettingsData()" for wireless GX trackers + "Data queue" system if trackers aren't assigned yet + Optimize code for performance and readability (hopefully) + Also reduces package dependencies! + Error handling & logging updates + Throw errors that are "severe" that bypass the "debug" switch + Prevent errors when stopping connection (stop processing data when stopping) + Add "raw data" logging (tracker name, raw data, (service, characteristic) or com port) + Generally better error handling + Other general logging tweaks + Fix wireless BT trackers JSON errors when reporting its battery + Fix processing dongle/null "button" data + Update JSDoc/comments + More bug fixes, optimizations, and other updates I forgot lol (or too small to mention) --- package.json | 2 +- src/HaritoraX.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 11d5519..0b11fc8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "haritorax-interpreter", - "version": "2.0.1", + "version": "3.0.0", "homepage": "https://github.com/JovannMC/haritorax-interpreter", "repository": "https://github.com/JovannMC/haritorax-interpreter", "bugs": { diff --git a/src/HaritoraX.ts b/src/HaritoraX.ts index e2381c6..96a6685 100644 --- a/src/HaritoraX.ts +++ b/src/HaritoraX.ts @@ -838,7 +838,6 @@ export default class HaritoraX extends EventEmitter { if (device === "HaritoraX Wired") { return await com.getDevicePorts("HaritoraX Wired"); } else { - log("1 Getting available ports for " + device); return await com.getDevicePorts(device); } } finally {