This PR adds Node 16 support to lp-components. Additionally many of this module's dependencies were updated to the appropriate compatible version. Note the following updates were not made and should be addressed by future PRs:
While the storybook dependencies were updated, the files used to configure storybook will soon be deprecated. That should be addressed along with a upgrade to a storybook version that supports web pack ^5.0.0.
The "knobs" plug-in for storybook was deprecated and should be replaced with "controls".
react-router was not upgraded. The support for before/change hooks used in AuthorizedRoute and UnauthorizedRoute components is obsolete and should be refactored, like using React hooks (useEffect())
DateInput was not upgraded. This component uses moment under the hood. Newer versions of react-datepicker eliminate moment for date-fns. The selected prop should be updated to accept a JS Date rather than a moment().
The Babel upgrade causes a lot of warnings to be generated when yarn storybook is run. Several different attempts were made to resolve these warnings. These warnings should be corrected if/when the underlying babel-preset is upgraded and the storybook configuration mechanisms are updated.
An attempt was made to upgrade jest but that failed. The current use of mount() seems to require a JSDOM installation.
Author Checklist
[ ] Add unit test(s). No tests were added for this PR. Instead, the existing test suite was executed to verify that no errors were introduced.
[x] Update version in package.json (see the versioning guidelines). Given that support for earlier Node versions was eliminated, this version is considered a MAJOR release.
This PR adds Node 16 support to lp-components. Additionally many of this module's dependencies were updated to the appropriate compatible version. Note the following updates were not made and should be addressed by future PRs:
storybook
dependencies were updated, the files used to configurestorybook
will soon be deprecated. That should be addressed along with a upgrade to astorybook
version that supportsweb pack
^5.0.0.storybook
was deprecated and should be replaced with "controls".react-router
was not upgraded. The support for before/change hooks used inAuthorizedRoute
andUnauthorizedRoute
components is obsolete and should be refactored, like using React hooks (useEffect()
)DateInput
was not upgraded. This component usesmoment
under the hood. Newer versions ofreact-datepicker
eliminatemoment
fordate-fns
. Theselected
prop should be updated to accept a JSDate
rather than amoment()
.yarn storybook
is run. Several different attempts were made to resolve these warnings. These warnings should be corrected if/when the underlyingbabel-preset
is upgraded and thestorybook
configuration mechanisms are updated.jest
but that failed. The current use ofmount()
seems to require a JSDOM installation.Author Checklist