@kubb/adapter-oas 5.0.0-beta.33 → 5.0.0-beta.35

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 +15 -13
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  <div align="center">
2
- <h1>@kubb/adapter-oas</h1>
3
2
  <a href="https://kubb.dev" target="_blank" rel="noopener noreferrer">
4
- <img width="180" src="https://raw.githubusercontent.com/kubb-labs/kubb/main/assets/logo.png" alt="Kubb logo">
3
+ <img src="https://kubb.dev/og.png" alt="Kubb banner">
5
4
  </a>
6
5
 
7
6
  [![npm version][npm-version-src]][npm-version-href]
@@ -11,7 +10,7 @@
11
10
  [![Sponsors][sponsors-src]][sponsors-href]
12
11
 
13
12
  <h4>
14
- <a href="https://kubb.dev/" target="_blank">Documentation</a>
13
+ <a href="https://kubb.dev" target="_blank">Documentation</a>
15
14
  <span> · </span>
16
15
  <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Report Bug</a>
17
16
  <span> · </span>
@@ -19,7 +18,13 @@
19
18
  </h4>
20
19
  </div>
21
20
 
22
- OpenAPI and Swagger adapter for Kubb. Parses and validates Swagger 2.0, OpenAPI 3.0, and OpenAPI 3.1 specifications and transforms them into a `@kubb/ast` `RootNode` for downstream code generation plugins.
21
+ <br />
22
+
23
+ # @kubb/adapter-oas
24
+
25
+ ### OpenAPI and Swagger adapter for Kubb
26
+
27
+ Parses and validates Swagger 2.0, OpenAPI 3.0, and OpenAPI 3.1 specifications and transforms them into a `@kubb/ast` `RootNode` for downstream code generation plugins.
23
28
 
24
29
  ## Installation
25
30
 
@@ -50,14 +55,6 @@ export default defineConfig({
50
55
  })
51
56
  ```
52
57
 
53
- ## Features
54
-
55
- - Supports Swagger 2.0, OpenAPI 3.0, and OpenAPI 3.1
56
- - Validates and dereferences `$ref` pointers
57
- - Merges multi-document specs
58
- - Outputs a `@kubb/ast` `RootNode` that every Kubb plugin reads from
59
- - Re-exports typed helpers for operations, schemas, parameters, and responses
60
-
61
58
  ## API
62
59
 
63
60
  ### `adapterOas(options?)`
@@ -74,9 +71,10 @@ All OpenAPI types (`Document`, `Operation`, `SchemaObject`, `HttpMethod`, etc.)
74
71
 
75
72
  ## Supporting Kubb
76
73
 
77
- Kubb is an open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:
74
+ Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
78
75
 
79
76
  - [Become a Sponsor on GitHub](https://github.com/sponsors/stijnvanhulle)
77
+ - [See sponsorship tiers and our sponsors](https://kubb.dev/sponsors)
80
78
 
81
79
  <p align="center">
82
80
  <a href="https://github.com/sponsors/stijnvanhulle">
@@ -84,6 +82,10 @@ Kubb is an open source project with its ongoing development made possible entire
84
82
  </a>
85
83
  </p>
86
84
 
85
+ ## License
86
+
87
+ [MIT](https://github.com/kubb-labs/kubb/blob/main/licenses/LICENSE-MIT)
88
+
87
89
  <!-- Badges -->
88
90
 
89
91
  [npm-version-src]: https://img.shields.io/npm/v/@kubb/adapter-oas?flat&colorA=18181B&colorB=f58517
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/adapter-oas",
3
- "version": "5.0.0-beta.33",
3
+ "version": "5.0.0-beta.35",
4
4
  "description": "OpenAPI and Swagger adapter for Kubb. Parses and validates OAS 2.0/3.x specifications into a @kubb/ast RootNode for downstream code generation plugins.",
5
5
  "keywords": [
6
6
  "adapter",
@@ -43,11 +43,11 @@
43
43
  "registry": "https://registry.npmjs.org/"
44
44
  },
45
45
  "dependencies": {
46
- "@redocly/openapi-core": "^2.31.4",
46
+ "@redocly/openapi-core": "^2.31.5",
47
47
  "oas": "^32.1.18",
48
48
  "oas-normalize": "^16.0.4",
49
49
  "swagger2openapi": "^7.0.8",
50
- "@kubb/core": "5.0.0-beta.33"
50
+ "@kubb/core": "5.0.0-beta.35"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/swagger2openapi": "^7.0.4",
@@ -61,14 +61,15 @@
61
61
  "openapi-types": "12.1.3"
62
62
  },
63
63
  "scripts": {
64
+ "bench": "vitest bench",
64
65
  "build": "tsdown",
65
66
  "clean": "npx rimraf ./dist",
66
67
  "lint": "oxlint .",
67
68
  "lint:fix": "oxlint --fix .",
68
69
  "release": "pnpm publish --no-git-check",
69
70
  "release:canary": "bash ../../.github/canary.sh && node ../../scripts/build.js canary && pnpm publish --no-git-check",
71
+ "release:stage": "pnpm stage publish --no-git-check",
70
72
  "start": "tsdown --watch",
71
- "bench": "vitest bench",
72
73
  "test": "vitest --passWithNoTests",
73
74
  "typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false"
74
75
  }