koa 2.13.1 → 2.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/History.md +24 -0
- package/lib/application.js +2 -2
- package/package.json +19 -16
package/History.md
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
|
|
2
|
+
2.13.2 / 2021-09-24
|
|
3
|
+
==================
|
|
4
|
+
|
|
5
|
+
**fixes**
|
|
6
|
+
* [[`04acf02`](http://github.com/koajs/koa/commit/04acf0281a5dcb3fd463d4c8537984c686d0b96f)] - fix: nodejs deprecated api <DEP0148> (#1585) (#1588) (hyj1991 <<yeekwanvong@gmail.com>>)
|
|
7
|
+
|
|
8
|
+
**others**
|
|
9
|
+
* [[`3435e78`](http://github.com/koajs/koa/commit/3435e7864a59cca2835ebaad96c4eda801b99b24)] - lint++ (jongleberry <<jonathanrichardong@gmail.com>>)
|
|
10
|
+
* [[`2cd6618`](http://github.com/koajs/koa/commit/2cd66182f46965f1d824c24826e85df251cca3d2)] - Fix grammar mistake (#1527) (Matheus Souza <<37983247+souzasmatheus@users.noreply.github.com>>)
|
|
11
|
+
* [[`16ab46e`](http://github.com/koajs/koa/commit/16ab46e9f2b5411fd1c50312ac03719f0a90df61)] - chore: upgrade koa-convert dependency to ^2.0.0 (#1535) (Christian Rodemeyer <<atombrenner@users.noreply.github.com>>)
|
|
12
|
+
* [[`65113ca`](http://github.com/koajs/koa/commit/65113ca38af634e4b1002d5bc40917cc09a7b7c6)] - Fix jsdoc types for constructor (#1541) (Piotr Kuczynski <<piotr.kuczynski@gmail.com>>)
|
|
13
|
+
* [[`03e6317`](http://github.com/koajs/koa/commit/03e6317df24d2dce0c1f08869326149f766f1e41)] - :arrow_up: debug (jongleberry <<jonathanrichardong@gmail.com>>)
|
|
14
|
+
* [[`b37a2d0`](http://github.com/koajs/koa/commit/b37a2d09c137d9a553a0bdf8589b60c7f6425160)] - :arrow_up: eslint dependencies (jongleberry <<jonathanrichardong@gmail.com>>)
|
|
15
|
+
* [[`4a410cc`](http://github.com/koajs/koa/commit/4a410cc2fbd923868cac6a622f12cc652586abee)] - migrate assert.deepEqual => .deepStrictEqual (jongleberry <<jonathanrichardong@gmail.com>>)
|
|
16
|
+
* [[`4545b59`](http://github.com/koajs/koa/commit/4545b59aa521e377a4ebb0ccbb8abec01981fbf4)] - test: switch tests to jest (jongleberry <<jonathanrichardong@gmail.com>>)
|
|
17
|
+
* [[`596cfd5`](http://github.com/koajs/koa/commit/596cfd542ccd1d89d97453e29cf499d49a82e743)] - migrate assert.strict => .strictEqual (jongleberry <<jonathanrichardong@gmail.com>>)
|
|
18
|
+
* [[`be3e8b6`](http://github.com/koajs/koa/commit/be3e8b68ab58d469f0f450284528dbef32e2d7ba)] - test: switch to github actions (jongleberry <<jonathanrichardong@gmail.com>>)
|
|
19
|
+
* [[`a2570e3`](http://github.com/koajs/koa/commit/a2570e3ee622cfa5214c2f756ea03b3b7143dbf7)] - package: update bench scripts (jongleberry <<jonathanrichardong@gmail.com>>)
|
|
20
|
+
* [[`000acf0`](http://github.com/koajs/koa/commit/000acf06ab3e37006569addc8ace5c0a4365daa1)] - npm: enable package-lock (jongleberry <<jonathanrichardong@gmail.com>>)
|
|
21
|
+
* [[`47fdbca`](http://github.com/koajs/koa/commit/47fdbca8b1c3999c5726f54531f8b47640a65a6f)] - delete benchmarks (jongleberry <<jonathanrichardong@gmail.com>>)
|
|
22
|
+
* [[`0056f90`](http://github.com/koajs/koa/commit/0056f901e89fd0781067b2c9592fd5909f9ba94a)] - Create dependabot.yml (jongleberry <<jonathanrichardong@gmail.com>>)
|
|
23
|
+
* [[`698ce0a`](http://github.com/koajs/koa/commit/698ce0afbfac6480400625729a4b8fc4b4203fdc)] - test: fix typo in status.js (Ikko Ashimine <<eltociear@gmail.com>>)
|
|
24
|
+
* [[`eb51cf5`](http://github.com/koajs/koa/commit/eb51cf5fb35b39592a050b25fd261a574f547cfa)] - doc: app.keys needs to be long enought and random (#1520) (Yiyu He <<dead_horse@qq.com>>)
|
|
25
|
+
|
|
2
26
|
2.13.1 / 2021-01-04
|
|
3
27
|
==================
|
|
4
28
|
|
package/lib/application.js
CHANGED
|
@@ -41,8 +41,8 @@ module.exports = class Application extends Emitter {
|
|
|
41
41
|
* @param {string[]} [options.keys] Signed cookie keys
|
|
42
42
|
* @param {boolean} [options.proxy] Trust proxy headers
|
|
43
43
|
* @param {number} [options.subdomainOffset] Subdomain offset
|
|
44
|
-
* @param {
|
|
45
|
-
* @param {
|
|
44
|
+
* @param {string} [options.proxyIpHeader] Proxy IP header, defaults to X-Forwarded-For
|
|
45
|
+
* @param {number} [options.maxIpsCount] Max IPs read from proxy IP header, default to 0 (means infinity)
|
|
46
46
|
*
|
|
47
47
|
*/
|
|
48
48
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koa",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.2",
|
|
4
4
|
"description": "Koa web app framework",
|
|
5
5
|
"main": "lib/application.js",
|
|
6
6
|
"exports": {
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
"require": "./lib/application.js",
|
|
9
9
|
"import": "./dist/koa.mjs"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"./*": "./*.js",
|
|
12
|
+
"./*.js": "./*.js",
|
|
13
|
+
"./package": "./package.json",
|
|
14
|
+
"./package.json": "./package.json"
|
|
12
15
|
},
|
|
13
16
|
"scripts": {
|
|
14
|
-
"test": "
|
|
15
|
-
"
|
|
16
|
-
"lint": "eslint benchmarks lib test",
|
|
17
|
-
"bench": "make -C benchmarks",
|
|
17
|
+
"test": "jest --forceExit",
|
|
18
|
+
"lint": "eslint --ignore-path .gitignore .",
|
|
18
19
|
"authors": "git log --format='%aN <%aE>' | sort -u > AUTHORS",
|
|
19
20
|
"build": "gen-esm-wrapper . ./dist/koa.mjs",
|
|
20
21
|
"prepare": "npm run build"
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"content-disposition": "~0.5.2",
|
|
37
38
|
"content-type": "^1.0.4",
|
|
38
39
|
"cookies": "~0.8.0",
|
|
39
|
-
"debug": "
|
|
40
|
+
"debug": "^4.3.2",
|
|
40
41
|
"delegates": "^1.0.0",
|
|
41
42
|
"depd": "^2.0.0",
|
|
42
43
|
"destroy": "^1.0.4",
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"http-errors": "^1.6.3",
|
|
48
49
|
"is-generator-function": "^1.0.7",
|
|
49
50
|
"koa-compose": "^4.1.0",
|
|
50
|
-
"koa-convert": "^
|
|
51
|
+
"koa-convert": "^2.0.0",
|
|
51
52
|
"on-finished": "^2.3.0",
|
|
52
53
|
"only": "~0.0.2",
|
|
53
54
|
"parseurl": "^1.3.2",
|
|
@@ -56,16 +57,15 @@
|
|
|
56
57
|
"vary": "^1.1.2"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
|
-
"
|
|
60
|
-
"eslint": "^6.5.1",
|
|
60
|
+
"eslint": "^7.32.0",
|
|
61
61
|
"eslint-config-koa": "^2.0.0",
|
|
62
|
-
"eslint-config-standard": "^
|
|
62
|
+
"eslint-config-standard": "^16.0.3",
|
|
63
63
|
"eslint-plugin-import": "^2.18.2",
|
|
64
|
-
"eslint-plugin-node": "^
|
|
65
|
-
"eslint-plugin-promise": "^
|
|
66
|
-
"eslint-plugin-standard": "^
|
|
64
|
+
"eslint-plugin-node": "^11.1.0",
|
|
65
|
+
"eslint-plugin-promise": "^5.1.0",
|
|
66
|
+
"eslint-plugin-standard": "^5.0.0",
|
|
67
67
|
"gen-esm-wrapper": "^1.0.6",
|
|
68
|
-
"
|
|
68
|
+
"jest": "^27.0.6",
|
|
69
69
|
"supertest": "^3.1.0"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
@@ -74,5 +74,8 @@
|
|
|
74
74
|
"files": [
|
|
75
75
|
"dist",
|
|
76
76
|
"lib"
|
|
77
|
-
]
|
|
77
|
+
],
|
|
78
|
+
"jest": {
|
|
79
|
+
"testEnvironment": "node"
|
|
80
|
+
}
|
|
78
81
|
}
|