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

Upgrade to TypeScript 5.0 #10660

Merged
merged 1 commit into from
Mar 17, 2023
Merged

Upgrade to TypeScript 5.0 #10660

merged 1 commit into from
Mar 17, 2023

Conversation

alessbell
Copy link
Contributor

@alessbell alessbell commented Mar 16, 2023

This PR upgrades to the newly-released TypeScript v5.0.

We anticipated this upgrade to be painless after making the necessary changes to adopt v4.9.4 in #10470. So far this seems to be true 🎉

npx tsc --noEmit succeeds. Additionally I'll be running our E2E tests with a snapshot release of this branch (apollographql/client-router-e2e-tests#75) and comparing the compiled output to determine whether this can be shipped at a patch or should target our release-3.8 branch. (Edit: we're clear to proceed at a patch version bump!)

@changeset-bot
Copy link

changeset-bot bot commented Mar 16, 2023

🦋 Changeset detected

Latest commit: 7d41488

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@apollo/client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@alessbell
Copy link
Contributor Author

/release:pr

@jerelmiller
Copy link
Member

🤯 🤯 🤯

That was fast

@github-actions
Copy link
Contributor

A new release has been made for this PR. You can install it with npm i @apollo/client@0.0.0-pr-10660-20230316174454.

@alessbell alessbell added the 🥚 backwards-compatible for PRs that do not introduce any breaking changes label Mar 16, 2023
@alessbell
Copy link
Contributor Author

alessbell commented Mar 16, 2023

I've used a bundle analyzer to compare before/after and diffed individual files. This change is backward-compatible and safe to ship at a patch version 🙌

Before/after comparison of compiled useQuery

CleanShot 2023-03-16 at 14 57 24

@alessbell alessbell requested a review from a team March 16, 2023 19:00
@alessbell alessbell marked this pull request as ready for review March 16, 2023 19:02
@netlify
Copy link

netlify bot commented Mar 16, 2023

Deploy Preview for apollo-client-docs ready!

Name Link
🔨 Latest commit
🔍 Latest deploy log https://app.netlify.com/sites/apollo-client-docs/deploys/641367d66f8ff3352dd06639
😎 Deploy Preview https://deploy-preview-10660--apollo-client-docs.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 settings.

Copy link
Member

@jerelmiller jerelmiller left a comment

Choose a reason for hiding this comment

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

🎉 🎉 🎉

@alessbell alessbell merged commit 364bee9 into main Mar 17, 2023
@alessbell alessbell deleted the typescript-5.0 branch March 17, 2023 14:30
@github-actions github-actions bot mentioned this pull request Mar 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants