Skip to content

Commit

Permalink
Stable Version 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed Feb 25, 2014
1 parent de2368c commit 7224f18
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 15 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
##### 0.7.0 - 24 February 2014

###### Breaking API changes
- `DS.eject(resourceName, id)` can now only eject individual items

###### Backwards API changes
- #34 - Added `DS.ejectAll(resourceName, params)`
- #33 - Added `DS.destroyAll(resourceName, params[, options])`
- #35 - Add options for asynchronous getter methods to return data without putting it into the data store

##### 0.6.0 - 17 January 2014

Added pluggable filters for the "where" clause of a query. Angular-data's "query language" will remain small and simple.
Expand Down
23 changes: 19 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);

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

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
pkg: pkg,
clean: {
coverage: ['coverage/'],
dist: ['dist/'],
Expand Down Expand Up @@ -274,7 +275,7 @@ module.exports = function (grunt) {
id: 'angular-cache',
title: 'angular-cache',
scripts: [
'../angular-cache/dist/angular-cache.js'
'bower_components/angular-cache/dist/angular-cache.js'
],
docs: ['guide/api']
}
Expand All @@ -299,9 +300,23 @@ module.exports = function (grunt) {
}
});

grunt.registerTask('version', function (filePath) {
var file = grunt.file.read(filePath);

file = file.replace(/<%= pkg\.version %>/gi, pkg.version);

grunt.file.write(filePath, file);
});

grunt.registerTask('test', ['clean:coverage', 'karma:dev']);
grunt.registerTask('doc', ['clean:doc', 'docular', 'concat', 'copy', 'clean:afterDoc', 'uglify:scripts']);
grunt.registerTask('build', ['clean:dist', 'jshint', 'browserify', 'uglify:main']);
grunt.registerTask('build', [
'clean',
'jshint',
'browserify',
'version:dist/angular-data.js',
'uglify:main'
]);
grunt.registerTask('default', ['build']);

// Used by TravisCI
Expand Down
1 change: 1 addition & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"devDependencies": {
"angular": "~1.2.13",
"angular-mocks": "~1.2.13",
"angular-cache": "~3.0.0-beta.1",
"observe-js": "~0.2.0"
}
}
21 changes: 16 additions & 5 deletions dist/angular-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -3810,18 +3810,29 @@ module.exports = [function () {
* @id angular-data
* @name angular-data
* @description
* Angular-data is installable via:
* __Version:__ 0.7.0
*
* ## Install
*
* #### Bower
* ```text
* bower install angular-data
* ```
*
* or by downloading angular-data.x.x.x.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
* section of the angular-data GitHub project.
* Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js.
*
* Angular-data has a hard dependency on [angular-cache](/documentation/api/api/angular-cache) v3.0.0 or newer,
* which must be loaded before angular-data.
* #### Npm
* ```text
* npm install angular-data
* ```
*
* Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js.
*
* #### Manual download
* Download angular-data.0.7.0.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
* section of the angular-data GitHub project.
*
* ## Load into Angular
* Your Angular app must depend on the module `"angular-data.DS"` in order to use angular-data. Loading
* angular-data into your app allows you to inject the following:
*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"karma-mocha": "~0.1.1",
"karma-sinon": "~1.0.2",
"time-grunt": "~0.2.9",
"browserify": "~3.30.1"
"browserify": "~3.30.2"
},
"scripts": {
"test": "node node_modules/grunt-cli/bin/grunt test"
Expand Down
21 changes: 16 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,29 @@
* @id angular-data
* @name angular-data
* @description
* Angular-data is installable via:
* __Version:__ <%= pkg.version %>
*
* ## Install
*
* #### Bower
* ```text
* bower install angular-data
* ```
*
* or by downloading angular-data.x.x.x.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
* section of the angular-data GitHub project.
* Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js.
*
* Angular-data has a hard dependency on [angular-cache](/documentation/api/api/angular-cache) v3.0.0 or newer,
* which must be loaded before angular-data.
* #### Npm
* ```text
* npm install angular-data
* ```
*
* Load `dist/angular-data.js` or `dist/angular-data.min.js` onto your web page after Angular.js.
*
* #### Manual download
* Download angular-data.<%= pkg.version %>.js from the [Releases](https://github.com/jmdobry/angular-data/releases)
* section of the angular-data GitHub project.
*
* ## Load into Angular
* Your Angular app must depend on the module `"angular-data.DS"` in order to use angular-data. Loading
* angular-data into your app allows you to inject the following:
*
Expand Down

0 comments on commit 7224f18

Please sign in to comment.