From 0cfad387a17cfed04a505752b2a9ae45dea39153 Mon Sep 17 00:00:00 2001 From: yagovelazquez Date: Wed, 24 Jul 2024 01:58:33 -0300 Subject: [PATCH 1/4] add pluging to transform private methods --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 0bb6e1d4d28..71f264a49bb 100644 --- a/package.json +++ b/package.json @@ -123,6 +123,7 @@ }, "dependencies": { "@babel/core": "^7.16.7", + "@babel/plugin-proposal-private-methods": "^7.18.6", "@babel/plugin-transform-runtime": "^7.18.9", "@babel/preset-env": "^7.16.8", "@babel/runtime": "^7.18.9", From 46ea3692745009a13fb4deeeda22816e13928098 Mon Sep 17 00:00:00 2001 From: yagovelazquez Date: Wed, 24 Jul 2024 01:59:15 -0300 Subject: [PATCH 2/4] add to babel confnig --- babelConfig.js | 1 + 1 file changed, 1 insertion(+) diff --git a/babelConfig.js b/babelConfig.js index a88491c0cae..0d22ed544a2 100644 --- a/babelConfig.js +++ b/babelConfig.js @@ -26,6 +26,7 @@ module.exports = function (options = {}) { const plugins = [ [path.resolve(__dirname, './plugins/pbjsGlobals.js'), options], [useLocal('@babel/plugin-transform-runtime')], + [useLocal('@babel/plugin-transform-runtime')], ]; if (options.codeCoverage) { plugins.push([useLocal('babel-plugin-istanbul')]) From b6320967290fcd098afb59579e467e8e3f6b8620 Mon Sep 17 00:00:00 2001 From: yagovelazquez Date: Wed, 24 Jul 2024 13:32:24 -0300 Subject: [PATCH 3/4] fix problem for private methods --- babelConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babelConfig.js b/babelConfig.js index 0d22ed544a2..aa4670969ca 100644 --- a/babelConfig.js +++ b/babelConfig.js @@ -26,7 +26,7 @@ module.exports = function (options = {}) { const plugins = [ [path.resolve(__dirname, './plugins/pbjsGlobals.js'), options], [useLocal('@babel/plugin-transform-runtime')], - [useLocal('@babel/plugin-transform-runtime')], + [useLocal('@babel/plugin-proposal-private-methods')], ]; if (options.codeCoverage) { plugins.push([useLocal('babel-plugin-istanbul')]) From d26d8695c0cd88c5e39a702e1124f5ed499f9d34 Mon Sep 17 00:00:00 2001 From: yagovelazquez Date: Tue, 30 Jul 2024 10:56:58 -0300 Subject: [PATCH 4/4] move pluging to dev dependcies --- package-lock.json | 33 +++++++++++++++++++++++++++++++-- package.json | 2 +- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3491a10db60..523b3d3d27b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "prebid.js", - "version": "8.27.0", + "version": "8.49.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "prebid.js", - "version": "8.27.0", + "version": "8.49.5", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.16.7", @@ -27,6 +27,7 @@ }, "devDependencies": { "@babel/eslint-parser": "^7.16.5", + "@babel/plugin-proposal-private-methods": "^7.18.6", "@wdio/browserstack-service": "^8.29.0", "@wdio/cli": "^8.29.0", "@wdio/concise-reporter": "^8.29.0", @@ -590,6 +591,23 @@ "@babel/core": "^7.0.0" } }, + "node_modules/@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/plugin-proposal-private-property-in-object": { "version": "7.21.0-placeholder-for-preset-env.2", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", @@ -30449,6 +30467,7 @@ } }, "plugins/eslint": { + "name": "eslint-plugin-prebid", "version": "1.0.0", "dev": true, "license": "Apache-2.0" @@ -30782,6 +30801,16 @@ "@babel/helper-plugin-utils": "^7.24.0" } }, + "@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, "@babel/plugin-proposal-private-property-in-object": { "version": "7.21.0-placeholder-for-preset-env.2", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", diff --git a/package.json b/package.json index 71f264a49bb..4872b048c6f 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@babel/eslint-parser": "^7.16.5", + "@babel/plugin-proposal-private-methods": "^7.18.6", "@wdio/browserstack-service": "^8.29.0", "@wdio/cli": "^8.29.0", "@wdio/concise-reporter": "^8.29.0", @@ -123,7 +124,6 @@ }, "dependencies": { "@babel/core": "^7.16.7", - "@babel/plugin-proposal-private-methods": "^7.18.6", "@babel/plugin-transform-runtime": "^7.18.9", "@babel/preset-env": "^7.16.8", "@babel/runtime": "^7.18.9",