blob: 52be81eb9a2714f4176b974667a4a3d53d5724d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
4.1.2 / 2017-12-14
==================
* Fix issue with dots in path when using extensions array (#92)
4.1.1 / 2017-09-25
==================
* Fix brotli support, closes #83
* Fix tests
4.1.0 / 2017-04-26
==================
* Add support for Cache-Control: immutable with a new "immutable" option
* Added serving of brotli versions of files
4.0.0 / 2017-04-09
==================
* throw error if file not exists, closes #43
* remove co, use async function
* bump deps
3.3.0 / 2017-01-10
==================
* add extensions option
* bump deps
3.2.0 / 2016-03-23
==================
* add setHeaders option
3.1.1 / 2016-03-04
==================
* bump deps
* simplify scripts
3.1.0 / 2015-10-24
==================
* return a promise instead of a generator
* fix: split path by path.sep instead of slash
* fix: strip root correctly on windows
* tests: resolve paths for windows
3.0.1 / 2015-10-23
==================
* fix stats info when path does not finish with slash and format is enabled, closes #34
3.0.0 / 2015-10-21
==================
* bump deps
* format option defaults to true
* fix: enable format only index exists
* simplify the declarations of `format`, `gzip`
2.0.1 / 2015-10-14
==================
* fix judgement of trailing slash
2.0.0 / 2015-10-14
==================
* serve directories without a trailing slash, closes #27
* when .hidden option is set, also check hidden directories, closes #17
* bump deps: mz@2, mocha@2, koa@1
* use resolve-path, closes #9
* gzip version of file should not be automatically sent
* fix test: gzip.json.gz is not valid json data
1.3.1 / 2014-09-08
==================
* add .maxAge alias
1.3.0 / 2014-09-07
==================
* add automatically check and serve `.gz` files
* remove `finished` dependency
* refactor with `mz`
1.2.3 / 2014-02-11
==================
* fix malicious path in windows
* update finished
* make assert message better
1.2.2 / 2014-01-07
==================
* fix: ignore directories instead of crashing koa
1.2.1 / 2014-01-02
==================
* add `content-length` header
1.2.0 / 2013-12-27
==================
* add `maxage` option
1.1.2 / 2013-12-22
==================
* replace deprecated ctx.error() with ctx.throw()
1.1.1 / 2013-12-20
==================
* use: on-socket-error
1.1.0 / 2013-12-19
==================
* add: `send` now returns the file path if sent
* add: destroy streams on socket errors to prevent fd leaks
|