convex-helpers 0.1.132 → 0.1.133
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/CHANGELOG.md +301 -0
- package/README.md +15 -10
- package/{bin.cjs → dist/bin.cjs} +40 -40
- package/dist/browser.d.ts.map +1 -0
- package/{browser.js → dist/browser.js} +1 -0
- package/dist/browser.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/{index.js → dist/index.js} +1 -0
- package/dist/index.js.map +1 -0
- package/dist/react/cache/hooks.d.ts.map +1 -0
- package/{react → dist/react}/cache/hooks.js +1 -0
- package/dist/react/cache/hooks.js.map +1 -0
- package/dist/react/cache/provider.d.ts.map +1 -0
- package/{react → dist/react}/cache/provider.js +1 -0
- package/dist/react/cache/provider.js.map +1 -0
- package/dist/react/cache.d.ts.map +1 -0
- package/{react → dist/react}/cache.js +1 -0
- package/dist/react/cache.js.map +1 -0
- package/dist/react/sessions.d.ts.map +1 -0
- package/{react → dist/react}/sessions.js +1 -0
- package/dist/react/sessions.js.map +1 -0
- package/dist/react.d.ts.map +1 -0
- package/{react.js → dist/react.js} +1 -0
- package/dist/react.js.map +1 -0
- package/dist/server/compare.d.ts.map +1 -0
- package/{server → dist/server}/compare.js +1 -0
- package/dist/server/compare.js.map +1 -0
- package/dist/server/cors.d.ts.map +1 -0
- package/{server → dist/server}/cors.js +1 -0
- package/dist/server/cors.js.map +1 -0
- package/dist/server/crud.d.ts.map +1 -0
- package/{server → dist/server}/crud.js +1 -0
- package/dist/server/crud.js.map +1 -0
- package/dist/server/customFunctions.d.ts.map +1 -0
- package/{server → dist/server}/customFunctions.js +1 -0
- package/dist/server/customFunctions.js.map +1 -0
- package/dist/server/filter.d.ts.map +1 -0
- package/{server → dist/server}/filter.js +1 -0
- package/dist/server/filter.js.map +1 -0
- package/dist/server/hono.d.ts.map +1 -0
- package/{server → dist/server}/hono.js +1 -0
- package/dist/server/hono.js.map +1 -0
- package/dist/server/migrations.d.ts.map +1 -0
- package/{server → dist/server}/migrations.js +1 -0
- package/dist/server/migrations.js.map +1 -0
- package/dist/server/pagination.d.ts.map +1 -0
- package/{server → dist/server}/pagination.js +1 -0
- package/dist/server/pagination.js.map +1 -0
- package/dist/server/rateLimit.d.ts.map +1 -0
- package/{server → dist/server}/rateLimit.js +1 -0
- package/dist/server/rateLimit.js.map +1 -0
- package/dist/server/relationships.d.ts.map +1 -0
- package/{server → dist/server}/relationships.js +1 -0
- package/dist/server/relationships.js.map +1 -0
- package/dist/server/retries.d.ts.map +1 -0
- package/{server → dist/server}/retries.js +1 -0
- package/dist/server/retries.js.map +1 -0
- package/dist/server/rowLevelSecurity.d.ts.map +1 -0
- package/{server → dist/server}/rowLevelSecurity.js +1 -0
- package/dist/server/rowLevelSecurity.js.map +1 -0
- package/dist/server/sessions.d.ts.map +1 -0
- package/{server → dist/server}/sessions.js +1 -0
- package/dist/server/sessions.js.map +1 -0
- package/dist/server/stream.d.ts.map +1 -0
- package/{server → dist/server}/stream.js +1 -0
- package/dist/server/stream.js.map +1 -0
- package/dist/server/triggers.d.ts.map +1 -0
- package/{server → dist/server}/triggers.js +1 -0
- package/dist/server/triggers.js.map +1 -0
- package/dist/server/zod.d.ts.map +1 -0
- package/{server → dist/server}/zod.js +1 -0
- package/dist/server/zod.js.map +1 -0
- package/dist/server/zod3.d.ts.map +1 -0
- package/{server → dist/server}/zod3.js +1 -0
- package/dist/server/zod3.js.map +1 -0
- package/dist/server/zod4.d.ts.map +1 -0
- package/{server → dist/server}/zod4.js +7 -1
- package/dist/server/zod4.js.map +1 -0
- package/dist/server.d.ts.map +1 -0
- package/{server.js → dist/server.js} +1 -0
- package/dist/server.js.map +1 -0
- package/dist/standardSchema.d.ts.map +1 -0
- package/{standardSchema.js → dist/standardSchema.js} +1 -0
- package/dist/standardSchema.js.map +1 -0
- package/dist/test/zodToConvex.d.ts +57 -0
- package/dist/test/zodToConvex.d.ts.map +1 -0
- package/dist/test/zodToConvex.js +70 -0
- package/dist/test/zodToConvex.js.map +1 -0
- package/dist/test/zodVersion.d.ts +27 -0
- package/dist/test/zodVersion.d.ts.map +1 -0
- package/dist/test/zodVersion.js +31 -0
- package/dist/test/zodVersion.js.map +1 -0
- package/dist/testing.d.ts.map +1 -0
- package/{testing.js → dist/testing.js} +1 -0
- package/dist/testing.js.map +1 -0
- package/dist/validators.d.ts.map +1 -0
- package/{validators.js → dist/validators.js} +1 -0
- package/dist/validators.js.map +1 -0
- package/package.json +164 -74
- package/packages/convex-helpers/cli/index.ts +20 -0
- package/packages/convex-helpers/cli/openApiSpec.ts +298 -0
- package/packages/convex-helpers/cli/tsApiSpec.ts +200 -0
- package/packages/convex-helpers/cli/utils.ts +84 -0
- package/{src → packages/convex-helpers}/server/zod4.ts +9 -1
- package/packages/convex-helpers/test/zodToConvex.ts +151 -0
- package/packages/convex-helpers/test/zodVersion.ts +42 -0
- package/browser.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/react/cache/hooks.d.ts.map +0 -1
- package/react/cache/provider.d.ts.map +0 -1
- package/react/cache.d.ts.map +0 -1
- package/react/sessions.d.ts.map +0 -1
- package/react.d.ts.map +0 -1
- package/server/compare.d.ts.map +0 -1
- package/server/cors.d.ts.map +0 -1
- package/server/crud.d.ts.map +0 -1
- package/server/customFunctions.d.ts.map +0 -1
- package/server/filter.d.ts.map +0 -1
- package/server/hono.d.ts.map +0 -1
- package/server/migrations.d.ts.map +0 -1
- package/server/pagination.d.ts.map +0 -1
- package/server/rateLimit.d.ts.map +0 -1
- package/server/relationships.d.ts.map +0 -1
- package/server/retries.d.ts.map +0 -1
- package/server/rowLevelSecurity.d.ts.map +0 -1
- package/server/sessions.d.ts.map +0 -1
- package/server/stream.d.ts.map +0 -1
- package/server/triggers.d.ts.map +0 -1
- package/server/zod.d.ts.map +0 -1
- package/server/zod3.d.ts.map +0 -1
- package/server/zod4.d.ts.map +0 -1
- package/server.d.ts.map +0 -1
- package/src/browser.test.ts +0 -108
- package/src/functionReferences.test.ts +0 -359
- package/src/index.test.ts +0 -66
- package/src/react.test.ts +0 -114
- package/src/standardSchema.test.ts +0 -99
- package/src/tsconfig.json +0 -114
- package/src/validators.test.ts +0 -306
- package/standardSchema.d.ts.map +0 -1
- package/testing.d.ts.map +0 -1
- package/validators.d.ts.map +0 -1
- /package/{browser.d.ts → dist/browser.d.ts} +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{react → dist/react}/cache/hooks.d.ts +0 -0
- /package/{react → dist/react}/cache/provider.d.ts +0 -0
- /package/{react → dist/react}/cache.d.ts +0 -0
- /package/{react → dist/react}/sessions.d.ts +0 -0
- /package/{react.d.ts → dist/react.d.ts} +0 -0
- /package/{server → dist/server}/compare.d.ts +0 -0
- /package/{server → dist/server}/cors.d.ts +0 -0
- /package/{server → dist/server}/crud.d.ts +0 -0
- /package/{server → dist/server}/customFunctions.d.ts +0 -0
- /package/{server → dist/server}/filter.d.ts +0 -0
- /package/{server → dist/server}/hono.d.ts +0 -0
- /package/{server → dist/server}/migrations.d.ts +0 -0
- /package/{server → dist/server}/pagination.d.ts +0 -0
- /package/{server → dist/server}/rateLimit.d.ts +0 -0
- /package/{server → dist/server}/relationships.d.ts +0 -0
- /package/{server → dist/server}/retries.d.ts +0 -0
- /package/{server → dist/server}/rowLevelSecurity.d.ts +0 -0
- /package/{server → dist/server}/sessions.d.ts +0 -0
- /package/{server → dist/server}/stream.d.ts +0 -0
- /package/{server → dist/server}/triggers.d.ts +0 -0
- /package/{server → dist/server}/zod.d.ts +0 -0
- /package/{server → dist/server}/zod3.d.ts +0 -0
- /package/{server → dist/server}/zod4.d.ts +0 -0
- /package/{server.d.ts → dist/server.d.ts} +0 -0
- /package/{standardSchema.d.ts → dist/standardSchema.d.ts} +0 -0
- /package/{testing.d.ts → dist/testing.d.ts} +0 -0
- /package/{validators.d.ts → dist/validators.d.ts} +0 -0
- /package/{src → packages/convex-helpers}/browser.ts +0 -0
- /package/{src → packages/convex-helpers}/index.ts +0 -0
- /package/{src → packages/convex-helpers}/react/cache/hooks.ts +0 -0
- /package/{src → packages/convex-helpers}/react/cache/provider.tsx +0 -0
- /package/{src → packages/convex-helpers}/react/cache.ts +0 -0
- /package/{src → packages/convex-helpers}/react/sessions.ts +0 -0
- /package/{src → packages/convex-helpers}/react.ts +0 -0
- /package/{src → packages/convex-helpers}/server/compare.ts +0 -0
- /package/{src → packages/convex-helpers}/server/cors.ts +0 -0
- /package/{src → packages/convex-helpers}/server/crud.ts +0 -0
- /package/{src → packages/convex-helpers}/server/customFunctions.ts +0 -0
- /package/{src → packages/convex-helpers}/server/filter.ts +0 -0
- /package/{src → packages/convex-helpers}/server/hono.ts +0 -0
- /package/{src → packages/convex-helpers}/server/migrations.ts +0 -0
- /package/{src → packages/convex-helpers}/server/pagination.ts +0 -0
- /package/{src → packages/convex-helpers}/server/rateLimit.ts +0 -0
- /package/{src → packages/convex-helpers}/server/relationships.ts +0 -0
- /package/{src → packages/convex-helpers}/server/retries.ts +0 -0
- /package/{src → packages/convex-helpers}/server/rowLevelSecurity.ts +0 -0
- /package/{src → packages/convex-helpers}/server/sessions.ts +0 -0
- /package/{src → packages/convex-helpers}/server/stream.ts +0 -0
- /package/{src → packages/convex-helpers}/server/triggers.ts +0 -0
- /package/{src → packages/convex-helpers}/server/zod.ts +0 -0
- /package/{src → packages/convex-helpers}/server/zod3.ts +0 -0
- /package/{src → packages/convex-helpers}/server.ts +0 -0
- /package/{src → packages/convex-helpers}/standardSchema.ts +0 -0
- /package/{src → packages/convex-helpers}/testing.ts +0 -0
- /package/{src → packages/convex-helpers}/validators.ts +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.133
|
|
4
|
+
|
|
5
|
+
- Zod 4 support: when a `z.object()` schema is passed as `args` to
|
|
6
|
+
`zCustomQuery`/`zCustomMutation`/`zCustomAction`, checks on the object
|
|
7
|
+
itself (`.refine()`, `.superRefine()`, `.check()`) are now run. Previously
|
|
8
|
+
they were silently skipped. (#1055)
|
|
9
|
+
|
|
10
|
+
## 0.1.132
|
|
11
|
+
|
|
12
|
+
- Enforces defaultPolicy: "deny" for RLS on bare db.get calls where
|
|
13
|
+
table name is not provided and cannot be determined.
|
|
14
|
+
|
|
15
|
+
## 0.1.131
|
|
16
|
+
|
|
17
|
+
- Zod 4 support: fixed a regression in 0.1.130 when chaining multiple `.brand()`
|
|
18
|
+
calls together.
|
|
19
|
+
|
|
20
|
+
## 0.1.130
|
|
21
|
+
|
|
22
|
+
- Zod 4 support: bug fixes when used across different Zod versions:
|
|
23
|
+
- `zodToConvex` now makes the fields of `z.partialRecord` optional on Zod 4.5
|
|
24
|
+
and later, with literal and enum keys. Thanks to @aymanemt1 for the fix!
|
|
25
|
+
(#1025, #1047)
|
|
26
|
+
- Fixed `TS2589: Type instantiation is excessively deep and possibly infinite`
|
|
27
|
+
when calling `convexToZod` inline (e.g. in the `args` of `zCustomMutation`)
|
|
28
|
+
on Zod 4.6.6 and later. Thanks to @jherth for the fix! (#1043)
|
|
29
|
+
- Fixed the type of `v.commitTs()` in `convexToZod` on Zod 4.6. (#1050)
|
|
30
|
+
- Fixed the type of branded `zod/mini` objects on Zod 4.0–4.2. (#1051)
|
|
31
|
+
- `validate` and `parse` now reject arrays and class instances (e.g. `Date`,
|
|
32
|
+
`Map`) for `v.record(...)` validators, as Convex does. Thanks to
|
|
33
|
+
@RishavTiwari25 for the fix! (#1040)
|
|
34
|
+
|
|
35
|
+
## 0.1.129
|
|
36
|
+
|
|
37
|
+
- (fix:streams) Retry later groups after nonempty pages (#1027)
|
|
38
|
+
- (fix:validators) Only match own keys of an object validator's fields. Thanks to
|
|
39
|
+
@mikirejf for the fix! (#1035)
|
|
40
|
+
|
|
41
|
+
## 0.1.128
|
|
42
|
+
|
|
43
|
+
- Triggers: `patch`, `replace` and `delete` with an explicit table name now
|
|
44
|
+
skip the trigger path when the table has no registered triggers, as `insert`
|
|
45
|
+
already does. They no longer read the document before and after the write.
|
|
46
|
+
- Zod 4 support: fixed the TypeScript return type of `zodOutputToConvex` for
|
|
47
|
+
schemas nested in objects, arrays, records, unions and tuples (and inside
|
|
48
|
+
`.readonly()`, `z.lazy()`, `.catch()` and `.nonoptional()`). These nested
|
|
49
|
+
schemas were typed from their input, like in `zodToConvex`, so a nested
|
|
50
|
+
`z.codec`, `z.pipe` or `.default()` got the wrong type. The return type now
|
|
51
|
+
matches the validator returned at runtime. Thanks to @vinnysaj for the fix!
|
|
52
|
+
- fix(stream): Ensure cursors advance past exhausted flatMap items on resume (#1018)
|
|
53
|
+
|
|
54
|
+
## 0.1.127
|
|
55
|
+
|
|
56
|
+
- (fix:streams) Preserve empty stream intersections and their index metadata (#1017)
|
|
57
|
+
|
|
58
|
+
## 0.1.126
|
|
59
|
+
|
|
60
|
+
- (fix:streams) Preserve flatMap rows when resuming from cursor (#1014)
|
|
61
|
+
|
|
62
|
+
## 0.1.125
|
|
63
|
+
|
|
64
|
+
- Support Convex 1.46's `FunctionReference_future` in query hooks and function
|
|
65
|
+
wrappers, including composing cached `useQueries` with `makeUseQueryWithStatus`.
|
|
66
|
+
Requires `convex` ^1.46.0.
|
|
67
|
+
|
|
68
|
+
## 0.1.124
|
|
69
|
+
|
|
70
|
+
- `validate` now normalizes system table ids (e.g. `v.id("_storage")`) with
|
|
71
|
+
`db.system.normalizeId` instead of throwing when passed a real `db`.
|
|
72
|
+
|
|
73
|
+
## 0.1.123
|
|
74
|
+
|
|
75
|
+
- Deprecates some validator utilities now that convex@1.44 has schema.doc and schema.id
|
|
76
|
+
|
|
77
|
+
## 0.1.122
|
|
78
|
+
|
|
79
|
+
- Support TypeScript 7.
|
|
80
|
+
|
|
81
|
+
## 0.1.121
|
|
82
|
+
|
|
83
|
+
- Support the new `db.vars.commitTs` variable and `v.commitTs()` validator added in
|
|
84
|
+
convex 1.43.0.
|
|
85
|
+
- `convex-helpers/server/compare` is deprecated and now re-exports
|
|
86
|
+
`compareValues` from `convex/values`. There may be small differences in behavior in
|
|
87
|
+
uncommon cases (NaNs, negative zero, etc.) compared with the previous implementation.
|
|
88
|
+
|
|
89
|
+
## 0.1.120
|
|
90
|
+
|
|
91
|
+
- Zod 4 support: fix a regression introduced in 0.1.119 in the return types of
|
|
92
|
+
`zodToConvex`/`zodOutputToConvex` when using branded types (including `zid`)
|
|
93
|
+
|
|
94
|
+
## 0.1.119
|
|
95
|
+
|
|
96
|
+
- Zod 4 support: the return types of `zodToConvex` and `zodOutputToConvex`
|
|
97
|
+
now return the expected type when enabling the
|
|
98
|
+
`exactOptionalPropertyTypes` TypeScript setting.
|
|
99
|
+
|
|
100
|
+
## 0.1.118
|
|
101
|
+
|
|
102
|
+
- Fixes the helpers custom pagination page splitting logic when used
|
|
103
|
+
with filters. Previously it would aggressively split pages whenever
|
|
104
|
+
more items were _scanned_ than requested. Now it only splits when
|
|
105
|
+
the page grows to be larger than the number of requested items or
|
|
106
|
+
so many documents are being scanned that the limits are close to being
|
|
107
|
+
hit.
|
|
108
|
+
|
|
109
|
+
## 0.1.117
|
|
110
|
+
|
|
111
|
+
- Zod 4 support: fixed an issue with the return type of `convexToZod`
|
|
112
|
+
when the input type is a non-tuple array type.
|
|
113
|
+
|
|
114
|
+
## 0.1.116
|
|
115
|
+
|
|
116
|
+
- `HonoWithConvex` and `HttpRouterWithHono` now accept an optional `Variables`
|
|
117
|
+
type parameter, so consumers using middleware-driven typed context state
|
|
118
|
+
(`c.var` / `c.set` / `c.get`) no longer need to cast their `Hono` app.
|
|
119
|
+
- Support nullable empty schemas in open-api-spec
|
|
120
|
+
|
|
121
|
+
## 0.1.115
|
|
122
|
+
|
|
123
|
+
- Supports typescript ^6.0.0
|
|
124
|
+
|
|
125
|
+
## 0.1.114
|
|
126
|
+
|
|
127
|
+
- Adds support for maximumBytesRead option for PaginationOptions on the
|
|
128
|
+
stream / paginator helpers.
|
|
129
|
+
|
|
130
|
+
## 0.1.113
|
|
131
|
+
|
|
132
|
+
- Zod 4 support: fix the input type of `zid` (thanks @danth3b0t!)
|
|
133
|
+
|
|
134
|
+
## 0.1.112
|
|
135
|
+
|
|
136
|
+
- Zod 4 support: fix an issue where `zodToConvex` would incorrectly
|
|
137
|
+
identify some types as `v.id()` when using Zod schema inheritance.
|
|
138
|
+
- Relationships: fix the return type of `getManyVia`
|
|
139
|
+
and `getManyViaOrThrow` when using system tables.
|
|
140
|
+
|
|
141
|
+
## 0.1.111
|
|
142
|
+
|
|
143
|
+
- Allow a hono http router register more routes using the standard
|
|
144
|
+
Convex HttpRouter API
|
|
145
|
+
|
|
146
|
+
## 0.1.110
|
|
147
|
+
|
|
148
|
+
- Improve db wrapping in Triggers to support using an RLS-wrapped DB
|
|
149
|
+
|
|
150
|
+
## 0.1.109
|
|
151
|
+
|
|
152
|
+
- Triggers/row-level security: fix a type issue with the `ctx.db` APIs with
|
|
153
|
+
table name arguments (see the changelog of
|
|
154
|
+
[`convex@1.31.2`](https://github.com/convex/convex-js/blob/main/CHANGELOG.md#1312))
|
|
155
|
+
- Zod 4: fix handling of optional in the type of `zodOutputToConvex` (credit: ksinghal)
|
|
156
|
+
- Fixes validation of records with undefined values. `validate` will now skip entries
|
|
157
|
+
with undefined values for record and object validators, and `parse` will drop
|
|
158
|
+
entries from records that have undefined values.
|
|
159
|
+
- The openapi and ts generator commands will now avoid adding .yaml if the filename
|
|
160
|
+
already includes it.
|
|
161
|
+
|
|
162
|
+
## 0.1.108
|
|
163
|
+
|
|
164
|
+
- `makeUseQueryWithStatus`: fix handling of some argument values
|
|
165
|
+
(credit: RhysSullivan)
|
|
166
|
+
- Triggers: fix handling of `ctx.db` calls with a table name parameter
|
|
167
|
+
|
|
168
|
+
## 0.1.107
|
|
169
|
+
|
|
170
|
+
- Zod support: branded object types are now supported (credit: gary-ix)
|
|
171
|
+
- Fixes `skipConvexValidation` for zod custom functions to still do zod validation.
|
|
172
|
+
|
|
173
|
+
## 0.1.106
|
|
174
|
+
|
|
175
|
+
- Update typedV to match the type of the installed convex validators for v.nullable
|
|
176
|
+
- Improves handling of literals() helper to keep the ordering of its members
|
|
177
|
+
- Improved Zod 4 handling of circular types, empty returns, and empty function args
|
|
178
|
+
- Zod 4 transforms can now be asynchronous
|
|
179
|
+
|
|
180
|
+
## 0.1.105
|
|
181
|
+
|
|
182
|
+
- **convex-helpers now supports Zod 4!** (#840)
|
|
183
|
+
- The new methods that support Zod 4 can be found in `convex-helpers/server/zod4`
|
|
184
|
+
- Existing types and methods for Zod 3 support have been moved
|
|
185
|
+
(`convex-helpers/server/zod` → `convex-helpers/server/zod3`)
|
|
186
|
+
- Thanks to @ksinghal and @natedunn for their contributions to this improvement.
|
|
187
|
+
- Zod 3 support: fix the return types of `zodOutputToConvex` for objects and unions
|
|
188
|
+
(credit: gari-ix)
|
|
189
|
+
- Zod 3 support: improve the type safety of `onSuccess` in custom function builders
|
|
190
|
+
- Sessions: If the only argument to a session function is the sessionId,
|
|
191
|
+
allow omitting args in React.
|
|
192
|
+
|
|
193
|
+
## 0.1.104
|
|
194
|
+
|
|
195
|
+
- Allows RLS to deny access by default
|
|
196
|
+
|
|
197
|
+
## 0.1.103
|
|
198
|
+
|
|
199
|
+
- Parsing validators with optional fields and explicit { field: undefined } works
|
|
200
|
+
|
|
201
|
+
## 0.1.102
|
|
202
|
+
|
|
203
|
+
- You can use Zod4 alongside convex-helpers.
|
|
204
|
+
Note: convex-helpers/zod supports zod3 only. Zod4 support is WIP
|
|
205
|
+
|
|
206
|
+
## 0.1.101
|
|
207
|
+
|
|
208
|
+
- Improved Zod union type (credit:Firephoenix25)
|
|
209
|
+
- Fixes zCustom\* function type inference regression
|
|
210
|
+
- Adds a helper function `addFieldsToValidator` which recursively adds fields
|
|
211
|
+
to either a `{ key: v.string() }`, a `v.object(..)`, or `v.union(...` of objects/unions.
|
|
212
|
+
- Tightens the types when not using extra args, so it catches typos
|
|
213
|
+
- Removes the long-deprecated "output" argument (use `returns` instead)- Improved Zod union type (credit:Firephoenix25)
|
|
214
|
+
- Bumps the Convex peer dependency as we rely on compareValues (credit:nicolas)
|
|
215
|
+
- Exports types for QueryStream
|
|
216
|
+
|
|
217
|
+
## 0.1.100
|
|
218
|
+
|
|
219
|
+
- Custom Functions now can take dynamic parameters for each function
|
|
220
|
+
they define (e.g. each custom query providing a "role" it expects)
|
|
221
|
+
- Custom Functions can provide an "onSuccess" callback to do final
|
|
222
|
+
things after the inner function succeeds. Throwing fails it.
|
|
223
|
+
- Custom Functions exposes a customCtxAndArgs utility to help with types
|
|
224
|
+
- Trigger DB wrapper is now an object, not a class when using
|
|
225
|
+
`.wrapDB()` or `writerWithTriggers` explicitly (credit: front-depiction)
|
|
226
|
+
- `convexToZod` now transforms to more specific zod types (credit: Firephoenix25)
|
|
227
|
+
- `crud` helper works for tables with top-level unions
|
|
228
|
+
- `paginator` works over indexes including `undefined` values.
|
|
229
|
+
- `Mod` type is deprecated - renamed to `Customization`
|
|
230
|
+
|
|
231
|
+
## 0.1.99
|
|
232
|
+
|
|
233
|
+
- Fixes LoadingMore for custom pagintation
|
|
234
|
+
|
|
235
|
+
## 0.1.98
|
|
236
|
+
|
|
237
|
+
- `partial` now supports unions too (including recursive unions).
|
|
238
|
+
|
|
239
|
+
## 0.1.97
|
|
240
|
+
|
|
241
|
+
- `partial` from `convex-helpers/validators` now supports either a
|
|
242
|
+
v.object or POJO of validators.
|
|
243
|
+
|
|
244
|
+
## 0.1.96
|
|
245
|
+
|
|
246
|
+
- Fix the usePaginatedQuery helper to show LoadingMore when loading
|
|
247
|
+
the last page
|
|
248
|
+
|
|
249
|
+
## 0.1.95
|
|
250
|
+
|
|
251
|
+
- Improved CORS support for server-to-server endpoints, along with more
|
|
252
|
+
nuanced handling of Vary headers.
|
|
253
|
+
If you want the server to continue throwing when origins don't match,
|
|
254
|
+
pass `enforceAllowOrigins: true`. By default it will not throw and let
|
|
255
|
+
the browser or other server decide what to do about a conflict.
|
|
256
|
+
|
|
257
|
+
## 0.1.94
|
|
258
|
+
|
|
259
|
+
- Fix: Pagination of distinct streams
|
|
260
|
+
|
|
261
|
+
## 0.1.93
|
|
262
|
+
|
|
263
|
+
- Changes `usePaginatedQuery` for caching to take a `customPagination`
|
|
264
|
+
option instead of "fixed" vs. "grow" for now. Pass `true` when using
|
|
265
|
+
the `paginator` or `stream` helpers.
|
|
266
|
+
- Adds a regular `usePaginatedQuery` to use with `stream` and `paginator`
|
|
267
|
+
helpers that doesn't use the subscription cache helper.
|
|
268
|
+
|
|
269
|
+
## 0.1.92
|
|
270
|
+
|
|
271
|
+
- `usePaginatedQuery` has the default `latestPageSize` option of "fixed"
|
|
272
|
+
which has the first (or latest once loadMore is called) page stay a
|
|
273
|
+
fixed size. Today this only affects queries using `paginator` or
|
|
274
|
+
`stream` helpers, and will soon also be able to fix the page size for
|
|
275
|
+
built-in pagination too.
|
|
276
|
+
- Fix: update type annotations of imports for tsApiApec.ts.
|
|
277
|
+
|
|
278
|
+
## 0.1.91
|
|
279
|
+
|
|
280
|
+
- `usePaginatedQuery` is now available in the cached query helpers.
|
|
281
|
+
- With `usePaginatedQuery`, you can pass `endCursorBehavior: "setOnLoadMore"`,
|
|
282
|
+
which allows seamless pagination when using `stream` and`paginator` helpers
|
|
283
|
+
and will allow future deprecation of the too-magical QueryJournal.
|
|
284
|
+
- Split pages more eagerly in the custom pagination hooks to reduce bandwidth.
|
|
285
|
+
- Fix descending multi-column index pagination for `paginator` and `streams`
|
|
286
|
+
helpers.
|
|
287
|
+
|
|
288
|
+
## 0.1.90
|
|
289
|
+
|
|
290
|
+
- Support unions with `parse` and `validate(... { throws: true })`
|
|
291
|
+
|
|
292
|
+
## 0.1.89
|
|
293
|
+
|
|
294
|
+
- `parse` validator utility
|
|
295
|
+
|
|
296
|
+
## 0.1.88
|
|
297
|
+
|
|
298
|
+
- Support for standard schema
|
|
299
|
+
- Allow debugging cors
|
|
300
|
+
|
|
301
|
+
... older: check git!
|
package/README.md
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
# convex-helpers
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`npm i convex-helpers@latest`
|
|
4
|
+
|
|
5
|
+
**[Changelog](./CHANGELOG.md)**
|
|
4
6
|
|
|
5
7
|
A collection of useful code to complement the official packages.
|
|
6
8
|
|
|
9
|
+
See the [example app](./example-ui/README.md) to run the helpers locally, and
|
|
10
|
+
[CONTRIBUTING.md](./CONTRIBUTING.md) for development and release instructions.
|
|
11
|
+
|
|
7
12
|
Table of contents:
|
|
8
13
|
|
|
9
14
|
- [Custom Functions](#custom-functions)
|
|
@@ -128,7 +133,7 @@ import {
|
|
|
128
133
|
getOneFromOrThrow,
|
|
129
134
|
getManyFrom,
|
|
130
135
|
getManyViaOrThrow,
|
|
131
|
-
} from "convex-helpers/server/relationships
|
|
136
|
+
} from "convex-helpers/server/relationships";
|
|
132
137
|
import { asyncMap } from "convex-helpers";
|
|
133
138
|
|
|
134
139
|
const author = await getOneFromOrThrow(db, "authors", "userId", user._id);
|
|
@@ -192,7 +197,7 @@ needing to add any tables to your schema. (`npm i @convex-dev/migrations`)
|
|
|
192
197
|
See the [Stack post on migrations](https://stack.convex.dev/migrating-data-with-mutations)
|
|
193
198
|
and the [migration primer Stack post](https://stack.convex.dev/intro-to-migrations).
|
|
194
199
|
|
|
195
|
-
To see the library code and usage, see the [migrations.ts file](./server/migrations.ts).
|
|
200
|
+
To see the library code and usage, see the [migrations.ts file](./packages/convex-helpers/server/migrations.ts).
|
|
196
201
|
|
|
197
202
|
Example migration:
|
|
198
203
|
|
|
@@ -215,15 +220,15 @@ See the associated Stack post for details:
|
|
|
215
220
|
|
|
216
221
|
https://stack.convex.dev/rate-limiting
|
|
217
222
|
|
|
218
|
-
For usage details, see the [rateLimit.ts file](./server/rateLimit.ts).
|
|
223
|
+
For usage details, see the [rateLimit.ts file](./packages/convex-helpers/server/rateLimit.ts).
|
|
219
224
|
|
|
220
225
|
## Session tracking via client-side sessionID storage
|
|
221
226
|
|
|
222
227
|
Store a session ID on the client and pass it up with requests to keep track of
|
|
223
228
|
a user, even if they aren't logged in.
|
|
224
229
|
|
|
225
|
-
Use the client-side helpers in [react/sessions](./react/sessions.ts) and
|
|
226
|
-
server-side helpers in [server/sessions](./server/sessions.ts).
|
|
230
|
+
Use the client-side helpers in [react/sessions](./packages/convex-helpers/react/sessions.ts) and
|
|
231
|
+
server-side helpers in [server/sessions](./packages/convex-helpers/server/sessions.ts).
|
|
227
232
|
|
|
228
233
|
See the associated [Stack post](https://stack.convex.dev/track-sessions-without-cookies) for more information.
|
|
229
234
|
|
|
@@ -329,7 +334,7 @@ type ret =
|
|
|
329
334
|
|
|
330
335
|
See the [Stack post on row-level security](https://stack.convex.dev/row-level-security)
|
|
331
336
|
|
|
332
|
-
Use the [RowLevelSecurity](./server/rowLevelSecurity.ts) helper to define
|
|
337
|
+
Use the [RowLevelSecurity](./packages/convex-helpers/server/rowLevelSecurity.ts) helper to define
|
|
333
338
|
database wrappers to add row-level checks for a server-side function.
|
|
334
339
|
Any access to `db` inside functions wrapped with these
|
|
335
340
|
will check your access rules on read/insert/modify per-document.
|
|
@@ -983,10 +988,10 @@ bandwidth.
|
|
|
983
988
|
|
|
984
989
|
Related files:
|
|
985
990
|
|
|
986
|
-
- [cache.ts](./react/cache.ts) re-exports things so you can import from a single convenient location.
|
|
987
|
-
- [provider.tsx](./react/cache/provider.tsx) contains `ConvexQueryCacheProvider`,
|
|
991
|
+
- [cache.ts](./packages/convex-helpers/react/cache.ts) re-exports things so you can import from a single convenient location.
|
|
992
|
+
- [provider.tsx](./packages/convex-helpers/react/cache/provider.tsx) contains `ConvexQueryCacheProvider`,
|
|
988
993
|
a configurable cache provider you put in your react app's root.
|
|
989
|
-
- [hooks.ts](./react/cache/hooks.ts) contains cache-enabled drop-in
|
|
994
|
+
- [hooks.ts](./packages/convex-helpers/react/cache/hooks.ts) contains cache-enabled drop-in
|
|
990
995
|
replacements for `useQuery`, `usePaginatedQuery`, and `useQueries`.
|
|
991
996
|
|
|
992
997
|
To use the cache, first make sure to put a `<ConvexQueryCacheProvider>`
|
package/{bin.cjs → dist/bin.cjs}
RENAMED
|
@@ -26,9 +26,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
|
|
29
|
-
//
|
|
29
|
+
// node_modules/commander/lib/error.js
|
|
30
30
|
var require_error = __commonJS({
|
|
31
|
-
"
|
|
31
|
+
"node_modules/commander/lib/error.js"(exports2) {
|
|
32
32
|
var CommanderError2 = class extends Error {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs the CommanderError class
|
|
@@ -63,9 +63,9 @@ var require_error = __commonJS({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
//
|
|
66
|
+
// node_modules/commander/lib/argument.js
|
|
67
67
|
var require_argument = __commonJS({
|
|
68
|
-
"
|
|
68
|
+
"node_modules/commander/lib/argument.js"(exports2) {
|
|
69
69
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
70
70
|
var Argument2 = class {
|
|
71
71
|
/**
|
|
@@ -184,9 +184,9 @@ var require_argument = __commonJS({
|
|
|
184
184
|
}
|
|
185
185
|
});
|
|
186
186
|
|
|
187
|
-
//
|
|
187
|
+
// node_modules/commander/lib/help.js
|
|
188
188
|
var require_help = __commonJS({
|
|
189
|
-
"
|
|
189
|
+
"node_modules/commander/lib/help.js"(exports2) {
|
|
190
190
|
var { humanReadableArgName } = require_argument();
|
|
191
191
|
var Help2 = class {
|
|
192
192
|
constructor() {
|
|
@@ -566,9 +566,9 @@ var require_help = __commonJS({
|
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
568
|
|
|
569
|
-
//
|
|
569
|
+
// node_modules/commander/lib/option.js
|
|
570
570
|
var require_option = __commonJS({
|
|
571
|
-
"
|
|
571
|
+
"node_modules/commander/lib/option.js"(exports2) {
|
|
572
572
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
573
573
|
var Option2 = class {
|
|
574
574
|
/**
|
|
@@ -837,9 +837,9 @@ var require_option = __commonJS({
|
|
|
837
837
|
}
|
|
838
838
|
});
|
|
839
839
|
|
|
840
|
-
//
|
|
840
|
+
// node_modules/commander/lib/suggestSimilar.js
|
|
841
841
|
var require_suggestSimilar = __commonJS({
|
|
842
|
-
"
|
|
842
|
+
"node_modules/commander/lib/suggestSimilar.js"(exports2) {
|
|
843
843
|
var maxDistance = 3;
|
|
844
844
|
function editDistance(a, b) {
|
|
845
845
|
if (Math.abs(a.length - b.length) > maxDistance) return Math.max(a.length, b.length);
|
|
@@ -916,9 +916,9 @@ var require_suggestSimilar = __commonJS({
|
|
|
916
916
|
}
|
|
917
917
|
});
|
|
918
918
|
|
|
919
|
-
//
|
|
919
|
+
// node_modules/commander/lib/command.js
|
|
920
920
|
var require_command = __commonJS({
|
|
921
|
-
"
|
|
921
|
+
"node_modules/commander/lib/command.js"(exports2) {
|
|
922
922
|
var EventEmitter = require("events").EventEmitter;
|
|
923
923
|
var childProcess = require("child_process");
|
|
924
924
|
var path2 = require("path");
|
|
@@ -2746,9 +2746,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2746
2746
|
}
|
|
2747
2747
|
});
|
|
2748
2748
|
|
|
2749
|
-
//
|
|
2749
|
+
// node_modules/commander/index.js
|
|
2750
2750
|
var require_commander = __commonJS({
|
|
2751
|
-
"
|
|
2751
|
+
"node_modules/commander/index.js"(exports2, module2) {
|
|
2752
2752
|
var { Argument: Argument2 } = require_argument();
|
|
2753
2753
|
var { Command: Command2 } = require_command();
|
|
2754
2754
|
var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
@@ -2766,9 +2766,9 @@ var require_commander = __commonJS({
|
|
|
2766
2766
|
}
|
|
2767
2767
|
});
|
|
2768
2768
|
|
|
2769
|
-
//
|
|
2769
|
+
// node_modules/color-name/index.js
|
|
2770
2770
|
var require_color_name = __commonJS({
|
|
2771
|
-
"
|
|
2771
|
+
"node_modules/color-name/index.js"(exports2, module2) {
|
|
2772
2772
|
"use strict";
|
|
2773
2773
|
module2.exports = {
|
|
2774
2774
|
"aliceblue": [240, 248, 255],
|
|
@@ -2923,9 +2923,9 @@ var require_color_name = __commonJS({
|
|
|
2923
2923
|
}
|
|
2924
2924
|
});
|
|
2925
2925
|
|
|
2926
|
-
//
|
|
2926
|
+
// node_modules/color-convert/conversions.js
|
|
2927
2927
|
var require_conversions = __commonJS({
|
|
2928
|
-
"
|
|
2928
|
+
"node_modules/color-convert/conversions.js"(exports2, module2) {
|
|
2929
2929
|
var cssKeywords = require_color_name();
|
|
2930
2930
|
var reverseKeywords = {};
|
|
2931
2931
|
for (const key of Object.keys(cssKeywords)) {
|
|
@@ -3594,9 +3594,9 @@ var require_conversions = __commonJS({
|
|
|
3594
3594
|
}
|
|
3595
3595
|
});
|
|
3596
3596
|
|
|
3597
|
-
//
|
|
3597
|
+
// node_modules/color-convert/route.js
|
|
3598
3598
|
var require_route = __commonJS({
|
|
3599
|
-
"
|
|
3599
|
+
"node_modules/color-convert/route.js"(exports2, module2) {
|
|
3600
3600
|
var conversions = require_conversions();
|
|
3601
3601
|
function buildGraph() {
|
|
3602
3602
|
const graph = {};
|
|
@@ -3664,9 +3664,9 @@ var require_route = __commonJS({
|
|
|
3664
3664
|
}
|
|
3665
3665
|
});
|
|
3666
3666
|
|
|
3667
|
-
//
|
|
3667
|
+
// node_modules/color-convert/index.js
|
|
3668
3668
|
var require_color_convert = __commonJS({
|
|
3669
|
-
"
|
|
3669
|
+
"node_modules/color-convert/index.js"(exports2, module2) {
|
|
3670
3670
|
var conversions = require_conversions();
|
|
3671
3671
|
var route = require_route();
|
|
3672
3672
|
var convert = {};
|
|
@@ -3725,9 +3725,9 @@ var require_color_convert = __commonJS({
|
|
|
3725
3725
|
}
|
|
3726
3726
|
});
|
|
3727
3727
|
|
|
3728
|
-
//
|
|
3728
|
+
// node_modules/ansi-styles/index.js
|
|
3729
3729
|
var require_ansi_styles = __commonJS({
|
|
3730
|
-
"
|
|
3730
|
+
"node_modules/ansi-styles/index.js"(exports2, module2) {
|
|
3731
3731
|
"use strict";
|
|
3732
3732
|
var wrapAnsi16 = (fn, offset) => (...args) => {
|
|
3733
3733
|
const code = fn(...args);
|
|
@@ -3867,9 +3867,9 @@ var require_ansi_styles = __commonJS({
|
|
|
3867
3867
|
}
|
|
3868
3868
|
});
|
|
3869
3869
|
|
|
3870
|
-
//
|
|
3870
|
+
// node_modules/has-flag/index.js
|
|
3871
3871
|
var require_has_flag = __commonJS({
|
|
3872
|
-
"
|
|
3872
|
+
"node_modules/has-flag/index.js"(exports2, module2) {
|
|
3873
3873
|
"use strict";
|
|
3874
3874
|
module2.exports = (flag, argv = process.argv) => {
|
|
3875
3875
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
@@ -3880,9 +3880,9 @@ var require_has_flag = __commonJS({
|
|
|
3880
3880
|
}
|
|
3881
3881
|
});
|
|
3882
3882
|
|
|
3883
|
-
//
|
|
3883
|
+
// node_modules/supports-color/index.js
|
|
3884
3884
|
var require_supports_color = __commonJS({
|
|
3885
|
-
"
|
|
3885
|
+
"node_modules/supports-color/index.js"(exports2, module2) {
|
|
3886
3886
|
"use strict";
|
|
3887
3887
|
var os2 = require("os");
|
|
3888
3888
|
var tty = require("tty");
|
|
@@ -3982,9 +3982,9 @@ var require_supports_color = __commonJS({
|
|
|
3982
3982
|
}
|
|
3983
3983
|
});
|
|
3984
3984
|
|
|
3985
|
-
//
|
|
3985
|
+
// node_modules/chalk/source/util.js
|
|
3986
3986
|
var require_util = __commonJS({
|
|
3987
|
-
"
|
|
3987
|
+
"node_modules/chalk/source/util.js"(exports2, module2) {
|
|
3988
3988
|
"use strict";
|
|
3989
3989
|
var stringReplaceAll = (string, substring, replacer) => {
|
|
3990
3990
|
let index = string.indexOf(substring);
|
|
@@ -4021,9 +4021,9 @@ var require_util = __commonJS({
|
|
|
4021
4021
|
}
|
|
4022
4022
|
});
|
|
4023
4023
|
|
|
4024
|
-
//
|
|
4024
|
+
// node_modules/chalk/source/templates.js
|
|
4025
4025
|
var require_templates = __commonJS({
|
|
4026
|
-
"
|
|
4026
|
+
"node_modules/chalk/source/templates.js"(exports2, module2) {
|
|
4027
4027
|
"use strict";
|
|
4028
4028
|
var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
4029
4029
|
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
@@ -4135,9 +4135,9 @@ var require_templates = __commonJS({
|
|
|
4135
4135
|
}
|
|
4136
4136
|
});
|
|
4137
4137
|
|
|
4138
|
-
//
|
|
4138
|
+
// node_modules/chalk/source/index.js
|
|
4139
4139
|
var require_source = __commonJS({
|
|
4140
|
-
"
|
|
4140
|
+
"node_modules/chalk/source/index.js"(exports2, module2) {
|
|
4141
4141
|
"use strict";
|
|
4142
4142
|
var ansiStyles = require_ansi_styles();
|
|
4143
4143
|
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
@@ -4313,7 +4313,7 @@ var require_source = __commonJS({
|
|
|
4313
4313
|
}
|
|
4314
4314
|
});
|
|
4315
4315
|
|
|
4316
|
-
//
|
|
4316
|
+
// node_modules/commander/esm.mjs
|
|
4317
4317
|
var import_index = __toESM(require_commander(), 1);
|
|
4318
4318
|
var {
|
|
4319
4319
|
program,
|
|
@@ -4330,11 +4330,11 @@ var {
|
|
|
4330
4330
|
Help
|
|
4331
4331
|
} = import_index.default;
|
|
4332
4332
|
|
|
4333
|
-
// cli/openApiSpec.ts
|
|
4333
|
+
// packages/convex-helpers/cli/openApiSpec.ts
|
|
4334
4334
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
4335
4335
|
var import_chalk2 = __toESM(require_source(), 1);
|
|
4336
4336
|
|
|
4337
|
-
// cli/utils.ts
|
|
4337
|
+
// packages/convex-helpers/cli/utils.ts
|
|
4338
4338
|
var import_fs = __toESM(require("fs"), 1);
|
|
4339
4339
|
var import_child_process = require("child_process");
|
|
4340
4340
|
var import_chalk = __toESM(require_source(), 1);
|
|
@@ -4395,7 +4395,7 @@ function getFunctionSpec(prod, filePath) {
|
|
|
4395
4395
|
return content;
|
|
4396
4396
|
}
|
|
4397
4397
|
|
|
4398
|
-
// cli/openApiSpec.ts
|
|
4398
|
+
// packages/convex-helpers/cli/openApiSpec.ts
|
|
4399
4399
|
var import_prettier = __toESM(require("prettier"), 1);
|
|
4400
4400
|
var openApiSpec = new Command("open-api-spec").summary("Generate an OpenAPI spec from a Convex function definition.").addOption(
|
|
4401
4401
|
new Option(
|
|
@@ -4662,7 +4662,7 @@ ${reindent(
|
|
|
4662
4662
|
`;
|
|
4663
4663
|
}
|
|
4664
4664
|
|
|
4665
|
-
// cli/tsApiSpec.ts
|
|
4665
|
+
// packages/convex-helpers/cli/tsApiSpec.ts
|
|
4666
4666
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
4667
4667
|
var import_chalk3 = __toESM(require_source(), 1);
|
|
4668
4668
|
var import_prettier2 = __toESM(require("prettier"), 1);
|
|
@@ -4825,7 +4825,7 @@ export type InternalApiType = ${internalApiType}
|
|
|
4825
4825
|
`;
|
|
4826
4826
|
}
|
|
4827
4827
|
|
|
4828
|
-
// cli/index.ts
|
|
4828
|
+
// packages/convex-helpers/cli/index.ts
|
|
4829
4829
|
async function main() {
|
|
4830
4830
|
const program2 = new Command();
|
|
4831
4831
|
program2.name("convex-helpers").usage("<command> [options]").description("Run scripts in the convex-helpers library.").addCommand(openApiSpec).addCommand(tsApiSpec);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../packages/convex-helpers/browser.ts"],"names":[],"mappings":"AAAA,OAAO,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M,CACJ,MAAM,SACJ,iBAAiB,CAAC,QAAQ,CAAC,GAAG,wBAAwB,CAAC,QAAQ,CAAC,UAE1D,MAAM,WACL,SAAS,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,GAC1C,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;EAOlD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../packages/convex-helpers/browser.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAuC,EACvC,YAAe;IAEf,OAAO;QACL,KAAK,CAIH,KAAY,EACZ,GAAG,IAAuC;YAE1C,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE;gBACzB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;gBAClB,GAAG,YAAY;aACO,CAAC,CAAC;QAC5B,CAAC;QACD,QAAQ,CAIN,QAAkB,EAClB,GAAG,IAA0C;YAE7C,OAAO,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE;gBAC/B,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;gBAClB,GAAG,YAAY;aACU,CAAC,CAAC;QAC/B,CAAC;QACD,MAAM,CAIJ,MAAc,EACd,GAAG,IAAwC;YAE3C,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;gBAC3B,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;gBAClB,GAAG,YAAY;aACQ,CAAC,CAAC;QAC7B,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/convex-helpers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,QAAQ,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