@trpc/react-query 10.25.0 → 10.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -462,7 +462,7 @@ function getClientArgs(pathAndInput, opts) {
462
462
  }
463
463
  function useInfiniteQuery(pathAndInput, opts) {
464
464
  const [path, input] = pathAndInput;
465
- const { client , ssrState , prefetchInfiniteQuery , queryClient , abortOnUnmount } = useContext();
465
+ const { client , ssrState , prefetchInfiniteQuery , queryClient , abortOnUnmount , } = useContext();
466
466
  if (typeof window === 'undefined' && ssrState === 'prepass' && opts?.trpc?.ssr !== false && opts?.enabled !== false && !queryClient.getQueryCache().find(getArrayQueryKey.getArrayQueryKey(pathAndInput, 'infinite'))) {
467
467
  void prefetchInfiniteQuery(pathAndInput, opts);
468
468
  }
@@ -456,7 +456,7 @@ function getClientArgs(pathAndInput, opts) {
456
456
  }
457
457
  function useInfiniteQuery$1(pathAndInput, opts) {
458
458
  const [path, input] = pathAndInput;
459
- const { client , ssrState , prefetchInfiniteQuery , queryClient , abortOnUnmount } = useContext();
459
+ const { client , ssrState , prefetchInfiniteQuery , queryClient , abortOnUnmount , } = useContext();
460
460
  if (typeof window === 'undefined' && ssrState === 'prepass' && opts?.trpc?.ssr !== false && opts?.enabled !== false && !queryClient.getQueryCache().find(getArrayQueryKey(pathAndInput, 'infinite'))) {
461
461
  void prefetchInfiniteQuery(pathAndInput, opts);
462
462
  }
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var client = require('@trpc/client');
6
- var createHooksInternal = require('./createHooksInternal-7ad2c11c.js');
6
+ var createHooksInternal = require('./createHooksInternal-9f8a4b21.js');
7
7
  var shared = require('@trpc/server/shared');
8
8
  var React = require('react');
9
9
  require('@tanstack/react-query');
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from '@trpc/client';
2
- import { c as createHooksInternal, a as createReactQueryUtilsProxy, b as createReactProxyDecoration } from './createHooksInternal-ac3d45d9.mjs';
3
- export { g as getQueryKey } from './createHooksInternal-ac3d45d9.mjs';
2
+ import { c as createHooksInternal, a as createReactQueryUtilsProxy, b as createReactProxyDecoration } from './createHooksInternal-d15d0073.mjs';
3
+ export { g as getQueryKey } from './createHooksInternal-d15d0073.mjs';
4
4
  import { createFlatProxy } from '@trpc/server/shared';
5
5
  import { useMemo } from 'react';
6
6
  import '@tanstack/react-query';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var createHooksInternal = require('../createHooksInternal-7ad2c11c.js');
5
+ var createHooksInternal = require('../createHooksInternal-9f8a4b21.js');
6
6
  var queryClient = require('../queryClient-358a9a75.js');
7
7
  require('@trpc/server/shared');
8
8
  require('../getArrayQueryKey-4bdb5cc2.js');
@@ -1,4 +1,4 @@
1
- export { T as TRPCContext, h as contextProps, c as createHooksInternal, b as createReactProxyDecoration, a as createReactQueryUtilsProxy, f as createRootHooks, e as createUseQueriesProxy, d as getClientArgs } from '../createHooksInternal-ac3d45d9.mjs';
1
+ export { T as TRPCContext, h as contextProps, c as createHooksInternal, b as createReactProxyDecoration, a as createReactQueryUtilsProxy, f as createRootHooks, e as createUseQueriesProxy, d as getClientArgs } from '../createHooksInternal-d15d0073.mjs';
2
2
  export { g as getQueryClient } from '../queryClient-4d766c0c.mjs';
3
3
  import '@trpc/server/shared';
4
4
  import '../getArrayQueryKey-86134f8b.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/react-query",
3
- "version": "10.25.0",
3
+ "version": "10.25.1",
4
4
  "description": "The tRPC React library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -63,29 +63,29 @@
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@tanstack/react-query": "^4.18.0",
66
- "@trpc/client": "10.25.0",
67
- "@trpc/server": "10.25.0",
66
+ "@trpc/client": "10.25.1",
67
+ "@trpc/server": "10.25.1",
68
68
  "react": ">=16.8.0",
69
69
  "react-dom": ">=16.8.0"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@tanstack/react-query": "^4.18.0",
73
- "@trpc/client": "10.25.0",
74
- "@trpc/server": "10.25.0",
75
- "@types/express": "^4.17.12",
73
+ "@trpc/client": "10.25.1",
74
+ "@trpc/server": "10.25.1",
75
+ "@types/express": "^4.17.17",
76
76
  "@types/node": "^18.7.20",
77
- "@types/react": "^18.0.9",
78
- "eslint": "^8.30.0",
77
+ "@types/react": "^18.2.6",
78
+ "eslint": "^8.40.0",
79
79
  "express": "^4.17.1",
80
- "next": "^13.2.1",
80
+ "next": "^13.3.4",
81
81
  "react": "^18.2.0",
82
82
  "react-dom": "^18.2.0",
83
83
  "rollup": "^2.79.1",
84
- "tsx": "^3.12.3",
84
+ "tsx": "^3.12.7",
85
85
  "zod": "^3.0.0"
86
86
  },
87
87
  "publishConfig": {
88
88
  "access": "public"
89
89
  },
90
- "gitHead": "58764a39f45299cd1b99af47d4a27ace46698555"
90
+ "gitHead": "712b2adfe369f19ebfdbed5e5637aef513d38aea"
91
91
  }