From b4240d54bbb3feeec2dcb3f2d56273aa8cd77ec7 Mon Sep 17 00:00:00 2001 From: George Bardis Date: Thu, 29 Feb 2024 01:14:48 +0200 Subject: [PATCH] fix(analytics-js-loading-scripts): add version in polyfill io url --- examples/v3-beacon/index.html | 2 +- examples/v3-legacy-minimum-plugins/index.html | 2 +- examples/v3-legacy/index.html | 2 +- examples/v3-minimum-plugins/index.html | 2 +- examples/v3/index.html | 2 +- packages/analytics-js/public/index-legacy-only.html | 2 +- packages/analytics-js/public/index.html | 2 +- packages/loading-scripts/src/index.ts | 2 +- packages/sanity-suite/public/v1.1/index-cdn.html | 2 +- packages/sanity-suite/public/v1.1/index-local.html | 2 +- packages/sanity-suite/public/v1.1/index-npm.html | 2 +- .../sanity-suite/public/v1.1/integrations/index-cdn.html | 2 +- .../sanity-suite/public/v1.1/integrations/index-local.html | 2 +- .../sanity-suite/public/v1.1/integrations/index-npm.html | 2 +- .../sanity-suite/public/v1.1/manualLoadCall/index-cdn.html | 2 +- .../sanity-suite/public/v1.1/manualLoadCall/index-local.html | 2 +- .../sanity-suite/public/v1.1/manualLoadCall/index-npm.html | 2 +- packages/sanity-suite/public/v3/index-cdn.html | 3 +-- packages/sanity-suite/public/v3/index-local.html | 5 +---- packages/sanity-suite/public/v3/index-npm.html | 2 +- packages/sanity-suite/public/v3/integrations/index-cdn.html | 5 +---- .../sanity-suite/public/v3/integrations/index-local.html | 5 +---- packages/sanity-suite/public/v3/integrations/index-npm.html | 2 +- .../sanity-suite/public/v3/manualLoadCall/index-cdn.html | 5 +---- .../sanity-suite/public/v3/manualLoadCall/index-local.html | 5 +---- .../sanity-suite/public/v3/manualLoadCall/index-npm.html | 2 +- 26 files changed, 26 insertions(+), 42 deletions(-) diff --git a/examples/v3-beacon/index.html b/examples/v3-beacon/index.html index 5c2192733f..9c1dfcdc3a 100644 --- a/examples/v3-beacon/index.html +++ b/examples/v3-beacon/index.html @@ -66,7 +66,7 @@ if (typeof Promise === 'undefined' || typeof globalThis === 'undefined') { var rudderAnalyticsPromisesScript = document.createElement('script'); rudderAnalyticsPromisesScript.src = - 'https://polyfill.io/v3/polyfill.min.js?features=Symbol%2CPromise&callback=rudderAnalyticsMount'; + 'https://polyfill.io/v3/polyfill.min.js?version=3.111.0&features=Symbol%2CPromise&callback=rudderAnalyticsMount'; rudderAnalyticsPromisesScript.async = asyncScript; if (document.head) { document.head.appendChild(rudderAnalyticsPromisesScript); diff --git a/examples/v3-legacy-minimum-plugins/index.html b/examples/v3-legacy-minimum-plugins/index.html index ad59e60dde..4f801555e8 100644 --- a/examples/v3-legacy-minimum-plugins/index.html +++ b/examples/v3-legacy-minimum-plugins/index.html @@ -66,7 +66,7 @@ if (typeof Promise === 'undefined' || typeof globalThis === 'undefined') { var rudderAnalyticsPromisesScript = document.createElement('script'); rudderAnalyticsPromisesScript.src = - 'https://polyfill.io/v3/polyfill.min.js?features=Symbol%2CPromise&callback=rudderAnalyticsMount'; + 'https://polyfill.io/v3/polyfill.min.js?version=3.111.0&features=Symbol%2CPromise&callback=rudderAnalyticsMount'; rudderAnalyticsPromisesScript.async = asyncScript; if (document.head) { document.head.appendChild(rudderAnalyticsPromisesScript); diff --git a/examples/v3-legacy/index.html b/examples/v3-legacy/index.html index 6d5b192309..195c11f3b1 100644 --- a/examples/v3-legacy/index.html +++ b/examples/v3-legacy/index.html @@ -66,7 +66,7 @@ if (typeof Promise === 'undefined' || typeof globalThis === 'undefined') { var rudderAnalyticsPromisesScript = document.createElement('script'); rudderAnalyticsPromisesScript.src = - 'https://polyfill.io/v3/polyfill.min.js?features=Symbol%2CPromise&callback=rudderAnalyticsMount'; + 'https://polyfill.io/v3/polyfill.min.js?version=3.111.0&features=Symbol%2CPromise&callback=rudderAnalyticsMount'; rudderAnalyticsPromisesScript.async = asyncScript; if (document.head) { document.head.appendChild(rudderAnalyticsPromisesScript); diff --git a/examples/v3-minimum-plugins/index.html b/examples/v3-minimum-plugins/index.html index 3d416c163d..0c3f55a162 100644 --- a/examples/v3-minimum-plugins/index.html +++ b/examples/v3-minimum-plugins/index.html @@ -66,7 +66,7 @@ if (typeof Promise === 'undefined' || typeof globalThis === 'undefined') { var rudderAnalyticsPromisesScript = document.createElement('script'); rudderAnalyticsPromisesScript.src = - 'https://polyfill.io/v3/polyfill.min.js?features=Symbol%2CPromise&callback=rudderAnalyticsMount'; + 'https://polyfill.io/v3/polyfill.min.js?version=3.111.0&features=Symbol%2CPromise&callback=rudderAnalyticsMount'; rudderAnalyticsPromisesScript.async = asyncScript; if (document.head) { document.head.appendChild(rudderAnalyticsPromisesScript); diff --git a/examples/v3/index.html b/examples/v3/index.html index f365d0827b..652b75dc36 100644 --- a/examples/v3/index.html +++ b/examples/v3/index.html @@ -66,7 +66,7 @@ if (typeof Promise === 'undefined' || typeof globalThis === 'undefined') { var rudderAnalyticsPromisesScript = document.createElement('script'); rudderAnalyticsPromisesScript.src = - 'https://polyfill.io/v3/polyfill.min.js?features=Symbol%2CPromise&callback=rudderAnalyticsMount'; + 'https://polyfill.io/v3/polyfill.min.js?version=3.111.0&features=Symbol%2CPromise&callback=rudderAnalyticsMount'; rudderAnalyticsPromisesScript.async = asyncScript; if (document.head) { document.head.appendChild(rudderAnalyticsPromisesScript); diff --git a/packages/analytics-js/public/index-legacy-only.html b/packages/analytics-js/public/index-legacy-only.html index 5ced218148..bdd6f59853 100644 --- a/packages/analytics-js/public/index-legacy-only.html +++ b/packages/analytics-js/public/index-legacy-only.html @@ -62,7 +62,7 @@ if (typeof Promise === 'undefined' || typeof globalThis === 'undefined') { var rudderAnalyticsPromisesScript = document.createElement('script'); rudderAnalyticsPromisesScript.src = - 'https://polyfill.io/v3/polyfill.min.js?features=Symbol%2CPromise&callback=rudderAnalyticsMount'; + 'https://polyfill.io/v3/polyfill.min.js?version=3.111.0&features=Symbol%2CPromise&callback=rudderAnalyticsMount'; rudderAnalyticsPromisesScript.async = asyncScript; if (document.head) { document.head.appendChild(rudderAnalyticsPromisesScript); diff --git a/packages/analytics-js/public/index.html b/packages/analytics-js/public/index.html index 3e4c84d484..c8a80740a4 100644 --- a/packages/analytics-js/public/index.html +++ b/packages/analytics-js/public/index.html @@ -62,7 +62,7 @@ if (typeof Promise === 'undefined' || typeof globalThis === 'undefined') { var rudderAnalyticsPromisesScript = document.createElement('script'); rudderAnalyticsPromisesScript.src = - 'https://polyfill.io/v3/polyfill.min.js?features=Symbol%2CPromise&callback=rudderAnalyticsMount'; + 'https://polyfill.io/v3/polyfill.min.js?version=3.111.0&features=Symbol%2CPromise&callback=rudderAnalyticsMount'; rudderAnalyticsPromisesScript.async = asyncScript; if (document.head) { document.head.appendChild(rudderAnalyticsPromisesScript); diff --git a/packages/loading-scripts/src/index.ts b/packages/loading-scripts/src/index.ts index 5ec7acbb90..743c86b314 100644 --- a/packages/loading-scripts/src/index.ts +++ b/packages/loading-scripts/src/index.ts @@ -83,7 +83,7 @@ window.rudderAnalyticsMount = () => { if (typeof Promise === 'undefined' || typeof globalThis === 'undefined') { const rudderAnalyticsPromisesScript = document.createElement('script'); rudderAnalyticsPromisesScript.src = - 'https://polyfill.io/v3/polyfill.min.js?features=Symbol%2CPromise&callback=rudderAnalyticsMount'; + 'https://polyfill.io/v3/polyfill.min.js?version=3.111.0&features=Symbol%2CPromise&callback=rudderAnalyticsMount'; rudderAnalyticsPromisesScript.async = asyncScript; if (document.head) { document.head.appendChild(rudderAnalyticsPromisesScript); diff --git a/packages/sanity-suite/public/v1.1/index-cdn.html b/packages/sanity-suite/public/v1.1/index-cdn.html index 7632cc2c4d..47a8d590ee 100644 --- a/packages/sanity-suite/public/v1.1/index-cdn.html +++ b/packages/sanity-suite/public/v1.1/index-cdn.html @@ -106,7 +106,7 @@ crossorigin="anonymous" >