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

Updates all npm packages Apr 2024 #973

Merged
merged 2 commits into from
Apr 14, 2024
Merged

Updates all npm packages Apr 2024 #973

merged 2 commits into from
Apr 14, 2024

Conversation

devinmatte
Copy link
Member

Motivation

Keep us up to date with modern software

Changes

Updates all packages to the latest versions and fixes issues from changes

Testing Instructions

@github-actions github-actions bot added dependencies Changes to dependencies frontend Change to frontend code labels Apr 7, 2024
@devinmatte devinmatte marked this pull request as ready for review April 7, 2024 00:41
Copy link
Member

@nathan-weinberg nathan-weinberg left a comment

Choose a reason for hiding this comment

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

Needs rebase @devinmatte but otherwise LGTM

@devinmatte
Copy link
Member Author

Okay fixed and pushed to beta

Copy link
Contributor

@idreyn idreyn left a comment

Choose a reason for hiding this comment

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

code lgtm, thanks for doing this!

@@ -5,7 +5,8 @@ import { OverallRidershipChart } from './OverallRidershipChart';

export const OverallRidershipChartWrapper: React.FC = () => {
const ridershipData = useRidershipDataLanding();
const ridershipDataReady = !ridershipData.isLoading && !ridershipData.isError;
const ridershipDataReady =
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a huge deal but this seems like a bit of regression in the TS definitions of useQuery. Presumably it used to be able to infer data was present because those other two keys are absent, but now it can't?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah it seems that they now include undefined into the definition of the resulting data object. Which was I think technically possible before but the typescript definition didn't include it. Overall I think this is an improvement although an annoying one

@nathan-weinberg nathan-weinberg merged commit b326076 into main Apr 14, 2024
4 checks passed
@nathan-weinberg nathan-weinberg deleted the update-all-deps branch April 14, 2024 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Changes to dependencies frontend Change to frontend code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants