auto-api-hooks 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +6 -0
  2. package/package.json +12 -3
package/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # React Hooks Generator from OpenAPI, Swagger & GraphQL | auto-api-hooks
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/auto-api-hooks)](https://www.npmjs.com/package/auto-api-hooks)
4
+ [![npm downloads](https://img.shields.io/npm/dm/auto-api-hooks)](https://www.npmjs.com/package/auto-api-hooks)
5
+ [![bundle size](https://img.shields.io/bundlephobia/minzip/auto-api-hooks)](https://bundlephobia.com/package/auto-api-hooks)
6
+ [![license](https://img.shields.io/npm/l/auto-api-hooks)](https://github.com/abdallaemadeldin/auto-api-hooks/blob/master/LICENSE)
7
+ [![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue)](https://www.typescriptlang.org/)
8
+
3
9
  Generate React Query hooks from OpenAPI specs. Generate SWR hooks from Swagger. Generate type-safe TypeScript API hooks from GraphQL schemas. One command, fully typed, tree-shakeable output with optional Zod schemas and MSW v2 mocks.
4
10
 
5
11
  > `auto-api-hooks` -- the OpenAPI to React hooks generator that also supports Swagger 2.0 and GraphQL. Produces TanStack React Query v5 hooks, SWR hooks, or plain fetch hooks with zero config.
package/package.json CHANGED
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "auto-api-hooks",
3
- "version": "1.0.2",
4
- "description": "Auto-generate type-safe React hooks from OpenAPI, Swagger, and GraphQL specs. Supports fetch, Axios, React Query, and SWR with optional Zod validation and MSW mock generation.",
3
+ "version": "1.0.3",
4
+ "description": "Generate React Query hooks, SWR hooks, and TypeScript types from OpenAPI 3.x, Swagger 2.0, and GraphQL specs. API client code generator with Zod schema validation and MSW v2 mock server generation.",
5
5
  "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/abdallaemadeldin/auto-api-hooks.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/abdallaemadeldin/auto-api-hooks/issues"
12
+ },
13
+ "homepage": "https://github.com/abdallaemadeldin/auto-api-hooks#readme",
14
+ "author": "Abdalla Emad Eldin",
6
15
  "type": "module",
7
16
  "sideEffects": false,
8
17
  "bin": {
@@ -71,4 +80,4 @@
71
80
  "api-client",
72
81
  "hooks-generator"
73
82
  ]
74
- }
83
+ }