Skip to content

Releases: NordicSemiconductor/pc-nrfconnect-shared

v126

08 Nov 12:39
17b7d92
Compare
Choose a tag to compare

Fixed

  • className property in FileLink component is now optional

v125

08 Nov 12:26
a41e47a
Compare
Choose a tag to compare

Changed

  • className property in FileLink component is now optional

v124

08 Nov 12:19
02b21c6
Compare
Choose a tag to compare

Added

  • className property to FileLink component
  • FileLink will add ellipsis when text overflows

v123

07 Nov 15:56
6a5d19c
Compare
Choose a tag to compare

Added

  • PID to nrfutil device logs when trace is enabled.
  • launcherConfig to retrieve the launcher config in any renderer process.
  • Auto select device with --comPort <path>. Note this will only select the
    device, it will not open a serial connection. App will need to do further
    action if it wants to auto open a serial connection as well to that serial
    port

Changed

  • Analytic events names are now distinct with a prefix of the app name
    <AppName>: e.g npm: or ppk:.
  • <App component no longer provides property reportUsageData and for app
    to enable telemetry they must now use usageData.enableTelemetry()
  • The function to send telemetry data in usageData became async. If you have
    to be sure they completed, you now have to await them.
  • getPersistedTerminalSettings not takes in a device instead of a serial
    number and returns undefined for devices with no serial number
  • persistTerminalSettings not takes in a device instead of a serial number
    and returns undefined for devices with no serial number
  • OpenAppOptions must have serial number or com port path but not both

Fixed

  • Serial port in the device list where not aligned correctly
  • Auto select device when --deviceSerial is provided

Steps to upgrade when using this package

  • In package.json bump engines.nrfconnect to at least >=4.2.2.
  • Remove reportUsageData property if it is set in project. If this was set
    to true add usageData.enableTelemetry() as shown below. For projects like
    launcher add usageData.enableTelemetry() to main and renderer window.
  • When using getPersistedTerminalSettings replace the serialNumber with the
    device in question
  • When using persistTerminalSettings replace the serialNumber with the
    device in question s
import React from 'react';
import { App, render } from '@nordicsemiconductor/pc-nrfconnect-shared';
import usageData from '@nordicsemiconductor/pc-nrfconnect-shared/src/utils/usageData';

usageData.enableTelemetry();

render(<App panes={[]} />);

v122

02 Nov 13:04
610168f
Compare
Choose a tag to compare

Changed

  • nrfutil device list version 2.0.0 no longer probes the device for specific
    information to speed up enumeration and hotplug events.
    • new optional property in device object named devkit
    • .jlink property can be obtained by calling
      NrfutilDeviceLib.deviceInfo().jlink on a Jlink device
    • .hwInfo property can be obtained by calling
      NrfutilDeviceLib.deviceInfo().hwInfo on a device
    • .dfuTriggerVersion property can be obtained by calling
      NrfutilDeviceLib.deviceInfo().dfuTriggerVersion on a Nordic DFU device
    • .dfuTriggerInfo property can be obtained by calling
      NrfutilDeviceLib.deviceInfo().dfuTriggerInfo on a Nordic DFU device

Added

  • NrfutilDeviceLib.deviceInfo to read protocol related device info such as
    JLink and NordicDFU. Note if no info can be read this will throw (e.g.
    mcuboot devices).
  • deviceInfo is populate automatically when a device is selected and can be
    retrieve using the redux selector selectedDeviceInfo.

Fixed

  • Check installed JLink version against expected version given by nrfutil
    (previously this was the version bundled by the launcher).

Steps to upgrade when using this package

  • Change nrfConnectForDesktop.nrfutil.device to 2.0.0.
  • Update all device properties to match the changes above.

v121

24 Oct 08:56
f4b91fe
Compare
Choose a tag to compare

Added

  • NumberInputWithDropdown component, which combines the
    NumberInlineInput and the Dropdown components. Example usage found
    in Baudrate.tsx in pc-nrfconnect-serial-terminal.

Fixed

  • Device might end up stuck in device list of left event occurred while we are
    waiting for device
  • Device setup dialog is closed immediately pressing no to programming it

v120

13 Oct 14:09
cb3d3c8
Compare
Choose a tag to compare

Fixed

  • prepareSandbox() couldn't be called from the launcher any longer. Even
    when the version to install was provided, prepareSandbox() tried to look
    into the package.json, which didn't exist any longer in the launcher,
    because it is only supplied during build time by apps now.

v119

13 Oct 13:40
c20ada8
Compare
Choose a tag to compare

Changed

  • Remove default 3000ms timeout from nrfutil device list

v118

13 Oct 12:07
e35e4e4
Compare
Choose a tag to compare

Added

  • Option to configure external React to support legacy apps in the launcher.

Changed

  • Checking whether the package.json contains all required fields is now also
    down before building.
  • Use zod for the package.json schema for apps. This is used verify that
    apps have the right fields in package.json and also generates the right
    TypeScript type for it.
  • nrfConnectForDesktop.html is not optional anymore, it must always be
    specified in package.json.

v117

04 Oct 16:33
6662019
Compare
Choose a tag to compare

Fixed

  • nrfutil device program did now throw error when files buffers where used