Skip to content

Releases: NordicSemiconductor/pc-nrfconnect-shared

v5.0.1

17 Sep 08:44
dadf653
Compare
Choose a tag to compare

Fixed

  • Format of library version from nrf-device-lib-js.
  • Reset not longer need to be called explicitly since it's been fixed in nrf-device-lib.
  • API firmwareProgram breaks due to argument type change.

v5.0.0

15 Sep 11:35
e6c7739
Compare
Choose a tag to compare

Breaking

  • Require Node.js 14 while building.

  • Require new license and copyright headers: During running npm run lint it is now checked, that LICENSE has the right content for a nRF Connect for Desktop program from Nordic Semiconductors and that all source files have the short copyright header, which references the license. The license should be the same as before, just adding the license identifier.

    There is a new script nrfconnect-license which is automatically ran as nrfconnect-license check during the automated build to check the license and headers. It can also be ran as nrfconnect-license update to add copyright headers to all files which currently either do not have such a header at all or have the known old copyright header.

    If there is a comment at the beginning of a file, which is not recognised as the known old copyright header, then the script plays it safe and does not touch the file. So in these cases (which can also happen if there is an ESLint directive) you have to inspect the file manually. The script does recognise and preserve a shebang line (one starting with #!) at the beginning of files. The script also does not touch the file LICENSE, you are supposed to update that manually.

Added

  • @nordicsemiconductor/nrf-device-lib-js in dependencies and devDependencies
  • Device lister implemented with nrf-device-lib-js
  • Device setup implemented with nrf-device-lib-js
  • Log the versions of our low level libraries.
  • Component Dropdown.

Changed

  • Run the different checks (ESLint, TypeScript types and correct copyrights) during npm run lint in parallel. This makes them run faster but especially also makes them fail faster, because e.g. a missing copyright header can be detected faster than wrong types.
  • Disabled ESLint rule import/prefer-default-export.

Fixed

  • CSS issue where hidden content was scrollable.
  • Correct name of Nordic Thingy:91 in the device selector.

Steps to upgrade when using this package

  • Remove manual overrides that disable the ESLint rule import/prefer-default-export.
  • To accommodate for the new Node requirement, make sure you have at least Node.js 14 while developing. The azure-pipelines.yml may also need to be updated.
  • The new license check will probably fail for a lot of source files initially.
    • Run nrfconnect-license update to update most of them. Afterwards run nrfconnect-license check to inspect which still need manual inspection. Commit all these copyright changes in a commit together without any other changes, to make it easier for other folks to understand the commits.
    • If you do not develop a public nRF Connect for Desktop program from Nordic Semiconductors, you might want to turn off the license check. Do so by adding "disableLicenseCheck": false to package.json.

v4.28.3

11 Aug 13:35
c8b92c3
Compare
Choose a tag to compare

Fixed

  • Correct a typing for devices

Changed

  • Exposes deviceInfo

v4.28.2

19 Jul 10:49
fa8ae8c
Compare
Choose a tag to compare

Updated

  • Added @nordicsemiconductor/nrf-device-lib-js in webpack.config.js

v4.28.1

24 Jun 08:52
3b906dc
Compare
Choose a tag to compare

Updated

  • Increase padding for Card component.

v4.28.0

21 Jun 16:54
a704d2a
Compare
Choose a tag to compare

Updated

Steps to upgrade when using this package

  • If you are using an older prettier version than 2.3.0, upgrading to this version of shared can likely cause linting to fail due to formatting errors. The majority of these can be fixed automatically, by running npm run lint -- --fix.

v4.27.3

21 Jun 12:45
1471cdd
Compare
Choose a tag to compare

Fixed

  • Exported colors object was empty.

v4.27.2

15 Jun 12:11
f57d413
Compare
Choose a tag to compare

Fixed

  • GA events were sent even when the user had not consented.
  • Restore defaults button styling inside ErrorBoundary component was broken.

v4.27.1

14 Jun 07:27
829e75e
Compare
Choose a tag to compare

Fixed

  • The tooltip backgroud color and opacity

v4.27.0

14 Jun 07:27
Compare
Choose a tag to compare

Changed

  • Use Card component introduced in 4.22.0 in the About pan