Looking-Glass / bridge.js

Bridge.js is a javascript API for interacting with Looking Glass displays via Looking Glass Bridge 2.2.0+
https://lookingglassfactory.com/software/looking-glass-bridge
MIT License
8 stars 0 forks source link

Fix/version naming #12

Closed BryanChrisBrown closed 1 year ago

BryanChrisBrown commented 1 year ago

Bridge's version previously was typed as a number.

This was fine for cases where bridge had the name 2.2, but will not work for patch or hotfix numbers like 2.2.1 or 1.2.3.4.

To address this we've made a new type for Bridge's version called BridgeVersion this is an object that consists of the following structure.

{
Major: number
Minor: number
Patch: number
Hotfix: number
}

We add a new function to parse these values in a utilities folder.