Skip to content

Releases: datasage/api-tools

2.0.0

Choose a tag to compare

@datasage datasage released this 10 Aug 23:16
fe2efd6

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

Choose a tag to compare

@datasage datasage released this 08 Aug 15:37
8d49159

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

Choose a tag to compare

@datasage datasage released this 05 Aug 22:09
fb92dd0

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.8 plus a datasage/laminas-mvc VCS repository entry.
  • Removed an unused import from config/module.config.php. Its only reference is inside a commented-out abstract_factories block, so it had no effect; the newer slevomat standard flags it.
  • vimeo/psalm ^5 → ^6.14; baseline regenerated; one dead InternalMethod suppression removed.
  • Removed 3 no-op setAccessible() calls from test/, deprecated in 8.5.
  • config.platform.php 8.1.99 → 8.2.99.
  • CI: .laminas-ci.json now excludes doc linting instead of ignoring platform requirements; removed release-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.php takes a MongoCollection constructor parameter and references MongoId and MongoException, all from the legacy mongo extension removed in PHP 7. The class cannot be instantiated on any supported PHP — dead code, and a removal candidate. The same pattern exists in api-tools-mvc-auth.
  • src/Module.php uses Laminas\View\Model\JsonModel, which laminas-view has deprecated. The same deprecation exists in api-tools-rpc.

1.8.1

Choose a tag to compare

@datasage datasage released this 23 Dec 14:58
0e4debc

What's Changed

Full Changelog: 1.8.0...1.8.1

1.8.0

Choose a tag to compare

@datasage datasage released this 21 Dec 17:22
9098f0a

What's Changed

New Contributors

Full Changelog: https://github.com/datasage/api-tools/commits/1.8.0