Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-yesod-core for openSUSE:Factory checked in at 2024-07-22 17:16:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-yesod-core (Old) and /work/SRC/openSUSE:Factory/.ghc-yesod-core.new.17339 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-yesod-core" Mon Jul 22 17:16:57 2024 rev:21 rq:1188670 version:1.6.26.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-yesod-core/ghc-yesod-core.changes 2024-03-20 21:16:51.531581981 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-yesod-core.new.17339/ghc-yesod-core.changes 2024-07-22 17:18:13.917824430 +0200 @@ -1,0 +2,8 @@ +Wed Jul 17 15:22:06 UTC 2024 - Peter Simons <psim...@suse.com> + +- Update yesod-core to version 1.6.26.0. + ## 1.6.26.0 + + * Always apply jsAttributes to julius script blocks of body [#1836](https://github.com/yesodweb/yesod/pull/1836) + +------------------------------------------------------------------- Old: ---- yesod-core-1.6.25.1.tar.gz yesod-core.cabal New: ---- yesod-core-1.6.26.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-yesod-core.spec ++++++ --- /var/tmp/diff_new_pack.RUb4yl/_old 2024-07-22 17:18:14.501847731 +0200 +++ /var/tmp/diff_new_pack.RUb4yl/_new 2024-07-22 17:18:14.505847891 +0200 @@ -20,13 +20,12 @@ %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.6.25.1 +Version: 1.6.26.0 Release: 0 Summary: Creation of type-safe, RESTful web applications License: MIT URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-aeson-devel BuildRequires: ghc-aeson-prof @@ -157,7 +156,6 @@ %prep %autosetup -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++++++ yesod-core-1.6.25.1.tar.gz -> yesod-core-1.6.26.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-core-1.6.25.1/ChangeLog.md new/yesod-core-1.6.26.0/ChangeLog.md --- old/yesod-core-1.6.25.1/ChangeLog.md 2023-11-28 23:04:27.000000000 +0100 +++ new/yesod-core-1.6.26.0/ChangeLog.md 2024-07-17 17:21:07.000000000 +0200 @@ -1,5 +1,9 @@ # ChangeLog for yesod-core +## 1.6.26.0 + +* Always apply jsAttributes to julius script blocks of body [#1836](https://github.com/yesodweb/yesod/pull/1836) + ## 1.6.25.1 * Export the options that were created in 1.6.25.0 [#1825](https://github.com/yesodweb/yesod/pull/1825) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-core-1.6.25.1/src/Yesod/Core/Class/Yesod.hs new/yesod-core-1.6.26.0/src/Yesod/Core/Class/Yesod.hs --- old/yesod-core-1.6.25.1/src/Yesod/Core/Class/Yesod.hs 2023-08-23 18:39:25.000000000 +0200 +++ new/yesod-core-1.6.26.0/src/Yesod/Core/Class/Yesod.hs 2024-07-17 17:21:07.000000000 +0200 @@ -595,7 +595,7 @@ $maybe s <- jsLoc <script src="#{s}" *{jsAttrs}> $nothing - <script>^{jelper j} + <script *{jsAttrs}>^{jelper j} |] headAll = [hamlet| diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-core-1.6.25.1/test/YesodCoreTest/JsAttributes.hs new/yesod-core-1.6.26.0/test/YesodCoreTest/JsAttributes.hs --- old/yesod-core-1.6.25.1/test/YesodCoreTest/JsAttributes.hs 1970-01-01 01:00:00.000000000 +0100 +++ new/yesod-core-1.6.26.0/test/YesodCoreTest/JsAttributes.hs 2024-07-17 17:21:07.000000000 +0200 @@ -0,0 +1,37 @@ +{-# LANGUAGE QuasiQuotes, TypeFamilies, TemplateHaskell, MultiParamTypeClasses #-} +{-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE FlexibleInstances #-} +module YesodCoreTest.JsAttributes + ( specs + -- To avoid unused warning + , Widget + , resourcesApp + ) where + +import Test.Hspec + +import Yesod.Core +import Network.Wai.Test + +data App = App +mkYesod "App" [parseRoutes| +/ HeadR GET +|] +instance Yesod App where + jsAttributes _ = [("attr0", "a")] + +getHeadR :: Handler Html +getHeadR = defaultLayout $ do + addScriptRemote "load.js" + toWidget [julius|/*body*/|] + toWidgetHead [julius|/*head*/|] + +specs :: Spec +specs = describe "Test.JsAttributes" $ do + it "script in body gets attributes" $ runner App $ do + res <- request defaultRequest + assertBody "<!DOCTYPE html>\n<html><head><title></title><script>/*head*/</script></head><body><script src=\"load.js\"></script><script attr0=\"a\">/*body*/</script></body></html>" res + +runner :: YesodDispatch master => master -> Session () -> IO () +runner app f = toWaiApp app >>= runSession f + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-core-1.6.25.1/test/YesodCoreTest.hs new/yesod-core-1.6.26.0/test/YesodCoreTest.hs --- old/yesod-core-1.6.25.1/test/YesodCoreTest.hs 2023-08-23 18:39:25.000000000 +0200 +++ new/yesod-core-1.6.26.0/test/YesodCoreTest.hs 2024-07-17 17:21:07.000000000 +0200 @@ -17,6 +17,7 @@ import YesodCoreTest.Breadcrumb import qualified YesodCoreTest.WaiSubsite as WaiSubsite import qualified YesodCoreTest.Redirect as Redirect +import qualified YesodCoreTest.JsAttributes as JsAttributes import qualified YesodCoreTest.JsLoader as JsLoader import qualified YesodCoreTest.RequestBodySize as RequestBodySize import qualified YesodCoreTest.Json as Json @@ -51,6 +52,7 @@ parameterizedSiteTest WaiSubsite.specs Redirect.specs + JsAttributes.specs JsLoader.specs RequestBodySize.specs Json.specs diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-core-1.6.25.1/yesod-core.cabal new/yesod-core-1.6.26.0/yesod-core.cabal --- old/yesod-core-1.6.25.1/yesod-core.cabal 2023-11-28 23:04:27.000000000 +0100 +++ new/yesod-core-1.6.26.0/yesod-core.cabal 2024-07-17 17:21:07.000000000 +0200 @@ -1,5 +1,5 @@ name: yesod-core -version: 1.6.25.1 +version: 1.6.26.0 license: MIT license-file: LICENSE author: Michael Snoyman <mich...@snoyman.com> @@ -38,7 +38,7 @@ , conduit >= 1.3 , conduit-extra , containers >= 0.2 - , cookie >= 0.4.3 && < 0.5 + , cookie >= 0.4.3 && < 0.6 , deepseq >= 1.3 , entropy , fast-logger >= 2.2 @@ -142,6 +142,7 @@ other-modules: YesodCoreTest YesodCoreTest.Auth + YesodCoreTest.Breadcrumb YesodCoreTest.Cache YesodCoreTest.CleanPath YesodCoreTest.Header @@ -150,6 +151,7 @@ YesodCoreTest.ErrorHandling.CustomApp YesodCoreTest.Exceptions YesodCoreTest.InternalRequest + YesodCoreTest.JsAttributes YesodCoreTest.JsLoader YesodCoreTest.JsLoaderSites.Bottom YesodCoreTest.Json