Skip to content

Releases

5.4.1

Choose a tag to compare

@datasage datasage released this 07 Oct 00:59
87536e8

Declares PHP 8.6 support. The php constraint gains ~8.6.0; the floor is unchanged. CI now runs 8.6 with PHP platform requirements ignored there, because upstream laminas packages still cap PHP at ~8.5.0.

No src/ changes. Under 8.6.0RC2 no deprecation originates in this package.

CI: config.platform.ext-mongodb moves to 2.4.0 after the mongodb/mongodb < 2.4.2 advisory. The lowest-dependencies job requires ODM ^2.17.0, the first release that handles the SearchNotSupportedException thrown by mongodb/mongodb 2.4. composer.json keeps its permissive ^2.5.2, so consumers on the ext-mongodb 1.x line are unaffected.

5.4.0

Choose a tag to compare

@datasage datasage released this 04 Aug 18:15

First release of the datasage fork, matching DoctrineModule 6.4 and DoctrineORMModule 6.4.

Supported PHP: 8.2 – 8.5.

Cache: PSR-6

Requires doctrine/doctrine-module ^6.4.1, whose doctrine.cache.* services are now Psr\Cache\CacheItemPoolInterface. ConfigurationFactory previously wrapped that service with Doctrine\Common\Cache\Psr6\CacheAdapter::wrap(), which expects a Doctrine\Common\Cache\Cache and would now fail with a TypeError — the pool is passed to Configuration::setMetadataCache() unchanged. doctrine/cache is dropped.

setMetadataCache() has accepted a PSR-6 pool since mongodb-odm 2.2, so this works across every supported ODM version.

Annotations removed

The test document is mapped with attributes and the driver config uses AttributeDriver (shipped by mongodb-odm since 2.4). The unused ExtraAnnotation asset — the last doctrine/annotations reference — is deleted.

Removed

MongoLoggerCollector, its options, factory and toolbar view script. These were the only parts of src/ using laminas-mvc, which has no PHP 8.5 release on any branch, and they only ever functioned alongside laminas/laminas-developer-tools — itself capped at PHP 8.4. Both dependencies are dropped.

Logging\DebugStack and Logging\EchoLogger are kept: they implement the ODM's CommandLoggerInterface and are useful independently of the toolbar.

MongoDB compatibility

doctrine/mongodb-odm deliberately keeps its permissive ^2.5.2 range. That covers both:

  • 2.7.1 + ext-mongodb 1.x — still supports MongoDB server 3.6
  • 2.16 + ext-mongodb 2.x — required for PHP 8.5

so composer resolves per environment and no floor is imposed on consumers. Only config.platform.ext-mongodb was raised, which affects this repository's CI and nothing downstream.

⚠️ CI therefore exercises the ext-mongodb 2.x line only. The 1.x line is not covered; adding a driver-line matrix dimension would close that gap.

Other dependencies

symfony/console and symfony/var-dumper allow ^8.0; laminas-servicemanager allows ^4.0; doctrine/persistence (dev) allows ^4.0.

Upgrading

Install alongside doctrine/doctrine-module ^6.4.1 using a repositories entry pointing at the fork. Applications using the developer-tools Mongo panel or an AnnotationDriver must adjust.