js-data-rethinkdb
Advanced tools
Comparing version 3.0.0-beta.2 to 3.0.0-beta.3
@@ -0,1 +1,5 @@ | ||
##### 3.0.0-beta.3 - 30 April 2016 | ||
- Upgraded to `js-data-adapter` v0.6.1 | ||
##### 3.0.0-beta.2 - 29 April 2016 | ||
@@ -2,0 +6,0 @@ |
@@ -6,9 +6,2 @@ import {Adapter} from 'js-data-adapter' | ||
} | ||
interface IActionOpts { | ||
adapter?: string, | ||
pathname?: string, | ||
request?: Function, | ||
response?: Function, | ||
responseError?: Function | ||
} | ||
interface IBaseAdapter extends IDict { | ||
@@ -24,9 +17,9 @@ debug?: boolean, | ||
host?: string | ||
insertOpts?: IDICT | ||
insertOpts?: IDict | ||
max?: number | ||
min?: number | ||
operators?: IDICT | ||
operators?: IDict | ||
port?: number | ||
runOpts?: IDICT | ||
updateOpts?: IDICT | ||
runOpts?: IDict | ||
updateOpts?: IDict | ||
} | ||
@@ -37,3 +30,3 @@ export class RethinkDBAdapter extends Adapter { | ||
} | ||
export const OPERATORS = { | ||
export interface OPERATORS { | ||
'==': Function | ||
@@ -54,9 +47,9 @@ '===': Function | ||
} | ||
export const version = { | ||
full?: string | ||
minor?: string | ||
major?: string | ||
patch?: string | ||
alpha?: string | boolean | ||
beta?: string | boolean | ||
export interface version { | ||
full: string | ||
minor: string | ||
major: string | ||
patch: string | ||
alpha: string | boolean | ||
beta: string | boolean | ||
} |
@@ -409,3 +409,3 @@ 'use strict'; | ||
return self.selectTable(mapper, opts).get(id).update(jsDataAdapter.withoutRelations(mapper, props), updateOpts).run(self.getOpt('runOpts', opts)).then(function (cursor) { | ||
return self.selectTable(mapper, opts).get(id).update(props, updateOpts).run(self.getOpt('runOpts', opts)).then(function (cursor) { | ||
var record = void 0; | ||
@@ -430,3 +430,3 @@ self._handleErrors(cursor); | ||
return self.filterSequence(self.selectTable(mapper, opts), query).update(jsDataAdapter.withoutRelations(mapper, props), updateOpts).run(self.getOpt('runOpts', opts)).then(function (cursor) { | ||
return self.filterSequence(self.selectTable(mapper, opts), query).update(props, updateOpts).run(self.getOpt('runOpts', opts)).then(function (cursor) { | ||
var records = []; | ||
@@ -1004,4 +1004,4 @@ self._handleErrors(cursor); | ||
var version = { | ||
beta: 2, | ||
full: '3.0.0-beta.2', | ||
beta: 3, | ||
full: '3.0.0-beta.3', | ||
major: 3, | ||
@@ -1008,0 +1008,0 @@ minor: 0, |
{ | ||
"name": "js-data-rethinkdb", | ||
"description": "RethinkDB adapter for js-data.", | ||
"version": "3.0.0-beta.2", | ||
"version": "3.0.0-beta.3", | ||
"homepage": "https://github.com/js-data/js-data-rethinkdb", | ||
@@ -43,2 +43,5 @@ "repository": { | ||
}, | ||
"babel": { | ||
"presets": ["es2015-rollup"] | ||
}, | ||
"scripts": { | ||
@@ -57,3 +60,3 @@ "lint": "repo-tools lint \"**/*.js\"", | ||
"dependencies": { | ||
"js-data-adapter": "~0.6.0", | ||
"js-data-adapter": "~0.6.1", | ||
"mout": "1.0.0" | ||
@@ -69,3 +72,3 @@ }, | ||
"istanbul": "0.4.3", | ||
"js-data-adapter-tests": "^2.0.0-alpha.15", | ||
"js-data-adapter-tests": "^2.0.0-alpha.16", | ||
"js-data-repo-tools": "0.5.0", | ||
@@ -72,0 +75,0 @@ "rollup": "0.26.1", |
import {utils} from 'js-data' | ||
import { | ||
Adapter, | ||
reserved, | ||
withoutRelations | ||
reserved | ||
} from 'js-data-adapter' | ||
@@ -437,3 +436,3 @@ import rethinkdbdash from 'rethinkdbdash' | ||
.get(id) | ||
.update(withoutRelations(mapper, props), updateOpts) | ||
.update(props, updateOpts) | ||
.run(self.getOpt('runOpts', opts)).then(function (cursor) { | ||
@@ -461,3 +460,3 @@ let record | ||
return self.filterSequence(self.selectTable(mapper, opts), query) | ||
.update(withoutRelations(mapper, props), updateOpts) | ||
.update(props, updateOpts) | ||
.run(self.getOpt('runOpts', opts)).then(function (cursor) { | ||
@@ -464,0 +463,0 @@ let records = [] |
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
129800
1899
Updatedjs-data-adapter@~0.6.1