@oasis-gen/linux-x64 0.10.0 → 0.10.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.
Files changed (3) hide show
  1. package/README.md +10 -11
  2. package/bin/oasis-gen +0 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,11 +1,10 @@
1
1
  <div align="center">
2
2
  <img src="https://raw.githubusercontent.com/22mb/oasis/main/site/public/logo-512.png" alt="" width="96" height="96">
3
3
  <h1>oasis-gen</h1>
4
- <p>A minimal API client generator for <b>OpenAPI 3.2</b>.</p>
4
+ <p>A <b>strictly typed</b> API client generator for OpenAPI, with <b>zero runtime dependencies</b>.</p>
5
5
  <p>
6
6
  <a href="https://22mb.github.io/oasis/"><b>Documentation</b></a> ·
7
- <a href="https://22mb.github.io/oasis/playground"><b>Playground</b></a> ·
8
- <a href="https://22mb.github.io/oasis/ja/">日本語</a>
7
+ <a href="https://22mb.github.io/oasis/playground"><b>Playground</b></a>
9
8
  </p>
10
9
  </div>
11
10
 
@@ -14,14 +13,14 @@ file, with types for every operation and a small `fetch`-based runtime.
14
13
 
15
14
  <img src="https://raw.githubusercontent.com/22mb/oasis/main/site/public/strict-types.png" alt="In the generated client, res.data has the type $Pet when res.status is 200, $Error when it is 404, and unknown for any other status">
16
15
 
17
- - **OpenAPI 3.2**: `QUERY` operations, sequential media types (JSON Lines,
18
- server-sent events), multi-file documents, and JSON Schema 2020-12.
19
- OpenAPI 3.0 and 3.1 documents are accepted too.
20
16
  - **Strict types**: `status` narrows `data` to the declared response.
21
- Statuses that the document does not declare stay in the type. Request types
22
- respect `readOnly` and `writeOnly`.
17
+ Statuses that the document does not declare stay in the type. Request and
18
+ response types respect `readOnly` and `writeOnly`.
23
19
  - **Zero runtime dependencies**: the output runs anywhere `fetch` is
24
20
  available. There is no runtime package to install and nothing to configure.
21
+ - **OpenAPI 3.0 to 3.2**: including `QUERY` operations, sequential media types
22
+ (JSON Lines, server-sent events), multi-file documents, and JSON Schema
23
+ 2020-12.
25
24
 
26
25
  ## Example
27
26
 
@@ -50,8 +49,8 @@ npm install --save-dev oasis-gen
50
49
 
51
50
  The CLI and the generated client need Node.js 22 or later. The client also
52
51
  runs in browsers (tested in Chromium, Firefox, and WebKit) and Bun, and
53
- type-checks with TypeScript 5.0 or later. Generate only from documents you
54
- trust: oasis-gen reads any local file that a `$ref` points to.
52
+ type-checks with TypeScript 5.0 or later. Generate clients only from documents
53
+ you trust, because oasis-gen reads any local file that a `$ref` points to.
55
54
 
56
55
  The package ships prebuilt binaries for macOS, Linux, and Windows, on arm64
57
56
  and x64. npm installs only the one for your platform. Archives are also
@@ -59,7 +58,7 @@ attached to each [GitHub release](https://github.com/22mb/oasis/releases).
59
58
  To build from source instead:
60
59
 
61
60
  ```sh
62
- cargo install --git https://github.com/22mb/oasis
61
+ cargo install --locked --git https://github.com/22mb/oasis
63
62
  ```
64
63
 
65
64
  ## Documentation
package/bin/oasis-gen CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oasis-gen/linux-x64",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "The oasis-gen binary for linux-x64",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {