Skip to content

Releases: kununu/data-fixtures

Support only PHP 8.3

18 Sep 08:29
c41d2df
Compare
Choose a tag to compare

BREAKING CHANGES

  • Only support PHP 8.3
    - Make classes read-only when possible
    • Add types to constants - Upgrade PHPUnit to v11.3
      • Use static versions of asserts and expectations of invocations
    • Change CI pipeline to use PHP 8.3
  • Changes to AbstractFileLoaderFixture:
    • Add LoadMode enumeration to define load modes of files
    • Change getLoadMode to return a LoadMode enumeration value instead of a string
    • Change derived classes to conform with new getLoadMode definition
  • Changes to ConnectionPurger:
    • Add PurgeMode enumeration to define purge modes
    • Remove setPurgeMode and getPurgeMode
      • The purge mode must be set in the constuctor with a PurgeMode enumeration value (which defaults to PurgeMode::Delete)
    • Remove InvalidConnectionPurgeModeException
  • Update documentation

Make even more properties read-only

09 Apr 10:17
bd9ed8d
Compare
Choose a tag to compare

Changes

  • Following the update to >= PHP 8.1 only, make even more properties read-only
  • Update ramsey/composer-install to v3 on github actions

Fix building error message in ElasticsearchFileFixture

01 Mar 17:13
236ec0e
Compare
Choose a tag to compare
  • Fix the error message that is sent with the LoadFailedException on ElasticsearchFileFixture if $throwOnFail parameter is true and errors occur during the bulk insertion to Elasticsearch.

Drop support for PHP 8.0 and doctrine/dbal 2.x

27 Feb 16:09
a1f549d
Compare
Choose a tag to compare

BREAKING CHANGES

  • Remove support for PHP 8.0
  • Upgrade to only use doctrine/dbal:^3.8
  • Remove code supporting version 2.x of doctrine/dbal
  • Use Symfony 6.4 components for development
  • Rename classes/interfaces that had "ElasticSearch" to "Elasticsearch"
  • ElasticsearchFixtureInterface::load now has an extra optional parameter $throwOnFail
  • Upgrade to PHPUnit 10.5
  • Fix tests
  • Update documentation

Update continuous integration components

05 Jan 16:06
b8d56ca
Compare
Choose a tag to compare

What's Changed

No code changes

Introduce body validator for HttpClient

04 Jan 10:31
351e114
Compare
Choose a tag to compare

What's Changed

Full Changelog: v10.1.0...v10.2.0

Use database platform instead of driver instance on DBAL >= 3.x

01 Sep 15:09
6c61bf9
Compare
Choose a tag to compare

What's Changed

  • Use database platform instead of driver instance so that the correct foreign key checks statement is determined even if driver is wrapped in a middleware (by @samuel-nogueira-kununu in #35)

New Contributors

Full Changelog: v10.0.0...v10.1.0

Drop support for PHP 7.x

27 Feb 11:32
849575b
Compare
Choose a tag to compare

Breaking changes

  • Drop support for PHP 7.x
  • Change InitializableFixtureInterface by typing the $args parameter of initializeFixture method to mixed
  • Change LoaderInterface by typing the $args parameter of registerInitializableFixture method to mixed
  • Add mixed as return type of ElasticSearchFixtureTrait::getDocumentIdForBulkIndexation

Fix Elasticsearch fixtures doc type to support older versions of Elasticsearch in bulk insert mode

06 Jan 13:11
617c954
Compare
Choose a tag to compare
  • Fix Elasticsearch fixtures doc type to support older versions of Elasticsearch in bulk insert mode

Add prepareDocument method to Elasticsearch fixtures

27 Dec 09:04
9de6bbf
Compare
Choose a tag to compare
  • Add prepareDocument method to Elasticsearch fixtures to allow to change document before sending it to Elasticsearch