Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

Releases: shaungrady/angular-http-etag

2.0.18

04 Aug 20:14
834e983
Compare
Choose a tag to compare

Update dependencies. No functional changes.

2.0.17

28 Feb 16:38
c075a70
Compare
Choose a tag to compare

No functional changes. Added and included LICENSE.md in package. (#84)

2.0.16

03 Feb 16:17
eaaf593
Compare
Choose a tag to compare
  • Add jsnext:main and module to package.json (#79)
  • Fix CommonJS export to be the same as it was in v2.0.14 and before (#78)

2.0.15

24 Jan 00:01
6d4af5a
Compare
Choose a tag to compare

Fix compatibility with Angular 1.6. Please note the new promise syntax due to the change in 1.6 dropping support for the success and error promise shortcut methods.

Example of new syntax:

$http
  .get('/my_data.json', {
    etagCache: 'persistentCache'
  })
  .then(function success (response, itemCache) {
    // Success
  })
  .ifCached(function (response, itemCache) {
    // Cached. Note new method and arguments.
  })

2.0.14

15 Oct 04:05
Compare
Choose a tag to compare
  • Added ifCached method to the $http promise that matches then callback argument structure; deprecate cached method if useLegacyPromiseExtensions is set to false. (#51)

Example:

promise
  .then(function successHandler (response, itemCache) {
    var data = response.data
    data._fullName = data.first_name + ' ' + data.last_name
    itemCache.set(data)
    self.fullName = data._fullName
  })
  .ifCached(function (response, itemCache) {
    self.fullName = response.data._fullName
  })

Thank you for your contribution on this one, @Tommatheussen!

2.0.13

27 Sep 16:39
Compare
Choose a tag to compare
  • Fixes cases where the decorator wasn't being initialized before the app made $http calls, causing $http.get().then().cached to be undefined, among other issues. (#43)

2.0.12

22 Sep 19:39
Compare
Choose a tag to compare
  • Catch errors being thrown when attempting to set excessively large values using Web Storage. (Thanks, @nwidger!)
  • Include UMD module (release/angular-http-etag.js) in package

2.0.11

28 Aug 02:39
Compare
Choose a tag to compare
  • Wrap $http promise's then method (example)
  • Respect httpEtagHttpDecorator.useLegacyPromiseExtensions setting by not wrapping success when false.

2.0.10

25 Aug 16:45
Compare
Choose a tag to compare
  • Bundler switch from Browserify to Rollup, reduced release size by 64%
  • Small optimizations, removal of redundant code
  • No functional changes

2.0.9

24 Aug 21:00
Compare
Choose a tag to compare

Add purgeCaches method to service that removes all cached items from all defined caches.