Releases: datasage/api-tools
Release list
2.0.0
First major of this fork line. Everything below is a BC break relative to 1.9.1.
Removed the db-connected surface — DbConnectedResource, DbConnectedResourceAbstractFactory, TableGatewayAbstractFactory, the (already commented-out) abstract_factories registrations and the api-tools.db-connected sample config. This drops the direct requirements on laminas/laminas-db and laminas/laminas-hydrator; laminas-db leaves the install tree entirely, laminas-hydrator remains via other requirers.
Removed MongoConnectedListener and the alcaeus/mongo-php-adapter suggest. Not dead code: that shim provides MongoCollection on PHP 8, so the listener was instantiable for anyone who took the suggestion up.
Removed the ServiceManager v2 back-compat shims and migrated off the abandoned container-interop/container-interop to Psr\Container.
Constraints on sibling forks widened to accept their new majors.
1.9.1
Retired phpunit 10 and added a monthly dependabot configuration. Removed the tracked .coveralls.yml.
Doc-comment test metadata moved to attributes. @covers on a test method became a class-level #[CoversClass]: #[CoversMethod] targets classes, and placing it on a method aborts the entire phpunit run.
Development tooling now at phpunit ^11.0 || ^12.0 || ^13.0, psalm ^6.14, laminas-coding-standard ^3.1.
No runtime behaviour changes. The only src/ edits are #[Override] attributes and their imports, so this is a patch release.
1.9.0
Supported PHP
~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0 — adds 8.5, drops 8.1.
Dependency declarations fixed
Six mis-declared production dependencies. Three were in require-dev despite being used by src/; three were not declared at all.
| dependency | evidence | change |
|---|---|---|
laminas/laminas-db |
3 src/ classes |
require-dev → require ^2.22 |
laminas/laminas-paginator |
2 src/ classes |
require-dev → require ^2.21 |
laminas/laminas-stdlib |
2 src/ classes |
require-dev → require ^3.21 |
psr/container |
2 src/ classes |
added require ^1.1 || ^2.0 |
laminas/laminas-view |
src/Module.php uses Laminas\View\Model\JsonModel |
added require ^2.43 |
laminas/laminas-hydrator |
src/TableGatewayAbstractFactory.php uses HydratorInterface |
added require ^4.17 |
laminas-http and laminas-inputfilter were checked and are genuinely test-only, so they stay in require-dev with floors raised.
Other changes
- api-tools siblings moved to their 8.5-capable releases:
api-problem→^1.10,mvc-auth→^1.10,rest→^1.10,rpc→^1.10. laminas-mvc^3.0.2→^3.8plus adatasage/laminas-mvcVCS repository entry.- Removed an unused import from
config/module.config.php. Its only reference is inside a commented-outabstract_factoriesblock, so it had no effect; the newer slevomat standard flags it. vimeo/psalm^5→^6.14; baseline regenerated; one deadInternalMethodsuppression removed.- Removed 3 no-op
setAccessible()calls fromtest/, deprecated in 8.5. config.platform.php8.1.99 → 8.2.99.- CI:
.laminas-ci.jsonnow excludes doc linting instead of ignoring platform requirements; removedrelease-on-milestone-closed.yml.
No src/ changes.
CI green on 8.2, 8.3, 8.4 and 8.5 across locked, lowest and latest. 36 tests, 60 assertions.
Known issues, unchanged here
src/Model/MongoConnectedListener.phptakes aMongoCollectionconstructor parameter and referencesMongoIdandMongoException, all from the legacymongoextension removed in PHP 7. The class cannot be instantiated on any supported PHP — dead code, and a removal candidate. The same pattern exists inapi-tools-mvc-auth.src/Module.phpusesLaminas\View\Model\JsonModel, which laminas-view has deprecated. The same deprecation exists inapi-tools-rpc.