- Drop support for pre-8.0 versions of GHC.
- Allow building with GHC 9.2.
- Replace the
cryptonite
andmemory
dependencies with equivalent functionality fromcryptohash-sha1
andbase16-bytestring
.
- Always import
Data.List
qualified.
- Only serve static files on
HEAD
orGET
requests.
- Add
Options
,staticWithOptions
,staticPolicyWithOptions
, andunsafeStaticPolicyWithOptions
. - Parameterize Middleware with options allowing custom file name to MIME type mapping.
- Remove unused test suite.
- Add
Semigroup Policy
instance - Replace dependencies on
base16-bytestring
andcryptohash
with the more modernmemory
andcryptonite
packages, respectively [myfreeweb]
-
The
mime-types
library is now used to lookup MIME types from extensions. As a result, some extensions now map to different MIME types. They are:Extension wai-middleware-static
mime-types
class
application/octet-stream
application/java-vm
dtd
text/xml
application/xml-dtd
jar
application/x-java-archive
application/java-archive
js
text/javascript
application/javascript
ogg
application/ogg
audio/ogg
ttf
application/x-font-truetype
application/x-font-ttf
-
Exposed
getMimeType
function [Shimuuar]
- Fixed Windows build (by replacing
unix
dependency with equivalentdirectory
function)
- Implement caching [agrafix]
- Include mp4 and ogv mime_types [DrBoolean]
- Dependency updates for ghc 7.10 [DougBurke]
-
Update links to new wai-middleware-static github/issue tracker.
-
Bump upper bound for
text
- Update to wai 3.0
- Bump upper bound for
mtl
-
Add
isNotAbsolute
policy and changestatic
andstaticPolicy
to usenoDots
andisNotAbsolute
policies by default. (Thanks to Nick Hibberd!) -
Add
unsafeStaticPolicy
, which behaves as the old insecurestaticPolicy
behaved. -
Add changelog