@nxgt/openapi-httpyz 0.3.0 → 0.3.1
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 +2 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ bun add -d @nxgt/openapi-codegen typescript
|
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Both peers are required: `@nxgt/httpyz`, since the binding uses your client,
|
|
25
|
-
not a copy of its own, and `typescript` 6, for the types. The generated
|
|
25
|
+
not a copy of its own, and `typescript` 6 or 7, for the types. The generated
|
|
26
26
|
`operations.ts` imports `zod`, so the app needs it too.
|
|
27
27
|
|
|
28
28
|
## Setup
|
|
@@ -39,7 +39,7 @@ Then bind them:
|
|
|
39
39
|
```ts
|
|
40
40
|
import { createHttpClient } from '@nxgt/httpyz';
|
|
41
41
|
import { createOpenApiClient } from '@nxgt/openapi-httpyz';
|
|
42
|
-
import { operations } from './generated/openapi/operations
|
|
42
|
+
import { operations } from './generated/openapi/operations';
|
|
43
43
|
|
|
44
44
|
const http = createHttpClient({
|
|
45
45
|
baseUrl: 'https://api.example.com',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/openapi-httpyz",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"typecheck": "bun run fixtures && tsc --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@nxgt/httpyz": "^0.
|
|
39
|
-
"@nxgt/openapi-codegen": "^0.
|
|
40
|
-
"@nxgt/openapi-hono": "^0.1
|
|
38
|
+
"@nxgt/httpyz": "^0.3.2",
|
|
39
|
+
"@nxgt/openapi-codegen": "^0.7.0",
|
|
40
|
+
"@nxgt/openapi-hono": "^0.3.1",
|
|
41
41
|
"@types/bun": "^1.4.0",
|
|
42
42
|
"hono": "^4.13.4",
|
|
43
43
|
"zod": "^4.5.4"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@nxgt/httpyz": "^0.
|
|
47
|
-
"typescript": "^6.0.3"
|
|
46
|
+
"@nxgt/httpyz": "^0.3.2",
|
|
47
|
+
"typescript": "^6.0.3 || ^7.0.0"
|
|
48
48
|
}
|
|
49
49
|
}
|