Skip to content

Commit 7224f18

Browse files
committed
Stable Version 0.7.0
1 parent de2368c commit 7224f18

File tree

6 files changed

+63
-15
lines changed

6 files changed

+63
-15
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
##### 0.7.0 - 24 February 2014
2+
3+
###### Breaking API changes
4+
- `DS.eject(resourceName, id)` can now only eject individual items
5+
6+
###### Backwards API changes
7+
- #34 - Added `DS.ejectAll(resourceName, params)`
8+
- #33 - Added `DS.destroyAll(resourceName, params[, options])`
9+
- #35 - Add options for asynchronous getter methods to return data without putting it into the data store
10+
111
##### 0.6.0 - 17 January 2014
212

313
Added pluggable filters for the "where" clause of a query. Angular-data's "query language" will remain small and simple.

Gruntfile.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ module.exports = function (grunt) {
1111
require('load-grunt-tasks')(grunt);
1212
require('time-grunt')(grunt);
1313

14-
var dev = process.cwd().indexOf('/home/codetrain/angular-data') === -1;
14+
var dev = process.cwd().indexOf('/home/codetrain/angular-data') === -1,
15+
pkg = grunt.file.readJSON('package.json');
1516

1617
// Project configuration.
1718
grunt.initConfig({
18-
pkg: grunt.file.readJSON('package.json'),
19+
pkg: pkg,
1920
clean: {
2021
coverage: ['coverage/'],
2122
dist: ['dist/'],
@@ -274,7 +275,7 @@ module.exports = function (grunt) {
274275
id: 'angular-cache',
275276
title: 'angular-cache',
276277
scripts: [
277-
'../angular-cache/dist/angular-cache.js'
278+
'bower_components/angular-cache/dist/angular-cache.js'
278279
],
279280
docs: ['guide/api']
280281
}
@@ -299,9 +300,23 @@ module.exports = function (grunt) {
299300
}
300301
});
301302

303+
grunt.registerTask('version', function (filePath) {
304+
var file = grunt.file.read(filePath);
305+
306+
file = file.replace(/<%= pkg\.version %>/gi, pkg.version);
307+
308+
grunt.file.write(filePath, file);
309+
});
310+
302311
grunt.registerTask('test', ['clean:coverage', 'karma:dev']);
303312
grunt.registerTask('doc', ['clean:doc', 'docular', 'concat', 'copy', 'clean:afterDoc', 'uglify:scripts']);
304-
grunt.registerTask('build', ['clean:dist', 'jshint', 'browserify', 'uglify:main']);
313+
grunt.registerTask('build', [
314+
'clean',
315+
'jshint',
316+
'browserify',
317+
'version:dist/angular-data.js',
318+
'uglify:main'
319+
]);
305320
grunt.registerTask('default', ['build']);
306321

307322
// Used by TravisCI

bower.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"devDependencies": {
2929
"angular": "~1.2.13",
3030
"angular-mocks": "~1.2.13",
31+
"angular-cache": "~3.0.0-beta.1",
3132
"observe-js": "~0.2.0"
3233
}
3334
}

dist/angular-data.js

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3810,18 +3810,29 @@ module.exports = [function () {
38103810
* @id angular-data
38113811
* @name angular-data
38123812
* @description
3813-
* Angular-data is installable via:
3813+
* __Version:__ 0.7.0
38143814
*
3815+
* ## Install
3816+
*
3817+
* #### Bower
38153818
* ```text
38163819
* bower install angular-data
38173820
* ```
38183821
*
3819-
* or by downloading angular-data.x.x.x.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
3820-
* section of the angular-data GitHub project.
3822+
* Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js.
38213823
*
3822-
* Angular-data has a hard dependency on [angular-cache](/documentation/api/api/angular-cache) v3.0.0 or newer,
3823-
* which must be loaded before angular-data.
3824+
* #### Npm
3825+
* ```text
3826+
* npm install angular-data
3827+
* ```
3828+
*
3829+
* Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js.
3830+
*
3831+
* #### Manual download
3832+
* Download angular-data.0.7.0.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
3833+
* section of the angular-data GitHub project.
38243834
*
3835+
* ## Load into Angular
38253836
* Your Angular app must depend on the module `"angular-data.DS"` in order to use angular-data. Loading
38263837
* angular-data into your app allows you to inject the following:
38273838
*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"karma-mocha": "~0.1.1",
4444
"karma-sinon": "~1.0.2",
4545
"time-grunt": "~0.2.9",
46-
"browserify": "~3.30.1"
46+
"browserify": "~3.30.2"
4747
},
4848
"scripts": {
4949
"test": "node node_modules/grunt-cli/bin/grunt test"

src/index.js

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,29 @@
66
* @id angular-data
77
* @name angular-data
88
* @description
9-
* Angular-data is installable via:
9+
* __Version:__ <%= pkg.version %>
1010
*
11+
* ## Install
12+
*
13+
* #### Bower
1114
* ```text
1215
* bower install angular-data
1316
* ```
1417
*
15-
* or by downloading angular-data.x.x.x.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
16-
* section of the angular-data GitHub project.
18+
* Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js.
1719
*
18-
* Angular-data has a hard dependency on [angular-cache](/documentation/api/api/angular-cache) v3.0.0 or newer,
19-
* which must be loaded before angular-data.
20+
* #### Npm
21+
* ```text
22+
* npm install angular-data
23+
* ```
24+
*
25+
* Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js.
26+
*
27+
* #### Manual download
28+
* Download angular-data.<%= pkg.version %>.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
29+
* section of the angular-data GitHub project.
2030
*
31+
* ## Load into Angular
2132
* Your Angular app must depend on the module `"angular-data.DS"` in order to use angular-data. Loading
2233
* angular-data into your app allows you to inject the following:
2334
*

0 commit comments

Comments
 (0)