Skip to content

Commit

Permalink
feat: update node to v6/v8 and upgrade modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominique Wirz authored and Christoph Bühler committed Jul 27, 2017
1 parent a43f62d commit 3ce7973
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 33 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
language: node_js
node_js:
- '8'
- '6'
- '5'
- '4.2'

script: npm run citest
after_script: npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Changed
- Update node to v6/v8 and upgrade modules


## [v0.4.0]
Expand Down
2 changes: 1 addition & 1 deletion ElasticLoader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('ElasticLoader', () => {
index: o => Observable.of(o)
};

stub = sinon.stub(client, 'index', o => Observable.of(o));
stub = sinon.stub(client, 'index').callsFake(o => Observable.of(o));
});

it('should resolve on correct usage', done => {
Expand Down
2 changes: 1 addition & 1 deletion helpers/Buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class Buffer<T> extends EventEmitter {
});
}

public write(object: T): Promise<T> | Promise<void> {
public write(object: T): Promise<T | undefined> {
if (this.sealed) {
return Promise.reject(new BufferSealedError());
}
Expand Down
27 changes: 16 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"clean": "rimraf build",
"bootstrap": "npm install && typings install",
"bootstrap": "npm install",
"pretest": "npm run bootstrap && npm run clean && tsc",
"test": "mocha --ui bdd --recursive ./build",
"precitest": "npm run bootstrap && npm run clean && tsc",
Expand All @@ -21,7 +21,7 @@
"elasticsearch"
],
"engines": {
"node": ">=4.2"
"node": ">=6"
},
"repository": {
"type": "git",
Expand All @@ -31,21 +31,26 @@
"author": "Christoph Bühler <[email protected]>",
"license": "MIT",
"devDependencies": {
"chai": "^3.5.0",
"chai-as-promised": "^5.3.0",
"del-cli": "^0.2.0",
"@types/chai": "^4.0.1",
"@types/chai-as-promised": "^0.0.31",
"@types/mocha": "^2.2.41",
"@types/node": "^8.0.16",
"@types/sinon": "^2.3.3",
"@types/sinon-chai": "^2.7.28",
"chai": "^4.1.0",
"chai-as-promised": "^7.1.1",
"del-cli": "^1.1.0",
"istanbul": "^0.4.4",
"mocha": "^2.5.3",
"mocha": "^3.4.1",
"mocha-lcov-reporter": "^1.2.0",
"rimraf": "^2.5.3",
"sinon": "^1.17.4",
"sinon": "^2.4.0",
"sinon-chai": "^2.8.0",
"typescript": "^1.8.10",
"typings": "^1.3.1"
"typescript": "^2.4.2"
},
"dependencies": {
"elasticsearch": "^11.0.1",
"elasticsearch": "^13.2.0",
"proc-that": "^0.4.0",
"rxjs": "^5.0.0-beta.10"
"rxjs": "^5.4.2"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"removeComments": false,
Expand Down
17 changes: 0 additions & 17 deletions typings.json

This file was deleted.

0 comments on commit 3ce7973

Please sign in to comment.