postcss-normalize-unicode 8.0.3 → 8.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-normalize-unicode",
3
- "version": "8.0.3",
3
+ "version": "8.0.4",
4
4
  "description": "Normalize unicode-range descriptors, and can convert to wildcard ranges.",
5
5
  "exports": {
6
6
  ".": {
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "repository": {
39
39
  "type": "git",
40
- "url": "cssnano/cssnano"
40
+ "url": "git+https://github.com/cssnano/cssnano.git"
41
41
  },
42
42
  "dependencies": {
43
43
  "browserslist": "^4.28.8",
package/src/index.js CHANGED
@@ -60,18 +60,6 @@ function mergeRangeBounds(left, right) {
60
60
  }
61
61
  }
62
62
 
63
- /**
64
- * IE and Edge before 16 version ignore the unicode-range if the 'U' is lowercase
65
- *
66
- * https://caniuse.com/#search=unicode-range
67
- *
68
- * @param {string} browser
69
- * @return {boolean}
70
- */
71
- function hasLowerCaseUPrefixBug(browser) {
72
- return getBrowsersList('ie <=11, edge <= 15').includes(browser);
73
- }
74
-
75
63
  /**
76
64
  * @param {string} value
77
65
  * @return {string}
@@ -115,7 +103,18 @@ function pluginCreator(/** @type {Options} */ opts = {}) {
115
103
  const browsers = getBrowsersList(null, opts, stats, from, file, env);
116
104
 
117
105
  const cache = new Map();
118
- const isLegacy = browsers.some(hasLowerCaseUPrefixBug);
106
+ /**
107
+ * IE and Edge before 16 version ignore the unicode-range if the 'U' is
108
+ * lowercase
109
+ *
110
+ * https://caniuse.com/#search=unicode-range
111
+ */
112
+ const lowerCaseUPrefixBugBrowsers = new Set(
113
+ getBrowsersList('ie <=11, edge <= 15')
114
+ );
115
+ const isLegacy = !new Set(browsers).isDisjointFrom(
116
+ lowerCaseUPrefixBugBrowsers
117
+ );
119
118
 
120
119
  return {
121
120
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";;AAKI,OAAQ,KAAA,YAAY,MAAM,cAAc,CAAA;AA0FzC,YAAwD,mBAAmB,GAAjE;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,CAAqB;AAC3E,YAAgE,mBAAmB,GAAzE,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,CAAqB;AACnF,YAAqD,OAAO,GAAlD,mBAAmB,GAAG,mBAAmB,CAAS"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";;AAKI,OAAQ,KAAA,YAAY,MAAM,cAAc,CAAA;AA8EzC,YAAwD,mBAAmB,GAAjE;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,CAAqB;AAC3E,YAAgE,mBAAmB,GAAzE,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,CAAqB;AACnF,YAAqD,OAAO,GAAlD,mBAAmB,GAAG,mBAAmB,CAAS"}