@nordicsemiconductor/pc-nrfconnect-shared 206.0.0 → 207.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
@@ -7,6 +7,18 @@ 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
+ ## 207.0.0 - 2025-04-08
11
+
12
+ ### Added
13
+
14
+ - Logging `onDeviceDisconnected`, `onDeviceConnected` and `onDeviceIsReady`
15
+ events.
16
+
17
+ ### Steps to upgrade when using this package
18
+
19
+ - Remove logging of `onDeviceDisconnected`, `onDeviceConnected` and
20
+ `onDeviceIsReady` events.
21
+
10
22
  ## 206.0.0 - 2025-04-08
11
23
 
12
24
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "206.0.0",
3
+ "version": "207.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -184,7 +184,12 @@ export default ({
184
184
  startWatchingDevices(
185
185
  deviceListing,
186
186
  onDeviceConnected,
187
- onDeviceDisconnected,
187
+ device => {
188
+ logger.info(
189
+ `Device connected with the serial number ${device.serialNumber}`
190
+ );
191
+ onDeviceDisconnected(device);
192
+ },
188
193
  onDeviceDeselected,
189
194
  doSelectDevice
190
195
  )
@@ -226,6 +226,9 @@ export const startWatchingDevices =
226
226
  d.serialNumber === device.serialNumber)
227
227
  )
228
228
  ) {
229
+ logger.info(
230
+ `Device connected with the serial number ${device.serialNumber}`
231
+ );
229
232
  onDeviceConnected(device);
230
233
  }
231
234
 
@@ -83,6 +83,10 @@ export const prepareDevice =
83
83
  ): AppThunk<RootState, Promise<void>> =>
84
84
  async dispatch => {
85
85
  const onSuccessWrapper = (d: Device) => {
86
+ logger.info(
87
+ `Connected to the device with the serial number ${device.serialNumber} ` +
88
+ `and family: ${device.devkit?.deviceFamily || 'Unknown'} `
89
+ );
86
90
  onSuccess(d);
87
91
  dispatch(closeDeviceSetupDialog());
88
92
  };
@@ -99,10 +103,6 @@ export const prepareDevice =
99
103
  .flat();
100
104
 
101
105
  if (possibleFirmware.length === 0) {
102
- logger.info(
103
- `Connected to device with the serial number ${device.serialNumber} ` +
104
- `and family: ${device.devkit?.deviceFamily || 'Unknown'} `
105
- );
106
106
  if (deviceSetupConfig.allowCustomDevice) {
107
107
  logger.info(
108
108
  'Note: no pre-compiled firmware is available for the selected device. ' +
@@ -1 +1 @@
1
- {"version":3,"file":"DeviceSelector.d.ts","sourceRoot":"","sources":["../../../../../src/Device/DeviceSelector/DeviceSelector.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAe9D,OAAO,EAAE,iBAAiB,EAAe,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EAGH,MAAM,EAQT,MAAM,gBAAgB,CAAC;AAMxB,MAAM,WAAW,KAAK;IAClB,aAAa,EAAE,YAAY,CAAC;IAC5B,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,gBAAgB,CAAC,EAAE,CACf,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,OAAO,EACvB,eAAe,EAAE,eAAe,KAC/B,IAAI,CAAC;IACV,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,uBAAuB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1C;kPAeE,KAAK;AAZR,wBA+NE"}
1
+ {"version":3,"file":"DeviceSelector.d.ts","sourceRoot":"","sources":["../../../../../src/Device/DeviceSelector/DeviceSelector.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAe9D,OAAO,EAAE,iBAAiB,EAAe,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EAGH,MAAM,EAQT,MAAM,gBAAgB,CAAC;AAMxB,MAAM,WAAW,KAAK;IAClB,aAAa,EAAE,YAAY,CAAC;IAC5B,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,gBAAgB,CAAC,EAAE,CACf,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,OAAO,EACvB,eAAe,EAAE,eAAe,KAC/B,IAAI,CAAC;IACV,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,uBAAuB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1C;kPAeE,KAAK;AAZR,wBAoOE"}
@@ -1 +1 @@
1
- {"version":3,"file":"deviceLister.d.ts","sourceRoot":"","sources":["../../../../src/Device/deviceLister.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,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