Releases: johannschopplich/nuxt-api-party
Releases · johannschopplich/nuxt-api-party
v2.0.4
No significant changes
View changes on GitHub
v2.0.3
🚀 Features
- Export OpenAPI TypeScript helper types - by @johannschopplich (4cb4a)
🐞 Bug Fixes
- Augment runtime config types - by @johannschopplich (d7783)
View changes on GitHub
v2.0.2
v2.0.1
🐞 Bug Fixes
- Augment runtime config types - by @johannschopplich (e5b18)
- Type discrimination for non-overlapping content types - by @johannschopplich (00930)
- Re-add support for openapi-typescript 5 and 6 - by @killjoy1221 in #74 (bef12)
View changes on GitHub
v2.0.0
🚨 Breaking Changes
- Migrate to OpenAPI v7 - by @johannschopplich in #71 (b6331)
- Change default return type to
unknown
instead ofany
- by @johannschopplich (c0429)
ℹ️ Migration
Tip
Breaking changes are limited to using typed OpenAPI clients. If you don't require typed clients in your Nuxt application, you can skip this migration section.
With Nuxt API Party v2, the OpenAPI support has been refactored to conform to the upcoming version of the openapi-types
package (v7). This change introduces a few breaking changes to the API Party OpenAPI client:
- Dropped support for OpenAPI 2.0 (Swagger).
- Previously, you could omit the leading slash in the API path. This is no longer possible. You must now include the leading slash in the path, just like in the OpenAPI specification.
- The
pathParams
fetch option has been renamed topath
to better align with the OpenAPI specification and allow for more flexibility in the future.
const { data } = await usePetStoreData(
- 'user/{username}',
+ '/user/{username}',
{
- pathParams: { username: 'user1' },
+ path: { username: 'user1' },
}
)
View changes on GitHub
v1.1.2
🏎 Performance
- Use
globalThis
foratob
andbtoa
methods - by @johannschopplich (64ebd)
View changes on GitHub
v1.1.1
No significant changes
View changes on GitHub
v1.1.0
🐞 Bug Fixes
🏎 Performance
- Use
import.meta.server
overprocess.server
- by @johannschopplich (d62cc)
View changes on GitHub
v1.0.1
v1.0.0
No significant changes