diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 406c610..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,13 +0,0 @@ -## v0.2.0.1 - -- Major fix: connecting via TCP on MacOS could fail completely. Thanks @luntain for the contribution. -- Performance materializing query results improved by ~17% -- Future-proofing for a future protocol change: accepting longer backend secret keys. - -## v0.2.0.0 - -- Fixed a bug where an asynchronous exception thrown at the right time could hide an `IrrecoverableHpgsqlError` when using `withTransaction`. Thank you Yuras for the report. -- SCRAM-SHA-256 authentication implemented. -- Added `connectionIsClosed` function. -- `resetConnectionState` made much more thorough, to the image of the `DISCARD ALL` statement. -- `pipelineMay` and `pipelineMayWith` publicly exported. diff --git a/hpgsql-simple-compat/hpgsql-simple-compat.cabal b/hpgsql-simple-compat/hpgsql-simple-compat.cabal index 9c37e26..1523a76 100644 --- a/hpgsql-simple-compat/hpgsql-simple-compat.cabal +++ b/hpgsql-simple-compat/hpgsql-simple-compat.cabal @@ -1,6 +1,6 @@ cabal-version: 2.0 name: hpgsql-simple-compat -version: 0.2.0.0 +version: 0.3.0 synopsis: Fork of postgresql-simple implemented with hpgsql instead of postgresql-libpq. description: This is a fork of postgresql-simple that tries to preserve its API as much as possible, but @@ -97,7 +97,7 @@ library , text >= 2.0 && < 2.2 , aeson >= 2.2 && < 2.3 , attoparsec >= 0.14 && < 0.15 - , hpgsql >= 0.2 && < 0.3 + , hpgsql >= 0.3 && < 0.4 , hashable >= 1.5 && < 1.6 , mtl >= 2.3 && < 2.4 , time-compat >= 1.9 && < 1.10 diff --git a/hpgsql/CHANGELOG.md b/hpgsql/CHANGELOG.md new file mode 100644 index 0000000..8cd9225 --- /dev/null +++ b/hpgsql/CHANGELOG.md @@ -0,0 +1,28 @@ +## v0.3.0 +- Support GHC 9.12 +- Support OverloadedRecordDot inside the `sql` quasiquoter +- Fix the lack of type-checking query fields when using RowDecoderMonadic +- Also when using RowDecoderMonadic, a previously cryptic error message has been improved +- Performance materializing query results improved by ~23% in some benchmarks +- Binary COPY made ~4.3% faster +- Users can supply non-default connection options, including the minimum socket recv size +- Dropped dependencies cereal and transformers +- Replaced dependency haskell-src-meta with ghc-lib-parser + +To support OverloadedRecordDot in the `sql` quasiquoter, we have a brand new implementation of a Haskell expression parser instead of using haskell-src-meta's. Parts of the Haskell language might no longer be supported as parameters in the quasiquoter, but the more commonly used ones should be there, and error messages should be helpful to guide you in case you run into an unsupported case. + +Thank you Brandon Chinn and Nick Ivanych for your contributions. + +## v0.2.0.1 + +- Major fix: connecting via TCP on MacOS could fail completely. Thanks @luntain for the contribution. +- Performance materializing query results improved by ~17% +- Future-proofing for a future protocol change: accepting longer backend secret keys. + +## v0.2.0.0 + +- Fixed a bug where an asynchronous exception thrown at the right time could hide an `IrrecoverableHpgsqlError` when using `withTransaction`. Thank you Yuras for the report. +- SCRAM-SHA-256 authentication implemented. +- Added `connectionIsClosed` function. +- `resetConnectionState` made much more thorough, to the image of the `DISCARD ALL` statement. +- `pipelineMay` and `pipelineMayWith` publicly exported. diff --git a/hpgsql/hpgsql.cabal b/hpgsql/hpgsql.cabal index d20fb9c..ae973a5 100644 --- a/hpgsql/hpgsql.cabal +++ b/hpgsql/hpgsql.cabal @@ -1,7 +1,7 @@ cabal-version: 2.0 name: hpgsql -version: 0.2.0.1 +version: 0.3.0 synopsis: Pure Haskell PostgreSQL driver (no libpq) description: hpgsql is a pure Haskell implementation of a PostgreSQL driver category: Database @@ -12,6 +12,7 @@ maintainer: mzabani@gmail.com copyright: 2026 Marcelo Zabani license: BSD3 license-file: LICENSE +extra-doc-files: CHANGELOG.md build-type: Simple tested-with: GHC ==9.6.7