@springfield/ham-radio-api 1.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ ## [3.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v2.0.0...v3.0.0) (2025-03-31)
2
+
3
+
4
+ ### ⚠ BREAKING CHANGES
5
+
6
+ * the RadioConnection should contain model instead of model id
7
+
8
+ ### Features
9
+
10
+ * the RadioConnection should contain model instead of model id ([d7f8470](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/d7f84709fee55f7e9dd08d582547e6c71887f522))
11
+
12
+ ## [2.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v1.1.0...v2.0.0) (2024-12-02)
13
+
14
+
15
+ ### ⚠ BREAKING CHANGES
16
+
17
+ * make ESM
18
+
19
+ ### Features
20
+
21
+ * make ESM ([93049f0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/93049f0b5d11731a42a752660f4b8b6f9f9a947c))
22
+
1
23
  ## [1.1.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v1.0.1...v1.1.0) (2024-11-30)
2
24
 
3
25
 
package/dist/brand.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=brand.js.map
package/dist/index.js CHANGED
@@ -1,36 +1,20 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./license/class.js"), exports);
18
- __exportStar(require("./radio/channel.js"), exports);
19
- __exportStar(require("./radio/codec.js"), exports);
20
- __exportStar(require("./radio/connection.js"), exports);
21
- __exportStar(require("./radio/driver.js"), exports);
22
- __exportStar(require("./radio/memory.js"), exports);
23
- __exportStar(require("./radio/model.js"), exports);
24
- __exportStar(require("./radio/module.js"), exports);
25
- __exportStar(require("./radio/program.js"), exports);
26
- __exportStar(require("./radio/programmed-channel.js"), exports);
27
- __exportStar(require("./radio/progress-indicator.js"), exports);
28
- __exportStar(require("./radio/schema.js"), exports);
29
- __exportStar(require("./radio/settings.js"), exports);
30
- __exportStar(require("./radio/radio.js"), exports);
31
- __exportStar(require("./radio/tone.js"), exports);
32
- __exportStar(require("./spectrum/band.js"), exports);
33
- __exportStar(require("./spectrum/channel.js"), exports);
34
- __exportStar(require("./spectrum/mode.js"), exports);
35
- __exportStar(require("./spectrum/privilege.js"), exports);
1
+ export * from './license/class.js';
2
+ export * from './radio/channel.js';
3
+ export * from './radio/codec.js';
4
+ export * from './radio/connection.js';
5
+ export * from './radio/driver.js';
6
+ export * from './radio/memory.js';
7
+ export * from './radio/model.js';
8
+ export * from './radio/module.js';
9
+ export * from './radio/program.js';
10
+ export * from './radio/programmed-channel.js';
11
+ export * from './radio/progress-indicator.js';
12
+ export * from './radio/schema.js';
13
+ export * from './radio/settings.js';
14
+ export * from './radio/radio.js';
15
+ export * from './radio/tone.js';
16
+ export * from './spectrum/band.js';
17
+ export * from './spectrum/channel.js';
18
+ export * from './spectrum/mode.js';
19
+ export * from './spectrum/privilege.js';
36
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,oDAAkC;AAClC,oDAAkC;AAClC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,gEAA8C;AAC9C,gEAA8C;AAC9C,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,kDAAgC;AAEhC,qDAAmC;AACnC,wDAAsC;AACtC,qDAAmC;AACnC,0DAAuC","sourcesContent":["export * from './license/class.js';\n\nexport * from './radio/channel.js';\nexport * from './radio/codec.js';\nexport * from './radio/connection.js';\nexport * from './radio/driver.js';\nexport * from './radio/memory.js';\nexport * from './radio/model.js';\nexport * from './radio/module.js';\nexport * from './radio/program.js';\nexport * from './radio/programmed-channel.js';\nexport * from './radio/progress-indicator.js';\nexport * from './radio/schema.js';\nexport * from './radio/settings.js';\nexport * from './radio/radio.js';\nexport * from './radio/tone.js';\n\nexport * from './spectrum/band.js';\nexport * from './spectrum/channel.js';\nexport * from './spectrum/mode.js';\nexport * from './spectrum/privilege.js'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AAEnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAA","sourcesContent":["export * from './license/class.js';\n\nexport * from './radio/channel.js';\nexport * from './radio/codec.js';\nexport * from './radio/connection.js';\nexport * from './radio/driver.js';\nexport * from './radio/memory.js';\nexport * from './radio/model.js';\nexport * from './radio/module.js';\nexport * from './radio/program.js';\nexport * from './radio/programmed-channel.js';\nexport * from './radio/progress-indicator.js';\nexport * from './radio/schema.js';\nexport * from './radio/settings.js';\nexport * from './radio/radio.js';\nexport * from './radio/tone.js';\n\nexport * from './spectrum/band.js';\nexport * from './spectrum/channel.js';\nexport * from './spectrum/mode.js';\nexport * from './spectrum/privilege.js'\n"]}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=class.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=channel.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=codec.js.map
@@ -1,5 +1,6 @@
1
+ import { RadioModel } from './model.js';
1
2
  export interface RadioConnection {
2
3
  serialPortPath: string;
3
- modelId: string;
4
+ model: RadioModel;
4
5
  }
