Skip to content

Commit a33775b

Browse files
authored
Fix openapi-fetch size (#1250)
1 parent 533475c commit a33775b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/src/content/docs/openapi-fetch/examples.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ client.GET("/some-authenticated-url", {
7070

7171
## Caching
7272

73-
openapi-fetch doesn’t provide any caching utilities (it’s 1 kb, remember?). But this library is so lightweight, caching can be added easily.
73+
openapi-fetch doesn’t provide any caching utilities. But this library is so lightweight, caching can be added easily.
7474

7575
### Built-in Fetch caching
7676

docs/src/content/docs/openapi-fetch/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ description: Get Started with openapi-fetch
55

66
<img src="/assets/openapi-fetch.svg" alt="openapi-fetch" width="216" height="40" />
77

8-
openapi-fetch applies your OpenAPI types to the native fetch API via TypeScript. Weighs in at **2 kb** and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.
8+
openapi-fetch applies your OpenAPI types to the native fetch API via TypeScript. Weighs **2 kb** and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.
99

1010
| Library | Size (min) |
1111
| :----------------------------- | ---------: |
1212
| **openapi-fetch** | `2 kB` |
1313
| **openapi-typescript-fetch** | `4 kB` |
1414
| **openapi-typescript-codegen** | `345 kB` |
1515

16-
The syntax is inspired by popular libraries like react-query or Apollo client, but without all the bells and whistles and in a 1 kb package.
16+
The syntax is inspired by popular libraries like react-query or Apollo client, but without all the bells and whistles and in a 2 kb package.
1717

1818
```ts
1919
import createClient from "openapi-fetch";

packages/openapi-fetch/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<img src="../../docs/public/assets/openapi-fetch.svg" alt="openapi-fetch" width="216" height="40" />
22

3-
openapi-fetch applies your OpenAPI types to the native fetch API via TypeScript. Weighs in at **2 kb** and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.
3+
openapi-fetch applies your OpenAPI types to the native fetch API via TypeScript. Weighs **2 kb** and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.
44

55
| Library | Size (min) |
66
| :----------------------------- | ---------: |
77
| **openapi-fetch** | `2 kB` |
88
| **openapi-typescript-fetch** | `4 kB` |
99
| **openapi-typescript-codegen** | `345 kB` |
1010

11-
The syntax is inspired by popular libraries like react-query or Apollo client, but without all the bells and whistles and in a 1 kb package.
11+
The syntax is inspired by popular libraries like react-query or Apollo client, but without all the bells and whistles and in a 2 kb package.
1212

1313
```ts
1414
import createClient from "openapi-fetch";

packages/openapi-fetch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openapi-fetch",
3-
"description": "Fetch using your OpenAPI types. Weighs in at 1 kb and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.",
3+
"description": "Fetch using your OpenAPI types. Weighs 2 kb and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.",
44
"version": "0.7.0",
55
"author": {
66
"name": "Drew Powers",

0 commit comments

Comments
 (0)