Releases: caseyamcl/phpoaipmh
Releases · caseyamcl/phpoaipmh
Version 3.3.2
Version 3.3.1
Added
- Tests for PHP 8.0, 8.1, and 8.2
Removed
- Tests for PHP 5.5 - 7.1
Changed
- Upgraded phpUnit to v8.5
Fixed
- Prevent deprecation errors on PHP8 and newer (thanks @tikaszvince)
- Ensure that other time zones besides UTC are converted to UTC (thanks @rudolfbyker)
Version 3.3
Changed
- Renamed method:
retrieveBatch
->retrieveNextBatch
- Exposed
RecordIterator::retrieveNextBatch
as a public method
Added
- Parameter in
reset
method to optionally preserve the resumptionToken - GitHub Actions build status badge in
README.md
- Automatic SVG badge generation for code coverage
Removed
.travis.yml
build support (switched to Github Actions)
Version 3.2
Changed
- Added PHPUnit Cache file to
.gitignore
- Upgraded to PHPUnit v5
Added
- Ensured support for Guzzle v7
.travis.yml
now includes tests for more modern versions of PHP (not PHP v7.4 though)
Fixed
- BUGFIX:
RecordIterator::getTotalRecordCount()
now returns count for single-page requests (thanks @asmecher!) - Minor code adjustments
Version 3.1.1
Changed
- Implement PSR-12 - mostly (require
squizlabs/php_codesniffer: "^3.5"
incomposer.json
)
Fixed
- Fix compatibility with PHP 7.4 by removing curly bracket usage (thanks @danez)
Version 3.1
Added
- Support for Symfony v5 in
composer.json
Security
- Addressed CVE-2019-10910 by requiring Symfony DI v3.4.26 or newer
Removed
- Removed build test for PHP v5.5
Version 3.0
See the UPGRADE GUIDE for notes.
Changed
- Upgraded from PSR-0 to PSR-4
- Require PHP5.5 or newer (hint: upgrade to PHP7, since PHP5 support is being deprecated)
- Change all
DateTime
references and type-hints toDateTimeInterface
- Removed automatic 'short name' class detection in
OaiPmhException
- Removed
bootstrap.php
from tests directory, in favor of simply using composer autoloader - Renamed
httpClient
variables and proprties tohttpAdapter
for consistency in naming - Improved README and documentation
Added
- Added
composer test
command - Automatic code coverage reports into
build
directory when - Object graph methods:
ClientInterface::getHttpAdapter()
andRecordIterator::getClient()
- Added PHP CodeSniffer to auto-correct PSR-2 issues
- Additional tests (
testGetRecordWithNamespaces
)
Removed
- Removed
Endpoint::setUrl()
andClient::setUrl()
methods. URL in client should be immutable. If you need to
change the Endpoint URL, best practice is to create a new Client and Endpoint instance. - Removed
EndpointCurlTest
that performed HTTP calls against an actual OAI-PMH endpoint (slow and not useful) - Removed
RecordIterator::getTotalRecordsInCollection()
in favor ofRecordIterator::getTotalRecordCount()
Version 2.6.1
Changed
- Added Travis CI tests for PHP 7.2
- Minor tweaks to
composer.json
dependencies
Fixed
- Ensure support for Symfony 4.x libraries in
composer.json
- Fixed
RcordIterator
bug for PHP 7.2 (thanks @mengidd)
Version 2.6
Added
- Added
Endpoint::build($url)
constructor for convenience - Added Travis CI tests for PHP 7.0 and 7.1
- Documentation for
RecordIterator::getTotalRecordCount()
RecordIterator::getExpirationDate()
method to get record set expiration, if it is supplied by the serverRecordIteratorInterface
andClientInterface
, and updated method signatures
Changed
- Added Symfony v3 library compatibility in
composer.json
- Made Guzzle v6 the default development dependency (v5 still supported)
- Updated and fixed a whole bunch of stuff in the README file
- Changed constructor signatures to use new interfaces instead of concrete classes
Deprecated
- Deprecated
RecordIterator::getTotalRecordsInCollection()
in favor ofRecordIterator::getTotalRecordCount()
Endpoint::setUrl()
andClient::setUrl()
. These should be set in constructor and be immutable. If URL needs
to change, simply create a new instance.
Removed
- Removed tests for PHP v5.4 in Travis CI. It should still work, but is no longer
officially supported.
Version 2.5.1
Fixed
- Fixed issue where XML namespace settings get lost in the iterator (thanks @vbuch)