Releases: serbanghita/Mobile-Detect
Releases · serbanghita/Mobile-Detect
Release list
4.11.0
What's Changed
- perf(bench): overhaul phpbench suite + advisory CI + release hygiene by @serbanghita in #1015
Full Changelog: 4.10.0...4.11.0
4.10.0
What's Changed
- fix(cache): restore PSR-16 v1/v2 LSP compatibility (#989) by @serbanghita in #1014
Full Changelog: 4.9.0...4.10.0
4.9.0
Minor release.
Added
- Lenovo: broad
Lenovo TBprefix match for modern tablets (#1013). - Samsung: 2025 tablet models (Tab S11, S10 Lite, A11).
MobileDetect::VERSION_TYPE_STRINGandVERSION_TYPE_FLOATconstants promoted topublic(#991).
Changed
- Consistent late static binding for subclass extensibility (#1012).
- Dropped PHP 8.0 and 8.1 from the CI matrix.
Fixed
- PHP 8.4 compatibility: explicit type hints where the engine now requires them.
Cache::getTimestamp()method name typo (wasgetTimeStamp) (#1007).- Version regex now accepts multi-char pre-release suffixes.
- Pinned composer dependencies to exact versions.
- GitHub Actions workflow actions updated to their latest versions.
Full changelog: 4.8.10...4.9.0
Empty userAgent string doesn't throw an Exception anymore, instead it returns false.
- [bug] No user-agent has been set #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
$configto MobileDetect constructor. - added
autoInitOfHttpHeadersconfiguration which is by defaulttrue. This enabled the old behavior from3.xand2.xthat allows automatic detection of HTTP headers and User Agent from $_SERVER. - refactored internal CloudFront related methods and the way
setHttpHeaderswork. It no longer falls back on$_SERVER. The method still callssetUserAgentin caseHTTP_USER_AGENTand friends are present. - added
maximumUserAgentLengthto the$config, by default the limit is500.
4.8.01: MobileDetect version with PSR-16 Cache support.
- Support for PHP>=8.x
- PSR-16 cache support https://github.com/php-fig/simple-cache
- Run benchmark tests with https://github.com/phpbench/phpbench
- Split regex strings into array of strings. The main reason for this is future performance improvements, cross-platform compatibility and overall readability.
Other
- removed unused dependencies
- removed old examples
- rearranged /scripts/ folder
3.74.0 - official PHP7 support
- Same regexes as https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.41
- Removed all
@deprecatedmethods - Short arrays and some of the syntax was converted to >= PHP 7.4
- library exported as
Detection\MobileDetect