Skip to content

Latest commit

 

History

History
74 lines (39 loc) · 2.68 KB

CHANGELOG.md

File metadata and controls

74 lines (39 loc) · 2.68 KB

4.0.0

Uses an object-hash replacer to transform FormData objects to key-value object maps before hashing.

This allows requests using FormData to be cached: #7

Applications that relied on exceptions being thrown when sending FormData requests through Cachios should be modified to expect the updated behaviour.

3.1.0

Adds initial Typescript support.

3.0.0

Adds support for asynchronous cache repositories like keyv: #61

  • If you use a synchronous cache store and have not modified getCachedValue or setCachedValue in your project, Cachios v3 will be backwards compatible for you.

  • If you modified Cachios to use an asynchronous cache store, or getCachedValue to return promises or undefined values, or setCachedValue to return promises, Cachios v3 may not be backwards compatible for you.

The full change can be viewed in 9ee35e125ee7c8dc08c80da0db9f972c222c0462 , human-readable changes summarized below:

Cache handling before 3.0.0

Results from getCachedValue were passed back to caller as-is.

Results from setCachedValue were ignored.

Cache handling after 3.0.0

Results from getCachedValue are resolved using Promise.resolve. If they are rejected or resolve to undefined, Cachios will assume no cached value exists and will send a fresh request using Axios.

Results from setCachedValue are passed up the promise chain.

2.2.5

Prevents issues with sharing cancelled promises: #55

2.2.4

Support Axios ^0.21.0 and ^0.20.0 in addition to ^0.18.0 and ^0.19.0

2.2.3

Support node-cache ^5.0.0 in addition to ^4.1.1

2.2.2

Bump object-hash to ^2.0.0

2.2.1

Support Axios ^0.19.0 in addition to ^0.18.0

2.2.0

Forced cache invalidation added: https://github.com/AlbinoDrought/cachios/commit/d2612ac3052e420644db75ad18b6f29ea326f589

2.1.0

Deduplicates simultaneous identical requests: #44

2.0.0

This release does not change the public interface to cachios, but does vastly change the build process and removes some polyfills.

Because of this, I am releasing it as 2.0.0.

It removes:

#43