Skip to content

Releases: jpodwys/superagent-cache

3.1.1

14 Mar 16:32
1f46869
Compare
Choose a tag to compare

Updated Query Param Parsers to Handle Repeated Keys (thanks to @chriswsh for #66)

3.1.0

07 Jan 03:03
34aac05
Compare
Choose a tag to compare

Add gutResponse to the prune callback's argument list.

3.0.1

28 Jun 07:08
60f49da
Compare
Choose a tag to compare
  • Update away from a vulnerable dependency
  • Improve unit tests

3.0.0

24 May 16:47
a172b19
Compare
Choose a tag to compare

Breaking

This major release consumes cache-service-cache-module#2.0.0 which contains the following breaking change:

.get now returns a clone of, rather than a reference to, cached objects. This means that manipulating responses from .get will no longer manipulate the cache entry.

Non-breaking

Updating dependencies.

2.0.0

15 May 15:50
Compare
Choose a tag to compare

Now compatible with superagent 2.x and 3.x

Breaking Changes

  • ._end is now ._superagentCache_originalEnd to prevent naming colisions
  • .pruneParams is now .pruneQuery for clarity
  • .pruneOptions is now .pruneHeader for clarity
  • No longer wrapping .then since superagent uses real promises since 2.x. As a result, the resolve function passed to .then no longer exposes the generated cache key like it did when using superagent ^1.3.0 with superagent-cache ^1.5.0 (but using .end does still expose the generated cache key)

1.7.2

09 Jan 02:54
Compare
Choose a tag to compare

Relative pin to cache-service-cache-module to prevent unnecessary future releases.

1.7.1

15 Oct 16:40
Compare
Choose a tag to compare

Fixing a bug that prevented forceUpdate from being evaluated as part of the defaults object.

1.7.0

12 Sep 20:32
Compare
Choose a tag to compare
  • Added the preventDuplicateCalls feature
  • Updated cacheModule pin to 1.2.4

1.6.0

10 Jul 17:42
Compare
Choose a tag to compare

Adding support for HTTP patch calls. Thanks to @flochtililoch.

1.5.1

22 Jun 02:27
Compare
Choose a tag to compare

Only adding Request.prototype.then wrapper if Request.prototype.promise does not exist to preserve superagent-bluebird-promise compatibility. (Thanks to @wikiwong.)