@springfield/ham-radio-api 11.0.0 → 12.0.1

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,21 @@
1
+ ## [12.0.1](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v12.0.0...v12.0.1) (2025-05-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * export RadioMemorySegment ([105e1af](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/105e1affad6025f04e9d81bcb83e581564d510e7))
7
+
8
+ ## [12.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v11.0.0...v12.0.0) (2025-05-10)
9
+
10
+
11
+ ### ⚠ BREAKING CHANGES
12
+
13
+ * add RadioMemorySegment and make RadioMemory.contents RadioMemorySegment[]
14
+
15
+ ### Features
16
+
17
+ * add RadioMemorySegment and make RadioMemory.contents RadioMemorySegment[] ([df0b320](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/df0b32045107b3b743e44be648a0096e05b84035))
18
+
1
19
  ## [11.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v10.0.0...v11.0.0) (2025-04-27)
2
20
 
3
21
 
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from './radio/dcs.js';
16
16
  export * from './radio/driver.js';
17
17
  export * from './radio/driver-provider.js';
18
18
  export * from './radio/id.js';
19
+ export * from './radio/memory-segment.js';
19
20
  export * from './radio/memory.js';
20
21
  export * from './radio/radio.js';
21
22
  export * from './radio/module.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;A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A2B,CAAC;AAC1C,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,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -16,6 +16,7 @@ export * from './radio/dcs.js';
16
16
  export * from './radio/driver.js';
17
17
  export * from './radio/driver-provider.js';
18
18
  export * from './radio/id.js';
19
+ export * from './radio/memory-segment.js';
19
20
  export * from './radio/memory.js';
20
21
  export * from './radio/radio.js';
21
22
  export * from './radio/module.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oBAAoB,CAAC;AAEnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,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,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './branded-types/frequency.js';\nexport * from './branded-types/license-class-id.js';\nexport * from './branded-types/radio-channel-id.js';\nexport * from './branded-types/radio-model-id.js';\nexport * from './branded-types/radio-module-id.js';\nexport * from './branded-types/spectrum-band-id.js';\nexport * from './branded-types/spectrum-mode-id.js';\nexport * from './branded-types/spectrum-privilege-id.js';\nexport * from './branded-types/wavelength.js';\n\nexport * from './license/class.js';\n\nexport * from './radio/channel.js';\nexport * from './radio/codec.js';\nexport * from './radio/connection.js';\nexport * from './radio/ctcss.js';\nexport * from './radio/dcs.js';\nexport * from './radio/driver.js';\nexport * from './radio/driver-provider.js';\nexport * from './radio/id.js';\nexport * from './radio/memory.js';\nexport * from './radio/radio.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/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,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oBAAoB,CAAC;AAEnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,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,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './branded-types/frequency.js';\nexport * from './branded-types/license-class-id.js';\nexport * from './branded-types/radio-channel-id.js';\nexport * from './branded-types/radio-model-id.js';\nexport * from './branded-types/radio-module-id.js';\nexport * from './branded-types/spectrum-band-id.js';\nexport * from './branded-types/spectrum-mode-id.js';\nexport * from './branded-types/spectrum-privilege-id.js';\nexport * from './branded-types/wavelength.js';\n\nexport * from './license/class.js';\n\nexport * from './radio/channel.js';\nexport * from './radio/codec.js';\nexport * from './radio/connection.js';\nexport * from './radio/ctcss.js';\nexport * from './radio/dcs.js';\nexport * from './radio/driver.js';\nexport * from './radio/driver-provider.js';\nexport * from './radio/id.js';\nexport * from './radio/memory-segment.js';\nexport * from './radio/memory.js';\nexport * from './radio/radio.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/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,5 +1,11 @@
1
1
  import { RadioModelId } from '../branded-types/radio-model-id.js';
2
2
  import { RadioModuleId } from '../branded-types/radio-module-id.js';
