Skip to content

Releases: Norbiros/nuxt-open-fetch

v0.13.1

23 Jul 16:35
Compare
Choose a tag to compare

compare changes

🚨 Improtant information

If you are using a custom open fetch plugin and want to use the hooks feature, update your code to include nuxtApp's hooks:

-        }), localFetch, name)
+        }), localFetch, name, nuxtApp.hooks)

🩹 Fixes

  • Properly import methods in fetch.ts (#101)

❤️ Contributors

v0.13.0

19 Jul 17:41
Compare
Choose a tag to compare

🚨 Highlights

New nuxt-open-fetch docs are available at nuxt-open-fetch.norbiros.dev.

Thanks to @Eschricht, there is a new system for customizing your fetch calls - Nuxt Hooks. This is the recommended way to implement custom and not very complex modifications like adding auth headers, logging errors, showing toasts, etc.

Plugins are and will be still available, so there are no breaking changes in this release.

🚀 Enhancements

  • Do not require type stubs on install (7622068)

  • Add contributors to package.json (3dfb1a8)

  • Add Nuxt runtime hooks for fetch client hooks (9bb2cde)

  • ci: Add CI configuration for linting and testing (cc3e587)

  • Watch schemas directory in development mode (f88f2fb)

  • Add major release script to package.json (840ac40)

🩹 Fixes

  • docs: Add missing better-sqlite3 (ecddddf)

  • docs: Update link to Nuxt hooks in custom client documentation (155255a)

  • ci: Temporary disable test checks (368ace8)

  • Resolve a lot of TypeScript issues (9388a9c)

  • Add TypeScript type checking to the release script (69fc9f4)

🏡 Chore

  • docs: Update to Nuxt UI & Nuxt Content v3 (77b6599)

  • Update dependencies + Nuxt v4 (8a6e11b)

  • Run formatter (9658c46)

❤️ Contributors

v0.12.2

19 Jun 09:39
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Correct module build process (once again) (a11f21f)

🏡 Chore

❤️ Contributors

v0.12.1

18 Jun 18:15
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Resolve multiple bugs in auto key generation (#97)
  • playground: Rewrite playground code (3abd499)

❤️ Contributors

v0.12.0

07 Jun 20:31
Compare
Choose a tag to compare

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

v0.9.5

01 Nov 00:24
Compare
Choose a tag to compare

compare changes

💅 Refactors

  • Remove redundant "defu" merge (3e9e8c9)

📖 Documentation

  • Impoved configuration docs (4d8d7de)
  • Fixes configuration docs (66524df)

🏡 Chore

❤️ Contributors

v0.9.4

31 Oct 22:29
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Ref type for query params (a0c7d71)

📖 Documentation

  • Added "Type helpers" section (5e0f815)

🏡 Chore

❤️ Contributors

v0.9.3

31 Oct 18:17
Compare
Choose a tag to compare

compare changes

🩹 Fixes

❤️ Contributors

v0.9.2

07 Sep 16:06
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • docs: $[client] usage example inside Nitro handler (546f656)
  • github: Added bug and feature requests (6c7182a)
  • Expose request and response types (bd8bd43)

🩹 Fixes

  • docs: Custom Nitro client example (0d73421)
  • docs: Improved custom client docs (b9a48d3)

❤️ Contributors

v0.9.1

21 Jun 20:08
Compare
Choose a tag to compare

compare changes

🩹 Fixes

📖 Documentation

  • Fixed and simplified custom client example (797c374)

❤️ Contributors