🐬 Securely connect to any API with a server proxy and generated composables
unknown
instead of any
- by @johannschopplich (c0429)
[!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:
pathParams
fetch option has been renamed to path
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' },
}
)
globalThis
for atob
and btoa
methods - by @johannschopplich (64ebd)
No significant changes
import.meta.server
over process.server
- by @johannschopplich (d62cc)
No significant changes
NuxtError
for async data composables - by @johannschopplich (7576c)
Set-Cookie
headers in server proxy - by @johannschopplich in https://github.com/johannschopplich/nuxt-api-party/issues/58 (65675)
No significant changes