Releases: NordicSemiconductor/pc-nrfconnect-shared
v5.0.1
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
Breaking
-
Require Node.js 14 while building.
-
Require new license and copyright headers: During running
npm run lint
it is now checked, thatLICENSE
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 asnrfconnect-license check
during the automated build to check the license and headers. It can also be ran asnrfconnect-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 fileLICENSE
, 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 runnrfconnect-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
topackage.json
.
- Run
v4.28.3
v4.28.2
Updated
- Added
@nordicsemiconductor/nrf-device-lib-js
in webpack.config.js
v4.28.1
Updated
- Increase padding for
Card
component.
v4.28.0
Updated
- Pin the version of prettier to be used to an exact version, as recommended in the prettier documentation.
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
Fixed
- Exported
colors
object was empty.
v4.27.2
Fixed
- GA events were sent even when the user had not consented.
Restore defaults
button styling insideErrorBoundary
component was broken.
v4.27.1
Fixed
- The tooltip backgroud color and opacity
v4.27.0
Changed
- Use
Card
component introduced in 4.22.0 in theAbout
pan