Closed JonathanViau closed 1 month ago
Oh shoot! Nice catch.
Although axios-cache-interceptor major releases for now just follows the axios major version, so i guess there's nothing i could do for now, just create guides on how to fix this issue :/
Are you up to a PR?
Well, there are few options I suppose:
Option 1 is probably the one you want to keep the clear functionality.
Making the property optional and provide a default implementation that throws not implemented seems a good alternative
throwing "not implemented" means additional error handling on the consuming applications, which still means breaking change.
No, it does not. clear()
is not used by axios-cache-interceptor
and was merged to allow 3rd party code to use it.
Fixed in v1.6.1
What happened?
In the latest 1.6.0 release, a breaking change has been introduced by exposing a new function in an interface: https://github.com/arthurfiorette/axios-cache-interceptor/pull/848/files#diff-153c6b38971390ad001e44eef88dd5fd8f62c9b450c64092f280c4b5d2bd1935R74 It should be included in a major release.
axios-cache-interceptor version
v1.6.0
Node / Browser Version
node 20
Axios Version
1.7.7
What storage is being used
Web Storage
Relevant debugging log output