|
| 1 | +### 1.x ---> 2.x - 03 February 2015 |
| 2 | + |
| 3 | +#### Breaking API changes |
| 4 | + |
| 5 | +##### Module name change |
| 6 | + |
| 7 | +###### Before |
| 8 | +`angular.module('myApp', ['angular-data.DS'])` |
| 9 | + |
| 10 | +###### After |
| 11 | +`angular.module('myApp', ['js-data'])` |
| 12 | + |
| 13 | +##### `bindOne` and `bindAll` syntax change |
| 14 | + |
| 15 | +###### Before |
| 16 | +[bindOne](http://angular-data.pseudobry.com/documentation/api/angular-data/DS.sync%20methods_bindOne) and [bindAll](http://angular-data.pseudobry.com/documentation/api/angular-data/DS.sync%20methods_bindAll) |
| 17 | + |
| 18 | +###### After |
| 19 | +[bindOne](http://www.js-data.io/docs/js-data-angular#dsbindone) and [bindAll](http://www.js-data.io/docs/js-data-angular#dsbindall) |
| 20 | + |
| 21 | +#### Backwards compatible API changes |
| 22 | + |
| 23 | +##### Repo re-assignment and name change |
| 24 | + |
| 25 | +###### Before |
| 26 | +`https://github.com/jmdobry/angular-data.git` |
| 27 | + |
| 28 | +###### After |
| 29 | +`https://github.com/js-data/js-data-angular.git` |
| 30 | + |
| 31 | +##### New Bower package |
| 32 | + |
| 33 | +###### Before |
| 34 | +`bower install --save angular-data` |
| 35 | + |
| 36 | +###### After |
| 37 | +`bower install --save js-data-angular` |
| 38 | + |
| 39 | +##### New NPM package |
| 40 | + |
| 41 | +###### Before |
| 42 | +`npm install --save angular-data` |
| 43 | + |
| 44 | +###### After |
| 45 | +`npm install --save js-data js-data-angular` |
| 46 | + |
1 | 47 | ### 0.9.x. ---> 0.10.x - 29 June 2014 |
2 | 48 |
|
3 | 49 | #### Breaking API changes |
@@ -64,17 +110,17 @@ DSProvider.defaults.filter = function (resourceName, where, attrs) { |
64 | 110 | DSProvider.defaults.filter = function (collection, resourceName, params, options) { |
65 | 111 | // examine params and |
66 | 112 | // decide whether to exclude items, skip items, start from an offset, or sort the items |
67 | | - |
68 | | - // see the [default implementation that ships with js-data-angular](https://github.com/js-data/js-data-angular/blob/master/src/datastore/index.js#L12) |
| 113 | + |
| 114 | + // see the [default implementation that ships with js-data-angular](https://github.com/js-data/js-data-angular/blob/master/src/datastore/index.js#L12) |
69 | 115 | // overriding this method is useful when our server only understands a certain |
70 | 116 | // params format and you want js-data-angular's filter to behave the same as your server |
71 | | - |
| 117 | + |
72 | 118 | // js-data-angular looks for the following fields: |
73 | 119 | // - where |
74 | 120 | // - skip (or offset) |
75 | 121 | // - limit |
76 | 122 | // - orderBy (or sort) |
77 | | - |
| 123 | + |
78 | 124 | // return the filtered collection |
79 | 125 | }; |
80 | 126 | ``` |
|
0 commit comments