Skip to content
Merged

2.0.0 #198

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Build.
  • Loading branch information
jmdobry committed Feb 4, 2015
commit 53b2deeeed00a7172957ecb84f37fe1d141ae0b4
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
##### 2.0.0-beta.1 - 10 January 2014
##### 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`
- All hooks (`validate`, `afterCreate`, `serialize`, etc.) now take the resource definition as the first argument instead of just the name of the resource
- `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)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014 Jason Dobry
Copyright (c) 2014-2015 Jason Dobry

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Js-data-angular is Angular-data 2.0, with [js-data](http://www.js-data.io) as th
## Js-data-angular API Documentation
- [js-data-angular](http://www.js-data.io/docs/js-data-angular)
- [DS](http://www.js-data.io/docs/ds)
- [Schemator](http://www.js-data.io/docs/js-data-schema)
- [js-data-schema](http://www.js-data.io/docs/js-data-schema)
- [DSHttpAdapter](http://www.js-data.io/docs/dshttpadapter)
- [DSLocalStorageAdapter](http://www.js-data.io/docs/dslocalstorageadapter)
- [DSLocalForageAdapter](http://www.js-data.io/docs/dslocalforageadapter)
Expand Down
54 changes: 50 additions & 4 deletions TRANSITION.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,49 @@
### 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](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)

###### After
[bindOne](http://www.js-data.io/docs/js-data-angular#dsbindone) and [bindAll](http://www.js-data.io/docs/js-data-angular#dsbindall)

#### 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`

### 0.9.x. ---> 0.10.x - 29 June 2014

#### Breaking API changes
Expand Down Expand Up @@ -64,17 +110,17 @@ DSProvider.defaults.filter = function (resourceName, where, attrs) {
DSProvider.defaults.filter = function (collection, resourceName, params, options) {
// examine params and
// decide whether to exclude items, skip items, start from an offset, or sort the items
// 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)

// 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)
// overriding this method is useful when our server only understands a certain
// params format and you want js-data-angular's filter to behave the same as your server

// js-data-angular looks for the following fields:
// - where
// - skip (or offset)
// - limit
// - orderBy (or sort)

// return the filtered collection
};
```
Expand Down
9 changes: 3 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "git",
"url": "https://github.com/js-data/js-data-angular.git"
},
"main": "./dist/js-data-angular.min.js",
"main": "./dist/js-data-angular.js",
"ignore": [
".idea/",
".*",
Expand All @@ -28,10 +28,7 @@
"angular-mocks-1.3.2": "angular-mocks#1.3.2"
},
"dependencies": {
"js-data": "~1.0.x",
"angular": "~1.x"
},
"resolutions": {
"angular": "1.3.2"
"js-data": ">=1.0.0",
"angular": ">=1.0.3"
}
}
2 changes: 1 addition & 1 deletion dist/js-data-angular.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @author Jason Dobry <[email protected]>
* @file js-data-angular.js
* @version 2.0.0-alpha.3-5 - Homepage <http://www.js-data.io/js-data-angular/>
* @version 2.0.0 - Homepage <http://www.js-data.io/js-data-angular/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/js-data/js-data-angular/blob/master/LICENSE>
*
Expand Down
4 changes: 2 additions & 2 deletions dist/js-data-angular.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading