From 6278ea0f3a5b3538d0f514f1dfef434beb2000e7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Dec 2020 17:53:32 +0100 Subject: [PATCH] Bump webpack from 5.10.1 to 5.10.2 (#299) * Bump webpack from 5.10.1 to 5.10.2 Bumps [webpack](https://github.com/webpack/webpack) from 5.10.1 to 5.10.2. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v5.10.1...v5.10.2) Signed-off-by: dependabot[bot] * generate * v0.3.20 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: romainmenke --- lerna.json | 2 +- packages/babel-plugin-core-web/package.json | 4 +- packages/core-web-browser-compat/package.json | 2 +- packages/core-web-example/package.json | 6 +- packages/core-web-generator/package.json | 2 +- packages/core-web-tests/package.json | 6 +- packages/core-web/helpers/__clients-matrix.js | 59 ++++++++++++++++--- packages/core-web/helpers/__mapping.js | 28 ++++----- packages/core-web/package.json | 2 +- yarn.lock | 8 +-- 10 files changed, 80 insertions(+), 39 deletions(-) diff --git a/lerna.json b/lerna.json index af33eb2ce..6559b88cc 100644 --- a/lerna.json +++ b/lerna.json @@ -3,6 +3,6 @@ "packages": [ "packages/*" ], - "version": "0.3.19", + "version": "0.3.20", "useWorkspaces": true } diff --git a/packages/babel-plugin-core-web/package.json b/packages/babel-plugin-core-web/package.json index 7488b0679..d1f693390 100644 --- a/packages/babel-plugin-core-web/package.json +++ b/packages/babel-plugin-core-web/package.json @@ -1,6 +1,6 @@ { "name": "@mrhenry/babel-plugin-core-web", - "version": "0.3.19", + "version": "0.3.20", "description": "browser feature polyfills as a babel plugin", "main": "lib/index.js", "author": "Simon Menke ", @@ -28,7 +28,7 @@ "@babel/parser": "^7.12.5", "@babel/traverse": "^7.12.7", "@babel/types": "^7.12.6", - "@mrhenry/core-web": "^0.3.19", + "@mrhenry/core-web": "^0.3.20", "fast-deep-equal": "^3.1.3" }, "bugs": { diff --git a/packages/core-web-browser-compat/package.json b/packages/core-web-browser-compat/package.json index 266bafa66..62fe77f7d 100644 --- a/packages/core-web-browser-compat/package.json +++ b/packages/core-web-browser-compat/package.json @@ -1,6 +1,6 @@ { "name": "core-web-browser-compat", - "version": "0.3.19", + "version": "0.3.20", "author": "romainmenke ", "license": "MIT", "main": "lib/core-web-browser-compat.js", diff --git a/packages/core-web-example/package.json b/packages/core-web-example/package.json index e49ccb2f2..e16f116f6 100644 --- a/packages/core-web-example/package.json +++ b/packages/core-web-example/package.json @@ -1,6 +1,6 @@ { "name": "@mrhenry/core-web-example", - "version": "0.3.19", + "version": "0.3.20", "private": true, "scripts": { "build": "babel src -d lib", @@ -9,7 +9,7 @@ "devDependencies": { "@babel/cli": "^7.12.10", "@babel/core": "^7.12.10", - "@mrhenry/babel-plugin-core-web": "^0.3.19", - "@mrhenry/core-web": "^0.3.19" + "@mrhenry/babel-plugin-core-web": "^0.3.20", + "@mrhenry/core-web": "^0.3.20" } } diff --git a/packages/core-web-generator/package.json b/packages/core-web-generator/package.json index 14b835ad8..57c057143 100644 --- a/packages/core-web-generator/package.json +++ b/packages/core-web-generator/package.json @@ -1,6 +1,6 @@ { "name": "@mrhenry/core-web-generator", - "version": "0.3.19", + "version": "0.3.20", "private": true, "scripts": { "build": "node ./generate.js" diff --git a/packages/core-web-tests/package.json b/packages/core-web-tests/package.json index 6cd0e7007..82ef93225 100644 --- a/packages/core-web-tests/package.json +++ b/packages/core-web-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mrhenry/core-web-tests", - "version": "0.3.19", + "version": "0.3.20", "private": true, "scripts": { "build": "node ./build-index-client-side-detect.js && webpack", @@ -9,14 +9,14 @@ "devDependencies": { "@babel/core": "^7.12.10", "@babel/preset-env": "^7.12.10", - "@mrhenry/babel-plugin-core-web": "^0.3.19", + "@mrhenry/babel-plugin-core-web": "^0.3.20", "@types/qunit": "2.11.x", "babel-loader": "^8.2.2", "browserstack-runner": "^0.9.3", "core-js": "^3.8.1", "eslint": "^7.15.0", "regenerator-runtime": "0.13.x", - "webpack": "^5.10.1", + "webpack": "^5.10.2", "webpack-cli": "^4.2.0" } } diff --git a/packages/core-web/helpers/__clients-matrix.js b/packages/core-web/helpers/__clients-matrix.js index 882d5d022..e17bb700a 100644 --- a/packages/core-web/helpers/__clients-matrix.js +++ b/packages/core-web/helpers/__clients-matrix.js @@ -193,7 +193,12 @@ module.exports = { ], "versions": { "12.0.0": { - "features": [] + "features": [ + { + "name": "HTMLPictureElement", + "detectSource": "\"HTMLPictureElement\"in self||\"picturefill\"in self\n" + } + ] }, "13.0.0": { "features": [ @@ -225,6 +230,10 @@ module.exports = { "name": "Element.prototype.closest", "detectSource": "\"document\"in self&&\"closest\"in document.documentElement\n" }, + { + "name": "Element.prototype.matches", + "detectSource": "\"document\"in self&&\"matches\"in document.documentElement\n" + }, { "name": "HTMLTemplateElement" } @@ -296,10 +305,6 @@ module.exports = { "name": "DOMTokenList.prototype.replace", "detectSource": "\"replace\"in(document.createElement(\"div\").classList||{})\n" }, - { - "name": "Element.prototype.matches", - "detectSource": "\"document\"in self&&\"matches\"in document.documentElement\n" - }, { "name": "Element.prototype.toggleAttribute", "detectSource": "\"document\"in self&&\"toggleAttribute\"in document.documentElement\n" @@ -308,10 +313,26 @@ module.exports = { }, "18.0.0": { "features": [ + { + "name": "Blob", + "detectSource": "\"Blob\"in self&&function(){try{return new Blob,!0}catch(n){return!1}}()&&function(){try{return Blob(),!1}catch(n){return!0}}()\n" + }, { "name": "DOMRect", "detectSource": "\"DOMRect\"in self&&function(e){try{return new e}catch(t){return!1}}(self.DOMRect)\n" }, + { + "name": "EventSource", + "detectSource": "\"EventSource\"in self&&\"function\"==typeof self.EventSource\n" + }, + { + "name": "HTMLCanvasElement.prototype.toBlob", + "detectSource": "\"toBlob\"in HTMLCanvasElement.prototype\n" + }, + { + "name": "ResizeObserver", + "detectSource": "\"ResizeObserver\"in self\n" + }, { "name": "TextEncoder", "detectSource": "\"TextEncoder\"in self&&\"TextDecoder\"in self\n" @@ -324,6 +345,30 @@ module.exports = { "name": "UserTiming", "detectSource": "\"performance\"in self&&\"function\"==typeof self.performance.getEntriesByType&&\"function\"==typeof self.performance.mark\n" }, + { + "name": "WebAnimations", + "detectSource": "\"function\"==typeof document.head.animate\n" + }, + { + "name": "globalThis", + "detectSource": "\"object\"==typeof globalThis\n" + }, + { + "name": "queueMicrotask", + "detectSource": "\"queueMicrotask\"in self\n" + }, + { + "name": "requestIdleCallback", + "detectSource": "\"requestIdleCallback\"in self\n" + }, + { + "name": "screen.orientation", + "detectSource": "\"screen\"in self&&\"orientation\"in self.screen&&\"object\"==typeof self.screen.orientation\n" + }, + { + "name": "smoothscroll", + "detectSource": "\"document\"in self&&\"documentElement\"in self.document&&\"style\"in self.document.documentElement&&\"scrollBehavior\"in document.documentElement.style||function(){try{var e=!1,t={top:1,left:0}\nObject.defineProperty(t,\"behavior\",{get:function(){return e=!0,\"smooth\"},enumerable:!0})\nvar n=document.createElement(\"DIV\"),o=document.createElement(\"DIV\")\nreturn n.setAttribute(\"style\",\"height: 1px; overflow: scroll;\"),o.setAttribute(\"style\",\"height: 2px; overflow: scroll;\"),n.appendChild(o),n.scrollTo(t),e}catch(l){return!1}}()\n" + }, { "name": "~shadydom" }, @@ -375,10 +420,6 @@ module.exports = { "name": "Element.prototype.previousElementSibling", "detectSource": "\"document\"in self&&\"previousElementSibling\"in document.documentElement\n" }, - { - "name": "HTMLPictureElement", - "detectSource": "\"HTMLPictureElement\"in self||\"picturefill\"in self\n" - }, { "name": "MutationObserver", "detectSource": "\"MutationObserver\"in self\n" diff --git a/packages/core-web/helpers/__mapping.js b/packages/core-web/helpers/__mapping.js index e2a6291c6..e1a1ffeaf 100644 --- a/packages/core-web/helpers/__mapping.js +++ b/packages/core-web/helpers/__mapping.js @@ -93,7 +93,7 @@ module.exports = [ ], "browsers": { "chrome": "<20", - "edge": "*", + "edge": "<79", "edge_mob": "*", "firefox": "<13", "firefox_mob": "<14", @@ -711,8 +711,8 @@ module.exports = [ "document.querySelector" ], "browsers": { - "edge": "<18", - "edge_mob": "<18", + "edge": "<15", + "edge_mob": "<15", "ie": "6 - *", "ie_mob": "10 - 11", "chrome": "* - 33", @@ -993,7 +993,7 @@ module.exports = [ "browsers": { "firefox": "<36", "chrome": "<26", - "edge": "*", + "edge": "<79", "edge_mob": "*", "safari": "<7", "opera": "<12", @@ -1030,7 +1030,7 @@ module.exports = [ ], "browsers": { "chrome": "<50", - "edge": "*", + "edge": "<79", "edge_mob": "*", "firefox": "<19", "safari": "<11", @@ -1057,8 +1057,8 @@ module.exports = [ "document" ], "browsers": { - "edge": "<12", - "edge_mob": "<12", + "edge": "<13", + "edge_mob": "<13", "ie": "*", "ie_mob": "10 - *", "firefox": "4 - 37", @@ -179497,7 +179497,7 @@ module.exports = [ ], "browsers": { "chrome": "<64", - "edge": "*", + "edge": "<79", "edge_mob": "*", "firefox": "<69", "ie": "9 - *", @@ -179598,7 +179598,7 @@ module.exports = [ "name": "WebAnimations", "deps": [], "browsers": { - "edge": "*", + "edge": "<79", "edge_mob": "*", "ie": "10 - *", "ie_mob": "10 - *", @@ -180200,7 +180200,7 @@ module.exports = [ "android": "<71", "bb": "*", "chrome": "<71", - "edge": "*", + "edge": "<79", "edge_mob": "*", "firefox": "<65", "firefox_mob": "<65", @@ -180424,7 +180424,7 @@ module.exports = [ ], "browsers": { "chrome": "<71", - "edge": "*", + "edge": "<79", "firefox": "<69", "ie": "*", "opera": "<58", @@ -180499,7 +180499,7 @@ module.exports = [ "android": "*", "bb": "*", "chrome": "<47", - "edge": "*", + "edge": "<79", "edge_mob": "*", "firefox": "<55", "ios_chr": "*", @@ -180520,7 +180520,7 @@ module.exports = [ "name": "screen.orientation", "deps": [], "browsers": { - "edge": "*", + "edge": "<79", "edge_mob": "*", "ie": "9 - *", "ie_mob": "*", @@ -180569,7 +180569,7 @@ module.exports = [ "Window" ], "browsers": { - "edge": "* - 76", + "edge": "<79", "edge_mob": "*", "ie": "9 - *", "ie_mob": "9 - *", diff --git a/packages/core-web/package.json b/packages/core-web/package.json index 41d06a6eb..17f8c9c51 100644 --- a/packages/core-web/package.json +++ b/packages/core-web/package.json @@ -1,6 +1,6 @@ { "name": "@mrhenry/core-web", - "version": "0.3.19", + "version": "0.3.20", "description": "browser feature polyfills as a babel plugin", "main": "lib/index.js", "author": "Simon Menke ", diff --git a/yarn.lock b/yarn.lock index c2ba2a290..168d4db0b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7793,10 +7793,10 @@ webpack-sources@^2.1.1: source-list-map "^2.0.1" source-map "^0.6.1" -webpack@^5.10.1: - version "5.10.1" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.10.1.tgz#81d1853d34bef5d6e5bfa119b98a43764b26c100" - integrity sha512-mHu4iM2mW7d/8R91VPPNtUCNd1D8k51TTb4e0XjylapIR6WEmW8XUTBZq8TqmShj9XYxVXJn6AzKlWnrlty6DA== +webpack@^5.10.2: + version "5.10.2" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.10.2.tgz#990ad134b8a6406b5e40e63da1870e0de40215dc" + integrity sha512-KpYTJerfb2KGxcOJNA1SMWXAf8/dxCDaQOhPIrfoV5rYceqet7OY/h3941/kuapx0noMcpTiVoNN3EHXsTYlsg== dependencies: "@types/eslint-scope" "^3.7.0" "@types/estree" "^0.0.45"