Skip to content

Chore: Update deps #1964

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

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Chore: Update deps #1964

merged 1 commit into from
Oct 25, 2024

Conversation

drwpow
Copy link
Contributor

@drwpow drwpow commented Oct 25, 2024

Changes

Updates deps to fix artificial security issues

How to Review

  • CI should pass

Checklist

N/A

@drwpow drwpow requested a review from a team as a code owner October 25, 2024 17:18
Copy link

changeset-bot bot commented Oct 25, 2024

⚠️ No Changeset found

Latest commit: 382b145

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link

cloudflare-workers-and-pages bot commented Oct 25, 2024

Deploying openapi-ts with  Cloudflare Pages  Cloudflare Pages

Latest commit: baabe7f
Status: ✅  Deploy successful!
Preview URL: https://d62c27db.openapi-ts.pages.dev
Branch Preview URL: https://drwpow-deps.openapi-ts.pages.dev

View logs

@drwpow drwpow force-pushed the drwpow/deps branch 2 times, most recently from 1955a1e to fb060ed Compare October 25, 2024 17:30
Copy link
Contributor

github-actions bot commented Oct 25, 2024

size-limit report 📦

Path Size
packages/openapi-fetch/dist/index.min.js 5.85 KB (0%)

@@ -121,7 +121,11 @@ export default function createClient<Paths extends {}, Media extends MediaType =
useQuery: (method, path, ...[init, options, queryClient]) =>
useQuery(queryOptions(method, path, init as InitWithUnknowns<typeof init>, options), queryClient),
useSuspenseQuery: (method, path, ...[init, options, queryClient]) =>
useSuspenseQuery(queryOptions(method, path, init as InitWithUnknowns<typeof init>, options), queryClient),
useSuspenseQuery(
// @ts-expect-error TODO: fix minor type mismatch between useQuery and useSuspenseQuery
Copy link
Contributor Author

Choose a reason for hiding this comment

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

cc @kerwanp there’s an error on the newer version of @tanstack/react-query here, but it looks like a superficial one:

Argument of type 'UseQueryOptions<Response["data"], Response["error"], Response["data"], QueryKey<Paths, Method, Path>>' is not assignable to parameter of type 'UseSuspenseQueryOptions<Response["data"], Response["error"], Response["data"], QueryKey<Paths, Method, Path>>'.
  Types of property 'queryFn' are incompatible.
    Type 'unique symbol | QueryFunction<Response["data"], QueryKey<Paths, Method, Path>, never> | undefined' is not assignable to type 'QueryFunction<Response["data"], QueryKey<Paths, Method, Path>, never> | undefined'.
      Type 'typeof skipToken' is not assignable to type 'QueryFunction<Response["data"], QueryKey<Paths, Method, Path>, never>'.ts(2345)

I don’t think it actually affects runtime too much. And the solution may be hairy / didn’t want to destroy the inference happening. So just ignored it for now.

@@ -65,17 +65,18 @@
"openapi-typescript-helpers": "workspace:^"
},
"devDependencies": {
"@tanstack/react-query": "^5.59.16",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also we weren’t loading a specific version of @tanstack/react-query for tests, etc but we should be. Added as a devDep (users still control this package, but we still have to pin a version for our own local tests, etc.)

@drwpow drwpow merged commit d76802a into main Oct 25, 2024
10 checks passed
@drwpow drwpow deleted the drwpow/deps branch October 25, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant