From 258b93e7e5d422a56f877bfc35ed714751b0511c Mon Sep 17 00:00:00 2001 From: Mat Brown Date: Tue, 3 Mar 2020 20:04:32 -0500 Subject: [PATCH] Removes all references to ie_mob --- benchmark/packages/205/plugins/flexboxIE.js | 2 +- benchmark/packages/300/dynamic/plugins/flexboxIE.js | 2 +- benchmark/packages/301/dynamic/plugins/flexboxIE.js | 2 +- benchmark/packages/302/dynamic/plugins/flexboxIE.js | 2 +- docs/api/generator/generateData.md | 1 - docs/guides/CustomPrefixer.md | 1 - generateDefaultData.js | 1 - modules/__tests__/createPrefixer-test.js | 2 -- modules/generator/generatePrefixMap.js | 1 - modules/generator/maps/pluginMap.js | 3 --- 10 files changed, 4 insertions(+), 13 deletions(-) diff --git a/benchmark/packages/205/plugins/flexboxIE.js b/benchmark/packages/205/plugins/flexboxIE.js index 53e7caf..7115cae 100644 --- a/benchmark/packages/205/plugins/flexboxIE.js +++ b/benchmark/packages/205/plugins/flexboxIE.js @@ -42,7 +42,7 @@ function flexboxIE(_ref) { var css = _ref.prefix.css; var keepUnprefixed = _ref.keepUnprefixed; - if ((alternativeProps[property] || property === 'display' && typeof value === 'string' && value.indexOf('flex') > -1) && (browser === 'ie_mob' || browser === 'ie') && version == 10) { + if ((alternativeProps[property] || property === 'display' && typeof value === 'string' && value.indexOf('flex') > -1) && browser === 'ie' && version == 10) { if (!keepUnprefixed && !Array.isArray(styles[property])) { delete styles[property]; } diff --git a/benchmark/packages/300/dynamic/plugins/flexboxIE.js b/benchmark/packages/300/dynamic/plugins/flexboxIE.js index 921fbcf..f8ae025 100644 --- a/benchmark/packages/300/dynamic/plugins/flexboxIE.js +++ b/benchmark/packages/300/dynamic/plugins/flexboxIE.js @@ -38,7 +38,7 @@ function flexboxIE(property, value, style, _ref) { keepUnprefixed = _ref.keepUnprefixed, requiresPrefix = _ref.requiresPrefix; - if ((alternativeProps[property] || property === 'display' && typeof value === 'string' && value.indexOf('flex') > -1) && (browserName === 'ie_mob' || browserName === 'ie') && browserVersion === 10) { + if ((alternativeProps[property] || property === 'display' && typeof value === 'string' && value.indexOf('flex') > -1) && browserName === 'ie' && browserVersion === 10) { delete requiresPrefix[property]; if (!keepUnprefixed && !Array.isArray(style[property])) { diff --git a/benchmark/packages/301/dynamic/plugins/flexboxIE.js b/benchmark/packages/301/dynamic/plugins/flexboxIE.js index 557d48b..e7384c5 100644 --- a/benchmark/packages/301/dynamic/plugins/flexboxIE.js +++ b/benchmark/packages/301/dynamic/plugins/flexboxIE.js @@ -38,7 +38,7 @@ function flexboxIE(property, value, style, _ref) { keepUnprefixed = _ref.keepUnprefixed, requiresPrefix = _ref.requiresPrefix; - if ((alternativeProps.hasOwnProperty(property) || property === 'display' && typeof value === 'string' && value.indexOf('flex') > -1) && (browserName === 'ie_mob' || browserName === 'ie') && browserVersion === 10) { + if ((alternativeProps.hasOwnProperty(property) || property === 'display' && typeof value === 'string' && value.indexOf('flex') > -1) && browserName === 'ie' && browserVersion === 10) { delete requiresPrefix[property]; if (!keepUnprefixed && !Array.isArray(style[property])) { diff --git a/benchmark/packages/302/dynamic/plugins/flexboxIE.js b/benchmark/packages/302/dynamic/plugins/flexboxIE.js index 557d48b..e7384c5 100644 --- a/benchmark/packages/302/dynamic/plugins/flexboxIE.js +++ b/benchmark/packages/302/dynamic/plugins/flexboxIE.js @@ -38,7 +38,7 @@ function flexboxIE(property, value, style, _ref) { keepUnprefixed = _ref.keepUnprefixed, requiresPrefix = _ref.requiresPrefix; - if ((alternativeProps.hasOwnProperty(property) || property === 'display' && typeof value === 'string' && value.indexOf('flex') > -1) && (browserName === 'ie_mob' || browserName === 'ie') && browserVersion === 10) { + if ((alternativeProps.hasOwnProperty(property) || property === 'display' && typeof value === 'string' && value.indexOf('flex') > -1) && browserName === 'ie' && browserVersion === 10) { delete requiresPrefix[property]; if (!keepUnprefixed && !Array.isArray(style[property])) { diff --git a/docs/api/generator/generateData.md b/docs/api/generator/generateData.md index 7b94400..7ddb567 100644 --- a/docs/api/generator/generateData.md +++ b/docs/api/generator/generateData.md @@ -39,7 +39,6 @@ const browserList = { ios_saf: 8, safari: 8, ie: 11, - ie_mob: 11, edge: 12, opera: 16, op_mini: 12, diff --git a/docs/guides/CustomPrefixer.md b/docs/guides/CustomPrefixer.md index 456e229..1a139fa 100644 --- a/docs/guides/CustomPrefixer.md +++ b/docs/guides/CustomPrefixer.md @@ -24,7 +24,6 @@ const browserList = { ios_saf: 8, safari: 8, ie: 11, - ie_mob: 11, edge: 12, opera: 16, op_mini: 12, diff --git a/generateDefaultData.js b/generateDefaultData.js index 8189b70..d7938af 100644 --- a/generateDefaultData.js +++ b/generateDefaultData.js @@ -7,7 +7,6 @@ const defaultBrowserSupport = { ios_saf: 9, safari: 9, ie: 11, - ie_mob: 11, edge: 12, opera: 30, op_mini: 12, diff --git a/modules/__tests__/createPrefixer-test.js b/modules/__tests__/createPrefixer-test.js index 2efdad0..265ff9c 100644 --- a/modules/__tests__/createPrefixer-test.js +++ b/modules/__tests__/createPrefixer-test.js @@ -9,7 +9,6 @@ const browserList = { ios_saf: 0, safari: 0, ie: 0, - ie_mob: 0, edge: 0, opera: 0, op_mini: 0, @@ -346,7 +345,6 @@ describe('Static Prefixer', () => { const input = { writingMode: 'horizontal-tb' } const output = { WebkitWritingMode: 'horizontal-tb', - msWritingMode: 'horizontal-tb', writingMode: 'horizontal-tb', } expect(prefix(input)).toEqual(output) diff --git a/modules/generator/generatePrefixMap.js b/modules/generator/generatePrefixMap.js index c4356dc..9000673 100644 --- a/modules/generator/generatePrefixMap.js +++ b/modules/generator/generatePrefixMap.js @@ -15,7 +15,6 @@ const prefixBrowserMap = { and_chr: 'Webkit', and_uc: 'Webkit', op_mini: 'Webkit', - ie_mob: 'ms', } // remove flexprops from IE diff --git a/modules/generator/maps/pluginMap.js b/modules/generator/maps/pluginMap.js index 6d18b26..3826012 100644 --- a/modules/generator/maps/pluginMap.js +++ b/modules/generator/maps/pluginMap.js @@ -42,7 +42,6 @@ export default { opera: 16, }, flexboxIE: { - ie_mob: 11, ie: 11, }, flexboxOld: { @@ -66,7 +65,6 @@ export default { grid: { edge: 16, ie: 11, - ie_mob: 11, }, imageSet: { chrome: maximumVersion, @@ -103,7 +101,6 @@ export default { and_uc: maximumVersion, ios_saf: maximumVersion, msie: maximumVersion, - ie_mob: maximumVersion, edge: maximumVersion, firefox: maximumVersion, op_mini: maximumVersion,