Skip to content

Commit 8e48ffd

Browse files
committed
3.0.0-alpha.7
1 parent a6f2b19 commit 8e48ffd

File tree

5 files changed

+37
-4
lines changed

5 files changed

+37
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
##### 3.0.0-alpha.7 - 03 March 2016
2+
3+
###### Backwards compatible API changes
4+
- Added RethinkDBAdapter.extend
5+
16
##### 3.0.0-alpha.6 - 01 March 2016
27

38
###### Backwards compatible bug fixes

dist/js-data-rethinkdb.js

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js-data-rethinkdb.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 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-alpha.6",
4+
"version": "3.0.0-alpha.7",
55
"homepage": "https://github.com/js-data/js-data-rethinkdb",
66
"repository": {
77
"type": "git",
@@ -51,7 +51,7 @@
5151
"rethinkdbdash": ">=1.15.0"
5252
},
5353
"devDependencies": {
54-
"babel-core": "6.6.0",
54+
"babel-core": "6.6.4",
5555
"babel-eslint": "5.0.0",
5656
"babel-polyfill": "6.6.1",
5757
"babel-preset-es2015-rollup": "1.1.1",
@@ -60,7 +60,7 @@
6060
"coveralls": "2.11.8",
6161
"ink-docstrap": "1.1.4",
6262
"istanbul": "0.4.2",
63-
"js-data-adapter-tests": "^2.0.0-alpha.12",
63+
"js-data-adapter-tests": "^2.0.0-alpha.13",
6464
"jsdoc": "3.4.0",
6565
"mocha": "2.4.5",
6666
"rollup": "0.25.4",

src/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import unique from 'mout/array/unique'
55

66
const {
77
addHiddenPropsToTarget,
8+
extend,
89
fillIn,
910
forEachRelation,
1011
forOwn,
@@ -310,6 +311,19 @@ export default function RethinkDBAdapter (opts) {
310311
self.indices = {}
311312
}
312313

314+
/**
315+
* Alternative to ES6 class syntax for extending `RethinkDBAdapter`.
316+
*
317+
* @name RethinkDBAdapter.extend
318+
* @method
319+
* @param {Object} [instanceProps] Properties that will be added to the
320+
* prototype of the subclass.
321+
* @param {Object} [classProps] Properties that will be added as static
322+
* properties to the subclass itself.
323+
* @return {Object} Subclass of `RethinkDBAdapter`.
324+
*/
325+
RethinkDBAdapter.extend = extend
326+
313327
addHiddenPropsToTarget(RethinkDBAdapter.prototype, {
314328
_handleErrors (cursor) {
315329
if (cursor && cursor.errors > 0) {

0 commit comments

Comments
 (0)