Morgbn / nuxt-csurf

Nuxt Cross-Site Request Forgery (CSRF) Prevention
https://nuxt-csurf.vercel.app
MIT License
81 stars 16 forks source link

Bump Nuxt to 3.2.0 to address fetch typing inference #5

Closed genu closed 1 year ago

genu commented 1 year ago

Nuxt 3.2.0 includes a typing fix:

🪄 Automatically inferred return type for useFetch and $fetch based on method. It'll be a type error to use the wrong method when hitting an endpoint. Plus, if you have multiple methods served by a single endpoint (like ~/server/api/test.get.ts and ~/server/api/test.post.ts then the response type will match the kind of response you make.

It just needs to be bumped in this repo I believe so that useCsrfFetch can return the proper types.

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: