@nordicsemiconductor/pc-nrfconnect-shared 134.0.0 → 135.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 +7 -0
- package/package.json +2 -2
- package/scripts/release-shared.test.ts +7 -7
- package/scripts/release-shared.ts +3 -1
- package/src/Device/initPacket.ts +1 -1
- package/src/Device/sdfuOperations.ts +4 -4
- package/typings/generated/scripts/release-shared.d.ts.map +1 -1
- package/typings/generated/src/Device/initPacket.d.ts +1 -1
- package/typings/generated/src/Device/initPacket.d.ts.map +1 -1
- package/coverage/cobertura-coverage.xml +0 -9010
- package/typings/nrf-intel-hex.d.ts +0 -58
package/Changelog.md
CHANGED
|
@@ -7,6 +7,13 @@ This project does _not_ adhere to
|
|
|
7
7
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
|
|
8
8
|
every new version is a new major version.
|
|
9
9
|
|
|
10
|
+
## 135.0.0 - 2023-11-29
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Updated `nrf-intel-hex` to the latest version which slightly changed some
|
|
15
|
+
types (from `Buffer` to `Uint8Array`) because this was corrected there.
|
|
16
|
+
|
|
10
17
|
## 134.0.0 - 2023-11-22
|
|
11
18
|
|
|
12
19
|
### Added
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordicsemiconductor/pc-nrfconnect-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "135.0.0",
|
|
4
4
|
"description": "Shared commodities for developing pc-nrfconnect-* packages",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"lodash.range": "3.2.0",
|
|
91
91
|
"mousetrap": "1.6.5",
|
|
92
92
|
"npm-run-all2": "6.0.5",
|
|
93
|
-
"nrf-intel-hex": "^1.
|
|
93
|
+
"nrf-intel-hex": "^1.4.0",
|
|
94
94
|
"postcss": "8.4.24",
|
|
95
95
|
"postcss-modules": "^6.0.0",
|
|
96
96
|
"prettier": "2.8.8",
|
|
@@ -52,7 +52,7 @@ describe('checking Changelod.md', () => {
|
|
|
52
52
|
|
|
53
53
|
All notable changes to this project will be documented in this file.
|
|
54
54
|
|
|
55
|
-
## 34 - 2022-03-10
|
|
55
|
+
## 34.0.0 - 2022-03-10
|
|
56
56
|
|
|
57
57
|
### Changed
|
|
58
58
|
|
|
@@ -72,7 +72,7 @@ All notable changes to this project will be documented in this file.
|
|
|
72
72
|
|
|
73
73
|
All notable changes to this project will be documented in this file.
|
|
74
74
|
|
|
75
|
-
## 33 - 2022-02-01
|
|
75
|
+
## 33.0.0 - 2022-02-01
|
|
76
76
|
|
|
77
77
|
### Changed
|
|
78
78
|
|
|
@@ -92,9 +92,9 @@ All notable changes to this project will be documented in this file.
|
|
|
92
92
|
|
|
93
93
|
All notable changes to this project will be documented in this file.
|
|
94
94
|
|
|
95
|
-
## 34 - 2022-03-10
|
|
95
|
+
## 34.0.0 - 2022-03-10
|
|
96
96
|
|
|
97
|
-
## 33 - 2022-02-01`;
|
|
97
|
+
## 33.0.0 - 2022-02-01`;
|
|
98
98
|
|
|
99
99
|
expect(
|
|
100
100
|
latestEntryIsNotEmpty({
|
|
@@ -110,13 +110,13 @@ describe('Parsing Changelog.md', () => {
|
|
|
110
110
|
|
|
111
111
|
All notable changes to this project will be documented in this file.
|
|
112
112
|
|
|
113
|
-
## 34 - 2023-04-20
|
|
113
|
+
## 34.0.0 - 2023-04-20
|
|
114
114
|
|
|
115
115
|
### Changed
|
|
116
116
|
|
|
117
117
|
- Something
|
|
118
118
|
|
|
119
|
-
## 33 - 2023-04-19
|
|
119
|
+
## 33.0.0 - 2023-04-19
|
|
120
120
|
|
|
121
121
|
### Added
|
|
122
122
|
|
|
@@ -125,7 +125,7 @@ All notable changes to this project will be documented in this file.
|
|
|
125
125
|
|
|
126
126
|
test('Extracting the latest entry', () => {
|
|
127
127
|
expect(getLatestEntry(changelog)).toMatchObject({
|
|
128
|
-
header: '34 - 2023-04-20',
|
|
128
|
+
header: '34.0.0 - 2023-04-20',
|
|
129
129
|
content: '### Changed\n\n- Something',
|
|
130
130
|
});
|
|
131
131
|
});
|
|
@@ -135,7 +135,9 @@ export const latestHeaderIsCorrect = (
|
|
|
135
135
|
changelog: getLatestChangelog(),
|
|
136
136
|
}
|
|
137
137
|
) => {
|
|
138
|
-
const expectedHeaderline = `${expectedVersionNumber} - ${withoutTime(
|
|
138
|
+
const expectedHeaderline = `${expectedVersionNumber}.0.0 - ${withoutTime(
|
|
139
|
+
now
|
|
140
|
+
)}`;
|
|
139
141
|
const actualHeaderline = getLatestEntry(changelog).header;
|
|
140
142
|
|
|
141
143
|
return equality(
|
package/src/Device/initPacket.ts
CHANGED
|
@@ -317,7 +317,7 @@ function parseFirmwareImage(firmware: Buffer | string) {
|
|
|
317
317
|
return memMap.slicePad(
|
|
318
318
|
startAddress,
|
|
319
319
|
Math.ceil((endAddress - startAddress) / 4) * 4
|
|
320
|
-
)
|
|
320
|
+
);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
function calculateSHA256Hash(image: Uint8Array) {
|
|
@@ -327,7 +327,7 @@ function calculateSHA256Hash(image: Uint8Array) {
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
interface DfuData {
|
|
330
|
-
application?: { bin:
|
|
330
|
+
application?: { bin: Uint8Array; dat: Uint8Array };
|
|
331
331
|
softdevice?: { bin: Uint8Array; dat: Uint8Array };
|
|
332
332
|
params?: InitPacket;
|
|
333
333
|
}
|
|
@@ -376,8 +376,8 @@ const createDfuZip = (dfuImages: DfuImage[]) =>
|
|
|
376
376
|
bin_file: 'application.bin',
|
|
377
377
|
dat_file: 'application.dat',
|
|
378
378
|
};
|
|
379
|
-
zip.addFile('application.bin', data.application.bin);
|
|
380
|
-
zip.addFile('application.dat', data.application.dat);
|
|
379
|
+
zip.addFile('application.bin', data.application.bin as Buffer);
|
|
380
|
+
zip.addFile('application.dat', data.application.dat as Buffer);
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
if (data.softdevice) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-shared.d.ts","sourceRoot":"","sources":["../../../scripts/release-shared.ts"],"names":[],"mappings":";AA+CA,eAAO,MAAM,oBAAoB;;;;;YAgBhC,CAAC;AAmBF,eAAO,MAAM,oBAAoB,0BACN,MAAM;oBAtDN,MAAM;;aAqEhC,CAAC;AAIF,eAAO,MAAM,cAAc,cAAe,MAAM;;;CAO/C,CAAC;AAEF,eAAO,MAAM,qBAAqB;oBAId,MAAM,KAAK,IAAI;eACpB,MAAM;aASpB,CAAC;AAIF,eAAO,MAAM,qBAAqB,0BACP,MAAM;oBArGN,MAAM;;;
|
|
1
|
+
{"version":3,"file":"release-shared.d.ts","sourceRoot":"","sources":["../../../scripts/release-shared.ts"],"names":[],"mappings":";AA+CA,eAAO,MAAM,oBAAoB;;;;;YAgBhC,CAAC;AAmBF,eAAO,MAAM,oBAAoB,0BACN,MAAM;oBAtDN,MAAM;;aAqEhC,CAAC;AAIF,eAAO,MAAM,cAAc,cAAe,MAAM;;;CAO/C,CAAC;AAEF,eAAO,MAAM,qBAAqB;oBAId,MAAM,KAAK,IAAI;eACpB,MAAM;aASpB,CAAC;AAIF,eAAO,MAAM,qBAAqB,0BACP,MAAM;oBArGN,MAAM;;;aAuHhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,0BACJ,MAAM;oBA1HN,MAAM;;;aAkIyC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initPacket.d.ts","sourceRoot":"","sources":["../../../../src/Device/initPacket.ts"],"names":[],"mappings":";AAMA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAMlC,oBAAY,MAAM;IACd,WAAW,IAAA;IACX,UAAU,IAAA;IACV,UAAU,IAAA;IACV,qBAAqB,IAAA;CACxB;AAED,oBAAY,QA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