Skip to content

Update all third-party dependencies to latest - #6

Merged
kibotu merged 1 commit into
mainfrom
chore/dependency-updates
Nov 18, 2026
Merged

kibotu merged 1 commit into
mainfrom
chore/dependency-updates

Conversation

@kibotu

@kibotu kibotu commented Nov 18, 2026

Copy link
Copy Markdown
Owner

What

Every third-party dependency in the repo, bumped to the newest published version.

Android — one coordinate was behind: FontAwesomeCompose 1.0.0 → 1.1.0. The other 57 catalog entries already matched the newest release (AGP 9.5.1, Kotlin 2.4.21, Compose BOM 2026.09.00, Ktor 3.6.1, Firebase BOM 35.2.0, Gradle 9.9.1).

Backend — six direct packages and both dev tools:

package from to
slim/psr7 1.8.0 1.8.1
slim/slim 4.15.1 4.15.3
embed/embed 4.4.17 4.6.2
enshrined/svg-sanitize 0.22.0 1.1.1
firebase/php-jwt 6.11.1 7.2.2
symfony/yaml 7.4.1 8.1.11
phpstan/phpstan 2.1.40 2.3.6
phpunit/phpunit 11.5.50 13.4.7

Transitive drift comes along in composer.lock (nikic/fast-route, symfony/polyfill-ctype, composer/ca-bundle). The php floor moves to >=8.4.1, which is what symfony/yaml 8.1 and PHPUnit 13.4 require.

Python — no lockfiles, so uv already resolved the latest at run time; the declared floors were simply stale. requests 2.31.0 → 2.34.2, urllib3 2.0.0 → 2.8.0, trafilatura 2.0.0 → 2.3.1, pyyaml 6.0.0 → 6.0.3, in both pyproject.toml files, both requirements.txt files and the four PEP 723 headers.

Review focus

firebase/php-jwt 7 is the one that can bite in production. It hard-enforces a 32-byte minimum for HS256 keys; JWT::encode now throws DomainException: Provided key is too short. secrets.yml.example already documents a 32-character minimum, so deployed configs should be compliant — but check the real jwt.secret before merging. If it is shorter, login breaks on deploy. The two affected tests used a 15-character fixture; they now use a compliant one.

enshrined/svg-sanitize 0.22 → 1.1 crosses a major, but ImageService only instantiates Sanitizer and calls the existing API, so nothing changed beyond the constraint.

Code touched by stricter types: four guards became dead under the new versions — isset()/null checks in EntryController (×2), && $db in AuthMiddleware where PHPStan proves $db non-null on that path, and the trailing ?? null on providerName in UrlEmbedService (×2), which embed 4.6 now types as string. Four corresponding phpstan-baseline.neon entries were removed because they no longer match anything.

Verification

  • Backend: composer test — 120 tests, 320 assertions, 26 skipped (integration tests need a live DB), 2 pre-existing PHP 8.5 curl_close() deprecations in ApiSecurityTest. composer analyse clean.
  • Android: ./gradlew :app:assembleDebug :app:testDebugUnitTest — BUILD SUCCESSFUL.
  • Python: uv run --script entry-rewriter/rewrite_entry.py --help resolves and runs against the new floors.

CI runs PHP 8.4; a 8.4.0 toolchain would fail composer install on the new floor. setup-php resolves the latest 8.4.x, so it is fine — noting it since the floor is exact.

Android: FontAwesomeCompose 1.0.0 -> 1.1.0 (remaining 57 catalog
coordinates were already current).

Backend: embed/embed 4.6.2, enshrined/svg-sanitize 1.1.1,
firebase/php-jwt 7.2.2, slim/psr7 1.8.1, slim/slim 4.15.3,
symfony/yaml 8.1.11, phpstan 2.3.6, phpunit 13.4.7.

Python: raise the requirement floors in both scripts and manifests to
the current releases (requests 2.34.2, urllib3 2.8.0, trafilatura 2.3.1,
pyyaml 6.0.3).

Version bumps required four small code changes: php-jwt 7 rejects HS256
keys shorter than 32 bytes, embed 4.6 types providerName as non-nullable,
and phpstan 2.3 no longer needs the redundant null guards in
EntryController and AuthMiddleware.
@kibotu
kibotu merged commit 2411960 into main Nov 18, 2026
2 checks passed
@kibotu
kibotu deleted the chore/dependency-updates branch November 18, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant