@trpc/react-query 10.4.1 → 10.4.3

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.
package/README.md CHANGED
@@ -1,18 +1,20 @@
1
1
  <p align="center">
2
- <a href="https://trpc.io/"><img src="../../www/static/img/logo-text.svg" alt="tRPC" height="130"/></a>
2
+ <a href="https://trpc.io/"><img src="https://assets.trpc.io/icons/svgs/blue-bg-rounded.svg" alt="tRPC" height="75"/></a>
3
3
  </p>
4
4
 
5
+ <h3 align="center">tRPC</h3>
6
+
5
7
  <p align="center">
6
8
  <strong>End-to-end typesafe APIs made easy</strong>
7
9
  </p>
8
10
 
9
11
  <p align="center">
10
- <img src="https://assets.trpc.io/www/v10/preview-dark.gif" alt="Demo" />
12
+ <img src="https://assets.trpc.io/www/v10/v10-dark-landscape.gif" alt="Demo" />
11
13
  </p>
12
14
 
13
- # `@trpc/react`
15
+ # `@trpc/react-query`
14
16
 
15
- > Connect a tRPC server to React.
17
+ > A tRPC wrapper around react-query.
16
18
 
17
19
  ## Documentation
18
20
 
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ require('./getArrayQueryKey-24927615.js');
24
24
  ]);
25
25
  };
26
26
  }
27
- if (key in trpc) {
27
+ if (trpc.hasOwnProperty(key)) {
28
28
  return trpc[key];
29
29
  }
30
30
  return createHooksInternal.createReactProxyDecoration(key, trpc);
package/dist/index.mjs CHANGED
@@ -20,7 +20,7 @@ import './getArrayQueryKey-c6f6badf.mjs';
20
20
  ]);
21
21
  };
22
22
  }
23
- if (key in trpc) {
23
+ if (trpc.hasOwnProperty(key)) {
24
24
  return trpc[key];
25
25
  }
26
26
  return createReactProxyDecoration(key, trpc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/react-query",
3
- "version": "10.4.1",
3
+ "version": "10.4.3",
4
4
  "description": "tRPC React lib",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -54,15 +54,15 @@
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@tanstack/react-query": "^4.3.8",
57
- "@trpc/client": "10.4.1",
58
- "@trpc/server": "10.4.1",
57
+ "@trpc/client": "10.4.3",
58
+ "@trpc/server": "10.4.3",
59
59
  "react": ">=16.8.0",
60
60
  "react-dom": ">=16.8.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@tanstack/react-query": "^4.3.8",
64
- "@trpc/client": "10.4.1",
65
- "@trpc/server": "10.4.1",
64
+ "@trpc/client": "10.4.3",
65
+ "@trpc/server": "10.4.3",
66
66
  "@types/express": "^4.17.12",
67
67
  "@types/node": "^18.7.20",
68
68
  "express": "^4.17.1",
@@ -76,5 +76,5 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "f7f05a2bb803d85465282e9d17e16bae357ab6a8"
79
+ "gitHead": "c5b49adb1d4e875633bb88ce282a3573fa00b404"
80
80
  }
@@ -201,7 +201,7 @@ export function createHooksInternalProxy<
201
201
  };
202
202
  }
203
203
 
204
- if ((key as string) in trpc) {
204
+ if (trpc.hasOwnProperty(key)) {
205
205
  return (trpc as any)[key];
206
206
  }
207
207