Skip to content

Commit 57ab833

Browse files
committed
Merge branch 'es2015'
# Conflicts: # lib/bucket.js # package.json
2 parents b05226f + c353045 commit 57ab833

22 files changed

+599
-378
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
language: node_js
22
node_js:
3-
- 0.10
4-
- 0.12
3+
- 4.0
54
before_script:
65
- npm install -g gulp
76
script: gulp
7+
sudo: required
8+
dist: trusty

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# Change Log
22

3+
## 2.0
4+
5+
### 2.0.0
6+
* Switching to ES2015 syntax.
7+
* Updating Couchnode to latest version.
8+
* The `couchbase` and `bluebird` modules are now `peerDependencies`.
9+
* Bug fix: ensuring the proper `this` context is used when calling promisify.
10+
311
## 1.0
412

513
### 1.0.1
6-
* Fixing a leak of the `arguments` object to avoid optimizing compiler bailouts.
14+
* Bug fix: fixing a leak of the `arguments` object to avoid optimizing compiler bailouts.
715

816
### 1.0.0
917
* Initial release.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ Just like the [Couchbase Node.js SDK](http://developer.couchbase.com/documentati
77

88
The current version supports Couchbase Node.js SDK version 2.1.2.
99

10-
Promises are created using the [Bluebird](http://bluebirdjs.com/docs/getting-started.html) Promises library. If you absolutely must use native ECMAScript Promises, then have a look at [couchbase-es-promises](https://www.npmjs.com/package/couchbase-promises). I _highly_ recommend avoiding couchbase-es-promises, as Bluebird is compatible with native promises, and offers [an order of magnitude more performance](https://github.com/petkaantonov/bluebird/tree/master/benchmark).
10+
Promises are created using the [Bluebird](http://bluebirdjs.com/docs/getting-started.html) Promises library. If you absolutely must use native ECMAScript Promises, then have a look at [couchbase-es-promises](https://www.npmjs.com/package/couchbase-es-promises). I _highly_ recommend avoiding couchbase-es-promises, as Bluebird is compatible with native promises, and offers [an order of magnitude more performance](https://github.com/petkaantonov/bluebird/tree/master/benchmark).
1111

1212
## General Usage
1313
Usage is almost exactly the same as the native SDK, but with the added ability to use Promises instead of callbacks.
1414

1515
A user repository module with a simple lookup...
1616

1717
```js
18-
let couchbase = require('couchbase-promises');
19-
let cluster = new couchbase.Cluster('couchbase://127.0.0.1');
20-
let bucket = cluster.openBucket();
18+
const couchbase = require('couchbase-promises');
19+
const cluster = new couchbase.Cluster('couchbase://127.0.0.1');
20+
const bucket = cluster.openBucket();
2121

2222
function UserNotFoundError() {
2323
Error.call(this);

gulpfile.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
var gulp = require('gulp');
2-
var eslint = require('gulp-eslint');
3-
var istanbul = require('gulp-istanbul');
4-
var jsvalidate = require('gulp-jsvalidate')
5-
var mocha = require('gulp-mocha');
1+
const gulp = require('gulp');
2+
const eslint = require('gulp-eslint');
3+
const istanbul = require('gulp-istanbul');
4+
const jsvalidate = require('gulp-jsvalidate')
5+
const mocha = require('gulp-mocha');
66

77
gulp.task('lint', function() {
88
return gulp.src(['./**/*.js', '!./node_modules/**', '!./coverage/**'])
@@ -11,15 +11,15 @@ gulp.task('lint', function() {
1111
});
1212

1313
gulp.task('test', function() {
14-
return gulp.src('tests/unit/**/*.js')
14+
return gulp.src('./tests/unit/**/*.js')
1515
.pipe(mocha({ reporter: 'spec' }))
1616
.pipe(istanbul.writeReports())
1717
.pipe(istanbul.enforceThresholds({ thresholds: { global: 90 } }));
1818
});
1919

2020
gulp.task('jsvalidate', function() {
21-
return gulp.src('**/*.js')
21+
return gulp.src(['./**/*.js', '!./node_modules/**', '!./coverage/**'])
2222
.pipe(jsvalidate());
2323
});
2424

25-
gulp.task('default', ['lint', 'test']);
25+
gulp.task('default', ['test']);

0 commit comments

Comments
 (0)