File tree Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
3
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
+
4
41
## v1.1.1
5
42
6
43
[compare changes](https://github.com/Pentadome/nuxt-openAPI-wrapper/compare/v1.1.0...v1.1.1)
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ Find and replace all on all files (CMD+SHIFT+F):
7
7
- Description: My new Nuxt module
8
8
-->
9
9
10
- # Nuxt typesafe OpenAPI wrapper
10
+ # Nuxt Typesafe OpenAPI Fetch wrapper
11
11
12
12
[ ![ npm version] [ npm-version-src ]] [ npm-version-href ]
13
13
[ ![ npm downloads] [ npm-downloads-src ]] [ npm-downloads-href ]
14
14
[ ![ License] [ license-src ]] [ license-href ]
15
15
[ ![ Nuxt] [ nuxt-src ]] [ nuxt-href ]
16
16
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 ) .
18
18
19
19
<!-- - [✨ Release Notes](/CHANGELOG.md) -->
20
20
<!-- - [🏀 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?) => {
108
108
// Do the same for useGithubFetch and useLazyGithubFetch
109
109
` ` `
110
110
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.
112
112
113
113
[Nuxt composable example](playground/composables/customGithubFetch.ts)
114
114
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nuxt-openapi-wrapper" ,
3
- "version" : " 1.1.1 " ,
3
+ "version" : " 2.0.0 " ,
4
4
"description" : " An openapi client wrapper for Nuxt fetch client." ,
5
5
"repository" : " Pentadome/nuxt-openAPI-wrapper" ,
6
6
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments