convex 1.35.0 → 1.35.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.
- package/dist/browser.bundle.js +2 -8
- package/dist/browser.bundle.js.map +3 -3
- package/dist/cjs/browser/index-node.js +1 -3
- package/dist/cjs/browser/index.js +1 -3
- package/dist/cjs/browser/index.js.map +2 -2
- package/dist/cjs/browser/query_options.js.map +2 -2
- package/dist/cjs/cli/codegen_templates/readme.js +1 -14
- package/dist/cjs/cli/codegen_templates/readme.js.map +2 -2
- package/dist/cjs/cli/deploy.js +1 -1
- package/dist/cjs/cli/deploy.js.map +1 -1
- package/dist/cjs/cli/lib/envvars.js +8 -1
- package/dist/cjs/cli/lib/envvars.js.map +2 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react/client.js +6 -43
- package/dist/cjs/react/client.js.map +2 -2
- package/dist/cjs/react/index.js +0 -2
- package/dist/cjs/react/index.js.map +2 -2
- package/dist/cjs/server/api.js.map +2 -2
- package/dist/cjs-types/browser/index.d.ts +0 -1
- package/dist/cjs-types/browser/index.d.ts.map +1 -1
- package/dist/cjs-types/browser/query_options.d.ts +9 -12
- package/dist/cjs-types/browser/query_options.d.ts.map +1 -1
- package/dist/cjs-types/cli/codegen_templates/readme.d.ts.map +1 -1
- package/dist/cjs-types/cli/lib/deployApi/definitionConfig.d.ts +24 -24
- package/dist/cjs-types/cli/lib/deployApi/modules.d.ts +2 -2
- package/dist/cjs-types/cli/lib/deployApi/startPush.d.ts +36 -36
- package/dist/cjs-types/cli/lib/envvars.d.ts.map +1 -1
- package/dist/cjs-types/cli/lib/mcp/tools/insights.d.ts +2 -2
- package/dist/cjs-types/index.d.ts +1 -1
- package/dist/cjs-types/react/client.d.ts +2 -54
- package/dist/cjs-types/react/client.d.ts.map +1 -1
- package/dist/cjs-types/react/index.d.ts +2 -7
- package/dist/cjs-types/react/index.d.ts.map +1 -1
- package/dist/cjs-types/server/api.d.ts +1 -5
- package/dist/cjs-types/server/api.d.ts.map +1 -1
- package/dist/cli.bundle.cjs +11 -17
- package/dist/cli.bundle.cjs.map +2 -2
- package/dist/esm/browser/index-node.js +0 -1
- package/dist/esm/browser/index.js +0 -1
- package/dist/esm/browser/index.js.map +2 -2
- package/dist/esm/browser/query_options.js.map +2 -2
- package/dist/esm/cli/codegen_templates/readme.js +1 -14
- package/dist/esm/cli/codegen_templates/readme.js.map +2 -2
- package/dist/esm/cli/deploy.js +1 -1
- package/dist/esm/cli/deploy.js.map +1 -1
- package/dist/esm/cli/lib/envvars.js +8 -1
- package/dist/esm/cli/lib/envvars.js.map +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/react/client.js +6 -43
- package/dist/esm/react/client.js.map +2 -2
- package/dist/esm/react/index.js +0 -1
- package/dist/esm/react/index.js.map +2 -2
- package/dist/esm/server/api.js.map +2 -2
- package/dist/esm-types/browser/index.d.ts +0 -1
- package/dist/esm-types/browser/index.d.ts.map +1 -1
- package/dist/esm-types/browser/query_options.d.ts +9 -12
- package/dist/esm-types/browser/query_options.d.ts.map +1 -1
- package/dist/esm-types/cli/codegen_templates/readme.d.ts.map +1 -1
- package/dist/esm-types/cli/lib/deployApi/definitionConfig.d.ts +24 -24
- package/dist/esm-types/cli/lib/deployApi/modules.d.ts +2 -2
- package/dist/esm-types/cli/lib/deployApi/startPush.d.ts +36 -36
- package/dist/esm-types/cli/lib/envvars.d.ts.map +1 -1
- package/dist/esm-types/cli/lib/mcp/tools/insights.d.ts +2 -2
- package/dist/esm-types/index.d.ts +1 -1
- package/dist/esm-types/react/client.d.ts +2 -54
- package/dist/esm-types/react/client.d.ts.map +1 -1
- package/dist/esm-types/react/index.d.ts +2 -7
- package/dist/esm-types/react/index.d.ts.map +1 -1
- package/dist/esm-types/server/api.d.ts +1 -5
- package/dist/esm-types/server/api.d.ts.map +1 -1
- package/dist/react.bundle.js +7 -50
- package/dist/react.bundle.js.map +3 -3
- package/package.json +1 -1
- package/src/browser/index.ts +0 -3
- package/src/browser/query_options.test.ts +9 -0
- package/src/browser/query_options.ts +15 -36
- package/src/cli/codegen_templates/readme.ts +1 -14
- package/src/cli/deploy.ts +1 -1
- package/src/cli/lib/envvars.ts +16 -1
- package/src/index.ts +1 -1
- package/src/react/client.test.tsx +0 -65
- package/src/react/client.ts +13 -129
- package/src/react/index.ts +1 -9
- package/src/server/api.ts +1 -5
- package/dist/cjs-types/react/use_query_object_options.test.d.ts +0 -5
- package/dist/cjs-types/react/use_query_object_options.test.d.ts.map +0 -1
- package/dist/cjs-types/react/use_query_result.test.d.ts +0 -5
- package/dist/cjs-types/react/use_query_result.test.d.ts.map +0 -1
- package/dist/esm-types/react/use_query_object_options.test.d.ts +0 -5
- package/dist/esm-types/react/use_query_object_options.test.d.ts.map +0 -1
- package/dist/esm-types/react/use_query_result.test.d.ts +0 -5
- package/dist/esm-types/react/use_query_result.test.d.ts.map +0 -1
- package/src/react/use_query_object_options.test.ts +0 -50
- package/src/react/use_query_result.test.ts +0 -41
|
@@ -8,13 +8,13 @@ export declare const moduleConfig: z.ZodObject<{
|
|
|
8
8
|
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
|
|
9
9
|
}, "passthrough", z.ZodTypeAny, {
|
|
10
10
|
path: string;
|
|
11
|
-
environment: "node" | "isolate";
|
|
12
11
|
source: string;
|
|
12
|
+
environment: "node" | "isolate";
|
|
13
13
|
sourceMap?: string | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
path: string;
|
|
16
|
-
environment: "node" | "isolate";
|
|
17
16
|
source: string;
|
|
17
|
+
environment: "node" | "isolate";
|
|
18
18
|
sourceMap?: string | undefined;
|
|
19
19
|
}>;
|
|
20
20
|
export type ModuleConfig = z.infer<typeof moduleConfig>;
|
|
@@ -11,13 +11,13 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
11
11
|
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
|
|
12
12
|
}, "passthrough", z.ZodTypeAny, {
|
|
13
13
|
path: string;
|
|
14
|
-
environment: "node" | "isolate";
|
|
15
14
|
source: string;
|
|
15
|
+
environment: "node" | "isolate";
|
|
16
16
|
sourceMap?: string | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
path: string;
|
|
19
|
-
environment: "node" | "isolate";
|
|
20
19
|
source: string;
|
|
20
|
+
environment: "node" | "isolate";
|
|
21
21
|
sourceMap?: string | undefined;
|
|
22
22
|
}>>;
|
|
23
23
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
@@ -28,13 +28,13 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
28
28
|
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
|
|
29
29
|
}, "passthrough", z.ZodTypeAny, {
|
|
30
30
|
path: string;
|
|
31
|
-
environment: "node" | "isolate";
|
|
32
31
|
source: string;
|
|
32
|
+
environment: "node" | "isolate";
|
|
33
33
|
sourceMap?: string | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
path: string;
|
|
36
|
-
environment: "node" | "isolate";
|
|
37
36
|
source: string;
|
|
37
|
+
environment: "node" | "isolate";
|
|
38
38
|
sourceMap?: string | undefined;
|
|
39
39
|
}>>;
|
|
40
40
|
changedModules: z.ZodArray<z.ZodObject<{
|
|
@@ -44,13 +44,13 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
44
44
|
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
|
|
45
45
|
}, "passthrough", z.ZodTypeAny, {
|
|
46
46
|
path: string;
|
|
47
|
-
environment: "node" | "isolate";
|
|
48
47
|
source: string;
|
|
48
|
+
environment: "node" | "isolate";
|
|
49
49
|
sourceMap?: string | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
path: string;
|
|
52
|
-
environment: "node" | "isolate";
|
|
53
52
|
source: string;
|
|
53
|
+
environment: "node" | "isolate";
|
|
54
54
|
sourceMap?: string | undefined;
|
|
55
55
|
}>, "many">;
|
|
56
56
|
unchangedModuleHashes: z.ZodArray<z.ZodObject<{
|
|
@@ -70,21 +70,21 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
70
70
|
}, "passthrough", z.ZodTypeAny, {
|
|
71
71
|
definition: {
|
|
72
72
|
path: string;
|
|
73
|
-
environment: "node" | "isolate";
|
|
74
73
|
source: string;
|
|
74
|
+
environment: "node" | "isolate";
|
|
75
75
|
sourceMap?: string | undefined;
|
|
76
76
|
} | null;
|
|
77
77
|
dependencies: string[];
|
|
78
78
|
schema: {
|
|
79
79
|
path: string;
|
|
80
|
-
environment: "node" | "isolate";
|
|
81
80
|
source: string;
|
|
81
|
+
environment: "node" | "isolate";
|
|
82
82
|
sourceMap?: string | undefined;
|
|
83
83
|
} | null;
|
|
84
84
|
changedModules: {
|
|
85
85
|
path: string;
|
|
86
|
-
environment: "node" | "isolate";
|
|
87
86
|
source: string;
|
|
87
|
+
environment: "node" | "isolate";
|
|
88
88
|
sourceMap?: string | undefined;
|
|
89
89
|
}[];
|
|
90
90
|
unchangedModuleHashes: {
|
|
@@ -96,21 +96,21 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
96
96
|
}, {
|
|
97
97
|
definition: {
|
|
98
98
|
path: string;
|
|
99
|
-
environment: "node" | "isolate";
|
|
100
99
|
source: string;
|
|
100
|
+
environment: "node" | "isolate";
|
|
101
101
|
sourceMap?: string | undefined;
|
|
102
102
|
} | null;
|
|
103
103
|
dependencies: string[];
|
|
104
104
|
schema: {
|
|
105
105
|
path: string;
|
|
106
|
-
environment: "node" | "isolate";
|
|
107
106
|
source: string;
|
|
107
|
+
environment: "node" | "isolate";
|
|
108
108
|
sourceMap?: string | undefined;
|
|
109
109
|
} | null;
|
|
110
110
|
changedModules: {
|
|
111
111
|
path: string;
|
|
112
|
-
environment: "node" | "isolate";
|
|
113
112
|
source: string;
|
|
113
|
+
environment: "node" | "isolate";
|
|
114
114
|
sourceMap?: string | undefined;
|
|
115
115
|
}[];
|
|
116
116
|
unchangedModuleHashes: {
|
|
@@ -129,13 +129,13 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
129
129
|
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
|
|
130
130
|
}, "passthrough", z.ZodTypeAny, {
|
|
131
131
|
path: string;
|
|
132
|
-
environment: "node" | "isolate";
|
|
133
132
|
source: string;
|
|
133
|
+
environment: "node" | "isolate";
|
|
134
134
|
sourceMap?: string | undefined;
|
|
135
135
|
}, {
|
|
136
136
|
path: string;
|
|
137
|
-
environment: "node" | "isolate";
|
|
138
137
|
source: string;
|
|
138
|
+
environment: "node" | "isolate";
|
|
139
139
|
sourceMap?: string | undefined;
|
|
140
140
|
}>;
|
|
141
141
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
@@ -146,13 +146,13 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
146
146
|
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
|
|
147
147
|
}, "passthrough", z.ZodTypeAny, {
|
|
148
148
|
path: string;
|
|
149
|
-
environment: "node" | "isolate";
|
|
150
149
|
source: string;
|
|
150
|
+
environment: "node" | "isolate";
|
|
151
151
|
sourceMap?: string | undefined;
|
|
152
152
|
}, {
|
|
153
153
|
path: string;
|
|
154
|
-
environment: "node" | "isolate";
|
|
155
154
|
source: string;
|
|
155
|
+
environment: "node" | "isolate";
|
|
156
156
|
sourceMap?: string | undefined;
|
|
157
157
|
}>>;
|
|
158
158
|
functions: z.ZodArray<z.ZodObject<{
|
|
@@ -162,34 +162,34 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
162
162
|
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
|
|
163
163
|
}, "passthrough", z.ZodTypeAny, {
|
|
164
164
|
path: string;
|
|
165
|
-
environment: "node" | "isolate";
|
|
166
165
|
source: string;
|
|
166
|
+
environment: "node" | "isolate";
|
|
167
167
|
sourceMap?: string | undefined;
|
|
168
168
|
}, {
|
|
169
169
|
path: string;
|
|
170
|
-
environment: "node" | "isolate";
|
|
171
170
|
source: string;
|
|
171
|
+
environment: "node" | "isolate";
|
|
172
172
|
sourceMap?: string | undefined;
|
|
173
173
|
}>, "many">;
|
|
174
174
|
udfServerVersion: z.ZodString;
|
|
175
175
|
}, "passthrough", z.ZodTypeAny, {
|
|
176
176
|
definition: {
|
|
177
177
|
path: string;
|
|
178
|
-
environment: "node" | "isolate";
|
|
179
178
|
source: string;
|
|
179
|
+
environment: "node" | "isolate";
|
|
180
180
|
sourceMap?: string | undefined;
|
|
181
181
|
};
|
|
182
182
|
dependencies: string[];
|
|
183
183
|
schema: {
|
|
184
184
|
path: string;
|
|
185
|
-
environment: "node" | "isolate";
|
|
186
185
|
source: string;
|
|
186
|
+
environment: "node" | "isolate";
|
|
187
187
|
sourceMap?: string | undefined;
|
|
188
188
|
} | null;
|
|
189
189
|
functions: {
|
|
190
190
|
path: string;
|
|
191
|
-
environment: "node" | "isolate";
|
|
192
191
|
source: string;
|
|
192
|
+
environment: "node" | "isolate";
|
|
193
193
|
sourceMap?: string | undefined;
|
|
194
194
|
}[];
|
|
195
195
|
definitionPath: string;
|
|
@@ -197,21 +197,21 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
197
197
|
}, {
|
|
198
198
|
definition: {
|
|
199
199
|
path: string;
|
|
200
|
-
environment: "node" | "isolate";
|
|
201
200
|
source: string;
|
|
201
|
+
environment: "node" | "isolate";
|
|
202
202
|
sourceMap?: string | undefined;
|
|
203
203
|
};
|
|
204
204
|
dependencies: string[];
|
|
205
205
|
schema: {
|
|
206
206
|
path: string;
|
|
207
|
-
environment: "node" | "isolate";
|
|
208
207
|
source: string;
|
|
208
|
+
environment: "node" | "isolate";
|
|
209
209
|
sourceMap?: string | undefined;
|
|
210
210
|
} | null;
|
|
211
211
|
functions: {
|
|
212
212
|
path: string;
|
|
213
|
-
environment: "node" | "isolate";
|
|
214
213
|
source: string;
|
|
214
|
+
environment: "node" | "isolate";
|
|
215
215
|
sourceMap?: string | undefined;
|
|
216
216
|
}[];
|
|
217
217
|
definitionPath: string;
|
|
@@ -235,21 +235,21 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
235
235
|
appDefinition: {
|
|
236
236
|
definition: {
|
|
237
237
|
path: string;
|
|
238
|
-
environment: "node" | "isolate";
|
|
239
238
|
source: string;
|
|
239
|
+
environment: "node" | "isolate";
|
|
240
240
|
sourceMap?: string | undefined;
|
|
241
241
|
} | null;
|
|
242
242
|
dependencies: string[];
|
|
243
243
|
schema: {
|
|
244
244
|
path: string;
|
|
245
|
-
environment: "node" | "isolate";
|
|
246
245
|
source: string;
|
|
246
|
+
environment: "node" | "isolate";
|
|
247
247
|
sourceMap?: string | undefined;
|
|
248
248
|
} | null;
|
|
249
249
|
changedModules: {
|
|
250
250
|
path: string;
|
|
251
|
-
environment: "node" | "isolate";
|
|
252
251
|
source: string;
|
|
252
|
+
environment: "node" | "isolate";
|
|
253
253
|
sourceMap?: string | undefined;
|
|
254
254
|
}[];
|
|
255
255
|
unchangedModuleHashes: {
|
|
@@ -262,21 +262,21 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
262
262
|
componentDefinitions: {
|
|
263
263
|
definition: {
|
|
264
264
|
path: string;
|
|
265
|
-
environment: "node" | "isolate";
|
|
266
265
|
source: string;
|
|
266
|
+
environment: "node" | "isolate";
|
|
267
267
|
sourceMap?: string | undefined;
|
|
268
268
|
};
|
|
269
269
|
dependencies: string[];
|
|
270
270
|
schema: {
|
|
271
271
|
path: string;
|
|
272
|
-
environment: "node" | "isolate";
|
|
273
272
|
source: string;
|
|
273
|
+
environment: "node" | "isolate";
|
|
274
274
|
sourceMap?: string | undefined;
|
|
275
275
|
} | null;
|
|
276
276
|
functions: {
|
|
277
277
|
path: string;
|
|
278
|
-
environment: "node" | "isolate";
|
|
279
278
|
source: string;
|
|
279
|
+
environment: "node" | "isolate";
|
|
280
280
|
sourceMap?: string | undefined;
|
|
281
281
|
}[];
|
|
282
282
|
definitionPath: string;
|
|
@@ -294,21 +294,21 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
294
294
|
appDefinition: {
|
|
295
295
|
definition: {
|
|
296
296
|
path: string;
|
|
297
|
-
environment: "node" | "isolate";
|
|
298
297
|
source: string;
|
|
298
|
+
environment: "node" | "isolate";
|
|
299
299
|
sourceMap?: string | undefined;
|
|
300
300
|
} | null;
|
|
301
301
|
dependencies: string[];
|
|
302
302
|
schema: {
|
|
303
303
|
path: string;
|
|
304
|
-
environment: "node" | "isolate";
|
|
305
304
|
source: string;
|
|
305
|
+
environment: "node" | "isolate";
|
|
306
306
|
sourceMap?: string | undefined;
|
|
307
307
|
} | null;
|
|
308
308
|
changedModules: {
|
|
309
309
|
path: string;
|
|
310
|
-
environment: "node" | "isolate";
|
|
311
310
|
source: string;
|
|
311
|
+
environment: "node" | "isolate";
|
|
312
312
|
sourceMap?: string | undefined;
|
|
313
313
|
}[];
|
|
314
314
|
unchangedModuleHashes: {
|
|
@@ -321,21 +321,21 @@ export declare const startPushRequest: z.ZodObject<{
|
|
|
321
321
|
componentDefinitions: {
|
|
322
322
|
definition: {
|
|
323
323
|
path: string;
|
|
324
|
-
environment: "node" | "isolate";
|
|
325
324
|
source: string;
|
|
325
|
+
environment: "node" | "isolate";
|
|
326
326
|
sourceMap?: string | undefined;
|
|
327
327
|
};
|
|
328
328
|
dependencies: string[];
|
|
329
329
|
schema: {
|
|
330
330
|
path: string;
|
|
331
|
-
environment: "node" | "isolate";
|
|
332
331
|
source: string;
|
|
332
|
+
environment: "node" | "isolate";
|
|
333
333
|
sourceMap?: string | undefined;
|
|
334
334
|
} | null;
|
|
335
335
|
functions: {
|
|
336
336
|
path: string;
|
|
337
|
-
environment: "node" | "isolate";
|
|
338
337
|
source: string;
|
|
338
|
+
environment: "node" | "isolate";
|
|
339
339
|
sourceMap?: string | undefined;
|
|
340
340
|
}[];
|
|
341
341
|
definitionPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envvars.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/envvars.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAInD,QAAA,MAAM,WAAW,iGAQP,CAAC;AACX,KAAK,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9C;;;;;GAKG;AACH,KAAK,gBAAgB,GAAG;IACtB,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,+DAA+D;IAC/D,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC,GAAG,IAAI,CAAC;AAET,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE;IACP,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,GACA,OAAO,CAAC,gBAAgB,CAAC,CAiC3B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,qBAAqB,GACtB,EAAE;IACD,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC,GAAG,MAAM,GAAG,IAAI,CA6BhB;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,UAEhD;AAED,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,OA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,IAAI,CAwBxD;AAED,wBAAgB,yBAAyB,IAAI,OAAO,CAkBnD"}
|
|
@@ -446,6 +446,7 @@ declare const outputSchema: z.ZodObject<{
|
|
|
446
446
|
summary: z.ZodString;
|
|
447
447
|
dashboardUrl: z.ZodString;
|
|
448
448
|
}, "strip", z.ZodTypeAny, {
|
|
449
|
+
summary: string;
|
|
449
450
|
dashboardUrl: string;
|
|
450
451
|
insights: ({
|
|
451
452
|
kind: "occRetried";
|
|
@@ -546,8 +547,8 @@ declare const outputSchema: z.ZodObject<{
|
|
|
546
547
|
functionId: string;
|
|
547
548
|
severity: "warning";
|
|
548
549
|
})[];
|
|
549
|
-
summary: string;
|
|
550
550
|
}, {
|
|
551
|
+
summary: string;
|
|
551
552
|
dashboardUrl: string;
|
|
552
553
|
insights: ({
|
|
553
554
|
kind: "occRetried";
|
|
@@ -648,7 +649,6 @@ declare const outputSchema: z.ZodObject<{
|
|
|
648
649
|
functionId: string;
|
|
649
650
|
severity: "warning";
|
|
650
651
|
})[];
|
|
651
|
-
summary: string;
|
|
652
652
|
}>;
|
|
653
653
|
export declare const InsightsTool: ConvexTool<typeof inputSchema, typeof outputSchema>;
|
|
654
654
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.35.
|
|
1
|
+
export declare const version = "1.35.1";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,7 +6,7 @@ import { AuthTokenFetcher, BaseConvexClientOptions, ConnectionState } from "../b
|
|
|
6
6
|
import { ArgsAndOptions, FunctionArgs, FunctionReference, FunctionReturnType, OptionalRestArgs } from "../server/api.js";
|
|
7
7
|
import { EmptyObject } from "../server/registration.js";
|
|
8
8
|
import { Logger } from "../browser/logging.js";
|
|
9
|
-
import
|
|
9
|
+
import { ConvexQueryOptions } from "../browser/query_options.js";
|
|
10
10
|
import { LoadMoreOfPaginatedQuery } from "../browser/sync/pagination.js";
|
|
11
11
|
/**
|
|
12
12
|
* An interface to execute a Convex mutation function on the server.
|
|
@@ -233,7 +233,7 @@ export declare class ConvexReactClient {
|
|
|
233
233
|
* @param queryOptions - A query (function reference from an api object) and its args, plus
|
|
234
234
|
* an optional extendSubscriptionFor for how long to subscribe to the query.
|
|
235
235
|
*/
|
|
236
|
-
prewarmQuery<Query extends FunctionReference<"query">>(queryOptions:
|
|
236
|
+
prewarmQuery<Query extends FunctionReference<"query">>(queryOptions: ConvexQueryOptions<Query> & {
|
|
237
237
|
extendSubscriptionFor?: number;
|
|
238
238
|
}): void;
|
|
239
239
|
/**
|
|
@@ -337,29 +337,6 @@ export declare const ConvexProvider: React.FC<{
|
|
|
337
337
|
children?: React.ReactNode;
|
|
338
338
|
}>;
|
|
339
339
|
export type OptionalRestArgsOrSkip<FuncRef extends FunctionReference<any>> = FuncRef["_args"] extends EmptyObject ? [args?: EmptyObject | "skip"] : [args: FuncRef["_args"] | "skip"];
|
|
340
|
-
/**
|
|
341
|
-
* Result returned by object-form {@link useQuery}.
|
|
342
|
-
*
|
|
343
|
-
* @public
|
|
344
|
-
*/
|
|
345
|
-
export type UseQueryResult<QueryResult> = {
|
|
346
|
-
data: QueryResult;
|
|
347
|
-
error: undefined;
|
|
348
|
-
status: "success";
|
|
349
|
-
} | {
|
|
350
|
-
data: undefined;
|
|
351
|
-
error: Error;
|
|
352
|
-
status: "error";
|
|
353
|
-
} | {
|
|
354
|
-
data: undefined;
|
|
355
|
-
error: undefined;
|
|
356
|
-
status: "pending";
|
|
357
|
-
};
|
|
358
|
-
type UseQueryOptions<Query extends FunctionReference<"query">> = {
|
|
359
|
-
query: Query;
|
|
360
|
-
args: FunctionArgs<Query> | "skip";
|
|
361
|
-
throwOnError?: boolean;
|
|
362
|
-
};
|
|
363
340
|
/**
|
|
364
341
|
* Load a reactive query within a React component.
|
|
365
342
|
*
|
|
@@ -404,34 +381,6 @@ type UseQueryOptions<Query extends FunctionReference<"query">> = {
|
|
|
404
381
|
* @public
|
|
405
382
|
*/
|
|
406
383
|
export declare function useQuery<Query extends FunctionReference<"query">>(query: Query, ...args: OptionalRestArgsOrSkip<Query>): Query["_returnType"] | undefined;
|
|
407
|
-
/**
|
|
408
|
-
* Load a reactive query within a React component using an options object.
|
|
409
|
-
*
|
|
410
|
-
* This is an alternative form of {@link useQuery} that accepts a single
|
|
411
|
-
* {@link UseQueryOptions} object instead of positional arguments.
|
|
412
|
-
* Errors are returned in the result object unless `throwOnError` is set.
|
|
413
|
-
*
|
|
414
|
-
* @example
|
|
415
|
-
* ```tsx
|
|
416
|
-
* import { useQuery } from "convex/react";
|
|
417
|
-
* import { api } from "../convex/_generated/api";
|
|
418
|
-
*
|
|
419
|
-
* function TaskList() {
|
|
420
|
-
* const state = useQuery({ query: api.tasks.list, args: { completed: false } });
|
|
421
|
-
*
|
|
422
|
-
* if (state.status === "pending") return <div>Loading...</div>;
|
|
423
|
-
* if (state.status === "error") return <div>Error: {state.error.message}</div>;
|
|
424
|
-
* return state.data.map((task) => <div key={task._id}>{task.text}</div>);
|
|
425
|
-
* }
|
|
426
|
-
* ```
|
|
427
|
-
*
|
|
428
|
-
* @param options - Query options. Pass `args: "skip"` to disable the query.
|
|
429
|
-
* @returns the current query state as a {@link UseQueryResult} object.
|
|
430
|
-
*
|
|
431
|
-
* @see https://docs.convex.dev/client/react#fetching-data
|
|
432
|
-
* @public
|
|
433
|
-
*/
|
|
434
|
-
export declare function useQuery<Query extends FunctionReference<"query">>(options: UseQueryOptions<Query>): UseQueryResult<Query["_returnType"]>;
|
|
435
384
|
/**
|
|
436
385
|
* Construct a new {@link ReactMutation}.
|
|
437
386
|
*
|
|
@@ -533,5 +482,4 @@ export declare function useAction<Action extends FunctionReference<"action">>(ac
|
|
|
533
482
|
* @public
|
|
534
483
|
*/
|
|
535
484
|
export declare function useConvexConnectionState(): ConnectionState;
|
|
536
|
-
export {};
|
|
537
485
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/react/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAGhB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAgB,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAKnC,OAAO,EACL,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAGjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAGL,MAAM,EACP,MAAM,uBAAuB,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/react/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAGhB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAgB,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAKnC,OAAO,EACL,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAGjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAGL,MAAM,EACP,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAgB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AAM,CAAC,CAmBrB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,IAAI,eAAe,CAwB1D"}
|
|
@@ -53,11 +53,7 @@
|
|
|
53
53
|
* import { api } from "../convex/_generated/api";
|
|
54
54
|
*
|
|
55
55
|
* function App() {
|
|
56
|
-
* const counter = useQuery(
|
|
57
|
-
* query: api.getCounter.default,
|
|
58
|
-
* args: {},
|
|
59
|
-
* throwOnError: true,
|
|
60
|
-
* }).data;
|
|
56
|
+
* const counter = useQuery(api.getCounter.default);
|
|
61
57
|
* const increment = useMutation(api.incrementCounter.default);
|
|
62
58
|
* // Your component here!
|
|
63
59
|
* }
|
|
@@ -72,6 +68,5 @@ export type { AuthTokenFetcher } from "../browser/sync/client.js";
|
|
|
72
68
|
export * from "./auth_helpers.js";
|
|
73
69
|
export * from "./ConvexAuthState.js";
|
|
74
70
|
export * from "./hydration.js";
|
|
75
|
-
export { type ReactMutation, type ReactAction, type Watch, type WatchQueryOptions, type MutationOptions, type ConvexReactClientOptions, type OptionalRestArgsOrSkip,
|
|
76
|
-
export type { QueryOptions } from "../browser/query_options.js";
|
|
71
|
+
export { type ReactMutation, type ReactAction, type Watch, type WatchQueryOptions, type MutationOptions, type ConvexReactClientOptions, type OptionalRestArgsOrSkip, ConvexReactClient, useConvex, ConvexProvider, useQuery, useMutation, useAction, useConvexConnectionState, } from "./client.js";
|
|
77
72
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACtE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,QAAQ,EACR,WAAW,EACX,SAAS,EACT,wBAAwB,GACzB,MAAM,aAAa,CAAC"}
|
|
@@ -28,11 +28,7 @@ export type FunctionType = "query" | "mutation" | "action";
|
|
|
28
28
|
* Function references can be used to invoke functions from the client. For
|
|
29
29
|
* example, in React you can pass references to the {@link react.useQuery} hook:
|
|
30
30
|
* ```js
|
|
31
|
-
* const result = useQuery(
|
|
32
|
-
* query: api.myModule.myFunction,
|
|
33
|
-
* args: {},
|
|
34
|
-
* throwOnError: true,
|
|
35
|
-
* }).data;
|
|
31
|
+
* const result = useQuery(api.myModule.myFunction);
|
|
36
32
|
* ```
|
|
37
33
|
*
|
|
38
34
|
* @typeParam Type - The type of the function ("query", "mutation", or "action").
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/server/api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,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M,MAAM,cAAc,CACxB,OAAO,SAAS,oBAAoB,EACpC,OAAO,IACL,OAAO,CAAC,OAAO,CAAC,SAAS,WAAW,GACpC,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACvC,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAEhD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,OAAO,SAAS,oBAAoB,IACjE,OAAO,CAAC,aAAa,CAAC,CAAC;AAEzB,KAAK,eAAe,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC;AAEpD,KAAK,qBAAqB,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC;AAE1E;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/D,MAAM,MAAM,yBAAyB,CAAC,CAAC,IACnC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,GACjC,qBAAqB,CAAC,CAAC,CAAC,CAAC"}
|
package/dist/cli.bundle.cjs
CHANGED
|
@@ -104914,7 +104914,7 @@ var {
|
|
|
104914
104914
|
var import_fetch_retry = __toESM(require_fetch_retry(), 1);
|
|
104915
104915
|
|
|
104916
104916
|
// src/index.ts
|
|
104917
|
-
var version = "1.35.
|
|
104917
|
+
var version = "1.35.1";
|
|
104918
104918
|
|
|
104919
104919
|
// src/cli/version.ts
|
|
104920
104920
|
var version2 = process.env.CONVEX_VERSION_OVERRIDE || version;
|
|
@@ -108392,7 +108392,7 @@ async function detectSuspiciousEnvironmentVariables(ctx, ignoreSuspiciousEnvVars
|
|
|
108392
108392
|
}
|
|
108393
108393
|
}
|
|
108394
108394
|
function getBuildEnvironment() {
|
|
108395
|
-
return process.env.VERCEL ? "Vercel" : process.env.NETLIFY ? "Netlify" : false;
|
|
108395
|
+
return process.env.VERCEL ? "Vercel" : process.env.NETLIFY ? "Netlify" : process.env.CF_PAGES || process.env.WORKERS_CI ? "Cloudflare" : false;
|
|
108396
108396
|
}
|
|
108397
108397
|
function gitBranchFromEnvironment() {
|
|
108398
108398
|
if (process.env.VERCEL) {
|
|
@@ -108401,6 +108401,9 @@ function gitBranchFromEnvironment() {
|
|
|
108401
108401
|
if (process.env.NETLIFY) {
|
|
108402
108402
|
return process.env.HEAD ?? null;
|
|
108403
108403
|
}
|
|
108404
|
+
if (process.env.CF_PAGES || process.env.WORKERS_CI) {
|
|
108405
|
+
return process.env.CF_PAGES_BRANCH ?? process.env.WORKERS_CI_BRANCH ?? null;
|
|
108406
|
+
}
|
|
108404
108407
|
if (process.env.CI) {
|
|
108405
108408
|
return process.env.GITHUB_HEAD_REF ?? process.env.CI_COMMIT_REF_NAME ?? null;
|
|
108406
108409
|
}
|
|
@@ -108413,6 +108416,10 @@ function isNonProdBuildEnvironment() {
|
|
|
108413
108416
|
if (process.env.NETLIFY) {
|
|
108414
108417
|
return process.env.CONTEXT !== "production";
|
|
108415
108418
|
}
|
|
108419
|
+
if (process.env.CF_PAGES || process.env.WORKERS_CI) {
|
|
108420
|
+
const branch = process.env.CF_PAGES_BRANCH ?? process.env.WORKERS_CI_BRANCH;
|
|
108421
|
+
return branch !== "main";
|
|
108422
|
+
}
|
|
108416
108423
|
return false;
|
|
108417
108424
|
}
|
|
108418
108425
|
|
|
@@ -121697,20 +121704,7 @@ export const myQueryFunction = query({
|
|
|
121697
121704
|
Using this query function in a React component looks like:
|
|
121698
121705
|
|
|
121699
121706
|
\`\`\`ts
|
|
121700
|
-
const
|
|
121701
|
-
query: api.myFunctions.myQueryFunction,
|
|
121702
|
-
args: { first: 10, second: "hello" },
|
|
121703
|
-
});
|
|
121704
|
-
|
|
121705
|
-
if (state.status === "pending") {
|
|
121706
|
-
return <div>Loading...</div>;
|
|
121707
|
-
}
|
|
121708
|
-
|
|
121709
|
-
if (state.status === "error") {
|
|
121710
|
-
return <div>Error: {state.error.message}</div>;
|
|
121711
|
-
}
|
|
121712
|
-
|
|
121713
|
-
const data = state.data;
|
|
121707
|
+
const data = useQuery(api.myFunctions.myQueryFunction, { first: 10, second: "hello" });
|
|
121714
121708
|
\`\`\`
|
|
121715
121709
|
|
|
121716
121710
|
|
|
@@ -132322,7 +132316,7 @@ Deploys to a preview deployment if the \`${CONVEX_DEPLOY_KEY_ENV_VAR_NAME}\` env
|
|
|
132322
132316
|
).addOption(
|
|
132323
132317
|
new Option(
|
|
132324
132318
|
"--preview-create <name>",
|
|
132325
|
-
"The name to associate with this deployment if deploying to a newly created preview deployment. Defaults to the current Git branch name in Vercel, Netlify and GitHub CI. This parameter can only be used with a preview deploy key (when used with another type of key, the command will return an error)."
|
|
132319
|
+
"The name to associate with this deployment if deploying to a newly created preview deployment. Defaults to the current Git branch name in Vercel, Netlify, Cloudflare Pages and GitHub CI. This parameter can only be used with a preview deploy key (when used with another type of key, the command will return an error)."
|
|
132326
132320
|
).conflicts("preview-name")
|
|
132327
132321
|
).addOption(
|
|
132328
132322
|
new Option(
|