Skip to content

Commit

Permalink
v3.0.0
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
JovannMC committed Aug 19, 2024
1 parent 5b51415 commit 17a6a76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm run build
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
1 change: 0 additions & 1 deletion src/HaritoraX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 17a6a76

Please sign in to comment.