Skip to content

Commit bfe985e

Browse files
committed
release: 2.0.0
1 parent 842fc0a commit bfe985e

File tree

3 files changed

+41
-4
lines changed

3 files changed

+41
-4
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
11
# Changelog
22

33

4+
## v2.0.0
5+
6+
[compare changes](https://github.com/Pentadome/nuxt-openAPI-wrapper/compare/v1.1.1...v2.0.0)
7+
8+
### Breaking changes
9+
#### Removed `autoImport` property from module and api config.
10+
Use `clients: { nuxt: { autoImport: false }}` to disable auto imports instead.
11+
12+
#### The openAPITS config of the api config now gets merged with the module config.
13+
Example:
14+
```ts
15+
openAPIWrapper: {
16+
openApiTsConfig: { immutable: true },
17+
apis: {
18+
github: {
19+
openApiTsConfig: { additionalProperties: true }
20+
},
21+
},
22+
```
23+
#### Before 2.0.0
24+
effective config: `{ additionalProperties: true }`
25+
#### After 2.0.0
26+
effective config: `{ immutable: true, additionalProperties: true }`
27+
28+
### 🚀 Enhancements
29+
30+
- Nitro support ([0e63ce2](https://github.com/Pentadome/nuxt-openAPI-wrapper/commit/0e63ce2))
31+
32+
### 🩹 Fixes
33+
34+
- Minor mistake in readme.md ([dcaf1d8](https://github.com/Pentadome/nuxt-openAPI-wrapper/commit/dcaf1d8))
35+
36+
37+
### ❤️ Contributors
38+
39+
- Pentadome ([@Pentadome](https://github.com/Pentadome))
40+
441
## v1.1.1
542
643
[compare changes](https://github.com/Pentadome/nuxt-openAPI-wrapper/compare/v1.1.0...v1.1.1)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ Find and replace all on all files (CMD+SHIFT+F):
77
- Description: My new Nuxt module
88
-->
99

10-
# Nuxt typesafe OpenAPI wrapper
10+
# Nuxt Typesafe OpenAPI Fetch wrapper
1111

1212
[![npm version][npm-version-src]][npm-version-href]
1313
[![npm downloads][npm-downloads-src]][npm-downloads-href]
1414
[![License][license-src]][license-href]
1515
[![Nuxt][nuxt-src]][nuxt-href]
1616

17-
Generates a typesafe fetch client for Nuxt using [Openapi-ts](https://github.com/openapi-ts/openapi-typescript).
17+
Generates a typesafe fetch client for Nuxt and Nitro using [Openapi-ts](https://github.com/openapi-ts/openapi-typescript).
1818

1919
<!-- - [✨ &nbsp;Release Notes](/CHANGELOG.md) -->
2020
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/nuxt-openAPI-wrapper?file=playground%2Fapp.vue) -->
@@ -108,7 +108,7 @@ export const $fetchGithub: typeof _$fetchGithub = (path, opts?) => {
108108
// Do the same for useGithubFetch and useLazyGithubFetch
109109
```
110110
111-
You can do something similair to create a custom Nitro fetch client by creating a `./server/utils/githubClient.ts` file.
111+
You can also create a custom Nitro fetch client. E.g. by creating a `./server/utils/githubClient.ts` file.
112112
113113
[Nuxt composable example](playground/composables/customGithubFetch.ts)
114114

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxt-openapi-wrapper",
3-
"version": "1.1.1",
3+
"version": "2.0.0",
44
"description": "An openapi client wrapper for Nuxt fetch client.",
55
"repository": "Pentadome/nuxt-openAPI-wrapper",
66
"license": "MIT",

0 commit comments

Comments
 (0)