@wordrhyme/auto-crud-server 2.0.1 → 2.0.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/README.md CHANGED
@@ -1270,15 +1270,15 @@ DATABASE_URL = 'postgresql://user:password@localhost:5432/dbname';
1270
1270
 
1271
1271
  ## 📄 许可证
1272
1272
 
1273
- MIT © [wordrhyme](https://github.com/pixpilot/shadcn-components)
1273
+ MIT © [wordrhyme](https://github.com/denvey/wordrhyme-components)
1274
1274
 
1275
1275
  ---
1276
1276
 
1277
1277
  ## 🔗 相关链接
1278
1278
 
1279
- - [GitHub](https://github.com/pixpilot/shadcn-components)
1280
- - [文档](https://github.com/pixpilot/shadcn-components/tree/main/packages/auto-crud-server)
1281
- - [@wordrhyme/auto-crud](https://github.com/pixpilot/shadcn-components/tree/main/packages/auto-crud) - 前端组件库
1279
+ - [GitHub](https://github.com/denvey/wordrhyme-components)
1280
+ - [文档](https://github.com/denvey/wordrhyme-components/tree/main/packages/auto-crud-server)
1281
+ - [@wordrhyme/auto-crud](https://github.com/denvey/wordrhyme-components/tree/main/packages/auto-crud) - 前端组件库
1282
1282
  - [Changelog](./CHANGELOG.md)
1283
1283
 
1284
1284
  ---
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as _trpc_server2 from "@trpc/server";
1
+ import * as _trpc_server0 from "@trpc/server";
2
2
  import { AnyColumn, SQL, Table } from "drizzle-orm";
3
3
  import { z } from "zod";
4
4
  import superjson from "superjson";
@@ -41,13 +41,13 @@ interface Context {
41
41
  db: PostgresJsDatabase<Record<string, never>>;
42
42
  resolveDateRange?: DateRangeResolver;
43
43
  }
44
- declare const router: _trpc_server2.TRPCRouterBuilder<{
44
+ declare const router: _trpc_server0.TRPCRouterBuilder<{
45
45
  ctx: Context;
46
46
  meta: object;
47
- errorShape: _trpc_server2.TRPCDefaultErrorShape;
47
+ errorShape: _trpc_server0.TRPCDefaultErrorShape;
48
48
  transformer: true;
49
49
  }>;
50
- declare const publicProcedure: _trpc_server2.TRPCProcedureBuilder<Context, object, object, _trpc_server2.TRPCUnsetMarker, _trpc_server2.TRPCUnsetMarker, _trpc_server2.TRPCUnsetMarker, _trpc_server2.TRPCUnsetMarker, false>;
50
+ declare const publicProcedure: _trpc_server0.TRPCProcedureBuilder<Context, object, object, _trpc_server0.TRPCUnsetMarker, _trpc_server0.TRPCUnsetMarker, _trpc_server0.TRPCUnsetMarker, _trpc_server0.TRPCUnsetMarker, false>;
51
51
  //#endregion
52
52
  //#region src/types/config.d.ts
53
53
  type CrudOperation = 'list' | 'get' | 'create' | 'update' | 'delete' | 'deleteMany' | 'updateMany' | 'upsert' | 'export' | 'import' | 'createMany';
@@ -1022,12 +1022,12 @@ type CrudHookEventMap<PluginId extends string, ResourceName extends string, TCre
1022
1022
  } } & { [K in `${PluginId}.${ResourceName}.createMany`]: TCreate[] };
1023
1023
  //#endregion
1024
1024
  //#region src/routers/index.d.ts
1025
- declare const appRouter: _trpc_server2.TRPCBuiltRouter<{
1025
+ declare const appRouter: _trpc_server0.TRPCBuiltRouter<{
1026
1026
  ctx: Context;
1027
1027
  meta: object;
1028
- errorShape: _trpc_server2.TRPCDefaultErrorShape;
1028
+ errorShape: _trpc_server0.TRPCDefaultErrorShape;
1029
1029
  transformer: true;
1030
- }, _trpc_server2.TRPCDecorateCreateRouterOptions<{}>>;
1030
+ }, _trpc_server0.TRPCDecorateCreateRouterOptions<{}>>;
1031
1031
  type AppRouter = typeof appRouter;
1032
1032
  //#endregion
1033
1033
  export { type AnyProcedure, type AppRouter, type CreateManyMiddlewareParams, type CreateMiddlewareParams, type CrudCapabilityMetadata, type CrudColumnCapability, type CrudColumnConfig, type CrudColumnExpression, type CrudColumnRef, type CrudExtensionFilter, type CrudExtensionMetadata, type CrudExtensionValueWrite, type CrudExtensionsConfig, type CrudExtensionsProvider, type CrudHookEventMap, type CrudMiddleware, type CrudOperation, type CrudProcedures, type CrudResourceMetadata, type CrudRouterConfig, type DateFilterRange, type DateRangeResolver, type DeleteManyMiddlewareParams, type DeleteMiddlewareParams, type ExportInput, type ExportMiddlewareParams, type ExportResult, type ExtendedColumnFilter, type FilterOperator, type FilterVariant, type GetInput, type GetMiddlewareParams, type ImportFailedRow, type ImportInput, type ImportMiddlewareParams, type ImportResult, type ListInput, type ListMiddlewareParams, type ListResult, type ProcedureConfig, type ProcedureFactory, type ProcedureMap, type SoftDeleteConfig, type SoftDeleteOption, type UpdateManyMiddlewareParams, type UpdateMiddlewareParams, type UpsertMiddlewareParams, type WriteOperation, afterMiddleware, appRouter, baseExportInputSchema, baseGetInputSchema, baseListInputSchema, beforeMiddleware, composeMiddleware, createCrudRouter, publicProcedure, router };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wordrhyme/auto-crud-server",
3
3
  "type": "module",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "description": "tRPC server utilities for auto-crud - automatic CRUD routers for Drizzle ORM",
6
6
  "author": "wordrhyme",
7
7
  "license": "MIT",
@@ -49,10 +49,10 @@
49
49
  "vitest": "^4.0.18",
50
50
  "zod": "^4.3.6",
51
51
  "@internal/eslint-config": "0.3.0",
52
- "@internal/tsconfig": "0.1.0",
53
52
  "@internal/prettier-config": "0.0.1",
54
- "@internal/vitest-config": "0.1.0",
55
- "@internal/tsdown-config": "0.1.0"
53
+ "@internal/tsconfig": "0.1.0",
54
+ "@internal/tsdown-config": "0.1.0",
55
+ "@internal/vitest-config": "0.1.0"
56
56
  },
57
57
  "prettier": "@internal/prettier-config",
58
58
  "scripts": {