Skip to content

v0.12.0

Choose a tag to compare

@Norbiros Norbiros released this 07 Jun 20:31
· 66 commits to main since this release

compare changes

🎉 Important information

For the past few months, nuxt-open-fetch was unmaintained. During that time, @Norbiros created a fork called nuxt-open-fetch-x with minor improvements. Now, both projects have been merged into nuxt-open-fetch, and the fork is no longer maintained.

⚠️ Breaking Change Notice

The openapi directory is now relative to rootDir instead of srcDir. With Nuxt 4, the app/ folder is the new source directory.

If you were using compatibilityVersion: 4, update your config like this:

      api: {
        baseURL: backendAddress,
-       schema: '../openapi/api/openapi.json',
+       schema: 'openapi/api/openapi.json',
      },

Your directory structure should look like this:

app/
  components/
  app.config.ts
openapi/
nuxt.config.ts

This aligns with Nuxt 4 conventions.

🚀 Enhancements

  • Rebrand to nuxt-open-fetch-x (d63207e)
  • Added type helper for request path (#84)
  • Update copyright years (f96ea95)

🩹 Fixes

  • Prevent duplicated requests (#83)
  • Manually generate keys to prevent double fetching (d4e4b2e)
  • Add header parameters to headers (#80)
  • Type helpers bug fixes (#89)
  • Proper module builder configuration (f48d0cf)
  • Key generation not taking path parameters into account (c96f2ca)
  • Properly allow Nuxt v4 (951bc97)
  • Resolve schema dir from rootDir (8cc014b)
  • docs: Update openapi directory (0229098)

📖 Documentation

🏡 Chore

❤️ Contributors