Open MoOx opened 10 years ago
Would be nice to ideate a bit on the syntax to make it cleaner feeling, since things like 'last 1 version'
aren't grammatically correct
Indeed. latest version
should easily replace lastest 1 version
:)
@ianstormtaylor You don't like "Internet Explorer" being transformed to "Explorer" right ?
@ianstormtaylor we can fix grammar issues in Autoprefixer too to have common API.
@MoOx Issue is only in latest version
?
We should definitly make a common module to ask caniuse-db for a reponse.
@ai not sure, we should check all possibilities you have :)
@MoOx yeap, common module will be nice.
But there is one problem. last 2 versions
select not all browsers, because there are a lot of minor browsers. It is OK for Autoprefixer, but bad for common module. Maybe last 2 versions of popular
?
BTW, there are also awesome Autopolyfiller, which need browser selection too. /cc @azproduction
What about including request feature directly to caniuse-db ?
@MoOx now caniuse-db
is just database. Maybe separated module will be better. caniuse-browsers
?
caniuse
will do the trick (since it's a question: "can I use X on [Y]"). Maybe we can contact the maintainer of https://www.npmjs.org/package/caniuse to see if we can get it ?
/cc @Fyrd
I've contacted @wuchengwei to see if we can get the npm name :)
@ai as far as I know, there is no data in caniuse
about ES features and their quality. However, I think it is possible to mix @kangax tables with caniuse to create an awesome features db!
@azproduction I remember, that you ask for some separated browser selector, for quieries like last 2 versions
. What you uses now?
Like autoprefixer we could use caniuse-db with a list of browsers to know what features to use or not. This is not essential now, but it will became when browser start to implement all features we got here.
We need to check @ai works :)