browserslist-useragent icon indicating copy to clipboard operation
browserslist-useragent copied to clipboard

🦔A utility to match a browserslist query with user agent strings

Results 16 browserslist-useragent issues
Sort by recently updated
recently updated
newest added

This fixes #38 by manually testing for Safari technology preview, rather than using semver.

`matchesUA()` now returns an object with `matches`, a boolean indicating that the browserslist config matched the UA, and `userAgent`, the resolved user agent family and version. For unrecognizable user agents...

We were using `matchUA` inside an express.js middleware and found that it was quite expensive to create the browserslist for every request. This changes introduces a new export `createUAMatcher` that...

Hi! I have a problem with running your lib on client side. I need to detect if current browser is supported or not and notify the user if not. I've...

I`m using browser config as **'since 2016'** Chrome, Firefox, and Safari work correctly. But even the latest versions of Opera Mobile and Mini do not match the current config. Why?...

I expect the `browsers` field to have precedence over the others, since it's the most local and most specific option. Currently, if the `env` property is specified, the `browsers` field...

version : 3.0.3 , 3.0.2 , 2.0.1 and maybe other releases . while requiring thr browserslist-useragent in a CRA, i got the error : Can't resolve 'yamlparser' in Path/node_modules/useragent/lib'

I've found a strange behaviour. For User Agent `Mozilla/5.0 (Linux; Android 9; ANE-LX3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36 OPR/59.1.2926.54067` and `browserslist` file ``` > 0.5% last 2 major...

`browserslist` contains entries with version ranges. For instance, `browserslist("ios_saf >= 9")` includes the entry `'ios_saf 9.0-9.2'`. For that browserslist, `browserslist-useragent` matches only `ios_saf 9.0`. User agents with iOS Safari versions...

Has anyone implemented smart caching on NGINX based on a Browserslist query? That would be ideal for websites that server both legacy and modern versions.