Releases: nordicsemi/pc-nrfconnect-shared
Releases · nordicsemi/pc-nrfconnect-shared
v245
Added
- Added proto-slot components
Card.Header,Card.Header.Title,Card.Body. - Added support for
classNameandrefonCardand its proto-slot
components. - Added support for
cardTitleClassNameandcardSubtitleClassNameon
Card.Header.Title - nRF54LS05 to the list of the known devices.
Changed
- Upgraded
tailwindto3.4.14to allow for use of min/max width and min/max
height with usual spacing units instead of screen sizes. - Refactored
Cardcomponent to remove dependency on bootstrap and to allow for
more flexibility.
Steps to upgrade when using this package
Migrating the Card component
The title and titleButton are no longer available on Card, and the overall
structure of Card changed. Follow this format:
import { Card } from '@nordicsemiconductor/pc-nrfconnect-shared';
<Card>
<Card.Header className="tw-flex tw-flex-row tw-justify-between">
<Card.Header.Title cardTitle="your title here" />
{ /* your button here */ }
</Card.Header>
<Card.Body>
{ /* your card content here */ }
</Card.Body>
</Card>v244
Changed
- Major upgrade of
esbuildandesbuild-sass-pluginwhich brings along Sass
updates and deprecations.
v243
Fixed
- shared@232 introduced a bug that the
NRFUTIL_*env variables were not
cleared which could cause problems if users set them in their environment.
Changed
- Added an ESLint error if the module 'process' is imported. This is usually not
needed (because it is available as the globalprocess) and might cause
problems (if it is imported asprocessit may hinder replacing NODE_ENV
during compilation).
v242
Added
- Export types
Range,RangeOrValues, andValues, used bySlider.
Changed
- Build scripts:
- Moved artifact generation from
postinstalltoprepareso that
generated artifacts are included in the published package. - Simplified build script for apps.
- Place all generated files in
dist/.
- Moved artifact generation from
- Enabled the ESLint rule
@typescript-eslint/consistent-type-importsto assert
that type imports are always marked as such.
Steps to upgrade when using this package
- The additional linting rule will most likely show that some type imports are
not marked as such. Those should be fixable by running
npm run lint -- --fix.
v241
Added
- Product links for the nRF54LV10 DK.
Changed
- Product links for the nRF9151 SMA DK.
v240
Changed
- Duplicate Tailwind classes and surrounding whitespaces are now removed.
Fixed
- Checking the order of Tailwind classes was not done anymore.
v239
Added
- Link to the nRF54LM20 DK product page.
Changed
- The width of buttons with the variants
primary,success,info,
warning, anddangeris slightly increased to match the width of the
variantsecondary.
v238
Fixed
- A typo in
Groupprops.
Steps to upgrade when using this package
- Rename prop
collapseStatePersistanceIdtocollapseStatePersistenceId
everywhere it is used. Running the type check will highlight remaining
occurrences. No data migration is needed; only the prop name changed.
v237
Changed
- The logger now also supports being used in the renderer process of the
launcher.
v236
Changed
- In a
ConfirmationDialoga cancel button is only displayed ifonCancelis
defined (before it was mandatory to define it).