5
6
  //# sourceMappingURL=connection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,UAAU,CAAC;CACnB"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=connection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":"","sourcesContent":["export interface RadioConnection {\n serialPortPath: string;\n modelId: string;\n}\n"]}
1
+ {"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioModel } from './model.js';\n\nexport interface RadioConnection {\n serialPortPath: string;\n model: RadioModel;\n}\n"]}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=driver.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=memory.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=model.js.map
@@ -1,6 +1,6 @@
1
- import { RadioDriver } from './driver';
2
- import { RadioModel } from './model';
3
- import { RadioSchema } from './schema';
1
+ import { RadioDriver } from './driver.js';
2
+ import { RadioModel } from './model.js';
3
+ import { RadioSchema } from './schema.js';
4
4
  export interface RadioModule {
5
5
  getId(): string;
6
6
  getModels(): RadioModel[];
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,WAAW;IAC1B,KAAK,IAAI,MAAM,CAAC;IAChB,SAAS,IAAI,UAAU,EAAE,CAAC;IAC1B,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACjD,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC;CACzC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,WAAW;IAC1B,KAAK,IAAI,MAAM,CAAC;IAChB,SAAS,IAAI,UAAU,EAAE,CAAC;IAC1B,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACjD,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC;CACzC"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioDriver } from './driver';\nimport { RadioModel } from './model';\nimport { RadioSchema } from './schema';\n\nexport interface RadioModule {\n getId(): string;\n getModels(): RadioModel[];\n getSchema(modelId: string): Promise<RadioSchema>;\n getDriver(modelId: string): RadioDriver;\n}\n"]}
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioDriver } from './driver.js';\nimport { RadioModel } from './model.js';\nimport { RadioSchema } from './schema.js';\n\nexport interface RadioModule {\n getId(): string;\n getModels(): RadioModel[];\n getSchema(modelId: string): Promise<RadioSchema>;\n getDriver(modelId: string): RadioDriver;\n}\n"]}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=program.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=programmed-channel.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=progress-indicator.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=radio.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=schema.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=settings.js.map
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RadioToneType = void 0;
4
- var RadioToneType;
1
+ export var RadioToneType;
5
2
  (function (RadioToneType) {
6
3
  RadioToneType[RadioToneType["CTCSS"] = 0] = "CTCSS";
7
4
  RadioToneType[RadioToneType["DCS"] = 1] = "DCS";
8
- })(RadioToneType || (exports.RadioToneType = RadioToneType = {}));
5
+ })(RadioToneType || (RadioToneType = {}));
9
6
  //# sourceMappingURL=tone.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tone.js","sourceRoot":"","sources":["../../src/radio/tone.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,mDAAK,CAAA;IACL,+CAAG,CAAA;AACL,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB","sourcesContent":["export enum RadioToneType {\n CTCSS,\n DCS,\n}\n\nexport interface RadioTone {\n tone: number;\n type: RadioToneType;\n}\n"]}
