js-data-rethinkdb
Advanced tools
Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.2
@@ -0,1 +1,6 @@ | ||
##### 3.0.0-alpha.2 - 26 February 2016 | ||
###### Backwards compatible bug fixes | ||
- Fixed edge case with returnDeletedIds | ||
##### 3.0.0-alpha.1 - 26 February 2016 | ||
@@ -2,0 +7,0 @@ |
@@ -582,3 +582,3 @@ 'use strict'; | ||
var deleted = 0; | ||
if (cursor && cursor.deleted) { | ||
if (cursor && cursor.deleted && returnDeletedIds) { | ||
deleted = cursor.deleted; | ||
@@ -590,6 +590,6 @@ } | ||
// Allow for re-assignment from lifecycle hook | ||
id = isUndefined(_id) && returnDeletedIds ? id : _id; | ||
id = isUndefined(_id) && deleted ? id : _id; | ||
var result = {}; | ||
fillIn(result, cursor); | ||
result.data = deleted ? id : undefined; | ||
result.data = id; | ||
return self.getRaw(opts) ? result : result.data; | ||
@@ -596,0 +596,0 @@ }); |
{ | ||
"name": "js-data-rethinkdb", | ||
"description": "RethinkDB adapter for js-data.", | ||
"version": "3.0.0-alpha.1", | ||
"version": "3.0.0-alpha.2", | ||
"homepage": "https://github.com/js-data/js-data-rethinkdb", | ||
@@ -62,6 +62,6 @@ "repository": { | ||
"codacy-coverage": "1.1.3", | ||
"coveralls": "2.11.6", | ||
"coveralls": "2.11.8", | ||
"ink-docstrap": "1.1.2", | ||
"istanbul": "0.4.2", | ||
"js-data-adapter-tests": "^2.0.0-alpha.6", | ||
"js-data-adapter-tests": "^2.0.0-alpha.7", | ||
"jsdoc": "3.4.0", | ||
@@ -68,0 +68,0 @@ "mocha": "2.4.5", |
@@ -31,7 +31,7 @@ <img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="96" height="96" /> | ||
```js | ||
var JSData = require('js-data'); | ||
var RethinkDBAdapter = require('js-data-rethinkdb'); | ||
import {Container} from 'js-data' | ||
import RethinkDBAdapter from 'js-data-rethinkdb' | ||
var store = new JSData.DS(); | ||
var adapter = new RethinkDBAdapter(); | ||
const store = new Container() | ||
const adapter = new RethinkDBAdapter() | ||
@@ -41,5 +41,3 @@ // "store" will now use the RethinkDB adapter for all async operations | ||
var User = store.defineResource({ | ||
name: 'user' | ||
}); | ||
store.defineMapper('user'); | ||
``` | ||
@@ -46,0 +44,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
126216
89