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.
@@ -231,7 +231,7 @@ Builder rules that matter:
231
231
  ### 3) Query + Mutation Procedure Template
232
232
 
233
233
  ```ts
234
- import { z } from "zod";
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 { z } from 'zod';
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 { z } from 'zod';
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 { z } from 'zod';
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';
@@ -98,7 +98,7 @@ Ordering note:
98
98
  **Create:** `convex/functions/user.ts`
99
99
 
100
100
  ```ts
101
- import { z } from "zod";
101
+ import * as z from "zod";
102
102
  import { getHeaders } from "kitcn/auth";
103
103
 
104
104
  import { getAuth } from "./generated/auth";
@@ -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 { z } from "zod";
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 { z } from "zod";
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 { z } from "zod";
502
+ import * as z from "zod";
503
503
 
504
504
  import { privateAction, privateMutation } from "../lib/crpc";
505
505
  import { getEnv } from "../lib/get-env";