@springfield/ham-radio-api 8.0.0 → 9.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,14 @@
1
+ ## [9.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v8.0.0...v9.0.0) (2025-04-20)
2
+
3
+
4
+ ### ⚠ BREAKING CHANGES
5
+
6
+ * update RadioModel interface to use properties instead of getter methods
7
+
8
+ ### Features
9
+
10
+ * update RadioModel interface to use properties instead of getter methods ([fe0c930](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/fe0c930ea6da1be01d0ead7bdc217546954fa04f))
11
+
1
12
  ## [8.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v7.0.0...v8.0.0) (2025-04-12)
2
13
 
3
14
 
@@ -4,10 +4,10 @@ import { RadioMemory } from './memory.js';
4
4
  import { RadioProgram } from './program.js';
5
5
  import { RadioSchema } from './schema.js';
6
6
  export interface RadioModel {
7
- getId(): RadioModelId;
8
- getModuleId(): RadioModuleId;
9
- getName(): string;
10
- getManufacturer(): string;
7
+ id: RadioModelId;
8
+ module: RadioModuleId;
9
+ name: string;
10
+ manufacturer: string;
11
11
  getSchema(): Promise<RadioSchema>;
12
12
  decodeMemory(memory: RadioMemory): RadioProgram;
13
13
  encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,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,UAAU;IACzB,KAAK,IAAI,YAAY,CAAC;IACtB,WAAW,IAAI,aAAa,CAAC;IAC7B,OAAO,IAAI,MAAM,CAAC;IAClB,eAAe,IAAI,MAAM,CAAC;IAC1B,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"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,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,UAAU;IACzB,EAAE,EAAE,YAAY,CAAC;IACjB,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioModelId } from '../branded-types/radio-model-id.js';\nimport { RadioModuleId } from '../branded-types/radio-module-id.js';\nimport { RadioMemory } from './memory.js';\nimport { RadioProgram } from './program.js';\nimport { RadioSchema } from './schema.js';\n\nexport interface RadioModel {\n getId(): RadioModelId;\n getModuleId(): RadioModuleId;\n getName(): string;\n getManufacturer(): string;\n getSchema(): Promise<RadioSchema>;\n decodeMemory(memory: RadioMemory): RadioProgram;\n encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;\n}\n"]}
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioModelId } from '../branded-types/radio-model-id.js';\nimport { RadioModuleId } from '../branded-types/radio-module-id.js';\nimport { RadioMemory } from './memory.js';\nimport { RadioProgram } from './program.js';\nimport { RadioSchema } from './schema.js';\n\nexport interface RadioModel {\n id: RadioModelId;\n module: RadioModuleId;\n name: string;\n manufacturer: string;\n getSchema(): Promise<RadioSchema>;\n decodeMemory(memory: RadioMemory): RadioProgram;\n encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;\n}\n"]}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@springfield/ham-radio-api",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "author": "Bryan Hunt",
5
- "packageManager": "yarn@4.9.0",
5
+ "packageManager": "yarn@4.9.1",
6
6
  "main": "dist/index.js",
7
7
  "type": "module",
8
8
  "types": "dist/index.d.ts",
@@ -5,10 +5,10 @@ import { RadioProgram } from './program.js';
5
5
  import { RadioSchema } from './schema.js';
6
6
 
7
7
  export interface RadioModel {
8
- getId(): RadioModelId;
9
- getModuleId(): RadioModuleId;
10
- getName(): string;
11
- getManufacturer(): string;
8
+ id: RadioModelId;
9
+ module: RadioModuleId;
10
+ name: string;
11
+ manufacturer: string;
12
12
  getSchema(): Promise<RadioSchema>;
13
13
  decodeMemory(memory: RadioMemory): RadioProgram;
14
14
  encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;