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

[CU] July Dependency Updates #405

Merged
merged 15 commits into from
Jul 25, 2024
Merged

[CU] July Dependency Updates #405

merged 15 commits into from
Jul 25, 2024

Conversation

narin
Copy link
Contributor

@narin narin commented Jul 23, 2024

Description of Change

Updates all available dependencies in our mono repo using yarn upgrade-interactive with the exception of a handful of packages.

style-dictionary and eslint have major version updates with breaking changes that need to be resolved. I've created a separate ticket for them: #404

Storybook related dependencies have been updated to the highest v7 version available since react native is not supported on Storybook 8 yet

The following packages have newer version available, but have been updated to the latest version compatible with expo (51.0.22):

  • @react-native-async-storage/async-storage
  • @react-native-community/datetimepicker
  • @types/react
  • react-native-svg
  • react-dom
  • react-native-gesture-handler
  • react-native-reanimated
  • react-native-safe-area-context
  • react-native-screens
  • react
  • typescript

Testing Packages

  • 0.20.4-alpha.1
  • 0.20.4-alpha.2

Screenshots/Video

Storybook iOS

screen-20240723-114108.mp4

Storybook Web

App (iOS)

Simulator.Screen.Recording.-.iPhone.15.-.2024-07-23.at.10.36.18.mp4

App (Android)

Screen_recording_20240723_111334.mp4

Testing

  • Tested on iOS
  • Tested on Android
  • Tested on Web

PR Checklist

Code reviewer validation:

  • General
    • PR is linked to ticket(s)
    • PR has changelog label applied if it's to be included in the changelog
    • Acceptance criteria:
      • All satisfied or
      • Documented reason for not being performed or
      • Split to separate ticket and ticket is linked by relevant AC(s)
    • Above PR sections adequately filled out
    • If any breaking changes, in accordance with the pre-1.0.0 versioning guidelines: a CU ticket has been created for the VA Mobile App detailing necessary adjustments with the package version that will be published by this ticket
  • Code
    • Tests are included if appropriate (or split to separate ticket)
    • New functions have proper TSDoc annotations

Publish

If changes warrant a new version per the versioning guidelines and the PR is approved and ready to merge:

@narin narin changed the title [CU] July Dependency U pdates [CU] July Dependency Updates Jul 23, 2024
@@ -1,3 +1,4 @@
// @ts-nocheck
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI @TimRoe, Had to add this because when I tried testing in the app, I would get the following TS error:

node_modules/@department-of-veterans-affairs/mobile-component-library/src/components/Snackbar/Snackbar.tsx(57,34): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature. 
error Command failed with exit code 2.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, that's fine for this ticket but we should figure out something better long term where one doesn't need the config in global.d.ts to not get errors when not even using the component. Perhaps create a ticket just for that nearer the end of Snackbar implementation to figure out the least invasive way to go about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was implying that this is a temporary fix and assume we'd fix it as part of the implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created ticket to make sure we don't miss this: #412

@@ -18,6 +18,7 @@ module.exports = {
},
core: {
builder: 'webpack5',
disableWhatsNewNotifications: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to dependency updates but kept seeing this pop up as I was testing and decided to disable it.

@narin narin marked this pull request as ready for review July 23, 2024 18:48
@narin narin requested a review from a team as a code owner July 23, 2024 18:48
Comment on lines +51 to +55
export const SnackbarProvider: React.FC<SnackbarProviderProps> = (
{
// globalSnackbar,
},
) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Autoformatting

"typescript": "^5.3.3"
"eslint-plugin-tsdoc": "^0.3.0",
"prettier": "3.3.3",
"typescript": "~5.3.3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why'd this go ^ to ~?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to satisfy the following expo warning:

The following packages should be updated for best compatibility with the installed expo version:
  [email protected] - expected version: ~5.3.3

Leaving it as a carat will install v5.5.4 which causes the warning to reappear.

"react-i18next": "^14.1.2",
"@os-team/i18next-react-native-language-detector": "^1.0.34",
"i18next": "^23.12.2",
"react-i18next": "^15.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably fine, but may be good to double check use cases in the app if you didn't since this is the package that broke from a minor update recently. So double checking the external link prompt to leave the app and "# of #" screen reading for Segmented control. Good confirmation they didn't do anything breaking with a major increment since they broke things with a minor increment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed with voiceover in the app that these translations are still working properly.

Copy link
Contributor

@TimRoe TimRoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with a couple notes in addition to comments:

  1. See a Storybook Web heading, but not any video run through
  2. Probably good to propagate the following info to the ACs on the ticket as well:

style-dictionary and eslint have major version updates with breaking changes that need to be resolved. I've created a separate ticket for them: #404

@narin narin merged commit fd74169 into main Jul 25, 2024
5 of 7 checks passed
@narin narin deleted the chore/378-narin-dependency-updates branch July 25, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants