@springfield/ham-radio-api 10.0.0 → 12.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 +22 -0
- package/dist/radio/id.d.ts +8 -0
- package/dist/radio/id.d.ts.map +1 -1
- package/dist/radio/id.js.map +1 -1
- package/dist/radio/memory-segment.d.ts +6 -0
- package/dist/radio/memory-segment.d.ts.map +1 -0
- package/dist/radio/memory-segment.js +2 -0
- package/dist/radio/memory-segment.js.map +1 -0
- package/dist/radio/memory.d.ts +2 -1
- package/dist/radio/memory.d.ts.map +1 -1
- package/dist/radio/memory.js.map +1 -1
- package/dist/radio/radio.d.ts +0 -2
- package/dist/radio/radio.d.ts.map +1 -1
- package/dist/radio/radio.js.map +1 -1
- package/package.json +4 -4
- package/src/radio/id.ts +8 -0
- package/src/radio/memory-segment.ts +5 -0
- package/src/radio/memory.ts +2 -1
- package/src/radio/radio.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## [12.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v11.0.0...v12.0.0) (2025-05-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### ⚠ BREAKING CHANGES
|
|
5
|
+
|
|
6
|
+
* add RadioMemorySegment and make RadioMemory.contents RadioMemorySegment[]
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add RadioMemorySegment and make RadioMemory.contents RadioMemorySegment[] ([df0b320](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/df0b32045107b3b743e44be648a0096e05b84035))
|
|
11
|
+
|
|
12
|
+
## [11.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v10.0.0...v11.0.0) (2025-04-27)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ⚠ BREAKING CHANGES
|
|
16
|
+
|
|
17
|
+
* move radio name and manufacturer to RadioId
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* move radio name and manufacturer to RadioId ([d84b729](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/d84b729366858c3972feee873a0a55661c501e00))
|
|
22
|
+
|
|
1
23
|
## [10.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v9.0.0...v10.0.0) (2025-04-27)
|
|
2
24
|
|
|
3
25
|
|
package/dist/radio/id.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
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;
|
|
12
|
+
name: string;
|
|
13
|
+
manufacturer: string;
|
|
6
14
|
}
|
|
7
15
|
//# sourceMappingURL=id.d.ts.map
|
package/dist/radio/id.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/radio/id.js.map
CHANGED
|
@@ -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}\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 @@
|
|
|
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 @@
|
|
|
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"]}
|
package/dist/radio/memory.d.ts
CHANGED
|
@@ -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:
|
|
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;
|
|
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"}
|
package/dist/radio/memory.js.map
CHANGED
|
@@ -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:
|
|
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/dist/radio/radio.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ import { RadioProgram } from './program.js';
|
|
|
4
4
|
import { RadioSchema } from './schema.js';
|
|
5
5
|
export interface Radio {
|
|
6
6
|
getId(): RadioId;
|
|
7
|
-
getName(): string;
|
|
8
|
-
getManufacturer(): string;
|
|
9
7
|
getSchema(): Promise<RadioSchema>;
|
|
10
8
|
decodeMemory(memory: RadioMemory): RadioProgram;
|
|
11
9
|
encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/radio/radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,KAAK;IACpB,KAAK,IAAI,OAAO,CAAC;IACjB,
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/radio/radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,KAAK;IACpB,KAAK,IAAI,OAAO,CAAC;IACjB,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IAClC,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,YAAY,CAAC;IAChD,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,GAAG,WAAW,CAAC;CACxE"}
|
package/dist/radio/radio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.js","sourceRoot":"","sources":["../../src/radio/radio.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioId } from './id.js';\nimport { RadioMemory } from './memory.js';\nimport { RadioProgram } from './program.js';\nimport { RadioSchema } from './schema.js';\n\nexport interface Radio {\n getId(): RadioId;\n
|
|
1
|
+
{"version":3,"file":"radio.js","sourceRoot":"","sources":["../../src/radio/radio.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioId } from './id.js';\nimport { RadioMemory } from './memory.js';\nimport { RadioProgram } from './program.js';\nimport { RadioSchema } from './schema.js';\n\nexport interface Radio {\n getId(): RadioId;\n getSchema(): Promise<RadioSchema>;\n decodeMemory(memory: RadioMemory): RadioProgram;\n encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springfield/ham-radio-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
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.
|
|
51
|
-
"@commitlint/config-conventional": "19.8.
|
|
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.
|
|
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/radio/id.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
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;
|
|
13
|
+
name: string;
|
|
14
|
+
manufacturer: string;
|
|
7
15
|
}
|
package/src/radio/memory.ts
CHANGED
package/src/radio/radio.ts
CHANGED
|
@@ -5,8 +5,6 @@ import { RadioSchema } from './schema.js';
|
|
|
5
5
|
|
|
6
6
|
export interface Radio {
|
|
7
7
|
getId(): RadioId;
|
|
8
|
-
getName(): string;
|
|
9
|
-
getManufacturer(): string;
|
|
10
8
|
getSchema(): Promise<RadioSchema>;
|
|
11
9
|
decodeMemory(memory: RadioMemory): RadioProgram;
|
|
12
10
|
encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;
|