3
+ /**
4
+ * A unique identifier for a radio.
5
+ *
6
+ * This information is passed between the renderer process and Electron process to identify a radio.
7
+ * It must be serializable to JSON.
8
+ */
3
9
  export interface RadioId {
4
10
  module: RadioModuleId;
5
11
  model: RadioModelId;
@@ -1 +1 @@
1
- {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/radio/id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,YAAY,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/radio/id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,YAAY,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"id.js","sourceRoot":"","sources":["../../src/radio/id.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioModelId } from '../branded-types/radio-model-id.js';\nimport { RadioModuleId } from '../branded-types/radio-module-id.js';\n\nexport interface RadioId {\n module: RadioModuleId;\n model: RadioModelId;\n name: string;\n manufacturer: string;\n}\n"]}
1
+ {"version":3,"file":"id.js","sourceRoot":"","sources":["../../src/radio/id.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioModelId } from '../branded-types/radio-model-id.js';\nimport { RadioModuleId } from '../branded-types/radio-module-id.js';\n\n/**\n * A unique identifier for a radio.\n *\n * This information is passed between the renderer process and Electron process to identify a radio.\n * It must be serializable to JSON.\n */\nexport interface RadioId {\n module: RadioModuleId;\n model: RadioModelId;\n name: string;\n manufacturer: string;\n}\n"]}
@@ -0,0 +1,6 @@
1
+ export interface RadioMemorySegment {
2
+ startAddress: number;
3
+ length: number;
4
+ data: Uint8Array;
5
+ }
6
+ //# sourceMappingURL=memory-segment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-segment.d.ts","sourceRoot":"","sources":["../../src/radio/memory-segment.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,CAAC;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=memory-segment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-segment.js","sourceRoot":"","sources":["../../src/radio/memory-segment.ts"],"names":[],"mappings":"","sourcesContent":["export interface RadioMemorySegment {\n startAddress: number;\n length: number;\n data: Uint8Array;\n}\n"]}
@@ -1,6 +1,7 @@
1
1
  import { RadioModelId } from '../branded-types/radio-model-id.js';
2
+ import { RadioMemorySegment } from './memory-segment.js';
2
3
  export interface RadioMemory {
3
4
  radioModel: RadioModelId;
4
- contents: any;
5
+ contents: RadioMemorySegment[];
5
6
  }
6
7
  //# sourceMappingURL=memory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/radio/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,YAAY,CAAC;IACzB,QAAQ,EAAE,GAAG,CAAC;CACf"}
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/radio/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,YAAY,CAAC;IACzB,QAAQ,EAAE,kBAAkB,EAAE,CAAC;CAChC"}
@@ -1 +1 @@
1
- {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/radio/memory.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioModelId } from '../branded-types/radio-model-id.js';\n\nexport interface RadioMemory {\n radioModel: RadioModelId;\n contents: any;\n}\n"]}
1
+ {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/radio/memory.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioModelId } from '../branded-types/radio-model-id.js';\nimport { RadioMemorySegment } from './memory-segment.js';\n\nexport interface RadioMemory {\n radioModel: RadioModelId;\n contents: RadioMemorySegment[];\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springfield/ham-radio-api",
3
- "version": "11.0.0",
3
+ "version": "12.0.1",
4
4
  "author": "Bryan Hunt",
5
5
  "packageManager": "yarn@4.9.1",
6
6
  "main": "dist/index.js",
@@ -47,11 +47,11 @@
47
47
  "access": "public"
48
48
  },
49
49
  "devDependencies": {
50
- "@commitlint/cli": "19.8.0",
51
- "@commitlint/config-conventional": "19.8.0",
50
+ "@commitlint/cli": "19.8.1",
51
+ "@commitlint/config-conventional": "19.8.1",
52
52
  "@semantic-release/changelog": "6.0.3",
53
53
  "@semantic-release/git": "10.0.1",
54
- "@semantic-release/gitlab": "13.2.4",
54
+ "@semantic-release/gitlab": "13.2.5",
55
55
  "husky": "9.1.7",
56
56
  "semantic-release": "23.1.1",
57
57
  "semantic-release-yarn": "3.0.2",
package/src/index.ts CHANGED
@@ -18,6 +18,7 @@ export * from './radio/dcs.js';
18
18
  export * from './radio/driver.js';
19
19
  export * from './radio/driver-provider.js';
20
20
  export * from './radio/id.js';
21
+ export * from './radio/memory-segment.js';
21
22
  export * from './radio/memory.js';
22
23
  export * from './radio/radio.js';
23
24
  export * from './radio/module.js';
package/src/radio/id.ts CHANGED
@@ -1,6 +1,12 @@
1
1
  import { RadioModelId } from '../branded-types/radio-model-id.js';
2
2
  import { RadioModuleId } from '../branded-types/radio-module-id.js';
3
3
 
4
+ /**
5
+ * A unique identifier for a radio.
6
+ *
7
+ * This information is passed between the renderer process and Electron process to identify a radio.
8
+ * It must be serializable to JSON.
9
+ */
4
10
  export interface RadioId {
5
11
  module: RadioModuleId;
6
12
  model: RadioModelId;
@@ -0,0 +1,5 @@
1
+ export interface RadioMemorySegment {
2
+ startAddress: number;
3
+ length: number;
4
+ data: Uint8Array;
5
+ }
@@ -1,6 +1,7 @@
1
1
  import { RadioModelId } from '../branded-types/radio-model-id.js';
2
+ import { RadioMemorySegment } from './memory-segment.js';
2
3
 
3
4
  export interface RadioMemory {
4
5
  radioModel: RadioModelId;
5
- contents: any;
6
+ contents: RadioMemorySegment[];
6
7
  }