Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

caniuse-api

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caniuse-api - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

10

CHANGELOG.md

@@ -0,1 +1,9 @@

# 3.0.0 - 2018-07-10
- Upgraded: browserslist
# 2.1.0 - 2018-06-06 (never released to npm)
- Upgraded: browserslist, caniuse-lite
# 2.0.0 - 2017-05-03

@@ -40,3 +48,3 @@

- Upgraded: browserlist 1.x
- Upgraded: browserslist 1.x
- Upgraded: shelljs 0.5.x

@@ -43,0 +51,0 @@ - Added: output to notify if generation has been made or not

4

dist/index.js

@@ -62,3 +62,3 @@ "use strict";

return (0, _browserslist2.default)(browsers).map(function (browser) {
return (0, _browserslist2.default)(browsers, { ignoreUnknownVersions: true }).map(function (browser) {
return browser.split(" ");

@@ -86,3 +86,3 @@ }).every(function (browser) {

function getLatestStableBrowsers() {
return _browserslist2.default.queries.lastVersions.select(1);
return (0, _browserslist2.default)("last 1 version");
}

@@ -89,0 +89,0 @@

@@ -32,3 +32,3 @@ "use strict";

for (var info in feature.stats[browser]) {
letters = feature.stats[browser][info].split(" ");
letters = feature.stats[browser][info].replace(/#\d+/, "").trim().split(" ");
info = parseFloat(info.split("-")[0]); //if info is a range, take the left

@@ -38,3 +38,6 @@ if (isNaN(info)) continue;

letter = letters[i];
if (letter === "y") {
if (letter === "d") {
// skip this letter, we don't support it yet
continue;
} else if (letter === "y") {
// min support asked, need to find the min value

@@ -41,0 +44,0 @@ if (typeof support[browser][letter] === "undefined" || info < support[browser][letter]) {

{
"name": "caniuse-api",
"version": "2.0.0",
"version": "3.0.0",
"description": "request the caniuse data to check browsers compatibilities",

@@ -20,3 +20,3 @@ "repository": "https://github.com/nyalab/caniuse-api.git",

"dependencies": {
"browserslist": "^2.0.0",
"browserslist": "^4.0.0",
"caniuse-lite": "^1.0.0",

@@ -23,0 +23,0 @@ "lodash.memoize": "^4.1.2",

@@ -8,3 +8,3 @@ # caniuse-api [![Build Status](https://travis-ci.org/Nyalab/caniuse-api.svg?branch=master)](https://travis-ci.org/Nyalab/caniuse-api) [![Build status](https://ci.appveyor.com/api/projects/status/6j3na522bv3bxfa5/branch/master?svg=true)](https://ci.appveyor.com/project/MoOx/caniuse-api/branch/master)

```console
$ npm install caniuse-api --save
$ yarn add caniuse-api
```

@@ -33,3 +33,3 @@

* `a`: Up to which browser version the feature is partially supported
* `X`: Up to which browser version the feature is prefixed
* `x`: Up to which browser version the feature is prefixed

@@ -39,10 +39,19 @@ ```js

/*
[ safari: { y: 3.1, x: 4 },
{ and_chr: { y: 67 },
and_ff: { y: 60 },
and_qq: { y: 1.2 },
and_uc: { y: 11.8 },
android: { y: 2.1, x: 2.1 },
baidu: { y: 7.12 },
chrome: { y: 4, x: 4 },
edge: { y: 12 },
firefox: { a: 2, x: 3.6, y: 3 },
ie: { n: 8, y: 9 },
ie_mob: { y: 10 },
ios_saf: { y: 3.2, x: 3.2 },
op_mini: {},
op_mob: { n: 10, y: 11 },
opera: { n: 10, y: 10.5 },
ios_saf: { y: 3.2, x: 3.2 },
ie_mob: { y: 10 },
ie: { n: 8, y: 9 },
firefox: { a: 2, x: 3.6, y: 3 },
chrome: { y: 4, x: 4 },
and_chr: { y: 39 } ]
safari: { y: 3.1, x: 4 },
samsung: { y: 4 } }
*/

@@ -71,4 +80,6 @@ ```

/*
[ 'css3-boxsizing',
[ 'css3-attr',
'css3-boxsizing',
'css3-colors',
'css3-cursors-grab',
'css3-cursors-newer',

@@ -87,9 +98,20 @@ 'css3-cursors',

/*
[ 'safari 8',
'opera 26',
'ios_saf 8.1',
[ 'and_chr 67',
'and_ff 60',
'and_qq 1.2',
'and_uc 11.8',
'android 67',
'baidu 7.12',
'bb 10',
'chrome 67',
'edge 17',
'firefox 61',
'ie 11',
'ie_mob 11',
'ie 11',
'firefox 33',
'chrome 39' ]
'ios_saf 11.3-11.4',
'op_mini all',
'op_mob 46',
'opera 53',
'safari 11.1',
'samsung 7.2' ]
*/

@@ -105,13 +127,19 @@ ```

/*
[ 'safari',
[ 'and_chr',
'and_ff',
'and_qq',
'and_uc',
'android',
'baidu',
'chrome',
'edge',
'firefox',
'ie',
'ie_mob',
'ios_saf',
'op_mini',
'op_mob',
'opera',
'op_mini',
'ios_saf',
'ie_mob',
'ie',
'firefox',
'chrome',
'android',
'and_uc',
'and_chr' ]
'safari',
'samsung' ]
*/

@@ -118,0 +146,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc