Releases: NordicSemiconductor/pc-nrfconnect-shared
Releases · NordicSemiconductor/pc-nrfconnect-shared
v5.5.2
v5.5.1
v5.4.2
Added
- Some basic tests for
Dropdown
Changed
- Typescript definitions for
Dropdown
- Use CSS Modules for
Dropdown
v5.4.1
Changed
- Dropdown component now takes a list of items with a
value
andlabel
(displayed name)
v5.4.0
Added
- Property
deviceFilter
onDeviceSelector
to filter which devices are shown.
v5.3.2
Fixed
- Removed the outdated externals
pc-nrfjprog-js
,usb
, andnrf-device-setup
from the webpack config for apps. - Handle trailing slashes in
.gitignore
correctly inbin/nrfconnect-license.mjs
.
v5.3.1
v5.2.1
v5.2.0
Added
- Render children of the component
App
. Children of the componentApp
usually should not render to something that is directly visible on the screen, as this would break the normal layout of the app. There are mainly two use cases:- Components like dialogs, which are displayed outside of the normal render flow.
- Components which are displayed not at all, but are rendered just for other means, e.g. to dispatch Redux actions when the App is started.
Changed
- Enabled two additional ESLint rules:
require-await
, to disallow async functions which have no await expression.react/jsx-key
, to check that a key property is used for lists in JSX.
Fixed
- The property
allowCustomDevice
was used but missing in the type and props definitions for DeviceSetup. - Run complete setup for custom devices.
Steps to upgrade when using this package
- The two newly enabled ESLint rules
require-await
andreact/jsx-key
may require you to update some code. Please note that you should not blindly remove anasync
in front of a function if there is noawait
in it: When you have other code which depends on this function returning a Promise (e.g. by calling.then
on the returned object), then you also need to change that code.
v5.1.1
Added
- Expose functions for USB serial DFU