Skip to content

Releases: caseyamcl/phpoaipmh

Version 3.3.1

27 Jan 17:43
Compare
Choose a tag to compare

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

21 Dec 15:51
Compare
Choose a tag to compare

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

13 Sep 16:19
Compare
Choose a tag to compare

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

30 Mar 16:57
Compare
Choose a tag to compare

Changed

  • Implement PSR-12 - mostly (require squizlabs/php_codesniffer: "^3.5" in composer.json)

Fixed

  • Fix compatibility with PHP 7.4 by removing curly bracket usage (thanks @danez)

Version 3.1

14 Dec 15:52
Compare
Choose a tag to compare

Added

  • Support for Symfony v5 in composer.json

Security

Removed

  • Removed build test for PHP v5.5

Version 3.0

15 Oct 18:11
Compare
Choose a tag to compare

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 to DateTimeInterface
  • 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 to httpAdapter 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() and RecordIterator::getClient()
  • Added PHP CodeSniffer to auto-correct PSR-2 issues
  • Additional tests (testGetRecordWithNamespaces)

Removed

  • Removed Endpoint::setUrl() and Client::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 of RecordIterator::getTotalRecordCount()

Version 2.6.1

07 Mar 17:49
Compare
Choose a tag to compare

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

30 Jul 02:24
Compare
Choose a tag to compare

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 server
  • RecordIteratorInterface and ClientInterface, 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 of RecordIterator::getTotalRecordCount()
  • Endpoint::setUrl() and Client::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

18 Sep 00:45
Compare
Choose a tag to compare

Fixed

  • Fixed issue where XML namespace settings get lost in the iterator (thanks @vbuch)

Version 2.5

26 Jul 14:03
Compare
Choose a tag to compare

Added

  • Added new parameter to Phpoaipmh\EndpointInterface and Phpoaipmh\RecordIterator to allow passing resumption token (thanks @sblommaert)

Fixed

  • Fixed example OAI URL in example implementation code