Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade win-detect-browsers to v2 #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dtanp
Copy link

@dtanp dtanp commented May 17, 2018

Fix #71

@tomitm
Copy link

tomitm commented May 18, 2018

master (using win-detect-browsers@1.0.2)

Available browsers:
[ { name: 'ie',
    version: '11.0.17134.1',
    type: 'ie',
    command: 'C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe' },
  { name: 'ie',
    version: '11.0.17134.1',
    type: 'ie',
    command: 'C:\\Program Files\\Internet Explorer\\iexplore.exe' },
  { name: 'chrome',
    version: '68.0.3432.3',
    type: 'chrome',
    command: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe' },
  { name: 'chrome',
    version: '68.0.3433.0',
    type: 'chrome',
    command: 'C:\\Users\\tm\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe' },
  { name: 'firefox',
    version: '59.0.2.6656',
    type: 'firefox',
    command: 'C:\\Program Files\\Mozilla Firefox\\firefox.exe' } ]

This PR (using win-detect-browsers@2.1.0)

Available browsers:
[ { name: 'chrome',
    version: '68.0.3432.3',
    type: 'chrome',
    command: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe' },
  { name: 'chrome',
    version: '68.0.3433.0',
    type: 'chrome',
    command: 'C:\\Users\\tm\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe' },
  { name: 'firefox',
    version: '59.0.2.6656',
    type: 'firefox',
    command: 'C:\\Program Files\\Mozilla Firefox\\firefox.exe' },
  { name: 'ie',
    version: '11.0.17134.1',
    type: 'ie',
    command: 'C:\\Program Files\\Internet Explorer\\iexplore.exe' },
  { name: 'ie',
    version: '11.0.17134.1',
    type: 'ie',
    command: 'C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe' } ]

Windows 10 build 17134.48 (1803). Both versions seem to pick up my Firefox 59 install, although neither detected Firefox 60b Developer Edition. 🤔

@tomitm
Copy link

tomitm commented May 18, 2018

Updated both Firefox install to latest versions (60 and 61b):

master

Available browsers:
[ { name: 'chrome',
    version: '68.0.3432.3',
    type: 'chrome',
    command: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe' },
  { name: 'chrome',
    version: '68.0.3433.0',
    type: 'chrome',
    command: 'C:\\Users\\tm\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe' },
  { name: 'firefox',
    version: '60.0.1.6710',
    type: 'firefox',
    command: 'C:\\Program Files\\Mozilla Firefox\\firefox.exe' },
  { name: 'ie',
    version: '11.0.17134.1',
    type: 'ie',
    command: 'C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe' },
  { name: 'ie',
    version: '11.0.17134.1',
    type: 'ie',
    command: 'C:\\Program Files\\Internet Explorer\\iexplore.exe' } ]

PR:

Available browsers:
[ { name: 'chrome',
    version: '68.0.3433.0',
    type: 'chrome',
    command: 'C:\\Users\\tm\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe' },
  { name: 'chrome',
    version: '68.0.3432.3',
    type: 'chrome',
    command: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe' },
  { name: 'firefox',
    version: '60.0.1.6710',
    type: 'firefox',
    command: 'C:\\Program Files\\Mozilla Firefox\\firefox.exe' },
  { name: 'ie',
    version: '11.0.17134.1',
    type: 'ie',
    command: 'C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe' },
  { name: 'ie',
    version: '11.0.17134.1',
    type: 'ie',
    command: 'C:\\Program Files\\Internet Explorer\\iexplore.exe' } ]

Still not picking up on dev edition. 🤷‍♂️

tomitm
tomitm previously approved these changes May 18, 2018
@tomitm tomitm dismissed their stale review May 18, 2018 02:26

Actually, seems like we had issues with 2.x a while ago due to browserify. Need to first verify if things are better are working better now that James is on webpack.

@mitchhentges
Copy link
Member

For some additional context, see this ticket on win-detect-browsers

@vweevers
Copy link

FYI I've dusted off win-detect-browsers. Version 3 is almost ready and has no script files like described in vweevers/win-detect-browsers#29. It does however have native addons, so for electron you need a packager (e.g. Electron Forge) which handles that.

Should be worth it though :)

Also has a fix to detect Firefox Dev.

@tomitm
Copy link

tomitm commented May 20, 2018

Thanks @vweevers! I'll keep an eye out for that release. 👀

@vweevers
Copy link

vweevers commented May 20, 2018

3.0.0-rc1 is out and can be installed with npm i win-detect-browsers@next!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants