Skip to content

Commit ad7b96f

Browse files
committed
Merge branch 'master' into release
2 parents dd53d79 + f849201 commit ad7b96f

File tree

5 files changed

+25
-29
lines changed

5 files changed

+25
-29
lines changed

.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
##### 3.0.0-beta.3 - 30 April 2016
2+
3+
- Upgraded to `js-data-adapter` v0.6.1
4+
15
##### 3.0.0-beta.2 - 29 April 2016
26

37
###### Breaking changes

dist/js-data-rethinkdb.d.ts

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ import {Adapter} from 'js-data-adapter'
33
interface IDict {
44
[key: string]: any;
55
}
6-
interface IActionOpts {
7-
adapter?: string,
8-
pathname?: string,
9-
request?: Function,
10-
response?: Function,
11-
responseError?: Function
12-
}
136
interface IBaseAdapter extends IDict {
147
debug?: boolean,
158
raw?: boolean
@@ -20,19 +13,19 @@ interface IBaseRethinkDBAdapter extends IBaseAdapter {
2013
db?: string
2114
deleteOpts?: IDict
2215
host?: string
23-
insertOpts?: IDICT
16+
insertOpts?: IDict
2417
max?: number
2518
min?: number
26-
operators?: IDICT
19+
operators?: IDict
2720
port?: number
28-
runOpts?: IDICT
29-
updateOpts?: IDICT
21+
runOpts?: IDict
22+
updateOpts?: IDict
3023
}
3124
export class RethinkDBAdapter extends Adapter {
3225
static extend(instanceProps?: IDict, classProps?: IDict): typeof RethinkDBAdapter
3326
constructor(opts?: IBaseRethinkDBAdapter)
3427
}
35-
export const OPERATORS = {
28+
export interface OPERATORS {
3629
'==': Function
3730
'===': Function
3831
'!=': Function
@@ -48,11 +41,11 @@ export const OPERATORS = {
4841
'contains': Function
4942
'notContains': Function
5043
}
51-
export const version = {
52-
full?: string
53-
minor?: string
54-
major?: string
55-
patch?: string
56-
alpha?: string | boolean
57-
beta?: string | boolean
44+
export interface version {
45+
full: string
46+
minor: string
47+
major: string
48+
patch: string
49+
alpha: string | boolean
50+
beta: string | boolean
5851
}

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "js-data-rethinkdb",
33
"description": "RethinkDB adapter for js-data.",
4-
"version": "3.0.0-beta.2",
4+
"version": "3.0.0-beta.3",
55
"homepage": "https://github.com/js-data/js-data-rethinkdb",
66
"repository": {
77
"type": "git",
@@ -40,6 +40,9 @@
4040
],
4141
"ignore": ["dist/"]
4242
},
43+
"babel": {
44+
"presets": ["es2015-rollup"]
45+
},
4346
"scripts": {
4447
"lint": "repo-tools lint \"**/*.js\"",
4548
"bundle": "rollup -c rollup.config.js -f cjs -o dist/js-data-rethinkdb.js -m dist/js-data-rethinkdb.js.map src/index.js && repo-tools write-version dist/js-data-rethinkdb.js",
@@ -53,7 +56,7 @@
5356
"ci": "npm run test && cat coverage/lcov.info | codecov"
5457
},
5558
"dependencies": {
56-
"js-data-adapter": "~0.6.0",
59+
"js-data-adapter": "~0.6.1",
5760
"mout": "1.0.0"
5861
},
5962
"peerDependencies": {
@@ -64,7 +67,7 @@
6467
"babel-polyfill": "6.7.4",
6568
"babel-preset-es2015-rollup": "1.1.1",
6669
"istanbul": "0.4.3",
67-
"js-data-adapter-tests": "^2.0.0-alpha.15",
70+
"js-data-adapter-tests": "^2.0.0-alpha.16",
6871
"js-data-repo-tools": "0.5.0",
6972
"rollup": "0.26.1",
7073
"rollup-plugin-babel": "2.4.0",

src/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import {utils} from 'js-data'
22
import {
33
Adapter,
4-
reserved,
5-
withoutRelations
4+
reserved
65
} from 'js-data-adapter'
76
import rethinkdbdash from 'rethinkdbdash'
87
import underscore from 'mout/string/underscore'
@@ -434,7 +433,7 @@ utils.addHiddenPropsToTarget(RethinkDBAdapter.prototype, {
434433

435434
return self.selectTable(mapper, opts)
436435
.get(id)
437-
.update(withoutRelations(mapper, props), updateOpts)
436+
.update(props, updateOpts)
438437
.run(self.getOpt('runOpts', opts)).then(function (cursor) {
439438
let record
440439
self._handleErrors(cursor)
@@ -457,7 +456,7 @@ utils.addHiddenPropsToTarget(RethinkDBAdapter.prototype, {
457456
updateOpts.returnChanges = true
458457

459458
return self.filterSequence(self.selectTable(mapper, opts), query)
460-
.update(withoutRelations(mapper, props), updateOpts)
459+
.update(props, updateOpts)
461460
.run(self.getOpt('runOpts', opts)).then(function (cursor) {
462461
let records = []
463462
self._handleErrors(cursor)

0 commit comments

Comments
 (0)