From a738aeee8ffd2f35d5e32d67df3fa826a6ada81008a9812cbdd170ccc8b608fe Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Jun 2022 12:18:29 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-wai-extra revision:22, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-wai-extra?expand=0&rev=23 --- ghc-wai-extra.changes | 36 ++++++++++++++++++++++++++++++++++++ ghc-wai-extra.spec | 11 ++++++++++- wai-extra-3.1.12.1.tar.gz | 3 +++ wai-extra-3.1.8.tar.gz | 3 --- 4 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 wai-extra-3.1.12.1.tar.gz delete mode 100644 wai-extra-3.1.8.tar.gz diff --git a/ghc-wai-extra.changes b/ghc-wai-extra.changes index 28eec77..254183b 100644 --- a/ghc-wai-extra.changes +++ b/ghc-wai-extra.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Sat May 14 18:06:58 UTC 2022 - Peter Simons + +- Update wai-extra to version 3.1.12.1. + ## 3.1.12.1 + + * Include test/{json.gz,noprecompress} as extra-source-files [#887](https://github.com/yesodweb/wai/pull/887) + + ## 3.1.12 + + * Added gzip caching based on `ETag` [#885](https://github.com/yesodweb/wai/pull/885): + + ## 3.1.11 + + * Overhaul to `Network.Wai.Middleware.Gzip` [#880](https://github.com/yesodweb/wai/pull/880): + * Don't fail if quality value parameters are present in the `Accept-Encoding` header + * Add `Accept-Encoding` to the `Vary` response header, instead of overriding it + * Add setting parameter to decide the compression threshold (`gzipSizeThreshold`) + * Always skip compression on a `206 Partial Content` response + * Only catch `IOException`s and `ZlibException`s when using `GzipCacheFolder` + * Added documentation on the usage of `gzip` and its decision-making. + + ## 3.1.10.1 + + * Added documentation to `Accept Override` `Middleware` [#884](https://github.com/yesodweb/wai/pull/884) + + ## 3.1.10 + + * Fixed import linting mistake introduced in `3.1.9` ([#875)](https://github.com/yesodweb/wai/pull/875)) where `Network.Wai.Handler.CGI` wouldn't compile on Windows. [#881](https://github.com/yesodweb/wai/pull/880) + * Added `Select` to choose between `Middleware`s [#878](https://github.com/yesodweb/wai/pull/878) + + ## 3.1.9 + + * Cleanup and linting of most of `wai-extra` and refactoring the `gzip` middleware to keep it more DRY and to skip compression earlier if possible [#875](https://github.com/yesodweb/wai/pull/875) + * Added `HealthCheckEndpoint` `Middleware`s for health check [#877](https://github.com/yesodweb/wai/pull/877) + ------------------------------------------------------------------- Mon Jan 3 14:20:11 UTC 2022 - Peter Simons diff --git a/ghc-wai-extra.spec b/ghc-wai-extra.spec index f17b2fa..4ffe93f 100644 --- a/ghc-wai-extra.spec +++ b/ghc-wai-extra.spec @@ -19,7 +19,7 @@ %global pkg_name wai-extra %bcond_with tests Name: ghc-%{pkg_name} -Version: 3.1.8 +Version: 3.1.12.1 Release: 0 Summary: Provides some basic WAI handlers and middleware License: MIT @@ -56,6 +56,7 @@ BuildRequires: ghc-word8-devel ExcludeArch: %{ix86} %if %{with tests} BuildRequires: ghc-hspec-devel +BuildRequires: ghc-temporary-devel BuildRequires: ghc-zlib-devel %endif @@ -88,6 +89,10 @@ Clean a request path to a canonical form. Negotiate HTTP payload gzip compression. +* Health check endpoint + +Add an empty health check endpoint. + * HTTP Basic Authentication WAI Basic Authentication Middleware which uses Authorization header. @@ -110,6 +115,10 @@ Request logging middleware for development and production environments Rewrite request path info based on a custom conversion rules. +* Select + +Dynamically choose between Middlewares. + * Stream Files Convert ResponseFile type responses into ResponseStream type. diff --git a/wai-extra-3.1.12.1.tar.gz b/wai-extra-3.1.12.1.tar.gz new file mode 100644 index 0000000..b2cca83 --- /dev/null +++ b/wai-extra-3.1.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c672a246da981749d368c9e70f13183f987a07d3ca8f59a9fc9d8f2b18a844f9 +size 77596 diff --git a/wai-extra-3.1.8.tar.gz b/wai-extra-3.1.8.tar.gz deleted file mode 100644 index 954dda2..0000000 --- a/wai-extra-3.1.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b47c480afcb82934018a8891a5eb1ed741dad7785aba0dca9b631130406eaf35 -size 69950