Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: js-data/js-data-angular
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.0-rc.2
Choose a base ref
...
head repository: js-data/js-data-angular
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 3,054 additions and 21,552 deletions.
  1. +3 −0 .babelrc
  2. +0 −3 .bowerrc
  3. +27 −0 .github/CONTRIBUTING.md
  4. +7 −0 .github/ISSUE_TEMPLATE.md
  5. +8 −0 .github/PULL_REQUEST_TEMPLATE.md
  6. +8 −0 .gitignore
  7. +1 −1 .jshintrc
  8. +5 −0 .mailmap
  9. +5 −0 .npmignore
  10. +1 −0 .nvmrc
  11. +0 −14 .travis.yml
  12. +24 −0 AUTHORS
  13. +122 −7 CHANGELOG.md
  14. +0 −12 CONTRIBUTING.md
  15. +0 −382 Gruntfile.js
  16. +1 −1 LICENSE
  17. +115 −98 README.md
  18. +53 −7 TRANSITION.md
  19. +16 −22 bower.json
  20. +3 −0 build_examples/browserify/README.md
  21. +17 −0 build_examples/browserify/app.js
  22. +11 −0 build_examples/browserify/index.html
  23. +3 −0 build_examples/r.js/README.md
  24. +9 −0 build_examples/r.js/app.js
  25. +14 −0 build_examples/r.js/index.html
  26. +23 −0 build_examples/r.js/main.js
  27. +6 −0 build_examples/r.js/require.config.js
  28. +3 −0 build_examples/webpack/README.md
  29. +17 −0 build_examples/webpack/app.js
  30. +11 −0 build_examples/webpack/index.html
  31. +12 −0 build_examples/webpack/webpack.config.js
  32. +3 −0 build_examples/webpack_es6/README.md
  33. +8 −0 build_examples/webpack_es6/app.js
  34. +11 −0 build_examples/webpack_es6/index.html
  35. +17 −0 build_examples/webpack_es6/webpack.config.js
  36. +3 −0 build_examples/webpack_es6_2/README.md
  37. +8 −0 build_examples/webpack_es6_2/app.js
  38. +11 −0 build_examples/webpack_es6_2/index.html
  39. +17 −0 build_examples/webpack_es6_2/webpack.config.js
  40. +12 −0 circle.yml
  41. +0 −7,642 dist/angular-data.js
  42. +0 −12 dist/angular-data.min.js
  43. +750 −0 dist/js-data-angular.js
  44. +1 −0 dist/js-data-angular.js.map
  45. +10 −0 dist/js-data-angular.min.js
  46. +1 −0 dist/js-data-angular.min.map
  47. +0 −134 guide/angular-cache/basics.md
  48. +0 −43 guide/angular-cache/configure.md
  49. +0 −137 guide/angular-cache/http.md
  50. +0 −8 guide/angular-cache/index.md
  51. +0 −91 guide/angular-cache/storage.md
  52. +0 −8 guide/angular-data-mocks/index.md
  53. +0 −12 guide/angular-data-mocks/overview.md
  54. +0 −39 guide/angular-data-mocks/setup.md
  55. +0 −63 guide/angular-data-mocks/testing.md
  56. +0 −279 guide/angular-data.css
  57. +0 −55 guide/angular-data/adapters.md
  58. +0 −45 guide/angular-data/asynchronous.md
  59. +0 −121 guide/angular-data/how.md
  60. +0 −8 guide/angular-data/index.md
  61. +0 −188 guide/angular-data/overview.md
  62. +0 −260 guide/angular-data/queries.md
  63. +0 −531 guide/angular-data/resource/resource.md
  64. +0 −25 guide/angular-data/resources.md
  65. +0 −72 guide/angular-data/synchronous.md
  66. +0 −8 guide/api/api.md
  67. BIN guide/data.png
  68. BIN guide/data16.png
  69. BIN guide/data32.png
  70. BIN guide/data_grey.png
  71. BIN guide/data_white.png
  72. BIN guide/favicon.ico
  73. +0 −27 guide/footer.html
  74. +0 −332 guide/home.html
  75. +0 −173 guide/index.html
  76. +0 −161 guide/nav.html
  77. +76 −60 karma.conf.js
  78. +132 −128 karma.start.js
  79. +0 −202 lib/observe-js/COPYING
  80. +0 −202 lib/observe-js/LICENSE
  81. +0 −2 lib/observe-js/NOTICE
  82. +0 −23 lib/observe-js/PATENTS
  83. +0 −584 lib/observe-js/observe-js.js
  84. +62 −43 package.json
  85. +7 −0 scripts/AUTHORS
  86. +6 −0 scripts/CONTRIBUTORS
  87. +58 −0 scripts/authors.js
  88. +29 −0 scripts/banner.js
  89. +25 −0 scripts/cleanup.js
  90. +23 −0 scripts/js-data-http.js
  91. +39 −0 scripts/version.js
  92. +0 −473 src/adapters/http.js
  93. +0 −392 src/adapters/localStorage.js
  94. +0 −167 src/datastore/async_methods/create.js
  95. +0 −116 src/datastore/async_methods/destroy.js
  96. +0 −88 src/datastore/async_methods/destroyAll.js
  97. +0 −107 src/datastore/async_methods/find.js
  98. +0 −176 src/datastore/async_methods/findAll.js
  99. +0 −101 src/datastore/async_methods/index.js
  100. +0 −143 src/datastore/async_methods/loadRelations.js
  101. +0 −80 src/datastore/async_methods/refresh.js
  102. +0 −157 src/datastore/async_methods/save.js
  103. +0 −137 src/datastore/async_methods/update.js
  104. +0 −142 src/datastore/async_methods/updateAll.js
  105. +0 −765 src/datastore/index.js
  106. +0 −83 src/datastore/sync_methods/bindAll.js
  107. +0 −70 src/datastore/sync_methods/bindOne.js
  108. +0 −67 src/datastore/sync_methods/changeHistory.js
  109. +0 −72 src/datastore/sync_methods/changes.js
  110. +0 −95 src/datastore/sync_methods/compute.js
  111. +0 −95 src/datastore/sync_methods/createInstance.js
  112. +0 −339 src/datastore/sync_methods/defineResource.js
  113. +0 −34 src/datastore/sync_methods/digest.js
  114. +0 −107 src/datastore/sync_methods/eject.js
  115. +0 −121 src/datastore/sync_methods/ejectAll.js
  116. +0 −81 src/datastore/sync_methods/filter.js
  117. +0 −62 src/datastore/sync_methods/get.js
  118. +0 −63 src/datastore/sync_methods/hasChanges.js
  119. +0 −212 src/datastore/sync_methods/index.js
  120. +0 −298 src/datastore/sync_methods/inject.js
  121. +0 −57 src/datastore/sync_methods/lastModified.js
  122. +0 −62 src/datastore/sync_methods/lastSaved.js
  123. +0 −100 src/datastore/sync_methods/link.js
  124. +0 −115 src/datastore/sync_methods/linkAll.js
  125. +0 −96 src/datastore/sync_methods/linkInverse.js
  126. +0 −55 src/datastore/sync_methods/previous.js
  127. +0 −97 src/datastore/sync_methods/unlinkInverse.js
  128. +0 −131 src/errors.js
  129. +241 −85 src/index.js
  130. +0 −148 src/utils.js
  131. +36 −0 test/adapters/http/create.test.js
  132. +30 −0 test/adapters/http/destroy.test.js
  133. +36 −0 test/adapters/http/destroyAll.test.js
  134. +87 −0 test/adapters/http/find.test.js
  135. +36 −0 test/adapters/http/findAll.test.js
  136. +36 −0 test/adapters/http/update.test.js
  137. +36 −0 test/adapters/http/updateAll.test.js
  138. +41 −65 test/{integration → }/datastore/async_methods/create.test.js
  139. +112 −0 test/datastore/async_methods/destroy.test.js
  140. +3 −39 test/{integration → }/datastore/async_methods/destroyAll.test.js
  141. +9 −54 test/{integration → }/datastore/async_methods/find.test.js
  142. +142 −65 test/{integration → }/datastore/async_methods/findAll.test.js
  143. +188 −0 test/datastore/async_methods/loadRelations.test.js
  144. +6 −26 test/{integration → }/datastore/async_methods/refresh.test.js
  145. +43 −54 test/{integration → }/datastore/async_methods/save.test.js
  146. +31 −59 test/{integration → }/datastore/async_methods/update.test.js
  147. +33 −58 test/{integration → }/datastore/async_methods/updateAll.test.js
  148. +21 −25 test/{integration → }/datastore/sync_methods/bindAll.test.js
  149. +18 −22 test/{integration → }/datastore/sync_methods/bindOne.test.js
  150. +0 −48 test/integration/adapters/http/create.test.js
  151. +0 −42 test/integration/adapters/http/destroy.test.js
  152. +0 −48 test/integration/adapters/http/destroyAll.test.js
  153. +0 −70 test/integration/adapters/http/find.test.js
  154. +0 −48 test/integration/adapters/http/findAll.test.js
  155. +0 −48 test/integration/adapters/http/update.test.js
  156. +0 −48 test/integration/adapters/http/updateAll.test.js
  157. +0 −23 test/integration/adapters/localStorage/create.test.js
  158. +0 −47 test/integration/adapters/localStorage/destroy.test.js
  159. +0 −28 test/integration/adapters/localStorage/destroyAll.test.js
  160. +0 −23 test/integration/adapters/localStorage/find.test.js
  161. +0 −26 test/integration/adapters/localStorage/findAll.test.js
  162. +0 −26 test/integration/adapters/localStorage/update.test.js
  163. +0 −34 test/integration/adapters/localStorage/updateAll.test.js
  164. +0 −117 test/integration/datastore/DSCacheFactory.test.js
  165. +0 −123 test/integration/datastore/async_methods/destroy.test.js
  166. +0 −212 test/integration/datastore/async_methods/loadRelations.test.js
  167. +0 −56 test/integration/datastore/cacheFactory.test.js
  168. +0 −73 test/integration/datastore/sync_methods/changeHistory.test.js
  169. +0 −37 test/integration/datastore/sync_methods/changes.test.js
  170. +0 −95 test/integration/datastore/sync_methods/createInstance.test.js
  171. +0 −368 test/integration/datastore/sync_methods/defineResource.test.js
  172. +0 −83 test/integration/datastore/sync_methods/eject.test.js
  173. +0 −80 test/integration/datastore/sync_methods/ejectAll.test.js
  174. +0 −367 test/integration/datastore/sync_methods/filter.test.js
  175. +0 −44 test/integration/datastore/sync_methods/get.test.js
  176. +0 −79 test/integration/datastore/sync_methods/hasChanges.test.js
  177. +0 −279 test/integration/datastore/sync_methods/inject.test.js
  178. +0 −79 test/integration/datastore/sync_methods/lastModified.test.js
  179. +0 −46 test/integration/datastore/sync_methods/lastSaved.test.js
  180. +0 −70 test/integration/datastore/sync_methods/link.test.js
  181. +0 −75 test/integration/datastore/sync_methods/linkAll.test.js
  182. +0 −37 test/integration/datastore/sync_methods/linkInverse.test.js
  183. +0 −71 test/integration/datastore/sync_methods/previous.test.js
  184. +0 −81 test/integration/index.test.js
  185. +35 −0 webpack.config.js
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

