browserslist 4.22.1 → 4.22.3

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/README.md CHANGED
@@ -46,13 +46,7 @@ You can check how config works at our playground: [`browsersl.ist`](https://brow
46
46
  <br>
47
47
  <br>
48
48
  <div align="center">
49
- <a href="https://evilmartians.com/?utm_source=browserslist">
50
- <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
51
- alt="Sponsored by Evil Martians" width="236" height="54">
52
- </a>  <a href="https://cube.dev/?ref=eco-browserslist-github">
53
- <img src="https://user-images.githubusercontent.com/986756/154330861-d79ab8ec-aacb-4af8-9e17-1b28f1eccb01.svg"
54
- alt="Supported by Cube" width="227" height="46">
55
- </a>
49
+ <a href="https://evilmartians.com/?utm_source=browserslist"><img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"></a>  <a href="https://cube.dev/?ref=eco-browserslist-github"><img src="https://user-images.githubusercontent.com/986756/154330861-d79ab8ec-aacb-4af8-9e17-1b28f1eccb01.svg" alt="Supported by Cube" width="227" height="46"></a>
56
50
  </div>
57
51
 
58
52
  [stylelint-no-unsupported-browser-features]: https://github.com/ismay/stylelint-no-unsupported-browser-features
package/index.js CHANGED
@@ -249,9 +249,18 @@ function normalizeAndroidVersions(androidVersions, chromeVersions) {
249
249
  .concat(chromeVersions.slice(iFirstEvergreen))
250
250
  }
251
251
 
252
+ function copyObject(obj) {
253
+ var copy = {}
254
+ for (var key in obj) {
255
+ copy[key] = obj[key]
256
+ }
257
+ return copy
258
+ }
259
+
252
260
  function normalizeAndroidData(android, chrome) {
253
261
  android.released = normalizeAndroidVersions(android.released, chrome.released)
254
262
  android.versions = normalizeAndroidVersions(android.versions, chrome.versions)
263
+ android.releaseDate = copyObject(android.releaseDate)
255
264
  android.released.forEach(function (v) {
256
265
  if (android.releaseDate[v] === undefined) {
257
266
  android.releaseDate[v] = chrome.releaseDate[v]
@@ -884,7 +893,7 @@ var QUERIES = {
884
893
  },
885
894
  supports: {
886
895
  matches: ['supportType', 'feature'],
887
- regexp: /^(?:(fully|partially) )?supports\s+([\w-]+)$/,
896
+ regexp: /^(?:(fully|partially)\s+)?supports\s+([\w-]+)$/,
888
897
  select: function (context, node) {
889
898
  env.loadFeature(browserslist.cache, node.feature)
890
899
  var withPartial = node.supportType !== 'fully'
package/node.js CHANGED
@@ -7,7 +7,7 @@ var BrowserslistError = require('./error')
7
7
 
8
8
  var IS_SECTION = /^\s*\[(.+)]\s*$/
9
9
  var CONFIG_PATTERN = /^browserslist-config-/
10
- var SCOPED_CONFIG__PATTERN = /@[^/]+\/browserslist-config(-|$|\/)/
10
+ var SCOPED_CONFIG__PATTERN = /@[^/]+(?:\/[^/]+)?\/browserslist-config(?:-|$|\/)/
11
11
  var TIME_TO_UPDATE_CANIUSE = 6 * 30 * 24 * 60 * 60 * 1000
12
12
  var FORMAT =
13
13
  'Browserslist config should be a string or an array ' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browserslist",
3
- "version": "4.22.1",
3
+ "version": "4.22.3",
4
4
  "description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",
5
5
  "keywords": [
6
6
  "caniuse",
@@ -25,9 +25,9 @@
25
25
  "license": "MIT",
26
26
  "repository": "browserslist/browserslist",
27
27
  "dependencies": {
28
- "caniuse-lite": "^1.0.30001541",
29
- "electron-to-chromium": "^1.4.535",
30
- "node-releases": "^2.0.13",
28
+ "caniuse-lite": "^1.0.30001580",
29
+ "electron-to-chromium": "^1.4.648",
30
+ "node-releases": "^2.0.14",
31
31
  "update-browserslist-db": "^1.0.13"
32
32
  },
33
33
  "engines": {