From fea5934b9b77c63492714d40d014a0078d4d040a Mon Sep 17 00:00:00 2001 From: jongleberry Date: Thu, 25 Feb 2016 11:17:50 -0800 Subject: [PATCH 1/9] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ca503a9..759c3e5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Compress middleware for Koa +Install `v1.x` for Koa v1. Install `v2.x` or `next` for Koa v2. + ## Example ```js From 4d6f591cbc1a999f5c100381ebe6262bf97f2043 Mon Sep 17 00:00:00 2001 From: alsotang Date: Sat, 7 May 2016 02:08:43 +0800 Subject: [PATCH 2/9] Update README.md use `master` branch --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 759c3e5..833356d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Koa Compress [![Build Status](https://travis-ci.org/koajs/compress.png)](https://travis-ci.org/koajs/compress) +# Koa Compress [![Build Status](https://travis-ci.org/koajs/compress.svg?branch=master)](https://travis-ci.org/koajs/compress) Compress middleware for Koa From 50613c874a2ef5be0a455d23a683de91c5f6dcd8 Mon Sep 17 00:00:00 2001 From: "Juan J. Jimenez-Anca" Date: Fri, 15 Jul 2016 21:24:08 +0100 Subject: [PATCH 3/9] added should-http as dev dependency Without should-http the tests will throw errors as `res.should.have.header` doesn't exist in main `should`package Also updated dependencies for `should` and `supertest` Load should-http methods --- package.json | 5 +++-- test/index.js | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7267c31..312818e 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,9 @@ "istanbul": "^0.4.2", "koa": "^1.0.0", "mocha": "^2.4.1", - "should": "^3.0.0", - "supertest": "^1.0.0" + "should": "^9.0.2", + "should-http": "0.0.4", + "supertest": "^1.2.0" }, "scripts": { "test": "NODE_ENV=test mocha --require should --reporter spec", diff --git a/test/index.js b/test/index.js index aa0ee10..0ac5a4f 100644 --- a/test/index.js +++ b/test/index.js @@ -8,6 +8,8 @@ var fs = require('fs') var path = require('path') var compress = require('..') +require("should-http") + describe('Compress', function () { var buffer = crypto.randomBytes(1024) var string = buffer.toString('hex') @@ -286,4 +288,4 @@ describe('Compress', function () { .get('/') .expect('asdf', done) }) -}) \ No newline at end of file +}) From 81d8505eb725377c7f1b296e5d62de345a21edc9 Mon Sep 17 00:00:00 2001 From: Greenkeeper Date: Mon, 18 Jul 2016 16:07:37 +0200 Subject: [PATCH 4/9] chore(package): update should to version 10.0.0 (#32) https://greenkeeper.io/ --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 312818e..0add952 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "istanbul": "^0.4.2", "koa": "^1.0.0", "mocha": "^2.4.1", - "should": "^9.0.2", + "should": "^10.0.0", "should-http": "0.0.4", "supertest": "^1.2.0" }, From 19510749efb93e9069cb682bb1c79eb2628bb2f8 Mon Sep 17 00:00:00 2001 From: Greenkeeper Date: Fri, 28 Oct 2016 08:43:44 +0200 Subject: [PATCH 5/9] chore(package): update mocha to version 3.1.2 (#41) https://greenkeeper.io/ --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0add952..ebc3cc7 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "devDependencies": { "istanbul": "^0.4.2", "koa": "^1.0.0", - "mocha": "^2.4.1", + "mocha": "^3.1.2", "should": "^10.0.0", "should-http": "0.0.4", "supertest": "^1.2.0" From e29ad0b90f38e20d64ff30802560d81642925877 Mon Sep 17 00:00:00 2001 From: Greenkeeper Date: Fri, 28 Oct 2016 08:44:40 +0200 Subject: [PATCH 6/9] chore(package): update supertest to version 2.0.0 (#33) https://greenkeeper.io/ --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ebc3cc7..0fdbe87 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "mocha": "^3.1.2", "should": "^10.0.0", "should-http": "0.0.4", - "supertest": "^1.2.0" + "supertest": "^2.0.0" }, "scripts": { "test": "NODE_ENV=test mocha --require should --reporter spec", From 2bc6e5ff25c5fcca836b2a1df0724e9d486148d5 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Fri, 25 Nov 2016 17:37:17 -0800 Subject: [PATCH 7/9] test: fix because of superagent --- test/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/index.js b/test/index.js index 0ac5a4f..f9a325b 100644 --- a/test/index.js +++ b/test/index.js @@ -224,8 +224,7 @@ describe('Compress', function () { request(app.listen()) .head('/') - .expect(200) - .expect('', function (err, res) { + .expect(200, function (err, res) { if (err) return done(err) From 3b3fb9d5e4f88434db3a0aaea7c19ac2867cd92f Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Fri, 25 Nov 2016 17:37:31 -0800 Subject: [PATCH 8/9] travis++ --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4eb8e39..c2b6c6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ node_js: -- "4" -- "5" +- 4 +- 5 +- 6 +- 7 language: node_js script: "npm run test-travis" after_script: "npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls" From 8abb9f46ec78b3dd17071e0982900c459968d582 Mon Sep 17 00:00:00 2001 From: greenkeeperio-bot Date: Sun, 29 Jan 2017 16:27:16 -0800 Subject: [PATCH 9/9] chore(package): update supertest to version 3.0.0 https://greenkeeper.io/ --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0fdbe87..9351faa 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "mocha": "^3.1.2", "should": "^10.0.0", "should-http": "0.0.4", - "supertest": "^2.0.0" + "supertest": "^3.0.0" }, "scripts": { "test": "NODE_ENV=test mocha --require should --reporter spec",