Skip to content

Commit

Permalink
bumped version, added to ChangeLog and added documentation to 'defaul…
Browse files Browse the repository at this point in the history
…tGzipSettings'
  • Loading branch information
Vlix committed Dec 17, 2023
1 parent cf4d355 commit e7865d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions wai-extra/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for wai-extra

## 3.1.14.0

* `defaultGzipSettings` now exported to not depend on `Data.Default` [#959](https://github.com/yesodweb/wai/pull/959)

## 3.1.13.0

* Added `Combine Headers` `Middleware` [#901](https://github.com/yesodweb/wai/pull/901)
Expand Down
7 changes: 7 additions & 0 deletions wai-extra/Network/Wai/Middleware/Gzip.hs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ data GzipFiles
instance Default GzipSettings where
def = defaultGzipSettings

-- | Default settings for the 'gzip' middleware.
--
-- * Does not compress files.
-- * Uses 'defaultCheckMime'.
-- * Compession threshold set to 860 bytes.
--
-- @since 3.1.14.0
defaultGzipSettings :: GzipSettings
defaultGzipSettings = GzipSettings GzipIgnore defaultCheckMime minimumLength

Expand Down
2 changes: 1 addition & 1 deletion wai-extra/wai-extra.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: wai-extra
Version: 3.1.13.0
Version: 3.1.14.0
Synopsis: Provides some basic WAI handlers and middleware.
description:
Provides basic WAI handler and middleware functionality:
Expand Down

0 comments on commit e7865d1

Please sign in to comment.