Skip to content

2.0.0

Compare
Choose a tag to compare
@jmdobry jmdobry released this 04 Feb 05:54
· 48 commits to master since this release
2.0.0 - 03 February 2015

Note: Please see the js-data CHANGELOG.

Breaking API changes
  • Angular module renamed from angular-data.DS to js-data
  • Refactored to be a wrapper for 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

Transition

1.x ---> 2.x - 03 February 2015

Breaking API changes

Module name change
Before

angular.module('myApp', ['angular-data.DS'])

After

angular.module('myApp', ['js-data'])

bindOne and bindAll syntax change
Before

bindOne and bindAll

After

bindOne and bindAll

Backwards compatible API changes

Repo re-assignment and name change
Before

https://github.com/jmdobry/angular-data.git

After

https://github.com/js-data/js-data-angular.git

New Bower package
Before

bower install --save angular-data

After

bower install --save js-data-angular

New NPM package
Before

npm install --save angular-data

After

npm install --save js-data js-data-angular