Releases: DamonOehlman/detect-browser
2.4.0
Added support for detecting the Samsung Internet browser (#62) - thanks @emmaschultz
2.3.0
2.2.0
Facebook and Instagram in-app browser detection support (#58) thanks to @alexabidri.
2.0
This is a significant change to the way that detect-browser
behaves. Prior to this release, simply requiring the module would mean that a browser detection action would occur. This, however, will not produce consistent behaviour across ES6 and node module resolution systems. As such, a detect
function is now made available and must be invoked for the detection to be completed (as per the example below - or the examples included in the README):
const { detect } = require('detect-browser');
const browser = detect();
// handle the case where we don't detect the browser
if (browser) {
console.log(browser.name);
console.log(browser.version);
}
Additionally, the implementation of the module has been condensed into a single file with the view to having compliance with other module packaging systems as well as browserify
. It is expected that there will be patch changes to detect-browser
over the coming months as integration with other tools is explored.
1.9.0
1.8.0
Support added for:
- Firefox on iOS https://www.mozilla.org/en-US/firefox/ios/
- Vivaldi https://vivaldi.com/
A big thanks to @5punk for implementing support here and also the test coverage. Also a willingness to pitch in a take care of some long standing issues!
1.7.0
Support for using detect-browser
in an isomorphic react application context (thanks @jordanell).
v1.6.0
- Added support for detecting Yandex browser - thanks @baribadamshin
1.5.0
Correct Opera Detection Implemented
Thanks to @knomedia on this one for bringing the package up to date with real world opera.