From 58ade9f84bd69e7cf987210ebe4990ec9a746077 Mon Sep 17 00:00:00 2001 From: Dina Hafez Date: Mon, 15 Jul 2024 12:29:34 +0100 Subject: [PATCH 1/5] Upgrade Prebid.js v8.52.0 Co-authored-by: Ravi <7014230+arelra@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 517 +++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 461 insertions(+), 58 deletions(-) diff --git a/package.json b/package.json index 40f733ae8..8aa56083b 100644 --- a/package.json +++ b/package.json @@ -104,10 +104,10 @@ "dependencies": { "@changesets/cli": "^2.26.2", "@guardian/ophan-tracker-js": "2.1.1", - "@guardian/prebid.js": "8.34.0", "@octokit/core": "^6.1.2", "fastdom": "^1.0.11", "lodash-es": "^4.17.21", + "prebid.js": "github:guardian/prebid.js#862f625", "process": "^0.11.10", "raven-js": "^3.27.2", "tslib": "^2.6.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dd9d419ab..f2fd1a0b0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,9 +11,6 @@ dependencies: '@guardian/ophan-tracker-js': specifier: 2.1.1 version: 2.1.1 - '@guardian/prebid.js': - specifier: 8.34.0 - version: 8.34.0(tslib@2.6.3)(typescript@5.3.3) '@octokit/core': specifier: ^6.1.2 version: 6.1.2 @@ -23,6 +20,9 @@ dependencies: lodash-es: specifier: ^4.17.21 version: 4.17.21 + prebid.js: + specifier: github:guardian/prebid.js#862f625 + version: github.com/guardian/prebid.js/862f625(babel-core@7.0.0-bridge.0)(tslib@2.6.3)(typescript@5.3.3) process: specifier: ^0.11.10 version: 0.11.10 @@ -2070,33 +2070,6 @@ packages: engines: {node: '>=16'} dev: false - /@guardian/prebid.js@8.34.0(tslib@2.6.3)(typescript@5.3.3): - resolution: {integrity: sha512-DLH/EuWGsM6oZcMVm+qsuWhYPl+TE4nqkDzAVJRjOkiP3AHHOZ7AnQaGzF9Y9tG3EeFU/iJwqJ43JlIjDBOt1A==} - engines: {node: '>=12.0.0'} - dependencies: - '@babel/core': 7.24.7 - '@babel/plugin-transform-runtime': 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': 7.24.7(@babel/core@7.24.7) - '@babel/runtime': 7.24.7 - '@guardian/libs': 16.1.2(tslib@2.6.3)(typescript@5.3.3) - core-js: 3.36.1 - core-js-pure: 3.36.1 - criteo-direct-rsa-validate: 1.1.0 - crypto-js: 4.2.0 - dlv: 1.1.3 - dset: 3.1.2 - express: 4.19.2 - fun-hooks: 0.9.10 - just-clone: 1.0.2 - live-connect-js: 6.7.0 - optionalDependencies: - fsevents: 2.3.3 - transitivePeerDependencies: - - supports-color - - tslib - - typescript - dev: false - /@guardian/prettier@4.0.0(prettier@2.8.8)(tslib@2.6.3): resolution: {integrity: sha512-JvvnDnI04NcmpuD2mF5ZXTWI7tand1pj1s33fh4JxHNAV00QXwTWZBI2/QWS3ck7KjpYjpRaz8CDUcMz35hReg==} peerDependencies: @@ -2527,14 +2500,6 @@ packages: resolution: {integrity: sha512-j7P6Rgr3mmtdkeDGTe0E/aYyWEWVtc5yFXtHCRHs28/jptDEWfaVOc5T7cblqy1XKPPfCxJc/8DwQ5YgLOZOVQ==} dev: true - /@rollup/rollup-linux-x64-gnu@4.18.0: - resolution: {integrity: sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: false - optional: true - /@sinclair/typebox@0.27.8: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true @@ -3388,6 +3353,13 @@ packages: uri-js: 4.4.1 dev: true + /ansi-colors@1.1.0: + resolution: {integrity: sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==} + engines: {node: '>=0.10.0'} + dependencies: + ansi-wrap: 0.1.0 + dev: false + /ansi-colors@4.1.3: resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} engines: {node: '>=6'} @@ -3444,6 +3416,11 @@ packages: engines: {node: '>=12'} dev: true + /ansi-wrap@0.1.0: + resolution: {integrity: sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==} + engines: {node: '>=0.10.0'} + dev: false + /anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -3461,6 +3438,16 @@ packages: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} dev: true + /arr-diff@4.0.0: + resolution: {integrity: sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==} + engines: {node: '>=0.10.0'} + dev: false + + /arr-union@3.1.0: + resolution: {integrity: sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==} + engines: {node: '>=0.10.0'} + dev: false + /array-buffer-byte-length@1.0.1: resolution: {integrity: sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==} engines: {node: '>= 0.4'} @@ -3535,6 +3522,11 @@ packages: engines: {node: '>=0.10.0'} dev: false + /assign-symbols@1.0.0: + resolution: {integrity: sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==} + engines: {node: '>=0.10.0'} + dev: false + /asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} dev: true @@ -3551,7 +3543,6 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.7 - dev: true /babel-jest@29.7.0(@babel/core@7.24.7): resolution: {integrity: sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==} @@ -3706,6 +3697,10 @@ packages: requiresBuild: true dev: true + /bluebird@3.7.2: + resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==} + dev: false + /body-parser@1.20.2: resolution: {integrity: sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} @@ -3784,6 +3779,13 @@ packages: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} dev: true + /bufferstreams@1.0.1: + resolution: {integrity: sha512-LZmiIfQprMLS6/k42w/PTc7awhU8AdNNcUerxTgr01WlP9agR2SgMv0wjlYYFD6eDOi8WvofrTX8RayjR/AeUQ==} + engines: {node: '>= 0.10.0'} + dependencies: + readable-stream: 1.1.14 + dev: false + /bytes@3.0.0: resolution: {integrity: sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==} engines: {node: '>= 0.8'} @@ -4035,6 +4037,177 @@ packages: engines: {node: '>=0.8'} dev: true + /consolidate@0.15.1(babel-core@7.0.0-bridge.0)(lodash@4.17.21): + resolution: {integrity: sha512-DW46nrsMJgy9kqAbPt5rKaCr7uFtpo4mSUvLHIUbJEjm0vo+aY5QLwBUq3FK4tRnJr/X0Psc0C4jf/h+HtXSMw==} + engines: {node: '>= 0.10.0'} + deprecated: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog + peerDependencies: + arc-templates: ^0.5.3 + atpl: '>=0.7.6' + babel-core: ^6.26.3 + bracket-template: ^1.1.5 + coffee-script: ^1.12.7 + dot: ^1.1.3 + dust: ^0.3.0 + dustjs-helpers: ^1.7.4 + dustjs-linkedin: ^2.7.5 + eco: ^1.1.0-rc-3 + ect: ^0.5.9 + ejs: ^3.1.5 + haml-coffee: ^1.14.1 + hamlet: ^0.3.3 + hamljs: ^0.6.2 + handlebars: ^4.7.6 + hogan.js: ^3.0.2 + htmling: ^0.0.8 + jade: ^1.11.0 + jazz: ^0.0.18 + jqtpl: ~1.1.0 + just: ^0.1.8 + liquid-node: ^3.0.1 + liquor: ^0.0.5 + lodash: ^4.17.20 + marko: ^3.14.4 + mote: ^0.2.0 + mustache: ^3.0.0 + nunjucks: ^3.2.2 + plates: ~0.4.11 + pug: ^3.0.0 + qejs: ^3.0.5 + ractive: ^1.3.12 + razor-tmpl: ^1.3.1 + react: ^16.13.1 + react-dom: ^16.13.1 + slm: ^2.0.0 + squirrelly: ^5.1.0 + swig: ^1.4.2 + swig-templates: ^2.0.3 + teacup: ^2.0.0 + templayed: '>=0.2.3' + then-jade: '*' + then-pug: '*' + tinyliquid: ^0.2.34 + toffee: ^0.3.6 + twig: ^1.15.2 + twing: ^5.0.2 + underscore: ^1.11.0 + vash: ^0.13.0 + velocityjs: ^2.0.1 + walrus: ^0.10.1 + whiskers: ^0.4.0 + peerDependenciesMeta: + arc-templates: + optional: true + atpl: + optional: true + babel-core: + optional: true + bracket-template: + optional: true + coffee-script: + optional: true + dot: + optional: true + dust: + optional: true + dustjs-helpers: + optional: true + dustjs-linkedin: + optional: true + eco: + optional: true + ect: + optional: true + ejs: + optional: true + haml-coffee: + optional: true + hamlet: + optional: true + hamljs: + optional: true + handlebars: + optional: true + hogan.js: + optional: true + htmling: + optional: true + jade: + optional: true + jazz: + optional: true + jqtpl: + optional: true + just: + optional: true + liquid-node: + optional: true + liquor: + optional: true + lodash: + optional: true + marko: + optional: true + mote: + optional: true + mustache: + optional: true + nunjucks: + optional: true + plates: + optional: true + pug: + optional: true + qejs: + optional: true + ractive: + optional: true + razor-tmpl: + optional: true + react: + optional: true + react-dom: + optional: true + slm: + optional: true + squirrelly: + optional: true + swig: + optional: true + swig-templates: + optional: true + teacup: + optional: true + templayed: + optional: true + then-jade: + optional: true + then-pug: + optional: true + tinyliquid: + optional: true + toffee: + optional: true + twig: + optional: true + twing: + optional: true + underscore: + optional: true + vash: + optional: true + velocityjs: + optional: true + walrus: + optional: true + whiskers: + optional: true + dependencies: + babel-core: 7.0.0-bridge.0(@babel/core@7.24.7) + bluebird: 3.7.2 + lodash: 4.17.21 + dev: false + /content-disposition@0.5.4: resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==} engines: {node: '>= 0.6'} @@ -4072,7 +4245,6 @@ packages: /core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} - dev: true /create-jest@29.7.0(@types/node@20.14.8): resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} @@ -4568,6 +4740,10 @@ packages: is-date-object: 1.0.5 is-symbol: 1.0.4 + /es6-promise@4.2.8: + resolution: {integrity: sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==} + dev: false + /escalade@3.1.2: resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==} engines: {node: '>=6'} @@ -5075,6 +5251,14 @@ packages: transitivePeerDependencies: - supports-color + /extend-shallow@3.0.2: + resolution: {integrity: sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==} + engines: {node: '>=0.10.0'} + dependencies: + assign-symbols: 1.0.0 + is-extendable: 1.0.1 + dev: false + /extendable-error@0.1.7: resolution: {integrity: sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==} dev: false @@ -5300,6 +5484,12 @@ packages: resolution: {integrity: sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==} dev: true + /fs-readfile-promise@3.0.1: + resolution: {integrity: sha512-LsSxMeaJdYH27XrW7Dmq0Gx63mioULCRel63B5VeELYLavi1wF5s0XfsIdKDFdCL9hsfQ2qBvXJszQtQJ9h17A==} + dependencies: + graceful-fs: 4.2.11 + dev: false + /fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} dev: true @@ -5456,6 +5646,75 @@ packages: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} dev: true + /gulp-wrap@0.15.0(babel-core@7.0.0-bridge.0): + resolution: {integrity: sha512-f17zkGObA+hE/FThlg55gfA0nsXbdmHK1WqzjjB2Ytq1TuhLR7JiCBJ3K4AlMzCyoFaCjfowos+VkToUNE0WTQ==} + engines: {node: '>=6.14', npm: '>=1.4.3'} + dependencies: + consolidate: 0.15.1(babel-core@7.0.0-bridge.0)(lodash@4.17.21) + es6-promise: 4.2.8 + fs-readfile-promise: 3.0.1 + js-yaml: 3.14.1 + lodash: 4.17.21 + node.extend: 2.0.2 + plugin-error: 1.0.1 + through2: 3.0.2 + tryit: 1.0.3 + vinyl-bufferstream: 1.0.1 + transitivePeerDependencies: + - arc-templates + - atpl + - babel-core + - bracket-template + - coffee-script + - dot + - dust + - dustjs-helpers + - dustjs-linkedin + - eco + - ect + - ejs + - haml-coffee + - hamlet + - hamljs + - handlebars + - hogan.js + - htmling + - jade + - jazz + - jqtpl + - just + - liquid-node + - liquor + - marko + - mote + - mustache + - nunjucks + - plates + - pug + - qejs + - ractive + - razor-tmpl + - react + - react-dom + - slm + - squirrelly + - swig + - swig-templates + - teacup + - templayed + - then-jade + - then-pug + - tinyliquid + - toffee + - twig + - twing + - underscore + - vash + - velocityjs + - walrus + - whiskers + dev: false + /gzip-size@6.0.0: resolution: {integrity: sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==} engines: {node: '>=10'} @@ -5502,6 +5761,11 @@ packages: dependencies: has-symbols: 1.0.3 + /has@1.0.4: + resolution: {integrity: sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==} + engines: {node: '>= 0.4.0'} + dev: false + /hasown@2.0.2: resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} @@ -5779,6 +6043,13 @@ packages: hasBin: true dev: true + /is-extendable@1.0.1: + resolution: {integrity: sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==} + engines: {node: '>=0.10.0'} + dependencies: + is-plain-object: 2.0.4 + dev: false + /is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} @@ -5839,7 +6110,6 @@ packages: engines: {node: '>=0.10.0'} dependencies: isobject: 3.0.1 - dev: true /is-potential-custom-element-name@1.0.1: resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} @@ -5910,6 +6180,14 @@ packages: is-docker: 2.2.1 dev: true + /is@3.3.0: + resolution: {integrity: sha512-nW24QBoPcFGGHJGUwnfpI7Yc5CdqWNdsyHQszVE/z2pKHXzh7FZ5GWhJqSyaQ9wMkQnsTx+kAI8bHlCX4tKdbg==} + dev: false + + /isarray@0.0.1: + resolution: {integrity: sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==} + dev: false + /isarray@1.0.0: resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} dev: true @@ -5923,7 +6201,6 @@ packages: /isobject@3.0.1: resolution: {integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==} engines: {node: '>=0.10.0'} - dev: true /istanbul-lib-coverage@3.2.2: resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} @@ -6543,10 +6820,6 @@ packages: graceful-fs: 4.2.11 dev: false - /just-clone@1.0.2: - resolution: {integrity: sha512-p93GINPwrve0w3HUzpXmpTl7MyzzWz1B5ag44KEtq/hP1mtK8lA2b9Q0VQaPlnY87352osJcE6uBmN0e8kuFMw==} - dev: false - /keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} dependencies: @@ -6567,6 +6840,11 @@ packages: engines: {node: '>=6'} dev: false + /klona@2.0.6: + resolution: {integrity: sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==} + engines: {node: '>= 8'} + dev: false + /launch-editor@2.8.0: resolution: {integrity: sha512-vJranOAJrI/llyWGRQqiDM+adrw+k83fvmmx3+nV47g3+36xM15jE+zyZ6Ffel02+xSvuM0b2GDRosXZkbb6wA==} dependencies: @@ -6632,19 +6910,17 @@ packages: wrap-ansi: 8.1.0 dev: true - /live-connect-common@3.1.3: - resolution: {integrity: sha512-E/P5rUZ6GveKBJd6DqpNVVdh73kKAEaJhPISm5jHn5uYISOvEluyupj92/kiDa1X6OJjmWhexApnbhYoM8+Ifw==} + /live-connect-common@3.1.4: + resolution: {integrity: sha512-NK5HH0b/6bQX6hZQttlDfqrpDiP+iYtYYGO47LfM9YVwT1OZITgYZUJ0oG4IVynwdpas/VGvXv5hN0UcVK97oQ==} engines: {node: '>=18'} dev: false - /live-connect-js@6.7.0: - resolution: {integrity: sha512-mgtPihyIUs/cnL1awcj8jZlnKvFbJWZdL4gsbR6K8UzJEdDko5kkqSdypBxgQz0fvvWzWcT9BBA2HW9qRnNCWQ==} + /live-connect-js@6.7.3: + resolution: {integrity: sha512-K2/GGhyhJ7/bFJfjiNw41W5xLRER9Smc49a8A6PImCcgit/sp2UsYz/F+sQwoj8IkJ3PufHvBnIGBbeQ31VsBg==} engines: {node: '>=18'} dependencies: - live-connect-common: 3.1.3 + live-connect-common: 3.1.4 tiny-hashes: 1.0.1 - optionalDependencies: - '@rollup/rollup-linux-x64-gnu': 4.18.0 dev: false /load-json-file@4.0.0: @@ -6729,7 +7005,6 @@ packages: /lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} - dev: true /log-update@5.0.1: resolution: {integrity: sha512-5UtUDQ/6edw4ofyljDNcOVJQ4c7OjDro4h3y8e1GQL5iYElYclVHJ3zeWchylvMaKnDbDilC8irOVyexnA/Slw==} @@ -6990,6 +7265,14 @@ packages: /node-releases@2.0.14: resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} + /node.extend@2.0.2: + resolution: {integrity: sha512-pDT4Dchl94/+kkgdwyS2PauDFjZG0Hk0IcHIB+LkW27HLDtdoeMxHTxZh39DYbPP8UflWXWj9JcdDozF+YDOpQ==} + engines: {node: '>=0.4.0'} + dependencies: + has: 1.0.4 + is: 3.3.0 + dev: false + /normalize-package-data@2.5.0: resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} dependencies: @@ -7376,6 +7659,16 @@ packages: fsevents: 2.3.2 dev: true + /plugin-error@1.0.1: + resolution: {integrity: sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==} + engines: {node: '>= 0.10'} + dependencies: + ansi-colors: 1.1.0 + arr-diff: 4.0.0 + arr-union: 3.1.0 + extend-shallow: 3.0.2 + dev: false + /possible-typed-array-names@1.0.0: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} @@ -7552,6 +7845,15 @@ packages: strip-bom: 3.0.0 dev: false + /readable-stream@1.1.14: + resolution: {integrity: sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==} + dependencies: + core-util-is: 1.0.3 + inherits: 2.0.4 + isarray: 0.0.1 + string_decoder: 0.10.31 + dev: false + /readable-stream@2.3.8: resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} dependencies: @@ -7571,7 +7873,6 @@ packages: inherits: 2.0.4 string_decoder: 1.3.0 util-deprecate: 1.0.2 - dev: true /readdirp@3.6.0: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} @@ -8155,6 +8456,10 @@ packages: define-properties: 1.2.1 es-object-atoms: 1.0.0 + /string_decoder@0.10.31: + resolution: {integrity: sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==} + dev: false + /string_decoder@1.1.1: resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} dependencies: @@ -8165,7 +8470,6 @@ packages: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} dependencies: safe-buffer: 5.2.1 - dev: true /strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} @@ -8296,6 +8600,13 @@ packages: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: true + /through2@3.0.2: + resolution: {integrity: sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==} + dependencies: + inherits: 2.0.4 + readable-stream: 3.6.2 + dev: false + /thunky@1.1.0: resolution: {integrity: sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==} dev: true @@ -8357,6 +8668,10 @@ packages: engines: {node: '>=8'} dev: false + /tryit@1.0.3: + resolution: {integrity: sha512-6C5h3CE+0qjGp+YKYTs74xR0k/Nw/ePtl/Lp6CCf44hqBQ66qnH1sDFR5mV/Gc48EsrHLB53lCFSffQCkka3kg==} + dev: false + /ts-api-utils@1.3.0(typescript@5.3.3): resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} engines: {node: '>=16'} @@ -8649,7 +8964,6 @@ packages: /util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - dev: true /utils-merge@1.0.1: resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} @@ -8679,6 +8993,12 @@ packages: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} + /vinyl-bufferstream@1.0.1: + resolution: {integrity: sha512-yCCIoTf26Q9SQ0L9cDSavSL7Nt6wgQw8TU1B/bb9b9Z4A3XTypXCGdc5BvXl4ObQvVY8JrDkFnWa/UqBqwM2IA==} + dependencies: + bufferstreams: 1.0.1 + dev: false + /w3c-xmlserializer@4.0.0: resolution: {integrity: sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==} engines: {node: '>=14'} @@ -9139,3 +9459,86 @@ packages: resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} engines: {node: '>=12.20'} dev: true + + github.com/guardian/prebid.js/862f625(babel-core@7.0.0-bridge.0)(tslib@2.6.3)(typescript@5.3.3): + resolution: {tarball: https://codeload.github.com/guardian/prebid.js/tar.gz/862f625} + id: github.com/guardian/prebid.js/862f625 + name: '@guardian/prebid.js' + version: 8.52.0 + engines: {node: '>=12.0.0'} + dependencies: + '@babel/core': 7.24.7 + '@babel/plugin-transform-runtime': 7.24.7(@babel/core@7.24.7) + '@babel/preset-env': 7.24.7(@babel/core@7.24.7) + '@babel/runtime': 7.24.7 + '@guardian/libs': 16.1.2(tslib@2.6.3)(typescript@5.3.3) + core-js: 3.36.1 + core-js-pure: 3.36.1 + criteo-direct-rsa-validate: 1.1.0 + crypto-js: 4.2.0 + dlv: 1.1.3 + dset: 3.1.2 + express: 4.19.2 + fun-hooks: 0.9.10 + gulp-wrap: 0.15.0(babel-core@7.0.0-bridge.0) + klona: 2.0.6 + live-connect-js: 6.7.3 + optionalDependencies: + fsevents: 2.3.3 + transitivePeerDependencies: + - arc-templates + - atpl + - babel-core + - bracket-template + - coffee-script + - dot + - dust + - dustjs-helpers + - dustjs-linkedin + - eco + - ect + - ejs + - haml-coffee + - hamlet + - hamljs + - handlebars + - hogan.js + - htmling + - jade + - jazz + - jqtpl + - just + - liquid-node + - liquor + - marko + - mote + - mustache + - nunjucks + - plates + - pug + - qejs + - ractive + - razor-tmpl + - react + - react-dom + - slm + - squirrelly + - supports-color + - swig + - swig-templates + - teacup + - templayed + - then-jade + - then-pug + - tinyliquid + - toffee + - tslib + - twig + - twing + - typescript + - underscore + - vash + - velocityjs + - walrus + - whiskers + dev: false From 0a69e3648b72b1a6d73e894b7ae7b37840ada005 Mon Sep 17 00:00:00 2001 From: Dina Hafez Date: Mon, 15 Jul 2024 12:46:18 +0100 Subject: [PATCH 2/5] Changing the prebid.js package name Co-authored-by: Ravi <7014230+arelra@users.noreply.github.com> --- src/init/consented/prepare-prebid.ts | 2 +- src/lib/header-bidding/prebid/prebid.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init/consented/prepare-prebid.ts b/src/init/consented/prepare-prebid.ts index 5879b12e5..316fb1f5e 100644 --- a/src/init/consented/prepare-prebid.ts +++ b/src/init/consented/prepare-prebid.ts @@ -20,7 +20,7 @@ const loadPrebid = async (framework: ConsentFramework): Promise => { if (shouldLoadPrebid()) { await import( // @ts-expect-error -- there’s no types for Prebid.js - /* webpackChunkName: "Prebid.js" */ '@guardian/prebid.js/build/dist/prebid' + /* webpackChunkName: "Prebid.js" */ 'prebid.js/build/dist/prebid' ); prebid.initialise(window, framework); } diff --git a/src/lib/header-bidding/prebid/prebid.spec.ts b/src/lib/header-bidding/prebid/prebid.spec.ts index b90949e4a..19763a014 100644 --- a/src/lib/header-bidding/prebid/prebid.spec.ts +++ b/src/lib/header-bidding/prebid/prebid.spec.ts @@ -24,7 +24,7 @@ const resetPrebid = () => { // @ts-expect-error -- there’s no types for this delete window.pbjsChunk; jest.resetModules(); - jest.requireActual('@guardian/prebid.js/build/dist/prebid'); + jest.requireActual('prebid.js/build/dist/prebid'); }; describe('initialise', () => { From eb6e07a455cb83a5e12373c73b172c74809e8415 Mon Sep 17 00:00:00 2001 From: Dina Hafez Date: Mon, 15 Jul 2024 12:47:35 +0100 Subject: [PATCH 3/5] Add an upstream parameter to prebid config test Co-authored-by: Ravi <7014230+arelra@users.noreply.github.com> --- src/lib/header-bidding/prebid/prebid.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/header-bidding/prebid/prebid.spec.ts b/src/lib/header-bidding/prebid/prebid.spec.ts index 19763a014..a197a0b7f 100644 --- a/src/lib/header-bidding/prebid/prebid.spec.ts +++ b/src/lib/header-bidding/prebid/prebid.spec.ts @@ -71,6 +71,7 @@ describe('initialise', () => { deviceAccess: true, disableAjaxTimeout: false, enableSendAllBids: true, + maxBid: 5000, maxNestedIframes: 10, mediaTypePriceGranularity: {}, priceGranularity: 'custom', From 0b666396806db79fe85c736343ff0f17ff54c127 Mon Sep 17 00:00:00 2001 From: Dina Hafez Date: Mon, 15 Jul 2024 12:55:49 +0100 Subject: [PATCH 4/5] Add changeset Co-authored-by: Ravi <7014230+arelra@users.noreply.github.com> --- .changeset/hip-items-shop.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/hip-items-shop.md diff --git a/.changeset/hip-items-shop.md b/.changeset/hip-items-shop.md new file mode 100644 index 000000000..f30583c72 --- /dev/null +++ b/.changeset/hip-items-shop.md @@ -0,0 +1,5 @@ +--- +'@guardian/commercial': minor +--- + +Upgrade prebid.js to 8.52.0 From 5570ba91a7dc39463248cfeb463f4cf930c06031 Mon Sep 17 00:00:00 2001 From: Dina Hafez Date: Mon, 15 Jul 2024 14:17:53 +0100 Subject: [PATCH 5/5] Add 40 characters commit hash for bumping in Frontend --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 8aa56083b..a2df87a7c 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "@octokit/core": "^6.1.2", "fastdom": "^1.0.11", "lodash-es": "^4.17.21", - "prebid.js": "github:guardian/prebid.js#862f625", + "prebid.js": "github:guardian/prebid.js#862f625999182d549dddb6598265d7916ecd6e88", "process": "^0.11.10", "raven-js": "^3.27.2", "tslib": "^2.6.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f2fd1a0b0..b7e6201e1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,8 +21,8 @@ dependencies: specifier: ^4.17.21 version: 4.17.21 prebid.js: - specifier: github:guardian/prebid.js#862f625 - version: github.com/guardian/prebid.js/862f625(babel-core@7.0.0-bridge.0)(tslib@2.6.3)(typescript@5.3.3) + specifier: github:guardian/prebid.js#862f625999182d549dddb6598265d7916ecd6e88 + version: github.com/guardian/prebid.js/862f625999182d549dddb6598265d7916ecd6e88(babel-core@7.0.0-bridge.0)(tslib@2.6.3)(typescript@5.3.3) process: specifier: ^0.11.10 version: 0.11.10 @@ -9460,9 +9460,9 @@ packages: engines: {node: '>=12.20'} dev: true - github.com/guardian/prebid.js/862f625(babel-core@7.0.0-bridge.0)(tslib@2.6.3)(typescript@5.3.3): - resolution: {tarball: https://codeload.github.com/guardian/prebid.js/tar.gz/862f625} - id: github.com/guardian/prebid.js/862f625 + github.com/guardian/prebid.js/862f625999182d549dddb6598265d7916ecd6e88(babel-core@7.0.0-bridge.0)(tslib@2.6.3)(typescript@5.3.3): + resolution: {tarball: https://codeload.github.com/guardian/prebid.js/tar.gz/862f625999182d549dddb6598265d7916ecd6e88} + id: github.com/guardian/prebid.js/862f625999182d549dddb6598265d7916ecd6e88 name: '@guardian/prebid.js' version: 8.52.0 engines: {node: '>=12.0.0'}