Skip to content

Latest commit

 

History

History
240 lines (170 loc) · 9.5 KB

CHANGELOG.md

File metadata and controls

240 lines (170 loc) · 9.5 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

  • Add WASM support
  • Expose API for providing a custom Connect implementation.

0.13.1 - 2024-05-04

  • Update deadpool dependency to version 0.12
  • Add LICENSE-APACHE and LICENSE-MIT files to published crates

0.13.0 - 2024-04-01

  • Update deadpool dependency to version 0.11
  • Remove async_trait dependency
  • Bump up MSRV to 1.75

0.12.1 - 2023-12-18

  • Fix Config::url handling

0.12.0 - 2023-12-15

  • Add load_balance_hosts to Config struct.
  • Add hostaddr and hostaddrs to Config struct.
  • Add url field to Config struct. This enables parsing of connection URLs.

0.11.0 - 2023-09-26

  • BREAKING: Disconnect immediately from the database when dropping clients. This is considered a breaking change as in previous versions the connections would stick around until all queued queries were processed. This was considered a potential leak of resources. The Connection object is now tied to the lifetime of the ClientWrapper and dropped as soon as possible. The disconnect is not graceful and you might see error messages in the database log.
  • Update deadpool dependency to version 0.10
  • Bump up MSRV to 1.63 to match the one of tokio

0.10.5 - 2023-01-24

  • Fix infinite recursion in GenericClient

0.10.4 - 2023-01-16 (yanked)

  • Add GenericClient

0.10.3 - 2022-10-26

  • Make Transaction::statement_cache field public

0.10.2 - 2022-03-22

  • Export TargetSessionAttrs and ChannelBinding enums (part of Config struct)

0.10.1 - 2021-11-15

  • Config structs now implement Serialize

0.10.0 - 2021-10-18

  • Breaking: Replace config feature with serde (opted out by default)
  • Re-export deadpool::managed::Timeouts
  • Add Runtime parameter to Config::create_pool method
  • Remove redundant futures dependency

0.9.0 - 2021-06-01

  • Remove generic <T> parameter from Manager, Pool and Client types. This parameter was added by accident when deadpool switched to using associated types.

0.8.1 - 2021-06-01

  • Update tokio-postgres dependency to version 0.7.2 This crate depends on the GenericClient::client method which was added in tokio-postgres version 0.7.2.

0.8.0 - 2021-05-21

  • Do not detect unix domain socket paths at config creation.
  • Update config dependency to version 0.11
  • Remove deprecated from_env methods
  • Add Manager::statement_caches field which provides access to managing the statement cache for all clients.
  • Rename prepare to prepare_cached and prepare_typed to prepare_typed_cached. This makes the non-caching prepare methods available without having to dereference ClientWrapper or Transaction objects first.
  • Add rt_tokio_1 and rt_async-std_1 features
  • Enable RecyclingMethod::Fast by default

0.7.0 - 2020-12-26

  • Update tokio dependency to version 1
  • Update tokio-postgres dependency to version 0.7
  • Re-export deadpool::managed::PoolConfig
  • Add StatementCache::remove method

0.6.0 - 2020-11-04

  • Update tokio dependency to version 0.3
  • Update tokio-postgres dependency to version 0.6

0.5.6 - 2020-07-14

  • Add Config::new method
  • Add Client::build_transaction method which makes it possible to use the TransactionBuilder with the statement cache.
  • Add RecyclingMethod::Clean which works similar to DISCARD ALL but makes sure the statement cache is not rendered ineffective.
  • Add RecyclingMethod::Custom which allows to execute arbitary SQL when recycling connections.
  • Re-export tokio_postgres crate

0.5.5 - 2020-02-28

  • Deprecate Config::from_env
  • Add Manager::from_config, ManagerConfig and RecyclingMethod which makes it possible to specify how connections are recycled. The current default recycling method is Verified which is the same as before. The upcoming 0.6 release of this crate will change the default to Fast.

0.5.4 - 2020-01-26

  • Implement DerefMut for Transaction wrapper
  • Add transaction method to Transaction wrapper

0.5.3 - 2020-01-24

  • Add #[derive(Clone)] to Config struct
  • Make config module public

0.5.2 - 2020-01-18

  • Disable default-features for deadpool dependency

0.5.1 - 2020-01-17

  • Fix windows support

0.5.0 - 2020-01-16

  • Add support for config crate

0.4.3 - 2020-01-10

  • prepare and prepare_typed now accept a &self instead of &mut self which fixes support for pipelining.

0.4.2 - 2019-12-31

  • Add PoolError type alias

0.4.1 - 2019-12-29

  • Update to tokio-postgres 0.5.1
  • Add back DerefMut implementation for deadpool_postgres::Client which makes it compatible with code expecting &mut tokio_postgres::Client.
  • Add statement cache support for Client::prepare_typed and Transaction::prepare_typed.

0.4.0 - 2019-12-19

  • Rename Client struct to ClientWrapper
  • Add Client type alias

0.3.0 - 2019-12-13

  • Add StatementCache struct with the functions size and clear which are now accessible via Connection::statement_cache and Transaction::statement_cache.
  • Make recycling more robust by changing the Manager::recycle to a non consuming API.

0.2.3 - 2019-12-02

  • Add documentation for docs.rs
  • Improve example in README.md and crate root
  • Fix Transaction::commit and Transaction::rollback

0.2.2 - 2019-12-02

  • Update to tokio 0.2 and tokio-postgres 0.5.0-alpha.2

0.2.1 - 2019-11-18

  • deadpool_postgres::Client no longer implements DerefMut which was not needed anyways.
  • deadpool_postgres::Client.transaction now returns a wrapped transaction object which utilizes the statement cache of the wrapped client.

0.2.0 - 2019-11-18

  • First release