diff --git a/.changeset/fluffy-actors-travel.md b/.changeset/fluffy-actors-travel.md new file mode 100644 index 0000000..ca77fbb --- /dev/null +++ b/.changeset/fluffy-actors-travel.md @@ -0,0 +1,5 @@ +--- +"typed-openapi": minor +--- + +Bump @sinclair/typebox-codegen version diff --git a/packages/typed-openapi/package.json b/packages/typed-openapi/package.json index bdf6f5e..ccb8ff0 100644 --- a/packages/typed-openapi/package.json +++ b/packages/typed-openapi/package.json @@ -22,7 +22,7 @@ "dependencies": { "@apidevtools/swagger-parser": "^10.1.0", "@changesets/cli": "^2.26.2", - "@sinclair/typebox-codegen": "^0.10.3", + "@sinclair/typebox-codegen": "^0.10.5", "arktype": "1.0.18-alpha", "cac": "^6.7.14", "openapi3-ts": "^4.1.2", diff --git a/packages/typed-openapi/tests/snapshots/docker.openapi.zod.ts b/packages/typed-openapi/tests/snapshots/docker.openapi.zod.ts index 79bb730..f6d8378 100644 --- a/packages/typed-openapi/tests/snapshots/docker.openapi.zod.ts +++ b/packages/typed-openapi/tests/snapshots/docker.openapi.zod.ts @@ -1,4 +1,4 @@ -import z from "zod"; +import { z } from "zod"; export type Port = z.infer; export const Port = z.object({ diff --git a/packages/typed-openapi/tests/snapshots/long-operation-id.arktype.ts b/packages/typed-openapi/tests/snapshots/long-operation-id.arktype.ts index eecc248..f90b450 100644 --- a/packages/typed-openapi/tests/snapshots/long-operation-id.arktype.ts +++ b/packages/typed-openapi/tests/snapshots/long-operation-id.arktype.ts @@ -21,7 +21,7 @@ export const types = scope({ response: "unknown", }, __ENDPOINTS_END__: {}, -}).compile(); +}).export(); export type __ENDPOINTS_START__ = typeof __ENDPOINTS_START__.infer; export const __ENDPOINTS_START__ = types.__ENDPOINTS_START__; diff --git a/packages/typed-openapi/tests/snapshots/long-operation-id.zod.ts b/packages/typed-openapi/tests/snapshots/long-operation-id.zod.ts index 478714a..6974a14 100644 --- a/packages/typed-openapi/tests/snapshots/long-operation-id.zod.ts +++ b/packages/typed-openapi/tests/snapshots/long-operation-id.zod.ts @@ -1,4 +1,4 @@ -import z from "zod"; +import { z } from "zod"; export type get_Get_users = typeof get_Get_users; export const get_Get_users = { diff --git a/packages/typed-openapi/tests/snapshots/petstore.arktype.ts b/packages/typed-openapi/tests/snapshots/petstore.arktype.ts index e95c513..52d2448 100644 --- a/packages/typed-openapi/tests/snapshots/petstore.arktype.ts +++ b/packages/typed-openapi/tests/snapshots/petstore.arktype.ts @@ -257,7 +257,7 @@ export const types = scope({ response: "unknown", }, __ENDPOINTS_END__: {}, -}).compile(); +}).export(); export type Order = typeof Order.infer; export const Order = types.Order; diff --git a/packages/typed-openapi/tests/snapshots/petstore.zod.ts b/packages/typed-openapi/tests/snapshots/petstore.zod.ts index 7e1f3ae..128a5f0 100644 --- a/packages/typed-openapi/tests/snapshots/petstore.zod.ts +++ b/packages/typed-openapi/tests/snapshots/petstore.zod.ts @@ -1,4 +1,4 @@ -import z from "zod"; +import { z } from "zod"; export type Order = z.infer; export const Order = z.object({ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index aea6029..3b135ce 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,8 +21,8 @@ importers: specifier: ^2.26.2 version: 2.26.2 '@sinclair/typebox-codegen': - specifier: ^0.10.3 - version: 0.10.3 + specifier: ^0.10.5 + version: 0.10.5 arktype: specifier: 1.0.18-alpha version: 1.0.18-alpha @@ -162,7 +162,7 @@ importers: version: 5.3.0(rollup@3.27.0)(typescript@5.1.6) tsup: specifier: ^7.1.0 - version: 7.1.0(@swc/core@1.3.74(@swc/helpers@0.5.1))(postcss@8.4.27)(typescript@5.1.6) + version: 7.1.0(@swc/core@1.3.74(@swc/helpers@0.5.1))(postcss@8.4.25)(typescript@5.1.6) tsx: specifier: ^3.12.7 version: 3.12.7 @@ -1005,8 +1005,8 @@ packages: resolution: {integrity: sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} - '@sinclair/typebox-codegen@0.10.3': - resolution: {integrity: sha512-RRJvCEAQBxpkSfnJGs7Doa6ccCYVDQznFwJLN3nTNTd+ATGjEyRhjy8W+ZHZeui9J244V2JLltA3eoqE9Ny8Yg==} + '@sinclair/typebox-codegen@0.10.5': + resolution: {integrity: sha512-McGmpMd/UzIes5FElHeZcfir/E+6L6v6hAOtaNX9v6d8lhDfGSMCOqdDTLWJVuo1tladpxCchKTfP+98L0STAQ==} '@sinclair/typebox@0.27.8': resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} @@ -1014,8 +1014,8 @@ packages: '@sinclair/typebox@0.30.4': resolution: {integrity: sha512-wFuuDR+O1OAE2GL0q68h1Ty00RE6Ihcixr55A6TU5RCvOUHnwJw9LGuDVg9NxDiAp7m/YJpa+UaOuLAz0ziyOQ==} - '@sinclair/typebox@0.32.35': - resolution: {integrity: sha512-Ul3YyOTU++to8cgNkttakC0dWvpERr6RYoHO2W47DLbFvrwBDJUY31B1sImH6JZSYc4Kt4PyHtoPNu+vL2r2dA==} + '@sinclair/typebox@0.33.21': + resolution: {integrity: sha512-1wU0VNSZQt13BmJvxYhHRVwDBnG8y5qrcyi3DnmEQzvfeRycUNneQSd6quyxrNbspM1pV/m4r4udO6o1tCuXjg==} '@swc/core-darwin-arm64@1.3.74': resolution: {integrity: sha512-2rMV4QxM583jXcREfo0MhV3Oj5pgRSfSh/kVrB1twL2rQxOrbzkAPT/8flmygdVoL4f2F7o1EY5lKlYxEBiIKQ==} @@ -4951,7 +4951,7 @@ snapshots: escalade: 3.1.1 jiti: 1.19.1 merge-anything: 5.1.7 - typescript: 5.1.6 + typescript: 5.5.4 '@pandacss/core@0.9.0': dependencies: @@ -5193,9 +5193,9 @@ snapshots: picocolors: 1.0.0 tslib: 2.6.1 - '@sinclair/typebox-codegen@0.10.3': + '@sinclair/typebox-codegen@0.10.5': dependencies: - '@sinclair/typebox': 0.32.35 + '@sinclair/typebox': 0.33.21 prettier: 2.8.8 typescript: 5.5.4 @@ -5203,7 +5203,7 @@ snapshots: '@sinclair/typebox@0.30.4': {} - '@sinclair/typebox@0.32.35': {} + '@sinclair/typebox@0.33.21': {} '@swc/core-darwin-arm64@1.3.74': optional: true @@ -6395,7 +6395,7 @@ snapshots: string-width: 5.1.2 strip-ansi: 7.1.0 tsconfig-resolver: 3.0.1 - typescript: 5.1.6 + typescript: 5.5.4 unist-util-visit: 4.1.2 vfile: 5.3.7 vite: 4.4.8(@types/node@20.4.5) @@ -8086,6 +8086,13 @@ snapshots: dependencies: postcss: 8.4.25 + postcss-load-config@4.0.1(postcss@8.4.25): + dependencies: + lilconfig: 2.1.0 + yaml: 2.3.1 + optionalDependencies: + postcss: 8.4.25 + postcss-load-config@4.0.1(postcss@8.4.27): dependencies: lilconfig: 2.1.0 @@ -8689,6 +8696,30 @@ snapshots: tslib@2.6.1: {} + tsup@7.1.0(@swc/core@1.3.74(@swc/helpers@0.5.1))(postcss@8.4.25)(typescript@5.1.6): + dependencies: + bundle-require: 4.0.1(esbuild@0.18.17) + cac: 6.7.14 + chokidar: 3.5.3 + debug: 4.3.4 + esbuild: 0.18.17 + execa: 5.1.1 + globby: 11.1.0 + joycon: 3.1.1 + postcss-load-config: 4.0.1(postcss@8.4.25) + resolve-from: 5.0.0 + rollup: 3.27.0 + source-map: 0.8.0-beta.0 + sucrase: 3.34.0 + tree-kill: 1.2.2 + optionalDependencies: + '@swc/core': 1.3.74(@swc/helpers@0.5.1) + postcss: 8.4.25 + typescript: 5.1.6 + transitivePeerDependencies: + - supports-color + - ts-node + tsup@7.1.0(@swc/core@1.3.74(@swc/helpers@0.5.1))(postcss@8.4.27)(typescript@5.1.6): dependencies: bundle-require: 4.0.1(esbuild@0.18.17)