1
+ {"version":3,"file":"tone.js","sourceRoot":"","sources":["../../src/radio/tone.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,mDAAK,CAAA;IACL,+CAAG,CAAA;AACL,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["export enum RadioToneType {\n CTCSS,\n DCS,\n}\n\nexport interface RadioTone {\n tone: number;\n type: RadioToneType;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { SpectrumChannel } from './channel';
1
+ import { SpectrumChannel } from './channel.js';
2
2
  export interface SpectrumBand {
3
3
  id?: string;
4
4
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"band.d.ts","sourceRoot":"","sources":["../../src/spectrum/band.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,8BAA8B,EAAE,MAAM,CAAC;IACvC,8BAA8B,EAAE,MAAM,CAAC;IACvC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B"}
1
+ {"version":3,"file":"band.d.ts","sourceRoot":"","sources":["../../src/spectrum/band.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,8BAA8B,EAAE,MAAM,CAAC;IACvC,8BAA8B,EAAE,MAAM,CAAC;IACvC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=band.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"band.js","sourceRoot":"","sources":["../../src/spectrum/band.ts"],"names":[],"mappings":"","sourcesContent":["import { SpectrumChannel } from './channel';\n\nexport interface SpectrumBand {\n id?: string;\n name: string;\n wavelength: number;\n lowerFrequency: number;\n upperFrequency: number;\n frequencyDisplayBaseMultiplier: number;\n frequencyDisplayNumberDecimals: number;\n privilegeIds: string[];\n channels?: SpectrumChannel[];\n}\n"]}
1
+ {"version":3,"file":"band.js","sourceRoot":"","sources":["../../src/spectrum/band.ts"],"names":[],"mappings":"","sourcesContent":["import { SpectrumChannel } from './channel.js';\n\nexport interface SpectrumBand {\n id?: string;\n name: string;\n wavelength: number;\n lowerFrequency: number;\n upperFrequency: number;\n frequencyDisplayBaseMultiplier: number;\n frequencyDisplayNumberDecimals: number;\n privilegeIds: string[];\n channels?: SpectrumChannel[];\n}\n"]}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=channel.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=mode.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=privilege.js.map
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@springfield/ham-radio-api",
3
- "version": "1.1.0",
3
+ "version": "3.0.0",
4
4
  "author": "Bryan Hunt",
5
- "packageManager": "yarn@4.5.2",
5
+ "packageManager": "yarn@4.7.0",
6
6
  "main": "dist/index.js",
7
+ "type": "module",
7
8
  "types": "dist/index.d.ts",
8
9
  "files": [
9
10
  "src/",
@@ -46,14 +47,14 @@
46
47
  "access": "public"
47
48
  },
48
49
  "devDependencies": {
49
- "@commitlint/cli": "^19.6.0",
50
- "@commitlint/config-conventional": "^19.6.0",
51
- "@semantic-release/changelog": "^6.0.3",
52
- "@semantic-release/git": "^10.0.1",
53
- "@semantic-release/gitlab": "^13.2.1",
54
- "husky": "^9.1.7",
50
+ "@commitlint/cli": "19.8.0",
51
+ "@commitlint/config-conventional": "19.8.0",
52
+ "@semantic-release/changelog": "6.0.3",
53
+ "@semantic-release/git": "10.0.1",
54
+ "@semantic-release/gitlab": "13.2.4",
55
+ "husky": "9.1.7",
55
56
  "semantic-release": "23.1.1",
56
- "semantic-release-yarn": "^3.0.2",
57
- "typescript": "5.7.2"
57
+ "semantic-release-yarn": "3.0.2",
58
+ "typescript": "5.8.2"
58
59
  }
59
60
  }
@@ -1,4 +1,6 @@
1
+ import { RadioModel } from './model.js';
2
+
1
3
  export interface RadioConnection {
2
4
  serialPortPath: string;
3
- modelId: string;
5
+ model: RadioModel;
4
6
  }
@@ -1,6 +1,6 @@
1
- import { RadioDriver } from './driver';
2
- import { RadioModel } from './model';
3
- import { RadioSchema } from './schema';
1
+ import { RadioDriver } from './driver.js';
2
+ import { RadioModel } from './model.js';
3
+ import { RadioSchema } from './schema.js';
4
4
 
5
5
  export interface RadioModule {
6
6
  getId(): string;
@@ -1,4 +1,4 @@
1
- import { SpectrumChannel } from './channel';
1
+ import { SpectrumChannel } from './channel.js';
2
2
 
3
3
  export interface SpectrumBand {
4
4
  id?: string;