Skip to content

Commit

Permalink
Stable Version 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed May 2, 2014
1 parent 0a4daaf commit a307b26
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 18 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
##### 0.8.0 - 13 March 2014
##### 0.8.1 - 02 May 2014

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

##### 0.8.0 - 13 March 2014

Expand Down
14 changes: 14 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,20 @@ module.exports = function (grunt) {
autoWatch: true,
singleRun: false
},
min: {
browsers: ['Chrome'],
autoWatch: false,
singleRun: true,
options: {
files: [
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
'dist/angular-data.min.js',
'test/integration/**/*.js',
'karma.start.js'
]
}
},
ci: {
browsers: ['Firefox', 'PhantomJS']
}
Expand Down
11 changes: 7 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Jason Dobry",
"name": "angular-data",
"description": "Data store for Angular.js.",
"version": "0.8.0",
"version": "0.8.1",
"homepage": "http://jmdobry.github.io/angular-data/",
"repository": {
"type": "git",
Expand All @@ -26,9 +26,12 @@
"karma.start.js"
],
"devDependencies": {
"angular": "~1.2.13",
"angular-mocks": "~1.2.13",
"angular-cache": "~3.0.0-beta.1",
"angular": "~1.2.16",
"angular-mocks": "~1.2.16",
"angular-cache": "~3.0.0-beta.4",
"observe-js": "~0.2.0"
},
"resolutions": {
"angular": "~1.2.16"
}
}
16 changes: 11 additions & 5 deletions dist/angular-data.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 0.8.0 - Homepage <http://angular-data.codetrain.io/>
* @version 0.8.1 - Homepage <http://angular-data.codetrain.io/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
Expand Down Expand Up @@ -1931,6 +1931,9 @@ function find(resourceName, id, options) {
} else {
return data;
}
}, function (err) {
delete resource.pendingQueries[id];
return err;
});
}

Expand Down Expand Up @@ -2000,6 +2003,9 @@ function _findAll(utils, resourceName, params, options) {
} else {
return data;
}
}, function (err) {
delete resource.pendingQueries[queryHash];
return err;
});
}

Expand Down Expand Up @@ -3854,7 +3860,7 @@ module.exports = [function () {
* @id angular-data
* @name angular-data
* @description
* __Version:__ 0.8.0
* __Version:__ 0.8.1
*
* ## Install
*
Expand All @@ -3873,7 +3879,7 @@ module.exports = [function () {
* Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js.
*
* #### Manual download
* Download angular-data.0.8.0.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
* Download angular-data.0.8.1.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
* section of the angular-data GitHub project.
*
* ## Load into Angular
Expand All @@ -3896,7 +3902,7 @@ module.exports = [function () {
.provider('DSHttpAdapter', require('./adapters/http'))
.provider('DS', require('./datastore'))
.config(['$provide', function ($provide) {
$provide.decorator('$q', function ($delegate) {
$provide.decorator('$q', ['$delegate', function ($delegate) {
// do whatever you you want
$delegate.promisify = function (fn, target) {
var _this = this;
Expand All @@ -3922,7 +3928,7 @@ module.exports = [function () {
};
};
return $delegate;
});
}]);
}]);

})(window, window.angular);
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-data.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-data",
"description": "Data store for Angular.js.",
"version": "0.8.0",
"version": "0.8.1",
"homepage": "http://github.com/jmdobry/angular-data",
"repository": {
"type": "git",
Expand Down
3 changes: 3 additions & 0 deletions src/datastore/async_methods/find/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ function find(resourceName, id, options) {
} else {
return data;
}
}, function (err) {
delete resource.pendingQueries[id];
return err;
});
}

Expand Down
3 changes: 3 additions & 0 deletions src/datastore/async_methods/findAll/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ function _findAll(utils, resourceName, params, options) {
} else {
return data;
}
}, function (err) {
delete resource.pendingQueries[queryHash];
return err;
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
.provider('DSHttpAdapter', require('./adapters/http'))
.provider('DS', require('./datastore'))
.config(['$provide', function ($provide) {
$provide.decorator('$q', function ($delegate) {
$provide.decorator('$q', ['$delegate', function ($delegate) {
// do whatever you you want
$delegate.promisify = function (fn, target) {
var _this = this;
Expand All @@ -74,7 +74,7 @@
};
};
return $delegate;
});
}]);
}]);

})(window, window.angular);

2 comments on commit a307b26

@jmdobry
Copy link
Member Author

@jmdobry jmdobry commented on a307b26 May 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #44

@jmdobry
Copy link
Member Author

@jmdobry jmdobry commented on a307b26 May 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #47

Please sign in to comment.