js-data-rethinkdb
Advanced tools
Comparing version 2.0.3 to 2.1.0
@@ -0,1 +1,10 @@ | ||
##### 2.1.0 - 26 October 2015 | ||
###### Backwards compatible bug fixes | ||
- #16 - Handle cursor errors by @BBB | ||
###### Other | ||
- Removed Grunt | ||
- Tests now use yield and generators | ||
##### 2.0.3 - 13 October 2015 | ||
@@ -2,0 +11,0 @@ |
# Contributing Guide | ||
First, support is handled via the [Gitter Channel](https://gitter.im/js-data/js-data) and the [Mailing List](https://groups.io/org/groupsio/jsdata). Ask your questions there. | ||
First, support is handled via the [Slack Channel](http://slack.js-data.io) and the [Mailing List](https://groups.io/org/groupsio/jsdata). Ask your questions there. | ||
@@ -25,1 +25,15 @@ When submitting issues on GitHub, please include as much detail as possible to make debugging quick and easy. | ||
1. Thanks! | ||
#### Have write access? | ||
Here's how to make a release on the `master` branch: | ||
1. Bump `package.json` to the appropriate version. | ||
1. `npm test` must succeed. | ||
1. This time, the built `dist/js-data-rethinkdb.js` file _will_ be committed, so stage its changes. | ||
1. Mention the release version in the commit message, e.g. `Stable Version 1.2.3` | ||
1. Push to master. | ||
1. Create a git tag. Name it the version of the release, e.g. `1.2.3` | ||
- Easiest way is to just create a GitHub Release, which will create the tag for you. Name the Release and the git tag the same thing. | ||
1. `git fetch origin` if you tagged it via GitHub Release, so you can get the tag on your local machine. | ||
1. `npm publish .` (Make sure you got the version bumped correctly!) |
@@ -433,2 +433,3 @@ module.exports = | ||
}).then(function (cursor) { | ||
_this5._handleErrors(cursor); | ||
return cursor.changes[0].new_val; | ||
@@ -447,2 +448,3 @@ }); | ||
}).then(function (cursor) { | ||
_this6._handleErrors(cursor); | ||
if (cursor.changes && cursor.changes.length && cursor.changes[0].new_val) { | ||
@@ -466,2 +468,3 @@ return cursor.changes[0].new_val; | ||
}).then(function (cursor) { | ||
_this7._handleErrors(cursor); | ||
if (cursor && cursor.changes && cursor.changes.length) { | ||
@@ -509,2 +512,12 @@ var _ret = (function () { | ||
} | ||
}, { | ||
key: '_handleErrors', | ||
value: function _handleErrors(cursor) { | ||
if (cursor && cursor.errors > 0) { | ||
if (cursor.first_error) { | ||
throw new Error(cursor.first_error); | ||
} | ||
throw new Error('Unknown RethinkDB Error'); | ||
} | ||
} | ||
}]); | ||
@@ -511,0 +524,0 @@ |
{ | ||
"name": "js-data-rethinkdb", | ||
"description": "RethinkDB adapter for js-data.", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"homepage": "http://www.js-data.io/docs/dsrethinkdbadapter", | ||
@@ -14,8 +14,3 @@ "repository": { | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/js-data/js-data-rethinkdb/blob/master/LICENSE" | ||
} | ||
], | ||
"license": "MIT", | ||
"main": "./dist/js-data-rethinkdb.js", | ||
@@ -37,17 +32,22 @@ "keywords": [ | ||
"chai": "3.3.0", | ||
"grunt": "0.4.5", | ||
"grunt-mocha-test": "0.12.7", | ||
"grunt-webpack": "1.0.11", | ||
"jit-grunt": "0.9.1", | ||
"jshint": "2.8.0", | ||
"jshint-loader": "0.8.3", | ||
"co": "4.6.0", | ||
"co-mocha": "1.1.2", | ||
"codacy-coverage": "1.1.3", | ||
"coveralls": "2.11.4", | ||
"istanbul": "0.4.0", | ||
"mocha": "2.3.3", | ||
"standard": "5.3.1", | ||
"time-grunt": "1.2.1" | ||
"webpack": "1.12.2" | ||
}, | ||
"scripts": { | ||
"lint": "standard src/index.js", | ||
"build": "webpack --config webpack.config.js --colors", | ||
"mocha": "mocha --timeout 20000 --reporter dot mocha.start.js test/*.spec.js", | ||
"cover": "istanbul cover --hook-run-in-context node_modules/mocha/bin/_mocha -- --timeout 20000 --reporter dot mocha.start.js test/*.spec.js", | ||
"test": "npm run lint && npm run build && npm run cover", | ||
"ci": "npm run test && cat coverage/lcov.info | coveralls || true && cat ./coverage/lcov.info | codacy-coverage || true" | ||
}, | ||
"standard": { | ||
"parser": "babel-eslint" | ||
}, | ||
"scripts": { | ||
"test": "grunt test" | ||
}, | ||
"dependencies": { | ||
@@ -54,0 +54,0 @@ "mout": "0.11.0" |
<img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="64" height="64" /> | ||
## js-data-rethinkdb [![npm version](https://img.shields.io/npm/v/js-data-rethinkdb.svg?style=flat-square)](https://www.npmjs.org/package/js-data-rethinkdb) [![Travis CI](https://img.shields.io/travis/js-data/js-data-rethinkdb.svg?style=flat-square)](https://travis-ci.org/js-data/js-data-rethinkdb) [![npm downloads](https://img.shields.io/npm/dm/js-data-rethinkdb.svg?style=flat-square)](https://www.npmjs.org/package/js-data-rethinkdb) [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/js-data/js-data-rethinkdb/blob/master/LICENSE) | ||
## js-data-rethinkdb [![Slack Status][sl_b]][sl_l] [![npm version][npm_b]][npm_l] [![Circle CI][circle_b]][circle_l] [![npm downloads][dn_b]][dn_l] [![Coverage Status][cov_b]][cov_l] [![Codacy][cod_b]][cod_l] | ||
@@ -13,8 +13,4 @@ RethinkDB adapter for [js-data](http://www.js-data.io/). | ||
### Project Status | ||
__Latest Release:__ [![Latest Release](https://img.shields.io/github/release/js-data/js-data-rethinkdb.svg?style=flat-square)](https://github.com/js-data/js-data-rethinkdb/releases) | ||
### Quick Start | ||
`npm install --save js-data js-data-rethinkdb`. | ||
`npm install --save js-data js-data-rethinkdb rethinkdbdash`. | ||
@@ -39,3 +35,3 @@ ```js | ||
### Community | ||
- [Gitter Channel](https://gitter.im/js-data/js-data) - Better than IRC! | ||
- [Slack Channel](http://slack.js-data.io/) - Better than IRC! | ||
- [Announcements](http://www.js-data.io/blog) | ||
@@ -49,3 +45,3 @@ - [Mailing List](https://groups.io/org/groupsio/jsdata) - Ask your questions! | ||
First, support is handled via the [Gitter Channel](https://gitter.im/js-data/js-data) and the [Mailing List](https://groups.io/org/groupsio/jsdata). Ask your questions there. | ||
First, support is handled via the [Slack Channel](http://slack.js-data.io/) and the [Mailing List](https://groups.io/org/groupsio/jsdata). Ask your questions there. | ||
@@ -96,1 +92,14 @@ When submitting issues on GitHub, please include as much detail as possible to make debugging quick and easy. | ||
SOFTWARE. | ||
[sl_b]: http://slack.js-data.io/badge.svg | ||
[sl_l]: http://slack.js-data.io | ||
[npm_b]: https://img.shields.io/npm/v/js-data-rethinkdb.svg?style=flat | ||
[npm_l]: https://www.npmjs.org/package/js-data-rethinkdb | ||
[circle_b]: https://img.shields.io/circleci/project/js-data/js-data-rethinkdb/master.svg?style=flat | ||
[circle_l]: https://circleci.com/gh/js-data/js-data-rethinkdb/tree/master | ||
[dn_b]: https://img.shields.io/npm/dm/js-data-rethinkdb.svg?style=flat | ||
[dn_l]: https://www.npmjs.org/package/js-data-rethinkdb | ||
[cov_b]: https://img.shields.io/coveralls/js-data/js-data-rethinkdb/master.svg?style=flat | ||
[cov_l]: https://coveralls.io/github/js-data/js-data-rethinkdb?branch=master | ||
[cod_b]: https://img.shields.io/codacy/69206fcb0df6462ca559610af32fd1fb.svg | ||
[cod_l]: https://www.codacy.com/app/jasondobry/js-data-rethinkdb/dashboard |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
102
36712
9
490