Skip to content

Releases: nordicsemi/pc-nrfconnect-shared

v245

21 Apr 11:41
4459009

Choose a tag to compare

Added

  • Added proto-slot components Card.Header, Card.Header.Title, Card.Body.
  • Added support for className and ref on Card and its proto-slot
    components.
  • Added support for cardTitleClassName and cardSubtitleClassName on
    Card.Header.Title
  • nRF54LS05 to the list of the known devices.

Changed

  • Upgraded tailwind to 3.4.14 to allow for use of min/max width and min/max
    height with usual spacing units instead of screen sizes.
  • Refactored Card component 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

22 Jan 09:39
83b06ca

Choose a tag to compare

Changed

  • Major upgrade of esbuild and esbuild-sass-plugin which brings along Sass
    updates and deprecations.

v243

22 Jan 09:25
38bd371

Choose a tag to compare

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 global process) and might cause
    problems (if it is imported as process it may hinder replacing NODE_ENV
    during compilation).

v242

20 Jan 16:40
b2bfe04

Choose a tag to compare

Added

  • Export types Range, RangeOrValues, and Values, used by Slider.

Changed

  • Build scripts:
    • Moved artifact generation from postinstall to prepare so that
      generated artifacts are included in the published package.
    • Simplified build script for apps.
    • Place all generated files in dist/.
  • Enabled the ESLint rule @typescript-eslint/consistent-type-imports to 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

12 Dec 01:12
75aa8c7

Choose a tag to compare

Added

  • Product links for the nRF54LV10 DK.

Changed

  • Product links for the nRF9151 SMA DK.

v240

02 Dec 14:06
5d8b46b

Choose a tag to compare

Changed

  • Duplicate Tailwind classes and surrounding whitespaces are now removed.

Fixed

  • Checking the order of Tailwind classes was not done anymore.

v239

12 Nov 17:22
5696ac5

Choose a tag to compare

Added

  • Link to the nRF54LM20 DK product page.

Changed

  • The width of buttons with the variants primary, success, info,
    warning, and danger is slightly increased to match the width of the
    variant secondary.

v238

12 Nov 13:50
9dfc87d

Choose a tag to compare

Fixed

  • A typo in Group props.

Steps to upgrade when using this package

  • Rename prop collapseStatePersistanceId to collapseStatePersistenceId
    everywhere it is used. Running the type check will highlight remaining
    occurrences. No data migration is needed; only the prop name changed.

v237

12 Nov 09:47
7f04fa3

Choose a tag to compare

Changed

  • The logger now also supports being used in the renderer process of the
    launcher.

v236

07 Nov 14:10
d635e16

Choose a tag to compare

Changed

  • In a ConfirmationDialog a cancel button is only displayed if onCancel is
    defined (before it was mandatory to define it).