Closed vejja closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
nuxt-security | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 21, 2024 10:39am |
I'm not entirely sure it's a breaking change, it could actually be a bug fix.
It's very difficult to understand how nitro
sets the unstorage
options, and then how unstorage
forwards these options to the underlying drivers. I'll do some local tests and will let you know.
I think it will be a breaking change purely because the interface for how certain feature will change. Wwith this change, users that uset the previous version of storage options, would have it not working anymore.
But no worries about that. This is not a huge breaking change as long as we provide release notes and migration guide.
I think it will be a breaking change purely because the interface for how certain feature will change. Wwith this change, users that uset the previous version of storage options, would have it not working anymore.
Yes that's right
@baroshem : Update after further review
The bug @numselli found out for the redis
driver was also a problem for all other drivers. The options were actually never passed to the underlying driver.
I'm fixing the TypeScript definitions to clarify how the options must be passed and what values are available for each driver.
Marking as ready now
Thanks for finding it and fixing it @vejja 💚!
I can't wait for this release. it will be 🔥
Closes #433
Types of changes
Description
The Rate Limiter options need to be spread in order to support all the
unstorage
drivers.Previously, only the
options
property could be provided to the underlying driver, because this driver has only one property with the nameoptions
.With this PR, any property name can be provided under the
options
property.Checklist: