Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update npm dependencies to resolve dependabot alerts #5844

Merged
merged 13 commits into from
Jul 25, 2023

Conversation

Ashesh3
Copy link
Contributor

@Ashesh3 Ashesh3 commented Jul 6, 2023

WHAT

🤖 Generated by Copilot at 3edb5d3

This pull request updates some dependencies, fixes some syntax issues, and refactors some ReScript components for the critical care recording feature of the web application. It also improves the deployment workflow and the husky script.

Proposed Changes

  • Updates outdated dependencies and resolves the dependabot security issues for care_fe package

 @date-io/date-fns                        ^1.3.13  →    ^2.16.0
 @glennsl/bs-json                          ^5.0.3  →     ^5.0.4
 @googlemaps/typescript-guards             ^2.0.0  →     ^2.0.3
 @headlessui/react                         ^1.7.3  →    ^1.7.15
 @loadable/component                      ^5.15.0  →    ^5.15.3
 @react-spring/web                         ^9.6.1  →     ^9.7.3
 @rescript/react                          ^0.10.3  →    ^0.11.0
 @sentry/browser                          ^7.22.0  →    ^7.57.0
 @storybook/addon-essentials          ^7.0.0-rc.8  →    ^7.0.26
 @storybook/addon-interactions        ^7.0.0-rc.8  →    ^7.0.26
 @storybook/addon-links               ^7.0.0-rc.8  →    ^7.0.26
 @storybook/blocks                    ^7.0.0-rc.8  →    ^7.0.26
 @storybook/builder-vite              ^7.0.0-rc.8  →    ^7.0.26
 @storybook/react                     ^7.0.0-rc.8  →    ^7.0.26
 @storybook/react-vite                ^7.0.0-rc.8  →    ^7.0.26
 @storybook/testing-library        ^0.0.14-next.1  →     ^0.2.0
 @tailwindcss/aspect-ratio                 ^0.4.0  →     ^0.4.2
 @tailwindcss/forms                        ^0.5.1  →     ^0.5.3
 @tailwindcss/typography                   ^0.5.2  →     ^0.5.9
 @types/echarts                           ^4.9.16  →    ^4.9.18
 @types/google.maps                       ^3.50.4  →    ^3.53.4
 @types/loadable__component               ^5.13.3  →    ^5.13.4
 @types/lodash                          ^4.14.186  →  ^4.14.195
 @types/lodash.get                         ^4.4.6  →     ^4.4.7
 @types/node                            ^18.11.18  →    ^20.4.0
 @types/qrcode.react                       ^1.0.1  →     ^1.0.2
 @types/react                             18.0.21  →    18.2.14
 @types/react-copy-to-clipboard            ^5.0.0  →     ^5.0.4
 @types/react-dom                         ^18.0.9  →    ^18.2.6
 @types/react-google-recaptcha             ^2.1.0  →     ^2.1.5
 @types/react-qr-reader                    ^2.1.3  →     ^2.1.4
 @types/react-swipeable-views             ^0.13.0  →    ^0.13.2
 @types/react-transition-group             ^4.4.5  →     ^4.4.6
 @typescript-eslint/eslint-plugin         ^5.13.0  →    ^5.61.0
 @typescript-eslint/parser                ^5.13.0  →    ^5.61.0
 @vitejs/plugin-react-swc                  ^3.2.0  →     ^3.3.2
 autoprefixer                            ^10.4.12  →   ^10.4.14
 axios                                    ^0.27.2  →     ^1.4.0
 browser-image-compression                 ^2.0.0  →     ^2.0.2
 cypress                                 ^12.12.0  →   ^12.16.0
 date-fns                                 ^2.29.3  →    ^2.30.0
 date-fns-tz                               ^1.3.7  →     ^2.0.0
 echarts-for-react                         ^3.0.1  →     ^3.0.2
 eslint                                   ^7.32.0  →    ^8.44.0
 eslint-config-prettier                    ^8.5.0  →     ^8.8.0
 eslint-config-standard                   ^16.0.3  →    ^17.1.0
 eslint-plugin-i18next                   ^6.0.0-2  →     ^6.0.3
 eslint-plugin-import                     ^2.25.4  →    ^2.27.5
 eslint-plugin-jsx-a11y                    ^6.5.1  →     ^6.7.1
 eslint-plugin-only-warn                   ^1.0.3  →     ^1.1.0
 eslint-plugin-prettier                    ^4.0.0  →     ^4.2.1
 eslint-plugin-promise                     ^5.2.0  →     ^6.1.1
 eslint-plugin-react                      ^7.29.4  →    ^7.32.2
 eslint-plugin-react-hooks                 ^4.3.0  →     ^4.6.0
 gentype                                   ^4.1.0  →     ^4.5.0
 husky                                     ^6.0.0  →     ^8.0.3
 i18next                                  ^22.5.0  →    ^23.2.7
 i18next-browser-languagedetector          ^7.0.0  →     ^7.1.0
 libphonenumber-js                       ^1.10.30  →   ^1.10.37
 lint-staged                              ^11.0.0  →    ^13.2.3
 local-cypress                             ^1.2.1  →     ^1.2.6
 postcss                                  ^8.4.14  →    ^8.4.25
 postcss-loader                            ^7.0.2  →     ^7.3.3
 prettier                                  ^2.3.0  →     ^2.8.8
 qrcode.react                              ^1.0.1  →     ^3.1.0
 react-copy-to-clipboard                   ^5.0.3  →     ^5.1.0
 react-csv-reader                          ^3.5.2  →     ^4.0.0
 react-dnd-scrolling                       ^1.2.4  →     ^1.3.3
 react-google-recaptcha                    ^2.1.0  →     ^3.1.0
 react-i18next                           ^11.18.6  →    ^13.0.1
 react-player                             ^2.11.0  →    ^2.12.0
 react-redux                               ^8.0.4  →     ^8.1.1
 react-swipeable-views                    ^0.13.9  →    ^0.14.0
 react-webcam                              ^7.0.1  →     ^7.1.1
 read-excel-file                           ^5.5.3  →     ^5.6.1
 redux                                     ^4.1.0  →     ^4.2.1
 redux-thunk                               ^2.3.0  →     ^2.4.2
 rescript                                  ^9.1.4  →    ^10.1.4
 rescript-webapi                           ^0.6.1  →     ^0.8.0
 screenfull                                ^5.1.0  →     ^6.0.2
 snyk                                    ^1.618.0  →  ^1.1187.0
 storybook                            ^7.0.0-rc.8  →    ^7.0.26
 tailwindcss                               ^3.2.4  →     ^3.3.2
 typescript                                ^4.8.4  →     ^5.1.6
 uuid                                      ^8.3.2  →     ^9.0.0
 vite                                      ^4.2.1  →     ^4.4.0
 vite-plugin-pwa                          ^0.14.6  →    ^0.16.4

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

HOW

🤖 Generated by Copilot at 3edb5d3

  • Update the versions of the azure/setup-kubectl action and several dependencies to use the latest features and bug fixes (link, link, link, link, link, link)
  • Replace the export keyword with the let keyword in ReScript components to follow the syntax conventions (link, link, link, link, link, link, link, link, link, link, link)
  • Remove the export keyword from ReScript type definitions as it is not required (link, link, link, link, link, link, link)
  • Modify the shebang line of the .husky/_/husky.sh script to make it more portable and compatible with different systems (link)
  • Add the export command before setting the husky_skip_init variable in the .husky/_/husky.sh script to make it visible to the subshell that runs the hook script (link)
  • Add a conditional block to the .husky/_/husky.sh script that prints a message if the hook script exits with code 127, which means that the command was not found in the PATH (link)

@vercel
Copy link

vercel bot commented Jul 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2023 0:12am

@netlify
Copy link

netlify bot commented Jul 6, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 2174c3e
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/64bfbbef2f38d80007327da6
😎 Deploy Preview https://deploy-preview-5844--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the cypress failed pull request with cypress test failure label Jul 6, 2023
@Ashesh3 Ashesh3 marked this pull request as ready for review July 6, 2023 13:33
@Ashesh3 Ashesh3 requested a review from a team July 6, 2023 13:33
@Ashesh3 Ashesh3 requested a review from a team as a code owner July 6, 2023 13:33
@Ashesh3 Ashesh3 requested a review from gigincg July 6, 2023 13:33
@nihal467
Copy link
Member

@Ashesh3
image

  • the font size and button colour is effected by this, currently, it is noticed in patient tab, have a deeper look and resolve it

@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Jul 12, 2023
@github-actions
Copy link

👋 Hi, @Ashesh3,
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

@github-actions github-actions bot removed the merge conflict pull requests with merge conflict label Jul 13, 2023
@Ashesh3
Copy link
Contributor Author

Ashesh3 commented Jul 13, 2023

@Ashesh3 image

  • the font size and button colour is effected by this, currently, it is noticed in patient tab, have a deeper look and resolve it

Fixed

@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Jul 14, 2023
@github-actions
Copy link

👋 Hi, @Ashesh3,
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

@github-actions github-actions bot removed the merge conflict pull requests with merge conflict label Jul 25, 2023
@Ashesh3
Copy link
Contributor Author

Ashesh3 commented Jul 25, 2023

@Ashesh3 resolve the merge conflict

Resolved.

@rithviknishad rithviknishad added the P1 breaking issue or vital feature label Jul 25, 2023
@rithviknishad
Copy link
Member

Marking as P1 as this can catch conflicts super quickly!

@rithviknishad rithviknishad added the Major Code Change This Tag represent PR, which will be causing major Code change in the platform label Jul 25, 2023
@github-actions github-actions bot added cypress passed and removed cypress failed pull request with cypress test failure labels Jul 25, 2023
@nihal467
Copy link
Member

LGTM

@khavinshankar khavinshankar merged commit 4bc182d into develop Jul 25, 2023
@khavinshankar khavinshankar deleted the upgrade-npm-packages-2 branch July 25, 2023 13:00
@github-actions
Copy link

@Ashesh3 We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cypress passed Major Code Change This Tag represent PR, which will be causing major Code change in the platform P1 breaking issue or vital feature tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants