browserslist
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,6 @@ | ||
## 1.1.1 | ||
* Fix space-less `>10%` and `>10% in my stats` queries. | ||
* Normalize error messages. | ||
* Remove development files from npm package. | ||
## 1.1 | ||
@@ -2,0 +7,0 @@ * Added query against custom browser usage data (by Daniel Rey). |
15
index.js
@@ -268,3 +268,3 @@ var caniuse = require('caniuse-db/data').agents; | ||
globalStatistics: { | ||
regexp: /^> (\d+\.?\d*)%$/, | ||
regexp: /^>\s?(\d+\.?\d*)%$/, | ||
select: function (popularity) { | ||
@@ -285,3 +285,3 @@ popularity = parseFloat(popularity); | ||
customStatistics: { | ||
regexp: /^> (\d+\.?\d*)% in my stats$/, | ||
regexp: /^>\s?(\d+\.?\d*)% in my stats$/, | ||
select: function (popularity) { | ||
@@ -293,12 +293,3 @@ popularity = parseFloat(popularity); | ||
if ( !usage ) { | ||
error('Custom usage data was not provided. ' + | ||
'To use selection "> ' + popularity + '% in my stats" ' + | ||
'you need one of the following:\n' + | ||
'* browserslist("selections", ' + | ||
'{stats: "path/to/the/stats_file.json"})\n' + | ||
'* browserslist("selections", {stats: <stats object>})\n' + | ||
'* Set the ENV variable BROWSERSLIST_STATS to the path ' + | ||
'of the stats JSON file.\nThe expected stats object is: ' + | ||
'{"browser": {"version": <percentage>, "anotherVersion"' + | ||
': <percentage>, ...}, "anotherBrowser": {...}, ...}'); | ||
error('Custom usage statistics was not provided'); | ||
} | ||
@@ -305,0 +296,0 @@ |
{ | ||
"name": "browserslist", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Get browsers versions that matches given criterias like in Autoprefixer", | ||
@@ -16,3 +16,3 @@ "keywords": [ | ||
"dependencies": { | ||
"caniuse-db": "^1.0.30000384" | ||
"caniuse-db": "^1.0.30000387" | ||
}, | ||
@@ -19,0 +19,0 @@ "bin": "./cli.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23361
7
412
Updatedcaniuse-db@^1.0.30000387