27 changes: 27 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Contributing

[Read the Contributing Guide](http://js-data.io/docs/contributing).

## Support

[Find out how to Get Support](http://js-data.io/docs/support).

## Community

[Explore the Community](http://js-data.io/docs/community).

### Have write access?

To cut a release:

1. Checkout master
1. Bump version in `package.json` appropriately
1. Run `npm run release`
1. Update `CHANGELOG.md` appropriately
1. Commit and push changes, including the `dist/` folder
1. Make a GitHub release
- set tag name to version
- set release name to version
- set release body to changelog entry for the version
- attach the files in the `dist/` folder
1. `npm publish .`
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(delete this line) GitHub Issues are NOT for support questions.
(delete this line) GitHub Issues ARE for bug reports, feature requests, and other issues.
(delete this line) Find out how to Get Support here: http://js-data.io/docs/support.

<your detailed, discussable, actionable, and helpful text goes here>

Thanks!
8 changes: 8 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for discussion)

- [ ] - `npm test` succeeds
- [ ] - Pull request has been squashed into 1 commit
- [ ] - I did NOT commit changes to `dist/`
- [ ] - Code coverage does not decrease (if any source code was changed)
- [ ] - Appropriate JSDoc comments were updated in source code (if applicable)
- [ ] - Approprate changes to js-data.io docs have been suggested ("Suggest Edits" button)
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -20,3 +20,11 @@ bower_components/

*.iml
.idea/

build_examples/r.js/bundle.js
build_examples/browserify/bundle.js
build_examples/webpack/bundle.js
build_examples/webpack_es6/bundle.js
build_examples/webpack_es6_2/bundle.js
.js-data-http.js
.js-data-http/
2 changes: 1 addition & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"node": false,
"browser": true,
"es5": true,
"esnext": true,
"bitwise": true,
"asi": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
5 changes: 5 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
InternalFX <bryan@internalfx.com> Bryan <bryan@internalfx.com>
InternalFX <bryan@internalfx.com> Bryan Morris <bryan@internalfx.com>
Jason Dobry <jason.dobry@gmail.com> Jason Dobry <jmdobry@users.noreply.github.com>
Kent C. Dodds <kent@doddsfamily.us> Kent C. Dodds <kent+github@doddsfamily.us>
Robert Porter <rob@Roberts-MacBook-Pro.local> Robert P <rob@Roberts-MacBook-Pro.local>
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -8,3 +8,8 @@ bower_components/
karma*
guide/
doc/
webpack.config.js
circle.yml

.js-data-http.js
.js-data-http/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

24 changes: 24 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This is the official list of js-data-angular project authors.
#
# Names are formatted as:
# Name or Organization <email address>
# The email address is not required for organizations.
Andre Deutmeyer <a.deutmeyer@gmail.com>
Artemy Tregubenko <me@arty.name>
Asaf Katz <asf.ktz@gmail.com>
Chase Noel <chase.i.noel@gmail.com>
Clark Pan <clark.pan@ansarada.com>
David Tang <dtang859@gmail.com>
Gabo Esquivel <contact@gaboesquivel.com>
Jason Aden <jasonaden@gmail.com>
Jason Dobry <jason.dobry@gmail.com>
Kent C. Dodds <kent@doddsfamily.us>
Loïc Mahieu <mahieuloic@gmail.com>
Nikolay <garmash.nikolay@gmail.com>
Peter Dave Hello <PeterDaveHello@users.noreply.github.com>
Shai Reznik <shai.reznik@gmail.com>
thorn0 <thorn.mailbox@gmail.com>
Tim Chen <timchen1@gmail.com>
Timothy Krell <timothykrell@gmail.com>
vollnhals <lion.vollnhals@googlemail.com>
Wes Cruver <chieffancypants@gmail.com>
129 changes: 122 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,122 @@
##### 1.0.0-rc.2 - 25 September 2014
##### 3.2.1 - 18 March 2016

###### Backwards compatible bug fixes
- Upgraded to js-data-http 2.2.2

##### 3.2.0 - 17 March 2016

###### Backwards compatible bug fixes
- #347 - BindOne recomputing computed properties
- #353 - jshint or standard?
- #356 - Multiple parents isn't working

##### 3.1.1 - 20 September 2015

Stable Version 3.1.0

###### Backwards compatible API changes
- #335 - Calling $q.reject in http interceptor doesn't resolve to calling reject handler in DS.findAll.then

###### Other
- Built with js-data-http 2.1.1
- Upgraded dependencies

##### 3.0.0 - 02 July 2015

Stable Version 3.0.0

##### 3.0.0-rc.1 - 28 June 2015

Stable Version 3.0.0-rc.1

##### 3.0.0-beta.2 - 19 April 2015

Added examples of various build setups `./build_examples/`

##### 3.0.0-beta.1 - 17 April 2015

###### Backwards compatible API changes
- #306 - Keep it DRY

###### Other
- #314 - Switch to using peerDependencies

##### 2.4.0 - 15 April 2015

###### Backwards compatible API changes
- #327 - `bindOne` now updates computed properties on change

##### 2.3.0 - 15 April 2015

###### Backwards compatible API changes
- #328 - Add support for `js-data-sql` adapter

###### Backwards compatible bug fixes
- #328 - Fixed adapter registration

##### 2.2.3 - 08 March 2015

###### Other
- Converted to ES6, using Babel.js to transpile to ES5.

##### 2.2.2 - 04 March 2015

###### Backwards compatible bug fixes
- #312 - UMDifying js-data-angular
- #313 - DSHttpAdapter#find/create/update/destroy do not call queryTransform

##### 2.2.1 - 25 February 2015

###### Backwards compatible bug fixes
- #311 - Does not properly throw error in find() (like other adapters) when the item cannot be found

##### 2.2.0 - 24 February 2015

###### Backwards compatible API changes
- #145 - Add "useClass" option to inject, find, findAll, create
- Added `suffix` option

##### 2.1.0 - 04 February 2015

Now requiring >= js-data 1.1.0 in order to use removeCircular to safely safe cyclic objects

##### 2.0.0 - 03 February 2015

_Note:_ Please see the [js-data CHANGELOG](https://github.com/js-data/js-data/blob/master/CHANGELOG.md).

###### Breaking API changes
- Angular module renamed from `angular-data.DS` to `js-data`
- Refactored to be a wrapper for [js-data](https://github.com/js-data/js-data)
- `deserialize` and `serialize` are now properties of `DSHttpAdapter.defaults`
- `deserialize` and `serialize` are now configuration options used solely by the http adapter
- All hooks (`validate`, `afterCreate`, `serialize`, etc.) now take the actual resource definition as the first argument instead of just the name of the resource
- `DSLocalStorageAdapter` is no longer bundled, but is each separate from js-data-angular.
- The API for `bindOne` and `bindAll` has been changed to be more consistent with the rest of the API
- `eagerInject` has not yet been implemented in `js-data`.

##### Backwards compatible API changes
- GitHub project renamed to js-data-angular
- GitHub project moved to the js-data organization

###### Other
- #199 - Re-implement bindOne & bindAll in js-data-angular (they're missing from js-data)
- #200 - Need to properly trigger digest where angular-data would have before
- Added DSHttpAdapter fallback that uses $http if js-data-http isn't loaded
- Load an es6-style version of `$q` instead of `es6-promises` to maintain `$scope` integration with the promise lifecycle
- Updated dependencies. Now safely making copies of the `options` passed into methods

##### 1.0.0 - 04 October 2014

Stable Version 1.0.0

##### 1.0.0-rc.2-1 - 25 September 2014

###### Backwards compatible bug fixes
- #191 - Invalid reference in _eject

##### 1.0.0-rc.2 - 25 September 2014

###### Backwards compatible bug fixes
- #191 - Add "useClass" option to inject, find, findAll, create
- #155 - Allow deserialize and serialize to be configured per-method as well
- #159 - Find which items from collection have changed with lastModified
- #161 - Allow the http method of DSHttpAdapter methods to be configured
@@ -115,7 +230,7 @@

###### Backwards compatible bug fixes
- #90 - DS.create isn't added to completedQueries (`DS.create` now adds a completed query entry)
- #91 - dist/angular-data(.min).js doesn't end with a semicolon (upgraded Browserify)
- #91 - dist/js-data-angular(.min).js doesn't end with a semicolon (upgraded Browserify)
- #94 - Resource object name/class inconsistency (added `useClass` option to `DS.defineResource`)
- #95 - observe-js outdated (Upgraded observe-js.js an refactored to new API)
- #98 - Missing id warning
@@ -138,8 +253,8 @@ Official Release
##### 0.10.0-beta.1 - 28 June 2014

###### Breaking API changes
- #76 - Queries and filtering. See [TRANSITION.md](https://github.com/jmdobry/angular-data/blob/master/TRANSITION.md).
- #82 - Simplify error handling. Reduced size of angular-data.min.js by 4kb.
- #76 - Queries and filtering. See [TRANSITION.md](https://github.com/js-data/js-data-angular/blob/master/TRANSITION.md).
- #82 - Simplify error handling. Reduced size of js-data-angular.min.js by 4kb.
- #42 - Relations/Associations. `DS.inject` now looks for relations and injects them as well.

###### Backwards compatible API changes
@@ -248,7 +363,7 @@ Developers can provide their own more robust filters for more powerful queries.
- #3 - Pluggable async adapters

###### Backwards API changes
- #2 - angular-data query language
- #2 - js-data-angular query language
- #4 - Query caching
- #17 - Where predicates should be able to handle OR, not just AND
- #22 - Reorganize infrastructure to utilize angular's DI
@@ -261,7 +376,7 @@ Developers can provide their own more robust filters for more powerful queries.
- #7 - Model lifecycle hooks

###### Backwards compatible bug fixes
- #19 - Null pointer exception in several places where angular-data tries to use the $q service
- #19 - Null pointer exception in several places where js-data-angular tries to use the $q service

##### Other
- #15 - Integration test coverage
12 changes: 0 additions & 12 deletions CONTRIBUTING.md

This file was deleted.

Loading