@trpc/next 10.45.2-canary.0 → 10.45.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/app-dir/client/package.json +1 -0
- package/app-dir/links/nextCache/package.json +1 -0
- package/app-dir/links/nextHttp/package.json +1 -0
- package/app-dir/server/package.json +1 -0
- package/dist/app-dir/server.js +2 -2
- package/dist/app-dir/server.mjs +2 -2
- package/package.json +8 -8
- package/src/app-dir/formDataToObject.ts +2 -2
- package/dist/bundle-analysis.json +0 -146
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"main":"../../dist/app-dir/client.cjs","module":"../../dist/app-dir/client.mjs","types":"../../dist/app-dir/client.d.cts"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"main":"../../../dist/app-dir/links/nextCache.cjs","module":"../../../dist/app-dir/links/nextCache.mjs","types":"../../../dist/app-dir/links/nextCache.d.cts"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"main":"../../../dist/app-dir/links/nextHttp.cjs","module":"../../../dist/app-dir/links/nextHttp.mjs","types":"../../../dist/app-dir/links/nextHttp.d.cts"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"main":"../../dist/app-dir/server.cjs","module":"../../dist/app-dir/server.mjs","types":"../../dist/app-dir/server.d.cts"}
|
package/dist/app-dir/server.js
CHANGED
|
@@ -16,7 +16,7 @@ var shared$1 = require('../shared-e49b9cdc.js');
|
|
|
16
16
|
if (path.length > 1) {
|
|
17
17
|
const p = path.shift();
|
|
18
18
|
const isArrayIndex = /^\d+$/.test(path[0]);
|
|
19
|
-
obj[p] = obj[p] || (isArrayIndex ? [] :
|
|
19
|
+
obj[p] = obj[p] || (isArrayIndex ? [] : Object.create(null));
|
|
20
20
|
set(obj[p], path, value);
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
@@ -33,7 +33,7 @@ var shared$1 = require('../shared-e49b9cdc.js');
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
function formDataToObject(formData) {
|
|
36
|
-
const obj =
|
|
36
|
+
const obj = Object.create(null);
|
|
37
37
|
for (const [key, value] of formData.entries()){
|
|
38
38
|
set(obj, key, value);
|
|
39
39
|
}
|
package/dist/app-dir/server.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { g as generateCacheTag, i as isFormData } from '../shared-f6996341.mjs';
|
|
|
12
12
|
if (path.length > 1) {
|
|
13
13
|
const p = path.shift();
|
|
14
14
|
const isArrayIndex = /^\d+$/.test(path[0]);
|
|
15
|
-
obj[p] = obj[p] || (isArrayIndex ? [] :
|
|
15
|
+
obj[p] = obj[p] || (isArrayIndex ? [] : Object.create(null));
|
|
16
16
|
set(obj[p], path, value);
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
@@ -29,7 +29,7 @@ import { g as generateCacheTag, i as isFormData } from '../shared-f6996341.mjs';
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
function formDataToObject(formData) {
|
|
32
|
-
const obj =
|
|
32
|
+
const obj = Object.create(null);
|
|
33
33
|
for (const [key, value] of formData.entries()){
|
|
34
34
|
set(obj, key, value);
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/next",
|
|
3
|
-
"version": "10.45.
|
|
3
|
+
"version": "10.45.3",
|
|
4
4
|
"description": "The tRPC Next.js library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
],
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@tanstack/react-query": "^4.18.0",
|
|
69
|
-
"@trpc/client": "10.45.
|
|
70
|
-
"@trpc/react-query": "10.45.
|
|
71
|
-
"@trpc/server": "10.45.
|
|
69
|
+
"@trpc/client": "10.45.3",
|
|
70
|
+
"@trpc/react-query": "10.45.3",
|
|
71
|
+
"@trpc/server": "10.45.3",
|
|
72
72
|
"next": "*",
|
|
73
73
|
"react": ">=16.8.0",
|
|
74
74
|
"react-dom": ">=16.8.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@tanstack/react-query": "^4.18.0",
|
|
78
|
-
"@trpc/client": "10.45.
|
|
79
|
-
"@trpc/react-query": "10.45.
|
|
80
|
-
"@trpc/server": "10.45.
|
|
78
|
+
"@trpc/client": "10.45.3",
|
|
79
|
+
"@trpc/react-query": "10.45.3",
|
|
80
|
+
"@trpc/server": "10.45.3",
|
|
81
81
|
"@types/express": "^4.17.17",
|
|
82
82
|
"@types/node": "^20.10.0",
|
|
83
83
|
"@types/react": "^18.2.33",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"funding": [
|
|
98
98
|
"https://trpc.io/sponsor"
|
|
99
99
|
],
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "1117bb317ac2c146c571c170cbf3b4cc1827e4cf"
|
|
101
101
|
}
|
|
@@ -11,7 +11,7 @@ function set(
|
|
|
11
11
|
if (path.length > 1) {
|
|
12
12
|
const p = path.shift()!;
|
|
13
13
|
const isArrayIndex = /^\d+$/.test(path[0]!);
|
|
14
|
-
obj[p] = obj[p] || (isArrayIndex ? [] :
|
|
14
|
+
obj[p] = obj[p] || (isArrayIndex ? [] : Object.create(null));
|
|
15
15
|
set(obj[p], path, value);
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
@@ -26,7 +26,7 @@ function set(
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export function formDataToObject(formData: FormData) {
|
|
29
|
-
const obj: Record<string, unknown> =
|
|
29
|
+
const obj: Record<string, unknown> = Object.create(null);
|
|
30
30
|
|
|
31
31
|
for (const [key, value] of formData.entries()) {
|
|
32
32
|
set(obj, key, value);
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bundleSize": 22027,
|
|
3
|
-
"bundleOrigSize": 32288,
|
|
4
|
-
"bundleReduction": 31.78,
|
|
5
|
-
"modules": [
|
|
6
|
-
{
|
|
7
|
-
"id": "/src/withTRPC.tsx",
|
|
8
|
-
"size": 8009,
|
|
9
|
-
"origSize": 9332,
|
|
10
|
-
"renderedExports": [
|
|
11
|
-
"withTRPC"
|
|
12
|
-
],
|
|
13
|
-
"removedExports": [],
|
|
14
|
-
"dependents": [
|
|
15
|
-
"/src/createTRPCNext.tsx",
|
|
16
|
-
"/src/index.ts"
|
|
17
|
-
],
|
|
18
|
-
"percent": 36.36,
|
|
19
|
-
"reduction": 14.18
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"id": "/src/app-dir/server.ts",
|
|
23
|
-
"size": 3678,
|
|
24
|
-
"origSize": 4795,
|
|
25
|
-
"renderedExports": [
|
|
26
|
-
"experimental_createTRPCNextAppDirServer",
|
|
27
|
-
"experimental_createServerActionHandler",
|
|
28
|
-
"experimental_revalidateEndpoint"
|
|
29
|
-
],
|
|
30
|
-
"removedExports": [],
|
|
31
|
-
"dependents": [],
|
|
32
|
-
"percent": 16.7,
|
|
33
|
-
"reduction": 23.3
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"id": "/src/app-dir/create-action-hook.tsx",
|
|
37
|
-
"size": 3310,
|
|
38
|
-
"origSize": 6019,
|
|
39
|
-
"renderedExports": [
|
|
40
|
-
"experimental_serverActionLink",
|
|
41
|
-
"experimental_createActionHook"
|
|
42
|
-
],
|
|
43
|
-
"removedExports": [],
|
|
44
|
-
"dependents": [
|
|
45
|
-
"/src/app-dir/client.ts"
|
|
46
|
-
],
|
|
47
|
-
"percent": 15.03,
|
|
48
|
-
"reduction": 45.01
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"id": "/src/app-dir/links/nextCache.ts",
|
|
52
|
-
"size": 2466,
|
|
53
|
-
"origSize": 2739,
|
|
54
|
-
"renderedExports": [
|
|
55
|
-
"experimental_nextCacheLink"
|
|
56
|
-
],
|
|
57
|
-
"removedExports": [],
|
|
58
|
-
"dependents": [],
|
|
59
|
-
"percent": 11.2,
|
|
60
|
-
"reduction": 9.97
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"id": "/src/app-dir/client.ts",
|
|
64
|
-
"size": 1264,
|
|
65
|
-
"origSize": 1912,
|
|
66
|
-
"renderedExports": [
|
|
67
|
-
"experimental_createTRPCNextAppDirClient"
|
|
68
|
-
],
|
|
69
|
-
"removedExports": [],
|
|
70
|
-
"dependents": [],
|
|
71
|
-
"percent": 5.74,
|
|
72
|
-
"reduction": 33.89
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"id": "/src/app-dir/links/nextHttp.ts",
|
|
76
|
-
"size": 1183,
|
|
77
|
-
"origSize": 1735,
|
|
78
|
-
"renderedExports": [
|
|
79
|
-
"experimental_nextHttpLink"
|
|
80
|
-
],
|
|
81
|
-
"removedExports": [],
|
|
82
|
-
"dependents": [],
|
|
83
|
-
"percent": 5.37,
|
|
84
|
-
"reduction": 31.82
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"id": "/src/createTRPCNext.tsx",
|
|
88
|
-
"size": 964,
|
|
89
|
-
"origSize": 2464,
|
|
90
|
-
"renderedExports": [
|
|
91
|
-
"createTRPCNext"
|
|
92
|
-
],
|
|
93
|
-
"removedExports": [],
|
|
94
|
-
"dependents": [
|
|
95
|
-
"/src/index.ts"
|
|
96
|
-
],
|
|
97
|
-
"percent": 4.38,
|
|
98
|
-
"reduction": 60.88
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"id": "/src/app-dir/formDataToObject.ts",
|
|
102
|
-
"size": 818,
|
|
103
|
-
"origSize": 826,
|
|
104
|
-
"renderedExports": [
|
|
105
|
-
"formDataToObject"
|
|
106
|
-
],
|
|
107
|
-
"removedExports": [],
|
|
108
|
-
"dependents": [
|
|
109
|
-
"/src/app-dir/server.ts"
|
|
110
|
-
],
|
|
111
|
-
"percent": 3.71,
|
|
112
|
-
"reduction": 0.97
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"id": "/src/app-dir/shared.ts",
|
|
116
|
-
"size": 335,
|
|
117
|
-
"origSize": 2404,
|
|
118
|
-
"renderedExports": [
|
|
119
|
-
"generateCacheTag",
|
|
120
|
-
"isFormData"
|
|
121
|
-
],
|
|
122
|
-
"removedExports": [
|
|
123
|
-
"createUseProxy"
|
|
124
|
-
],
|
|
125
|
-
"dependents": [
|
|
126
|
-
"/src/app-dir/server.ts",
|
|
127
|
-
"/src/app-dir/create-action-hook.tsx",
|
|
128
|
-
"/src/app-dir/links/nextCache.ts",
|
|
129
|
-
"/src/app-dir/links/nextHttp.ts"
|
|
130
|
-
],
|
|
131
|
-
"percent": 1.52,
|
|
132
|
-
"reduction": 86.06
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"id": "/src/index.ts",
|
|
136
|
-
"size": 0,
|
|
137
|
-
"origSize": 62,
|
|
138
|
-
"renderedExports": [],
|
|
139
|
-
"removedExports": [],
|
|
140
|
-
"dependents": [],
|
|
141
|
-
"percent": 0,
|
|
142
|
-
"reduction": 100
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"moduleCount": 10
|
|
146
|
-
}
|