Hello community,

here is the log from the commit of package ghc-wai-extra for openSUSE:Factory 
checked in at 2016-06-25 02:21:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-wai-extra (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-wai-extra.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-wai-extra"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-wai-extra/ghc-wai-extra.changes      
2016-04-30 23:30:51.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-wai-extra.new/ghc-wai-extra.changes 
2016-06-25 02:21:59.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Jun 17 06:33:09 UTC 2016 - [email protected]
+
+- update to 3.0.15.2
+* Doc improvements
+
+-------------------------------------------------------------------

Old:
----
  wai-extra-3.0.15.1.tar.gz

New:
----
  wai-extra-3.0.15.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-wai-extra.spec ++++++
--- /var/tmp/diff_new_pack.yIyWK4/_old  2016-06-25 02:22:00.000000000 +0200
+++ /var/tmp/diff_new_pack.yIyWK4/_new  2016-06-25 02:22:00.000000000 +0200
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:           ghc-wai-extra
-Version:        3.0.15.1
+Version:        3.0.15.2
 Release:        0
 Summary:        Provides some basic WAI handlers and middleware
 License:        MIT

++++++ wai-extra-3.0.15.1.tar.gz -> wai-extra-3.0.15.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-extra-3.0.15.1/ChangeLog.md 
new/wai-extra-3.0.15.2/ChangeLog.md
--- old/wai-extra-3.0.15.1/ChangeLog.md 2016-04-25 15:20:48.000000000 +0200
+++ new/wai-extra-3.0.15.2/ChangeLog.md 2016-06-16 13:53:10.000000000 +0200
@@ -1,3 +1,7 @@
+## 3.0.15.2
+
+* Doc improvements
+
 ## 3.0.15.1
 
 * don't use deprecated CRT functions on Windows 
[#544](https://github.com/yesodweb/wai/pull/544)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-extra-3.0.15.1/Network/Wai/Middleware/Gzip.hs 
new/wai-extra-3.0.15.2/Network/Wai/Middleware/Gzip.hs
--- old/wai-extra-3.0.15.1/Network/Wai/Middleware/Gzip.hs       2016-01-11 
18:14:32.000000000 +0100
+++ new/wai-extra-3.0.15.2/Network/Wai/Middleware/Gzip.hs       2016-06-16 
13:53:10.000000000 +0200
@@ -50,12 +50,23 @@
     , gzipCheckMime :: S.ByteString -> Bool
     }
 
-data GzipFiles = GzipIgnore | GzipCompress | GzipCacheFolder FilePath
+-- | Gzip behavior for files.
+data GzipFiles
+    = GzipIgnore -- ^ Do not compress file responses.
+    | GzipCompress -- ^ Compress files. Note that this may counteract
+                   -- zero-copy response optimizations on some
+                   -- platforms.
+    | GzipCacheFolder FilePath -- ^ Compress files, caching them in
+                               -- some directory.
     deriving (Show, Eq, Read)
 
+-- | Use default MIME settings; /do not/ compress files.
 instance Default GzipSettings where
     def = GzipSettings GzipIgnore defaultCheckMime
 
+-- | MIME types that will be compressed by default:
+-- @text/*@, @application/json@, @application/javascript@,
+-- @application/ecmascript@, @image/x-icon@.
 defaultCheckMime :: S.ByteString -> Bool
 defaultCheckMime bs =
     S8.isPrefixOf "text/" bs || bs' `Set.member` toCompress
@@ -73,9 +84,7 @@
 -- Analyzes the \"Accept-Encoding\" header from the client to determine
 -- if gzip is supported.
 --
--- Possible future enhancements:
---
--- * Only compress if the response is above a certain size.
+-- File responses will be compressed according to the 'GzipFiles' setting.
 gzip :: GzipSettings -> Middleware
 gzip set app env sendResponse = app env $ \res ->
     case res of
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-extra-3.0.15.1/wai-extra.cabal 
new/wai-extra-3.0.15.2/wai-extra.cabal
--- old/wai-extra-3.0.15.1/wai-extra.cabal      2016-04-25 15:20:53.000000000 
+0200
+++ new/wai-extra-3.0.15.2/wai-extra.cabal      2016-06-16 13:53:10.000000000 
+0200
@@ -1,5 +1,5 @@
 Name:                wai-extra
-Version:             3.0.15.1
+Version:             3.0.15.2
 Synopsis:            Provides some basic WAI handlers and middleware.
 description:
   Provides basic WAI handler and middleware functionality:


Reply via email to