Skip to content

Commit

Permalink
Prepare release 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sad-spirit committed May 12, 2023
1 parent d1f0408 commit 865f6f1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## [2.2.0] - 2023-05-12

### Changed
* Code that deals with loading type data from DB / cache and mapping type names to type OIDs was extracted
from `DefaultTypeConverterFactory` into a new `CachedTypeOIDMapper` class implementing a new `TypeOIDMapper` interface.
`DefaultTypeConverterFactory` accepts an implementation of that interface via `setOIDMapper()` method, defaulting
to the old implementation.

### Deprecated
* `setCompositeTypesCaching()` and `getCompositeTypesCaching()` methods of `DefaultTypeConverterFactory`.
While they will continue to work if an instance of `CachedTypeOIDMapper` is used by the factory for OID mapping,
their usage should be switched to the same methods of `CachedTypeOIDMapper` instance:
```php
// before
$factory->setCompositeTypesCaching(true);
// after
$factory->getOIDMapper()->setCompositeTypesCaching(true);
```

## [2.1.1] - 2023-05-10

### Fixed
Expand Down Expand Up @@ -191,3 +210,4 @@ Initial release on GitHub
[2.0.0]: https://github.com/sad-spirit/pg-wrapper/compare/v2.0.0-beta...v2.0.0
[2.1.0]: https://github.com/sad-spirit/pg-wrapper/compare/v2.0.0...v2.1.0
[2.1.1]: https://github.com/sad-spirit/pg-wrapper/compare/v2.1.0...v2.1.1
[2.2.0]: https://github.com/sad-spirit/pg-wrapper/compare/v2.1.1...v2.2.0

0 comments on commit 865f6f1

Please sign in to comment.