Nyalab / caniuse-api

request the caniuse data to check browsers compatibilities
MIT License
356 stars 27 forks source link

Get latest stable browsers function throws an exception #74

Closed ggrossetie closed 6 years ago

ggrossetie commented 6 years ago
const caniuse = require('caniuse-api')
caniuse.getLatestStableBrowsers();
TypeError: Cannot read property 'lastVersions' of undefined
    at Object.getLatestStableBrowsers (node_modules/caniuse-api/dist/index.js:85:41)
    at Context.<anonymous> (test/test.js:14:13)
caniuse-lite: "1.0.30000830"
caniuse-api: "2.0.0"
browserslist: "2.11.3"
ggrossetie commented 6 years ago

Looks like this issue was fixed in https://github.com/Nyalab/caniuse-api/pull/71 Do you plan to release a new version soon ?

Nyalab commented 6 years ago

Yes very soon, i just had a baby, time to get back on it, and i'll ship a new version.

ggrossetie commented 6 years ago

Oh congratulations! No rush, enjoy 😄