Skip to content

Commit a307b26

Browse files
committed
Stable Version 0.8.1
1 parent 0a4daaf commit a307b26

File tree

9 files changed

+48
-18
lines changed

9 files changed

+48
-18
lines changed

CHANGELOG.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
##### 0.8.0 - 13 March 2014
1+
##### 0.8.1 - 02 May 2014
22

3-
###### Backwards compatible API changes
4-
- #37 - Add option to only save changed attributes when calling DS.save()
3+
###### Backwards compatible Bug fixes
4+
- #44 - Pending query isn't deleted when the response is a failure
5+
- #47 - Minification error in $q $delegate
56

67
##### 0.8.0 - 13 March 2014
78

Gruntfile.js

+14
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@ module.exports = function (grunt) {
9999
autoWatch: true,
100100
singleRun: false
101101
},
102+
min: {
103+
browsers: ['Chrome'],
104+
autoWatch: false,
105+
singleRun: true,
106+
options: {
107+
files: [
108+
'bower_components/angular/angular.js',
109+
'bower_components/angular-mocks/angular-mocks.js',
110+
'dist/angular-data.min.js',
111+
'test/integration/**/*.js',
112+
'karma.start.js'
113+
]
114+
}
115+
},
102116
ci: {
103117
browsers: ['Firefox', 'PhantomJS']
104118
}

bower.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Jason Dobry",
33
"name": "angular-data",
44
"description": "Data store for Angular.js.",
5-
"version": "0.8.0",
5+
"version": "0.8.1",
66
"homepage": "http://jmdobry.github.io/angular-data/",
77
"repository": {
88
"type": "git",
@@ -26,9 +26,12 @@
2626
"karma.start.js"
2727
],
2828
"devDependencies": {
29-
"angular": "~1.2.13",
30-
"angular-mocks": "~1.2.13",
31-
"angular-cache": "~3.0.0-beta.1",
29+
"angular": "~1.2.16",
30+
"angular-mocks": "~1.2.16",
31+
"angular-cache": "~3.0.0-beta.4",
3232
"observe-js": "~0.2.0"
33+
},
34+
"resolutions": {
35+
"angular": "~1.2.16"
3336
}
3437
}

dist/angular-data.js

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @author Jason Dobry <[email protected]>
33
* @file angular-data.js
4-
* @version 0.8.0 - Homepage <http://angular-data.codetrain.io/>
4+
* @version 0.8.1 - Homepage <http://angular-data.codetrain.io/>
55
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
66
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
77
*
@@ -1931,6 +1931,9 @@ function find(resourceName, id, options) {
19311931
} else {
19321932
return data;
19331933
}
1934+
}, function (err) {
1935+
delete resource.pendingQueries[id];
1936+
return err;
19341937
});
19351938
}
19361939

@@ -2000,6 +2003,9 @@ function _findAll(utils, resourceName, params, options) {
20002003
} else {
20012004
return data;
20022005
}
2006+
}, function (err) {
2007+
delete resource.pendingQueries[queryHash];
2008+
return err;
20032009
});
20042010
}
20052011

@@ -3854,7 +3860,7 @@ module.exports = [function () {
38543860
* @id angular-data
38553861
* @name angular-data
38563862
* @description
3857-
* __Version:__ 0.8.0
3863+
* __Version:__ 0.8.1
38583864
*
38593865
* ## Install
38603866
*
@@ -3873,7 +3879,7 @@ module.exports = [function () {
38733879
* Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js.
38743880
*
38753881
* #### Manual download
3876-
* Download angular-data.0.8.0.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
3882+
* Download angular-data.0.8.1.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
38773883
* section of the angular-data GitHub project.
38783884
*
38793885
* ## Load into Angular
@@ -3896,7 +3902,7 @@ module.exports = [function () {
38963902
.provider('DSHttpAdapter', require('./adapters/http'))
38973903
.provider('DS', require('./datastore'))
38983904
.config(['$provide', function ($provide) {
3899-
$provide.decorator('$q', function ($delegate) {
3905+
$provide.decorator('$q', ['$delegate', function ($delegate) {
39003906
// do whatever you you want
39013907
$delegate.promisify = function (fn, target) {
39023908
var _this = this;
@@ -3922,7 +3928,7 @@ module.exports = [function () {
39223928
};
39233929
};
39243930
return $delegate;
3925-
});
3931+
}]);
39263932
}]);
39273933

39283934
})(window, window.angular);

dist/angular-data.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-data",
33
"description": "Data store for Angular.js.",
4-
"version": "0.8.0",
4+
"version": "0.8.1",
55
"homepage": "http://github.com/jmdobry/angular-data",
66
"repository": {
77
"type": "git",

src/datastore/async_methods/find/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ function find(resourceName, id, options) {
8383
} else {
8484
return data;
8585
}
86+
}, function (err) {
87+
delete resource.pendingQueries[id];
88+
return err;
8689
});
8790
}
8891

src/datastore/async_methods/findAll/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ function _findAll(utils, resourceName, params, options) {
4949
} else {
5050
return data;
5151
}
52+
}, function (err) {
53+
delete resource.pendingQueries[queryHash];
54+
return err;
5255
});
5356
}
5457

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
.provider('DSHttpAdapter', require('./adapters/http'))
4949
.provider('DS', require('./datastore'))
5050
.config(['$provide', function ($provide) {
51-
$provide.decorator('$q', function ($delegate) {
51+
$provide.decorator('$q', ['$delegate', function ($delegate) {
5252
// do whatever you you want
5353
$delegate.promisify = function (fn, target) {
5454
var _this = this;
@@ -74,7 +74,7 @@
7474
};
7575
};
7676
return $delegate;
77-
});
77+
}]);
7878
}]);
7979

8080
})(window, window.angular);

0 commit comments

Comments
 (0)