@nordicsemiconductor/pc-nrfconnect-shared 186.0.0 → 188.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 +19 -0
- package/nrfutil/device/logLibVersions.ts +1 -1
- package/nrfutil/moduleVersion.ts +1 -1
- package/nrfutil/modules.ts +3 -3
- package/nrfutil/sandbox.ts +6 -4
- package/package.json +6 -6
- package/scripts/nordic-publish.js +25 -25
- package/src/About/SupportCard.tsx +2 -2
- package/src/Device/DeviceSelector/DeviceList/DeviceList.tsx +2 -2
- package/src/Device/DeviceSelector/DeviceSelector.test.tsx +3 -3
- package/src/Device/DeviceSelector/DeviceSelector.tsx +1 -1
- package/src/Device/deviceLister.ts +45 -3
- package/src/Device/deviceSetup.ts +6 -6
- package/src/Device/deviceSlice.ts +2 -36
- package/src/Device/jprogOperations.ts +3 -3
- package/src/Device/sdfuOperations.ts +13 -11
- package/src/Log/logSlice.ts +1 -1
- package/src/Parsers/shellParser.ts +1 -1
- package/src/SerialPort/ConflictingSettingsDialog.tsx +2 -2
- package/src/logging/index.ts +2 -2
- package/src/utils/persistentStore.ts +2 -2
- package/src/utils/systemReport.ts +1 -1
- package/typings/generated/ipc/schema/packageJson.d.ts +41 -20
- package/typings/generated/ipc/schema/packageJson.d.ts.map +1 -1
- package/typings/generated/ipc/schema/parseJson.d.ts +1 -0
- package/typings/generated/ipc/schema/parseJson.d.ts.map +1 -1
- package/typings/generated/nrfutil/sandbox.d.ts.map +1 -1
- package/typings/generated/src/Device/deviceLister.d.ts.map +1 -1
- package/typings/generated/src/Device/deviceSlice.d.ts.map +1 -1
- package/typings/generated/src/Device/sdfuOperations.d.ts.map +1 -1
- package/typings/generated/src/Parsers/shellParser.d.ts +1 -1
- package/typings/generated/src/Parsers/shellParser.d.ts.map +1 -1
package/Changelog.md
CHANGED
|
@@ -7,6 +7,25 @@ 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
|
+
## 188.0.0 - 2024-10-15
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Update JLink macOS install link pointing from `V794e` to `V794i`.
|
|
15
|
+
- Update `@xterm/headless`, `electron`, `serialport`, `applicationinsights`
|
|
16
|
+
dependencies.
|
|
17
|
+
|
|
18
|
+
### Steps to upgrade when using this package
|
|
19
|
+
|
|
20
|
+
- Update imports of the `Terminal` from `xterm-headless` to `@xterm/headless`
|
|
21
|
+
if applicable.
|
|
22
|
+
|
|
23
|
+
## 187.0.0 - 2024-10-04
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- Auto connecting from CLI for device that has persisted data.
|
|
28
|
+
|
|
10
29
|
## 186.0.0 - 2024-10-03
|
|
11
30
|
|
|
12
31
|
### Changed
|
|
@@ -108,7 +108,7 @@ export default async (moduleVersion: ModuleVersion) => {
|
|
|
108
108
|
`It looks like you have installed JLink using ${JLinkInstallerVersion}, but currently we only support their Universal Installer for your system.`
|
|
109
109
|
);
|
|
110
110
|
logger?.warn(
|
|
111
|
-
`Please install JLink: https://www.segger.com/downloads/jlink/
|
|
111
|
+
`Please install JLink: https://www.segger.com/downloads/jlink/JLink_MacOSX_V794i_universal.pkg`
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
114
|
}
|
package/nrfutil/moduleVersion.ts
CHANGED
|
@@ -92,7 +92,7 @@ const versionFromPackageJson = (module: string) =>
|
|
|
92
92
|
packageJsonApp().nrfConnectForDesktop.nrfutil?.[module][0];
|
|
93
93
|
|
|
94
94
|
const failToDetermineVersion = (module: string) => {
|
|
95
|
-
throw new Error(`No version specified for nrfutil
|
|
95
|
+
throw new Error(`No version specified for the bundled nrfutil ${module}`);
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
export const versionToInstall = (module: string, version?: string) =>
|
package/nrfutil/modules.ts
CHANGED
|
@@ -21,7 +21,7 @@ const logModuleVersions = (module: string, moduleSandbox: NrfutilSandbox) => {
|
|
|
21
21
|
} else {
|
|
22
22
|
moduleSandbox.getModuleVersion().then(moduleVersion => {
|
|
23
23
|
getNrfutilLogger()?.info(
|
|
24
|
-
`Using ${module} version: ${describeVersion(
|
|
24
|
+
`Using the bundled nrfutil ${module} version: ${describeVersion(
|
|
25
25
|
moduleVersion.version
|
|
26
26
|
)}`
|
|
27
27
|
);
|
|
@@ -30,7 +30,7 @@ const logModuleVersions = (module: string, moduleSandbox: NrfutilSandbox) => {
|
|
|
30
30
|
|
|
31
31
|
moduleSandbox.getCoreVersion().then(moduleVersion => {
|
|
32
32
|
getNrfutilLogger()?.info(
|
|
33
|
-
`Using nrfutil
|
|
33
|
+
`Using the bundled core version for nrfutil ${module}: ${describeVersion(
|
|
34
34
|
moduleVersion.version
|
|
35
35
|
)}`
|
|
36
36
|
);
|
|
@@ -78,7 +78,7 @@ const getModuleSandbox = (module: string) => {
|
|
|
78
78
|
let promiseModuleSandbox: Promise<NrfutilSandbox> | undefined;
|
|
79
79
|
|
|
80
80
|
const createModuleSandbox = async () => {
|
|
81
|
-
getNrfutilLogger()?.info(`Initialising nrfutil
|
|
81
|
+
getNrfutilLogger()?.info(`Initialising the bundled nrfutil ${module}`);
|
|
82
82
|
promiseModuleSandbox = sandbox(
|
|
83
83
|
getUserDataDir(),
|
|
84
84
|
module,
|
package/nrfutil/sandbox.ts
CHANGED
|
@@ -207,7 +207,7 @@ export class NrfutilSandbox {
|
|
|
207
207
|
onProgress
|
|
208
208
|
);
|
|
209
209
|
getNrfutilLogger()?.info(
|
|
210
|
-
`Successfully installed nrfutil
|
|
210
|
+
`Successfully installed nrfutil ${this.module} version: ${this.version}`
|
|
211
211
|
);
|
|
212
212
|
} catch (error) {
|
|
213
213
|
if (this.env.NRFUTIL_HOME && fs.existsSync(this.env.NRFUTIL_HOME)) {
|
|
@@ -218,7 +218,7 @@ export class NrfutilSandbox {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
getNrfutilLogger()?.error(
|
|
221
|
-
`Error while installing nrfutil
|
|
221
|
+
`Error while installing nrfutil ${this.module} version: ${
|
|
222
222
|
this.version
|
|
223
223
|
}. describeError: ${describeError(error)}`
|
|
224
224
|
);
|
|
@@ -233,7 +233,9 @@ export class NrfutilSandbox {
|
|
|
233
233
|
await this.spawnNrfutil('self-upgrade', [], onProgress);
|
|
234
234
|
} catch (error) {
|
|
235
235
|
// User might not have internet hance fail silently
|
|
236
|
-
getNrfutilLogger()?.error(
|
|
236
|
+
getNrfutilLogger()?.error(
|
|
237
|
+
`Error while updating the bundled core for nrfutil ${this.module}.`
|
|
238
|
+
);
|
|
237
239
|
}
|
|
238
240
|
};
|
|
239
241
|
|
|
@@ -574,7 +576,7 @@ export class NrfutilSandbox {
|
|
|
574
576
|
|
|
575
577
|
const listener = () => {
|
|
576
578
|
getNrfutilLogger()?.info(
|
|
577
|
-
`Aborting ongoing nrfutil ${
|
|
579
|
+
`Aborting the ongoing command nrfutil ${
|
|
578
580
|
this.module
|
|
579
581
|
} ${command} ${JSON.stringify(args)}`
|
|
580
582
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordicsemiconductor/pc-nrfconnect-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "188.0.0",
|
|
4
4
|
"description": "Shared commodities for developing pc-nrfconnect-* packages",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@mdi/font": "7.2.96",
|
|
34
34
|
"@mdi/js": "^7.2.96",
|
|
35
35
|
"@mdi/react": "^1.6.1",
|
|
36
|
-
"@microsoft/applicationinsights-web": "^3.0.
|
|
36
|
+
"@microsoft/applicationinsights-web": "^3.0.9",
|
|
37
37
|
"@reduxjs/toolkit": "1.9.3",
|
|
38
38
|
"@svgr/core": "^7.0.0",
|
|
39
39
|
"@svgr/plugin-jsx": "7.0.0",
|
|
@@ -56,13 +56,14 @@
|
|
|
56
56
|
"@types/uuid": "8.3.4",
|
|
57
57
|
"@typescript-eslint/eslint-plugin": "5.57.1",
|
|
58
58
|
"@typescript-eslint/parser": "5.57.1",
|
|
59
|
+
"@xterm/headless": "^5.5.0",
|
|
59
60
|
"adm-zip": "^0.5.5",
|
|
60
|
-
"applicationinsights": "^2.9.
|
|
61
|
+
"applicationinsights": "^2.9.6",
|
|
61
62
|
"autoprefixer": "10.4.14",
|
|
62
63
|
"bootstrap": "4.6.2",
|
|
63
64
|
"commander": "10.0.0",
|
|
64
65
|
"date-fns": "2.29.3",
|
|
65
|
-
"electron": "^
|
|
66
|
+
"electron": "^32.1.2",
|
|
66
67
|
"electron-store": "8.1.0",
|
|
67
68
|
"esbuild": "0.19.2",
|
|
68
69
|
"esbuild-sass-plugin": "2.13.0",
|
|
@@ -111,7 +112,7 @@
|
|
|
111
112
|
"rimraf": "3.0.2",
|
|
112
113
|
"roboto-fontface": "0.10.0",
|
|
113
114
|
"semver": "7.3.8",
|
|
114
|
-
"serialport": "^
|
|
115
|
+
"serialport": "^12.0.0",
|
|
115
116
|
"shasum": "1.0.2",
|
|
116
117
|
"systeminformation": "5.17.12",
|
|
117
118
|
"tailwindcss": "3.3.2",
|
|
@@ -121,7 +122,6 @@
|
|
|
121
122
|
"util": "0.12.5",
|
|
122
123
|
"uuid": "8.3.2",
|
|
123
124
|
"winston": "3.8.2",
|
|
124
|
-
"xterm-headless": "^5.3.0",
|
|
125
125
|
"zod": "^3.22.2",
|
|
126
126
|
"zod-validation-error": "^1.5.0"
|
|
127
127
|
},
|