Skip to content

Commit

Permalink
2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Nov 6, 2017
1 parent 418bb06 commit bd89dfc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 15 deletions.
16 changes: 13 additions & 3 deletions History.md
@@ -1,7 +1,15 @@


2.4.1 / 2017-11-06
==================

* fix bad merge w/ 2.4.0

2.4.0 / 2017-11-06
==================

UNPUBLISHED

* update `package.engines.node` to be more strict
* update `fresh@^0.5.2`
* fix: `inspect()` no longer crashes `context`
Expand All @@ -12,9 +20,11 @@
==================

* fix: use `Buffer.from()`
* update: `koa-compose@4`
* added: setters for `request.header=` and `request.headers=`
* added: use node 7+ WHATWG parser for hostname
* test on node 7 & 8
* add `package-lock.json` to `.gitignore`
* run `lint --fix`
* add `request.header` in addition to `request.headers`
* add IPv6 hostname support

2.2.0 / 2017-03-14
==================
Expand Down
35 changes: 23 additions & 12 deletions package.json
@@ -1,10 +1,14 @@
{
"name": "koa",
"version": "2.4.0",
"version": "2.4.1",
"description": "Koa web app framework",
"main": "lib/application.js",
"scripts": {
"test": "make test"
"test": "jest",
"test-cov": "npm run test -- --coverage",
"lint": "eslint benchmarks lib test",
"bench": "make -C benchmarks",
"authors": "git log --format='%aN <%aE>' | sort -u > AUTHORS"
},
"repository": "koajs/koa",
"keywords": [
Expand All @@ -28,11 +32,11 @@
"destroy": "^1.0.3",
"error-inject": "~1.0.0",
"escape-html": "~1.0.1",
"fresh": "^0.5.0",
"fresh": "^0.5.2",
"http-assert": "^1.1.0",
"http-errors": "^1.2.8",
"is-generator-function": "^1.0.3",
"koa-compose": "^3.0.0",
"koa-compose": "^4.0.0",
"koa-convert": "^1.2.0",
"koa-is-json": "^1.0.0",
"mime-types": "^2.0.7",
Expand All @@ -47,20 +51,27 @@
"babel-eslint": "^7.1.1",
"eslint": "^3.17.1",
"eslint-config-standard": "^7.0.1",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^2.1.1",
"istanbul": "^0.4.0",
"mocha": "^3.2.0",
"should": "^6.0.3",
"should-http": "0.0.3",
"supertest": "^3.0.0",
"test-console": "^0.7.1"
"jest": "^20.0.0",
"supertest": "^3.0.0"
},
"engines": {
"node": ">= 6.0.0"
"node": "^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4"

This comment has been minimized.

Copy link
@fritx

fritx Nov 8, 2017

@jonathanong btw, why has it to be ^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4?

e.g. what's wrong with node 8.1.2?

This comment has been minimized.

Copy link
@fritx

fritx Nov 8, 2017

also, how about the latest node 9.0, 9.1?

This comment has been minimized.

Copy link
@jonathanong

jonathanong Nov 8, 2017

Author Member

there was a bug before 8.1.4 i believe. and 9 is covered by the >=

This comment has been minimized.

Copy link
@fritx

fritx Nov 9, 2017

thanks! but what's the bug?
do i have to upgrade koa from 2.2.0 to 2.4.1 (with node upgrade to >= 8.1.4)?
is it a security bug before 8.1.4 or not?

This comment has been minimized.

Copy link
@jonathanong

jonathanong Nov 9, 2017

Author Member

yes it is a node security bug

yes, u should upgrade whenever you can

This comment has been minimized.

Copy link
@fritx

fritx Nov 10, 2017

thanks!

},
"files": [
"lib"
]
],
"jest": {
"testMatch": [
"**/test/!(helpers)/*.js"
],
"coverageReporters": [
"text-summary",
"lcov"
],
"bail": true,
"testEnvironment": "node"
}
}

0 comments on commit bd89dfc

Please sign in to comment.