Skip to content

Commit

Permalink
Stable Version 0.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed Sep 21, 2014
1 parent bba17ea commit aff136e
Show file tree
Hide file tree
Showing 27 changed files with 503 additions and 2,129 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
@@ -1,8 +1,7 @@
##### 0.2.0 - xx September 2014
##### 0.2.0 - 20 September 2014

###### Backwards compatible API changes
- jmdobry/angular-data#145 - Add "useClass" option to inject, find, findAll, create
- jmdobry/angular-data#155 - Allow deserialize and serialize to be configured per-method as well
- jmdobry/angular-data#159 - Find which items from collection have changed with lastModified
- jmdobry/angular-data#166 - Add ID Resolver
- jmdobry/angular-data#167 - Default params argument of bindAll to empty object
Expand All @@ -14,3 +13,7 @@
- jmdobry/angular-data#156 - cached findAll pending query doesn't get removed sometimes
- jmdobry/angular-data#163 - loadRelations shouldn't try to load a relation if the id for it is missing
- jmdobry/angular-data#165 - DS.hasChanges() reports changes after loading relations

###### Other
- Moved api documentation out of comments and into the GitHub wiki
- Re-organized code and shaved 5.5kb off the minified file
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -2,17 +2,15 @@

## js-data [![Stories in Backlog](https://badge.waffle.io/js-data/js-data.svg?label=backlog&title=Backlog)](http://waffle.io/js-data/js-data) [![Stories in Ready](https://badge.waffle.io/js-data/js-data.svg?label=ready&title=Ready)](http://waffle.io/js-data/js-data) [![Stories in progress](https://badge.waffle.io/js-data/js-data.svg?label=in%20progress&title=In%20Progress)](http://waffle.io/js-data/js-data)

Inspired by [Ember Data](https://github.com/emberjs/data), JSData is the model layer you've been craving. It consists of a convenient in-memory cache for managing your data, and several adapters for communicating with various persistence layers.
Inspired by [Ember Data](https://github.com/emberjs/data), JSData is the model layer you've been craving. It consists of a convenient framework-agnostic in-memory cache for managing your data, which uses adapters for communicating with various persistence layers.

You can use the [http adapter](http://www.js-data.io/js-data-http), which is perfect for communicating with your RESTful backend. You could also use the [localStorage adapter](http://www.js-data.io/js-data-localstorage). More adapters are coming, and you're free to implement your own.

Unlike Backbone and Ember Models, JSData does not require the use of getters and setters, and doesn't wrap your data with custom classes if you don't want it to. JSData's internal dirty-checking (via [observe-js](https://github.com/Polymer/observe-js) or `Object.observe` in supporting browsers) allows for powerful use cases and an easy avenue for implementing your own [3-way data-binding](https://www.firebase.com/blog/2013-10-04-firebase-angular-data-binding.html).

Supporting relations, computed properties, model lifecycle control and a slew of other features, JSData is the tool for giving your data the respect it deserves.

__Latest Release:__ [0.0.1](http://www.js-data.io/)

__master:__ 0.1.0
__Latest Release:__ [0.2.0](https://github.com/js-data/js-data/releases/tag/0.2.0)

JSData is pre-alpha. The API is subject to change, though the current api is well tested.

Expand All @@ -30,11 +28,13 @@ If you want to use JSData, keep a close eye on the changelog. 1.0.0 will introdu
| Coverage | [![Coverage Status](https://coveralls.io/repos/js-data/js-data/badge.png?branch=master)](https://coveralls.io/r/js-data/js-data?branch=master) |

## Quick Start
`bower install --save js-data` or `npm install --save js-data`.
`bower install --save js-data js-data-http` or `npm install --save js-data js-data-http`.

```js
var dataStore = new JSData.DS();

dataStore.adapters.DSHttpAdapter = new DSHttpAdapter();

var User = dataStore.defineResource('user');

User.find(1).then(function (user) {
Expand Down
4 changes: 2 additions & 2 deletions bower.json
@@ -1,7 +1,7 @@
{
"name": "js-data",
"description": "Data store.",
"version": "0.1.0",
"version": "0.2.0",
"homepage": "http://www.js-data.io/",
"repository": {
"type": "git",
Expand Down Expand Up @@ -31,7 +31,7 @@
],
"devDependencies": {
"observe-js": "0.3.4",
"js-data-http": "~0.1.x",
"js-data-http": "~0.2.x",
"js-data-localstorage": "~0.1.x"
}
}

0 comments on commit aff136e

Please sign in to comment.