Skip to content

Bump mobiledetect/mobiledetectlib from 3.74.3 to 4.8.10#97

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/composer/mobiledetect/mobiledetectlib-4.8.10
Open

Bump mobiledetect/mobiledetectlib from 3.74.3 to 4.8.10#97
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/composer/mobiledetect/mobiledetectlib-4.8.10

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Jan 12, 2026

Bumps mobiledetect/mobiledetectlib from 3.74.3 to 4.8.10.

Release notes

Sourced from mobiledetect/mobiledetectlib's releases.

Empty userAgent string doesn't throw an Exception anymore, instead it returns false.

  • [bug] No user-agent has been set serbanghita/Mobile-Detect#946
  • added docker-compose.yml with images: setup (composer), runUnitTests, runPerfTests, runLinting, generateModel

Added back implicit $_SERVER scanning for setting the User-Agent string.

  • added optional $config to MobileDetect constructor.
  • added autoInitOfHttpHeaders configuration which is by default true. This enabled the old behavior from 3.x and 2.x that allows automatic detection of HTTP headers and User Agent from $_SERVER.
  • refactored internal CloudFront related methods and the way setHttpHeaders work. It no longer falls back on $_SERVER. The method still calls setUserAgent in case HTTP_USER_AGENT and friends are present.
  • added maximumUserAgentLength to the $config, by default the limit is 500.

4.8.01: MobileDetect version with PSR-16 Cache support.

Other

  • removed unused dependencies
  • removed old examples
  • rearranged /scripts/ folder
Changelog

Sourced from mobiledetect/mobiledetectlib's changelog.

4.8.10

Fixed

  • Cache::has() now properly checks TTL expiration before returning true (PSR-16 compliance fix). Previously, has() returned true for expired items.

Added

  • Cache::evictExpired() method to manually clean up expired cache entries. Useful for long-running processes (CLI scripts, workers, daemons) to prevent memory growth.
  • Expanded test coverage for Cache class: added 17 new tests covering all if/else branches including custom defaults, DateInterval TTL, key validation edge cases, and expiration scenarios.
  • README-EXAMPLES.md with comprehensive usage examples including long-running processes, framework integration, and debugging.

Changed

  • Cache::has() now deletes expired items on check (lazy cleanup, consistent with get() behavior).

4.8.09

4.8.08

  • fix for missing psr/cache prod dependency
  • [bug] latest 4.8.07 cause site error Call to a member function get() on false #974
  • fix for Docker build not installing dev dependencies

4.8.07 (broken in composer, please skip)

  • fix cache and generate short cache key (#971)
  • Added configuration cacheKeyFn which allows for using a custom cache key creation fn.
  • Use Client Hints Sec-CH-UA-Mobile header to detect mobile (#962)
  • added Huawei (phone, OS - HarmonyOS, browser) detection (#952)
  • Bugfix: Allow Injection of Any PSR Cache Interface (#966)
  • PHP 8.4 - implicit nulls are deprecated (#960)

4.8.03

  • added optional $config to MobileDetect constructor.
  • added autoInitOfHttpHeaders configuration which is by default true. This enabled the old behavior from 3.x and 2.x that allows automatic detection of HTTP headers and User Agent from $_SERVER.
  • refactored internal CloudFront related methods and the way setHttpHeaders work. It no longer falls back on $_SERVER. The method still calls setUserAgent in case HTTP_USER_AGENT and friends are present.
  • added maximumUserAgentLength to the $config, by default the limit is 500.

4.8.02

  • new user agents
  • Samsung Galaxy Tab S6 Lite #919
  • Samsung Galaxy Tab S8 series #912

4.8.01

  • PHP 8.x only.
  • PSR-16 cache support.
  • Constructor accepts CacheFactory class where you can inject your own PSR-6 Cache interfaces.
  • You need to explicitly setUserAgent("...") or setUserAgentHeaders([...]) otherwise an exception is being thrown.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mobiledetect/mobiledetectlib](https://github.com/serbanghita/Mobile-Detect) from 3.74.3 to 4.8.10.
- [Release notes](https://github.com/serbanghita/Mobile-Detect/releases)
- [Changelog](https://github.com/serbanghita/Mobile-Detect/blob/4.8.x/CHANGELOG.md)
- [Commits](serbanghita/Mobile-Detect@3.74.3...4.8.10)

---
updated-dependencies:
- dependency-name: mobiledetect/mobiledetectlib
  dependency-version: 4.8.10
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants