browserslist 4.15.0 → 4.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 4.16
5
+ * Add `browserslist config` query.
6
+
4
7
  ## 4.15
5
8
  * Add TypeScript types (by Dmitry Semigradsky).
6
9
 
package/README.md CHANGED
@@ -65,6 +65,7 @@ Browserslist will take queries from tool option,
65
65
  ## Table of Contents
66
66
 
67
67
  * [Tools](#tools)
68
+ * [Text Editors](#text-editors)
68
69
  * [Best Practices](#best-practices)
69
70
  * [Browsers Data Updating](#browsers-data-updating)
70
71
  * [Queries](#queries)
@@ -88,8 +89,6 @@ Browserslist will take queries from tool option,
88
89
 
89
90
  * [`browserl.ist`](https://browserl.ist/) is an online tool to check
90
91
  what browsers will be selected by some query.
91
- * [`browserslist-vscode`] adds `.browserslistrc` syntax highlighting
92
- to Visual Studio Code.
93
92
  * [`browserslist-ga`] and [`browserslist-ga-export`] download your website
94
93
  browsers statistics to use it in `> 0.5% in my stats` query.
95
94
  * [`browserslist-useragent-regexp`] compiles Browserslist query to a RegExp
@@ -110,11 +109,17 @@ Browserslist will take queries from tool option,
110
109
  [`browserslist-browserstack`]: https://github.com/xeroxinteractive/browserslist-browserstack
111
110
  [`browserslist-ga-export`]: https://github.com/browserslist/browserslist-ga-export
112
111
  [`browserslist-useragent`]: https://github.com/pastelsky/browserslist-useragent
113
- [`browserslist-vscode`]: https://marketplace.visualstudio.com/items?itemName=webben.browserslist
114
112
  [`browserslist-ga`]: https://github.com/browserslist/browserslist-ga
115
113
  [`caniuse-api`]: https://github.com/Nyalab/caniuse-api
116
114
 
117
115
 
116
+ ### Text Editors
117
+
118
+ These extensions will add syntax highlighting for `.browserslistrc` files.
119
+
120
+ * [VS Code](https://marketplace.visualstudio.com/items?itemName=webben.browserslist)
121
+ * [Vim](https://github.com/browserslist/vim-browserslist)
122
+
118
123
  ## Best Practices
119
124
 
120
125
  * There is a `defaults` query, which gives a reasonable configuration
@@ -267,6 +272,9 @@ You can specify the browser and Node.js versions by queries (case insensitive):
267
272
  `es6-module` here is the `feat` parameter at the URL of the [Can I Use]
268
273
  page. A list of all available features can be found at
269
274
  [`caniuse-lite/data/features`].
275
+ * `browserslist config`: the browsers defined in Browserslist config. Useful
276
+ in the tools to modify user’s config like
277
+ `browserslist config and supports es6-module`.
270
278
  * `since 2015` or `last 2 years`: all versions released since year 2015
271
279
  (also `since 2015-03` and `since 2015-03-10`).
272
280
  * `unreleased versions` or `unreleased Chrome versions`:
package/index.js CHANGED
@@ -425,6 +425,7 @@ function browserslist (queries, opts) {
425
425
  ignoreUnknownVersions: opts.ignoreUnknownVersions,
426
426
  dangerousExtend: opts.dangerousExtend,
427
427
  mobileToDesktop: opts.mobileToDesktop,
428
+ path: opts.path,
428
429
  env: opts.env
429
430
  }
430
431
 
@@ -1105,6 +1106,12 @@ var QUERIES = [
1105
1106
  return [data.name + ' ' + version]
1106
1107
  }
1107
1108
  },
1109
+ {
1110
+ regexp: /^browserslist config$/i,
1111
+ select: function (context) {
1112
+ return browserslist(undefined, context)
1113
+ }
1114
+ },
1108
1115
  {
1109
1116
  regexp: /^extends (.+)$/i,
1110
1117
  select: function (context, name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browserslist",
3
- "version": "4.15.0",
3
+ "version": "4.16.0",
4
4
  "description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",
5
5
  "keywords": [
6
6
  "caniuse",
@@ -15,9 +15,9 @@
15
15
  "license": "MIT",
16
16
  "repository": "browserslist/browserslist",
17
17
  "dependencies": {
18
- "caniuse-lite": "^1.0.30001164",
18
+ "caniuse-lite": "^1.0.30001165",
19
19
  "colorette": "^1.2.1",
20
- "electron-to-chromium": "^1.3.612",
20
+ "electron-to-chromium": "^1.3.621",
21
21
  "escalade": "^3.1.1",
22
22
  "node-releases": "^1.1.67"
23
23
  },