jenssegers / agent

👮 A PHP desktop/mobile user agent parser with support for Laravel, based on Mobiledetect
https://jenssegers.com
MIT License
4.53k stars 473 forks source link

outdated mobiledetect/mobiledetectlib (2.7) #207

Open JmRy opened 11 months ago

JmRy commented 11 months ago

Hello,

Your library uses an outdated version of mobiledetect/mobiledetectlib (2.7). The latest release of this library does not detect the newest desktop versions of Firefox, Edge, ... It returns true on the isMobile function.

It would be nice to update your library with the 4.8 version of mobiledetect/mobiledetectlib.

Thank you in advance. ;-)

Misagh90 commented 11 months ago

I tried composer update & it's not working from 2.8.41 to upper versions

serbanghita commented 11 months ago

Mobile Detect 2.8.45

fixes two things:

  1. added back tests folder which was mandatory for jenssegers/agent tests to work.
  2. reverted back from static to self to prevent override of "mobile" specific rules.

jenssegers/agent should work now

mhdhamouday commented 9 months ago

@serbanghita, could you kindly upload this version to the packagelist so that we can update it via Composer?

serbanghita commented 9 months ago

@mhdhamouday It should already be in there https://packagist.org/packages/mobiledetect/mobiledetectlib#2.8.45 When I publish a tag it automatically gets published in packagist, let me know if there are any issues

mhdhamouday commented 9 months ago

@serbanghita I apologize if my question is unclear, but I'm referring to updating the dependency on "mobiledetect" to the latest version, like "4.8.042023". Your package is currently using an outdated version of the "mobiledetect" package, specifically version "2.8".