ts-typed-api 0.1.24 → 0.2.0

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.
@@ -1,5 +1,5 @@
1
1
  export { CreateApiDefinition, CreateResponses } from './definition';
2
- export { ZodSchema } from 'zod';
2
+ export { z as ZodSchema } from 'zod';
3
3
  export { RegisterHonoHandlers } from './hono-cloudflare-workers';
4
4
  export type { ApiDefinitionSchema, RouteSchema, UnifiedError, FileUploadConfig, HttpSuccessStatusCode, HttpClientErrorStatusCode, HttpServerErrorStatusCode, AllowedInputStatusCode, AllowedResponseStatusCode } from './definition';
5
5
  export type { HonoFile, HonoFileType, HonoTypedContext } from './hono-cloudflare-workers';
package/dist/hono-only.js CHANGED
@@ -7,7 +7,7 @@ var definition_1 = require("./definition");
7
7
  Object.defineProperty(exports, "CreateApiDefinition", { enumerable: true, get: function () { return definition_1.CreateApiDefinition; } });
8
8
  Object.defineProperty(exports, "CreateResponses", { enumerable: true, get: function () { return definition_1.CreateResponses; } });
9
9
  var zod_1 = require("zod");
10
- Object.defineProperty(exports, "ZodSchema", { enumerable: true, get: function () { return zod_1.ZodSchema; } });
10
+ Object.defineProperty(exports, "ZodSchema", { enumerable: true, get: function () { return zod_1.z; } });
11
11
  // Hono adapter for Cloudflare Workers
12
12
  var hono_cloudflare_workers_1 = require("./hono-cloudflare-workers");
13
13
  Object.defineProperty(exports, "RegisterHonoHandlers", { enumerable: true, get: function () { return hono_cloudflare_workers_1.RegisterHonoHandlers; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-typed-api",
3
- "version": "0.1.24",
3
+ "version": "0.2.0",
4
4
  "description": "A lightweight, type-safe RPC library for TypeScript with Zod validation",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/hono-only.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Hono-only exports - for Cloudflare Workers and other Hono environments
2
2
  // Excludes Express dependencies like multer, busboy, etc.
3
3
  export { CreateApiDefinition, CreateResponses } from './definition';
4
- export { ZodSchema } from 'zod';
4
+ export { z as ZodSchema } from 'zod';
5
5
 
6
6
  // Hono adapter for Cloudflare Workers
7
7
  export { RegisterHonoHandlers } from './hono-cloudflare-workers';