Releases: dcarbone/php-consul-api
v1.0.4: Allow nulls in middle of lists
Addresses #22. I doubt this impacts very many / any users, but mutating responses in this way was a bad idea either way.
v1.0.3: Uninitialized class var fixes
Addressing a few PHP 7.4 uninitialized class var issues.
v1.0.2: bugfixes
Improved serialization and fixes to catalog package and tests.
v1.0.0 - Rewrite
This release is comprised of over a year of off-and-on work.
The primary highlights are:
- This library now requires php 7.4+ to take advantage of object property type-hinting
- All methods now return an object rather than an array
- This object implements
\ArrayAccess
, so you may still use eitherlist()
or[]
to expand the response.
- This object implements
- Vastly slimmed down per-method complexity, making future maintenance and feature addition much easier
- Providing support for where-appropriate
json:"omitempty
andjson:"-"
functionality on models - Added many new types to various packages, and many new constants to the
Consul
type - Added php-cs-fixer to take the place of the old Definition tests, which were prohibitively tedious to maintain
There are almost assuredly bugs in this release. The usage tests I had before run, but they are not yet comprehensive. I will add more as I get time, and as always welcome input from people who'd like to chip in :)
0.6.4: WriteOptions bugfix
Addresses #19
0.6.3: KVClient Lock Bugfix
Fixing KVClient::acquire and release methods to properly pass KV value along with requests.
0.6.2.1: CAS Bugfix
Addressing #15, KVClient::cas
will now properly update the kv value, rather than nil'ing it out.
0.6.2: CAS Bugfix
This release addresses #15:
Values
class now implements\Iterator
and\ArrayAccess
KVClient::cas
andKVClient::deleteCAS
now properly check response bool- phpunit has been merged into single file and contents have been cleaned up.
Cleanup Release
This release contains zero functionality changes. Its aim is to reduce the exported package size by removing items contained in the .gitattributes file.
0.6.1: Minor cleanup and features
- Making both phpunit config files uniform - Adding new "ConsulUsageTest" class - Renaming "AbstractClient::$c" to "AbstractClient::$config" - Updating README slightly - The "Pretty" param in "QueryOptions" will now be output correctly - The "QueryMeta" object now supports "AddressTranslationEnabled"