Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-persistent for openSUSE:Factory checked in at 2021-05-11 23:04:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-persistent (Old) and /work/SRC/openSUSE:Factory/.ghc-persistent.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-persistent" Tue May 11 23:04:10 2021 rev:27 rq:892189 version:2.13.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-persistent/ghc-persistent.changes 2021-04-26 16:40:33.966168365 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-persistent.new.2988/ghc-persistent.changes 2021-05-11 23:04:15.896929064 +0200 @@ -1,0 +2,112 @@ +Sat May 8 10:05:44 UTC 2021 - psim...@suse.com + +- Update persistent to version 2.13.0.0 revision 2. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Fri May 7 09:28:38 UTC 2021 - psim...@suse.com + +- Update persistent to version 2.13.0.0 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Thu May 6 09:11:03 UTC 2021 - psim...@suse.com + +- Update persistent to version 2.13.0.0. + ## 2.13.0.0 + + * [#1244](https://github.com/yesodweb/persistent/pull/1244) + * Implement config for customising the FK name + * [#1252](https://github.com/yesodweb/persistent/pull/1252) + * `mkMigrate` now defers to `mkEntityDefList` and `migrateModels` instead of + fixing the foreign key references itself. + * `mkSave` was deprecated - the function did not fix foreign key references. + Please use `mkEntityDefList` instead. + * `EntityDef` will now include fields marked `MigrationOnly` and + `SafeToRemove`. Beforehand, those were filtered out, and `mkMigrate` + applied. The function `getEntityFields` wll only return fields defined on + the Haskell type - for all columns, see `getEntityFieldsDatabase`. + * [#1225](https://github.com/yesodweb/persistent/pull/1225) + * The fields and constructor for `SqlBackend` are no longer exported by + default. They are available from an internal module, + `Database.Persist.Sql.Types.Internal`. Breaking changes from `Internal` + modules are not reflected in the major version. This will allow us to + release new functionality without breaking your code. It's recommended to + switch to using the smart constructor functions and setter functions that + are now exported from `Database.Persist.Sql` instead. + * A new API is available for constructing and using a `SqlBackend`, provided + in `Database.Persist.SqlBackend`. Instead of using the `SqlBackend` + directly, use `mkSqlBackend` and the datatype `MkSqlBackendArgs`. The + `MkSqlBackendArgs` record has the same field names as the `SqlBackend`, so + the translation is easy: + ```diff + - SqlBackend + + mkSqlBackend MkSqlBackendArgs + { connInsertSql = ... + , connCommit = ... + , connEscapeFieldName = ... + , connEscapeTableName = ... + , etc + } + ``` + Some fields were omitted in `MkSqlBackendArgs`. These fields are + *optional* - they provide enhanced or backend-specific functionality. For + these, use the setter functions like `setConnUpsertSql`. + * Previously hidden modules are now exposed under the `Internal` namespace. + * The `connLimitOffset` function used to have a `Bool` parameter. This + parameter is unused and has been removed. + * [#1234](https://github.com/yesodweb/persistent/pull/1234) + * You can now customize the default implied ID column. See the documentation + in `Database.Persist.ImplicitIdDef` for more details. + * Moved the various `Name` types into `Database.Persist.Names` + * Removed the `hasCompositeKey` function. See `hasCompositePrimaryKey` and + `hasNaturalKey` as replacements. + * The `EntityDef` constructor and field labels are not exported by default. + Get those from `Database.Persist.EntityDef.Internal`, but you should + migrate to the getters/setters in `Database.Persist.EntityDef` as you can. + * Added the `Database.Persist.FieldDef` and + `Database.Persist.FieldDef.Internal` modules. + * The `PersistSettings` type was made abstract. Please migrate to the + getters/setters defined in that `Database.Persist.Quasi`, or use + `Database.Persist.Quasi.Internal` if you don't mind the possibility of + breaking changes. + * Add the `runSqlCommand` function for running arbitrary SQL during + migrations. + * Add `migrateModels` function for a TH-free migration facility. + * [#1253](https://github.com/yesodweb/persistent/pull/1253) + * Add `discoverEntities` to discover instances of the class and return their + entity definitions. + * [#1250](https://github.com/yesodweb/persistent/pull/1250) + * The `mpsGeneric` function has been deprecated. If you need this + functionality, please comment with your needs on the GitHub issue tracker. + We may un-deprecate it, or we may provide a new and better means of + facilitating a solution to your problem. + * [#1255](https://github.com/yesodweb/persistent/pull/1255) + * `mkPersist` now checks to see if an instance already exists for + `PersistEntity` for the inputs. + + ## 2.12.1.2 + + * [#1258](https://github.com/yesodweb/persistent/pull/1258) + * Support promoted types in Quasi Quoter + * [#1243](https://github.com/yesodweb/persistent/pull/1243) + * Assorted cleanup of TH module + * [#1242](https://github.com/yesodweb/persistent/pull/1242) + * Refactor setEmbedField to use do notation + * [#1237](https://github.com/yesodweb/persistent/pull/1237) + * Remove nonEmptyOrFail function from recent tests + * [#1256](https://github.com/yesodweb/persistent/pull/1256) + * The QuasiQuoter has been refactored and improved. + * You can now use `mkPersistWith` to pass in a list of pre-existing + `EntityDef` to improve foreign key detection and splitting up models + across multiple modules. + * The `entityId` field now returns an `EntityIdDef`, which specifies what + the ID field actually is. This is a move to better support natural keys. + * Several types that had lists have been refactored to use nonempty lists to + better capture the semantics. + * `mkDeleteCascade` is deprecated. Please use the Cascade behavior directly + on fields. + * You can use `Key Foo` and `FooId` interchangeably in fields. + * Support for GHC < 8.4 dropped. + +------------------------------------------------------------------- Old: ---- persistent-2.12.1.1.tar.gz New: ---- persistent-2.13.0.0.tar.gz persistent.cabal ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-persistent.spec ++++++ --- /var/tmp/diff_new_pack.DcawKx/_old 2021-05-11 23:04:16.388926819 +0200 +++ /var/tmp/diff_new_pack.DcawKx/_new 2021-05-11 23:04:16.392926801 +0200 @@ -19,12 +19,13 @@ %global pkg_name persistent %bcond_with tests Name: ghc-%{pkg_name} -Version: 2.12.1.1 +Version: 2.13.0.0 Release: 0 Summary: Type-safe, multi-backend data serialization 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/2.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-aeson-devel BuildRequires: ghc-attoparsec-devel @@ -35,6 +36,7 @@ BuildRequires: ghc-containers-devel BuildRequires: ghc-fast-logger-devel BuildRequires: ghc-http-api-data-devel +BuildRequires: ghc-lift-type-devel BuildRequires: ghc-monad-logger-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-path-pieces-devel @@ -56,6 +58,7 @@ %if %{with tests} BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-hspec-devel +BuildRequires: ghc-quickcheck-instances-devel BuildRequires: ghc-shakespeare-devel %endif @@ -75,6 +78,7 @@ %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++++++ persistent-2.12.1.1.tar.gz -> persistent-2.13.0.0.tar.gz ++++++ ++++ 13135 lines of diff (skipped) ++++++ persistent.cabal ++++++ name: persistent version: 2.13.0.0 x-revision: 2 license: MIT license-file: LICENSE author: Michael Snoyman <mich...@snoyman.com> maintainer: Michael Snoyman <mich...@snoyman.com>, Greg Weber <g...@gregweber.info> synopsis: Type-safe, multi-backend data serialization. description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/persistent>. category: Database, Yesod stability: Stable cabal-version: >= 1.10 build-type: Simple homepage: http://www.yesodweb.com/book/persistent bug-reports: https://github.com/yesodweb/persistent/issues extra-source-files: ChangeLog.md README.md library build-depends: base >= 4.11.1.0 && < 4.15 , aeson >= 1.0 , attoparsec , base64-bytestring , blaze-html >= 0.9 , bytestring >= 0.10 , conduit >= 1.2.12 , containers >= 0.5 , fast-logger >= 2.4 , http-api-data >= 0.3 , lift-type >= 0.1.0.0 && < 0.2.0.0 , monad-logger >= 0.3.28 , mtl , path-pieces >= 0.2 , resource-pool >= 0.2.3 , resourcet >= 1.1.10 , scientific , silently , template-haskell >= 2.13 && < 2.17 , text >= 1.2 , th-lift-instances >= 0.1.14 && < 0.2 , time >= 1.6 , transformers >= 0.5 , unliftio , unliftio-core , unordered-containers , vector default-extensions: FlexibleContexts , MultiParamTypeClasses , OverloadedStrings , TypeFamilies exposed-modules: Database.Persist Database.Persist.Types Database.Persist.Names Database.Persist.PersistValue Database.Persist.EntityDef Database.Persist.EntityDef.Internal Database.Persist.FieldDef Database.Persist.FieldDef.Internal Database.Persist.ImplicitIdDef Database.Persist.ImplicitIdDef.Internal Database.Persist.TH Database.Persist.Quasi Database.Persist.Quasi.Internal Database.Persist.Sql Database.Persist.Sql.Util Database.Persist.Sql.Types.Internal Database.Persist.SqlBackend Database.Persist.SqlBackend.Internal Database.Persist.SqlBackend.Internal.InsertSqlResult Database.Persist.SqlBackend.Internal.IsolationLevel Database.Persist.SqlBackend.Internal.Statement Database.Persist.SqlBackend.Internal.MkSqlBackend Database.Persist.Class Database.Persist.Class.DeleteCascade Database.Persist.Class.PersistEntity Database.Persist.Class.PersistQuery Database.Persist.Class.PersistUnique Database.Persist.Class.PersistConfig Database.Persist.Class.PersistField Database.Persist.Class.PersistStore other-modules: Database.Persist.Types.Base Database.Persist.Sql.Migration Database.Persist.Sql.Internal Database.Persist.Sql.Types Database.Persist.Sql.Raw Database.Persist.Sql.Run Database.Persist.Sql.Class Database.Persist.Sql.Orphan.PersistQuery Database.Persist.Sql.Orphan.PersistStore Database.Persist.Sql.Orphan.PersistUnique -- These modules only make sense for compilers with access to DerivingVia if impl(ghc >= 8.6.1) exposed-modules: Database.Persist.Compatible other-modules: Database.Persist.Compatible.Types Database.Persist.Compatible.TH ghc-options: -Wall default-language: Haskell2010 test-suite test type: exitcode-stdio-1.0 main-is: main.hs build-depends: base >= 4.9 && < 5 , aeson , attoparsec , base64-bytestring , blaze-html , bytestring , conduit , containers , fast-logger , hspec >= 2.4 , http-api-data , monad-logger , mtl , path-pieces , persistent , QuickCheck , quickcheck-instances >= 0.3 , resource-pool , resourcet , scientific , shakespeare , silently , template-haskell >= 2.4 , text , th-lift-instances , time , transformers , unliftio , unliftio-core , unordered-containers , vector hs-source-dirs: test/ ghc-options: -Wall default-extensions: FlexibleContexts , MultiParamTypeClasses , OverloadedStrings , TypeFamilies other-modules: Database.Persist.ClassSpec Database.Persist.PersistValueSpec Database.Persist.QuasiSpec Database.Persist.TH.DiscoverEntitiesSpec Database.Persist.TH.EmbedSpec Database.Persist.TH.ForeignRefSpec Database.Persist.TH.ImplicitIdColSpec Database.Persist.TH.JsonEncodingSpec Database.Persist.TH.MigrationOnlySpec Database.Persist.TH.MultiBlockSpec Database.Persist.TH.MultiBlockSpec.Model Database.Persist.TH.OverloadedLabelSpec Database.Persist.TH.SharedPrimaryKeyImportedSpec Database.Persist.TH.SharedPrimaryKeySpec Database.Persist.THSpec Database.Persist.TH.ToFromPersistValuesSpec TemplateTestImports default-language: Haskell2010 source-repository head type: git location: git://github.com/yesodweb/persistent.git benchmark persistent-th-bench ghc-options: -O2 type: exitcode-stdio-1.0 main-is: Main.hs hs-source-dirs: bench build-depends: base , persistent , criterion , deepseq , deepseq-generics , file-embed , text , template-haskell other-modules: Models default-language: Haskell2010