Nyalab / caniuse-api

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

browserslist 4.21 removes IE by default #98

Open edwardfxiao opened 2 years ago

edwardfxiao commented 2 years ago

Although ie was removed by default in browserslist, I think caniuseApi.getSupport should still include ie

LATEST

caniuseApi.getSupport('border-radius') -> 

{
  and_chr: { y: 103 },
  and_ff: { y: 101 },
  and_qq: { y: 10.4 },
  and_uc: { y: 12.12 },
  android: { y: 2.1, x: 2.1 },
  chrome: { y: 4, x: 4 },
  edge: { y: 12 },
  firefox: { a: 2, x: 3.6, y: 3 },
  ios_saf: { y: 3.2, x: 3.2 },
  kaios: { y: 2.5 },
  op_mini: {},
  op_mob: { n: 10, y: 11 },
  opera: { n: 10, y: 10.5 },
  safari: { y: 3.1, x: 4 },
  samsung: { y: 4 }
}

OLDER:

caniuseApi.getSupport('border-radius') -> 

{
  and_chr: { y: 102 },
  and_ff: { y: 101 },
  and_qq: { y: 10.4 },
  and_uc: { y: 12.12 },
  android: { y: 2.1, x: 2.1 },
  chrome: { y: 4, x: 4 },
  edge: { y: 12 },
  firefox: { a: 2, x: 3.6, y: 3 },
  ie: { n: 8, y: 9 },
  ios_saf: { y: 3.2, x: 3.2 },
  kaios: { y: 2.5 },
  op_mini: {},
  op_mob: { n: 10, y: 11 },
  opera: { n: 10, y: 10.5 },
  safari: { y: 3.1, x: 4 },
  samsung: { y: 4 }
}