@springfield/ham-radio-utils 3.1.0 → 3.2.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,16 @@
1
+ ## <small>3.2.1 (2025-10-15)</small>
2
+
3
+ * Merge branch 'renovate/loglayer-6.x' into 'main' ([146abba](https://gitlab.com/springfield-ham-radio/app/ham-radio-utils/commit/146abba))
4
+ * Merge branch 'renovate/semantic-release-monorepo' into 'main' ([15acc48](https://gitlab.com/springfield-ham-radio/app/ham-radio-utils/commit/15acc48))
5
+ * Merge branch 'renovate/yarn-monorepo' into 'main' ([594bf44](https://gitlab.com/springfield-ham-radio/app/ham-radio-utils/commit/594bf44))
6
+ * fix(deps): update dependency loglayer to ^6.9.1 ([bc734cc](https://gitlab.com/springfield-ham-radio/app/ham-radio-utils/commit/bc734cc))
7
+ * chore(deps): update dependency @semantic-release/gitlab to v13.2.9 ([c07f157](https://gitlab.com/springfield-ham-radio/app/ham-radio-utils/commit/c07f157))
8
+ * chore(deps): update yarn to v4.10.3 ([1187dba](https://gitlab.com/springfield-ham-radio/app/ham-radio-utils/commit/1187dba))
9
+
10
+ ## 3.2.0 (2025-09-14)
11
+
12
+ * feat: update @springfield/ham-radio-api to ^16.3.0 and add addressEndianness to radio protocol schem ([6b8d9da](https://gitlab.com/springfield-ham-radio/app/ham-radio-utils/commit/6b8d9da))
13
+
1
14
  ## 3.1.0 (2025-09-13)
2
15
 
3
16
  * feat(deps): update @springfield/ham-radio-api to ^16.2.0 and add addressSize to radio protocol schem ([7ebcb7b](https://gitlab.com/springfield-ham-radio/app/ham-radio-utils/commit/7ebcb7b))
@@ -129,6 +129,7 @@
129
129
  "required": [
130
130
  "chunkSize",
131
131
  "addressSize",
132
+ "addressEndianness",
132
133
  "segments"
133
134
  ],
134
135
  "properties": {
@@ -143,6 +144,14 @@
143
144
  "minimum": 1,
144
145
  "maximum": 4
145
146
  },
147
+ "addressEndianness": {
148
+ "type": "string",
149
+ "description": "Byte order for address values in memory operations",
150
+ "enum": [
151
+ "big",
152
+ "little"
153
+ ]
154
+ },
146
155
  "segments": {
147
156
  "type": "object",
148
157
  "description": "Memory segment definitions",
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@springfield/ham-radio-utils",
3
- "version": "3.1.0",
3
+ "version": "3.2.1",
4
4
  "author": "Bryan Hunt",
5
5
  "license": "MIT",
6
- "packageManager": "yarn@4.9.4",
6
+ "packageManager": "yarn@4.10.3",
7
7
  "readme": "README.md",
8
8
  "type": "module",
9
9
  "main": "dist/index.js",
@@ -51,11 +51,11 @@
51
51
  "access": "public"
52
52
  },
53
53
  "dependencies": {
54
- "@springfield/ham-radio-api": "^16.2.0",
54
+ "@springfield/ham-radio-api": "^16.3.0",
55
55
  "ajv": "^8.17.1",
56
56
  "ajv-formats": "^3.0.1",
57
57
  "fishery": "^2.3.1",
58
- "loglayer": "^6.7.0",
58
+ "loglayer": "^6.9.1",
59
59
  "sprintf-js": "^1.1.3"
60
60
  },
61
61
  "devDependencies": {
@@ -63,7 +63,7 @@
63
63
  "@commitlint/config-conventional": "19.8.1",
64
64
  "@semantic-release/changelog": "6.0.3",
65
65
  "@semantic-release/git": "10.0.1",
66
- "@semantic-release/gitlab": "13.2.8",
66
+ "@semantic-release/gitlab": "13.2.9",
67
67
  "@types/chai": "5.2.2",
68
68
  "@types/sprintf-js": "1.1.4",
69
69
  "chai": "6.0.1",
@@ -129,6 +129,7 @@
129
129
  "required": [
130
130
  "chunkSize",
131
131
  "addressSize",
132
+ "addressEndianness",
132
133
  "segments"
133
134
  ],
134
135
  "properties": {
@@ -143,6 +144,14 @@
143
144
  "minimum": 1,
144
145
  "maximum": 4
145
146
  },
147
+ "addressEndianness": {
148
+ "type": "string",
149
+ "description": "Byte order for address values in memory operations",
150
+ "enum": [
151
+ "big",
152
+ "little"
153
+ ]
154
+ },
146
155
  "segments": {
147
156
  "type": "object",
148
157
  "description": "Memory segment definitions",
@@ -1,2 +0,0 @@
1
- export declare const bcdToNumber: (data: Uint8Array, offset?: number, length?: number) => number;
2
- //# sourceMappingURL=bcd-to-number.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bcd-to-number.d.ts","sourceRoot":"","sources":["../../src/utils/bcd-to-number.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,MAAM,UAAU,EAAE,SAAS,MAAM,EAAE,SAAS,MAAM,KAAG,MAShF,CAAC"}
@@ -1,9 +0,0 @@
1
- export const bcdToNumber = (data, offset, length) => {
2
- let bcd = 0;
3
- const size = length ?? data.length;
4
- for (let i = offset ?? 0; i < size; i++) {
5
- bcd |= data[i] << (8 * i);
6
- }
7
- return parseInt(bcd.toString(16), 10) * 10;
8
- };
9
- //# sourceMappingURL=bcd-to-number.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bcd-to-number.js","sourceRoot":"","sources":["../../src/utils/bcd-to-number.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAgB,EAAE,MAAe,EAAE,MAAe,EAAU,EAAE;IACxF,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,MAAM,IAAI,GAAG,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC;IAEnC,KAAK,IAAI,CAAC,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC;QACxC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,CAAC;IAED,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC;AAC7C,CAAC,CAAC","sourcesContent":["export const bcdToNumber = (data: Uint8Array, offset?: number, length?: number): number => {\n let bcd = 0;\n const size = length ?? data.length;\n\n for (let i = offset ?? 0; i < size; i++) {\n bcd |= data[i] << (8 * i);\n }\n\n return parseInt(bcd.toString(16), 10) * 10;\n};\n"]}
@@ -1,2 +0,0 @@
1
- export declare const numberToBcd: (value: number) => Uint8Array;
2
- //# sourceMappingURL=number-to-bcd.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number-to-bcd.d.ts","sourceRoot":"","sources":["../../src/utils/number-to-bcd.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,UAc3C,CAAC"}
@@ -1,12 +0,0 @@
1
- export const numberToBcd = (value) => {
2
- const digits = value.toString(10);
3
- const numberOfBytes = Math.ceil(digits.length / 2);
4
- const data = new Uint8Array(numberOfBytes);
5
- let bcd = parseInt(digits, 16);
6
- for (let i = 0; i < numberOfBytes; i++) {
7
- data[i] = bcd & 0xff;
8
- bcd >>= 8;
9
- }
10
- return data;
11
- };
12
- //# sourceMappingURL=number-to-bcd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number-to-bcd.js","sourceRoot":"","sources":["../../src/utils/number-to-bcd.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAa,EAAc,EAAE;IACvD,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAClC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAEnD,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,aAAa,CAAC,CAAC;IAE3C,IAAI,GAAG,GAAG,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAE/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC;QACrB,GAAG,KAAK,CAAC,CAAC;IACZ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["export const numberToBcd = (value: number): Uint8Array => {\n const digits = value.toString(10);\n const numberOfBytes = Math.ceil(digits.length / 2);\n\n const data = new Uint8Array(numberOfBytes);\n\n let bcd = parseInt(digits, 16);\n\n for (let i = 0; i < numberOfBytes; i++) {\n data[i] = bcd & 0xff;\n bcd >>= 8;\n }\n\n return data;\n};\n"]}