samqdemocorp-mend / box_mojito_lvp

Apache License 2.0
0 stars 0 forks source link

[LOW] Update dependency react-datetime to v3 #70

Open mend-for-github-com[bot] opened 4 months ago

mend-for-github-com[bot] commented 4 months ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-datetime ^2.16.3 -> ^3.0.0 age adoption passing confidence

By merging this PR, the issue #5 will be automatically resolved and closed:

Severity CVSS Score CVE Reachability
Medium Medium 5.3 CVE-2022-0235
Low Low 2.1 CVE-2020-15168

Release Notes

arqex/react-datetime (react-datetime) ### [`v3.0.1`](https://togithub.com/arqex/react-datetime/blob/HEAD/CHANGELOG.md#301) [Compare Source](https://togithub.com/arqex/react-datetime/compare/ab70aefb66233022a13e826605d7efb947ccab4f...v3.0.1) - Big refactor, the state is not derived from the props after every update. - `disableCloseOnClickOutside` prop is now `closeOnClickOutside` (avoid double negations). - `onBlur` and `onFocus` are renamed to `onClose` and `onOpen` since they had nothing to do with the blur event and it was misleading some users. If we want to listen to the input's `onBlur` and `onFocus` use `inputProps`. - `defaultValue` prop is now called `initialValue`. - Updated typescript definitions. - Time is not updated anymore on right clicks. - Creates `renderView` prop to customize the whole calendar. - Creates `updateOnView` prop to decide when to update the date. - `onViewModeChange` prop renamed to `onNavigate`. - Creates `onBeforeNavigate` prop. - Creates `setViewData` and `navigate` methods. - Fixes error clicking on days from the previous or next month in the days view. - Fixes month, year and time views for locales that doesn't use gregorian numbers. - Adds a playground to make simpler to try out the library by `npm run playground`. - Not depending on gulp to create the build anymore - Updated most of the dependencies.