Releases: johannschopplich/nuxt-api-party
Releases 路 johannschopplich/nuxt-api-party
v2.0.5
No significant changes
聽聽聽聽View changes on GitHub
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
- Remove extension from import sources 聽-聽 by @killjoy1221 in #67 (8c471)
聽聽聽馃弾 Performance
- Use
import.meta.server
overprocess.server
聽-聽 by @johannschopplich (d62cc)
聽聽聽聽View changes on GitHub
v1.0.1
聽聽聽馃悶 Bug Fixes
- Default async data fallback type 聽-聽 by @johannschopplich (03d04)