kitcn 0.25.1 → 0.25.2
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/aggregate/index.d.ts +1 -1
- package/dist/auth/nextjs/index.d.ts +1 -1
- package/dist/{builder-C6JSHkRK.js → builder-DoeyW4Vq.js} +64 -64
- package/dist/cli.mjs +118 -20
- package/dist/{middleware-CdqNVyp8.js → middleware-DIj-bwVi.js} +1 -1
- package/dist/orm/aggregate-index/index.js +1 -1
- package/dist/orm/index.d.ts +1 -1
- package/dist/orm/index.js +37 -5
- package/dist/orm/migrations/index.d.ts +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/{procedure-caller-CgLWu5F9.js → procedure-caller-Dxae9DW5.js} +3 -3
- package/dist/{procedure-name-Bjw1JDIS.d.ts → procedure-name-l2YusEZI.d.ts} +52 -52
- package/dist/ratelimit/index.js +2 -2
- package/dist/{schema-BQd2Xrfb.js → schema-D8sVYuYO.js} +25 -11
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +2 -2
- package/dist/{where-clause-compiler-Dmq4HMrK.d.ts → where-clause-compiler-TMNQB6US.d.ts} +20 -20
- package/package.json +1 -1
- package/skills/kitcn/SKILL.md +1 -1
- package/skills/kitcn/references/features/auth-polar.md +2 -2
- package/skills/kitcn/references/features/scheduling.md +1 -1
- package/skills/kitcn/references/setup/auth.md +1 -1
- package/skills/kitcn/references/setup/index.md +3 -3
package/skills/kitcn/SKILL.md
CHANGED
|
@@ -231,7 +231,7 @@ Builder rules that matter:
|
|
|
231
231
|
### 3) Query + Mutation Procedure Template
|
|
232
232
|
|
|
233
233
|
```ts
|
|
234
|
-
import
|
|
234
|
+
import * as z from "zod";
|
|
235
235
|
import { eq } from "kitcn/orm";
|
|
236
236
|
import { CRPCError } from "kitcn/server";
|
|
237
237
|
import { authMutation, authQuery } from "../lib/crpc";
|
|
@@ -388,7 +388,7 @@ webhooks({
|
|
|
388
388
|
// convex/functions/polarCustomer.ts
|
|
389
389
|
import '../lib/polar-polyfills';
|
|
390
390
|
import { CRPCError } from 'kitcn/server';
|
|
391
|
-
import
|
|
391
|
+
import * as z from 'zod';
|
|
392
392
|
import { privateAction, privateMutation } from '../lib/crpc';
|
|
393
393
|
import { getPolarClient } from '../lib/polar-client';
|
|
394
394
|
|
|
@@ -434,7 +434,7 @@ export const updateUserPolarCustomerId = privateMutation
|
|
|
434
434
|
// convex/functions/polarSubscription.ts
|
|
435
435
|
import '../lib/polar-polyfills';
|
|
436
436
|
import { CRPCError } from 'kitcn/server';
|
|
437
|
-
import
|
|
437
|
+
import * as z from 'zod';
|
|
438
438
|
import { privateMutation, privateQuery } from '../lib/crpc';
|
|
439
439
|
import { authAction } from '../lib/crpc-action';
|
|
440
440
|
import { getPolarClient } from '../lib/polar-client';
|
|
@@ -66,7 +66,7 @@ Format: `minute hour day-of-month month day-of-week`. Runs in **UTC**. Minimum i
|
|
|
66
66
|
|
|
67
67
|
```ts
|
|
68
68
|
// convex/functions/crons.ts
|
|
69
|
-
import
|
|
69
|
+
import * as z from 'zod';
|
|
70
70
|
import { privateMutation, privateAction } from '../lib/crpc';
|
|
71
71
|
import { createAnalyticsCaller } from './generated/analytics.runtime';
|
|
72
72
|
import { createReportsCaller } from './generated/reports.runtime';
|
|
@@ -397,7 +397,7 @@ When multiple Convex functions and libs share env values (auth, billing, dev gua
|
|
|
397
397
|
|
|
398
398
|
```ts
|
|
399
399
|
import { createEnv } from "kitcn/server";
|
|
400
|
-
import
|
|
400
|
+
import * as z from "zod";
|
|
401
401
|
|
|
402
402
|
export const getEnv = createEnv({
|
|
403
403
|
schema: z.object({
|
|
@@ -447,7 +447,7 @@ If you want the same operational model as the scaffolded baseline, use these can
|
|
|
447
447
|
**Create:** `convex/functions/init.ts`
|
|
448
448
|
|
|
449
449
|
```ts
|
|
450
|
-
import
|
|
450
|
+
import * as z from "zod";
|
|
451
451
|
|
|
452
452
|
import { createUser } from "../lib/auth/auth-helpers";
|
|
453
453
|
import { privateMutation } from "../lib/crpc";
|
|
@@ -499,7 +499,7 @@ export default privateMutation
|
|
|
499
499
|
/** biome-ignore-all lint/suspicious/noExplicitAny: dev */
|
|
500
500
|
import { eq } from "kitcn/orm";
|
|
501
501
|
import { CRPCError } from "kitcn/server";
|
|
502
|
-
import
|
|
502
|
+
import * as z from "zod";
|
|
503
503
|
|
|
504
504
|
import { privateAction, privateMutation } from "../lib/crpc";
|
|
505
505
|
import { getEnv } from "../lib/get-env";
|