Skip to content

Commit

Permalink
chore(release): merge release/3.78.0-SDK-3001 into main [SDK-3001] (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs authored Feb 20, 2025
2 parents d834d95 + acd8504 commit ed4db5b
Show file tree
Hide file tree
Showing 88 changed files with 714 additions and 385 deletions.
10 changes: 7 additions & 3 deletions examples/angular/sample-app/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script>
(function() {
"use strict";
window.RudderSnippetVersion = "3.0.58";
window.RudderSnippetVersion = "3.0.60";
var identifier = "rudderanalytics";
if (!window[identifier]) {
window[identifier] = [];
Expand All @@ -20,7 +20,11 @@
console.error("RudderStack JavaScript SDK snippet included more than once.");
} else {
rudderanalytics.snippetExecuted = true;

window.rudderAnalyticsBuildType = "legacy";
var sdkBaseUrl = "https://cdn.rudderlabs.com";
var sdkVersion = "v3";
var sdkFileName = "rsa.min.js";
var scriptLoadingMode = "async";
var methods = [ "setDefaultInstanceKey", "load", "ready", "page", "track", "identify", "alias", "group", "reset", "setAnonymousId", "startSession", "endSession", "consent" ];
for (var i = 0; i < methods.length; i++) {
var method = methods[i];
Expand All @@ -30,7 +34,7 @@
rudderanalytics.push([ methodName ].concat(Array.prototype.slice.call(arguments)));
} else {
var _methodName;
(_methodName = window[identifier][methodName]) === null || _methodName === void 0 || _methodName.apply(window[identifier], arguments);
(_methodName = window[identifier][methodName]) === null || _methodName === undefined || _methodName.apply(window[identifier], arguments);
}
};
}(method);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,26 @@
-->
<title>React App</title>
<script type="text/javascript">
!function(){"use strict";window.RudderSnippetVersion="3.0.58";var e="rudderanalytics";window[e]||(window[e]=[])
!function(){"use strict";window.RudderSnippetVersion="3.0.60";var e="rudderanalytics";window[e]||(window[e]=[])
;var rudderanalytics=window[e];if(Array.isArray(rudderanalytics)){
if(true===rudderanalytics.snippetExecuted&&window.console&&console.error){
console.error("RudderStack JavaScript SDK snippet included more than once.")}else{rudderanalytics.snippetExecuted=true,
window.rudderAnalyticsBuildType="legacy";var sdkBaseUrl="https://cdn.rudderlabs.com/v3";var sdkName="rsa.min.js"
;var scriptLoadingMode="async"
window.rudderAnalyticsBuildType="legacy";var sdkBaseUrl="https://cdn.rudderlabs.com";var sdkVersion="v3"
;var sdkFileName="rsa.min.js";var scriptLoadingMode="async"
;var r=["setDefaultInstanceKey","load","ready","page","track","identify","alias","group","reset","setAnonymousId","startSession","endSession","consent"]
;for(var n=0;n<r.length;n++){var t=r[n];rudderanalytics[t]=function(r){return function(){var n
;Array.isArray(window[e])?rudderanalytics.push([r].concat(Array.prototype.slice.call(arguments))):null===(n=window[e][r])||void 0===n||n.apply(window[e],arguments)
}}(t)}try{
new Function('class Test{field=()=>{};test({prop=[]}={}){return prop?(prop?.property??[...prop]):import("");}}'),
window.rudderAnalyticsBuildType="modern"}catch(o){}var d=document.head||document.getElementsByTagName("head")[0]
;var i=document.body||document.getElementsByTagName("body")[0];window.rudderAnalyticsAddScript=function(e,r,n){
window.rudderAnalyticsBuildType="modern"}catch(i){}var d=document.head||document.getElementsByTagName("head")[0]
;var o=document.body||document.getElementsByTagName("body")[0];window.rudderAnalyticsAddScript=function(e,r,n){
var t=document.createElement("script");t.src=e,t.setAttribute("data-loader","RS_JS_SDK"),r&&n&&t.setAttribute(r,n),
"async"===scriptLoadingMode?t.async=true:"defer"===scriptLoadingMode&&(t.defer=true),
d?d.insertBefore(t,d.firstChild):i.insertBefore(t,i.firstChild)},window.rudderAnalyticsMount=function(){!function(){
d?d.insertBefore(t,d.firstChild):o.insertBefore(t,o.firstChild)},window.rudderAnalyticsMount=function(){!function(){
if("undefined"==typeof globalThis){var e;var r=function getGlobal(){
return"undefined"!=typeof self?self:"undefined"!=typeof window?window:null}();r&&Object.defineProperty(r,"globalThis",{
value:r,configurable:true})}
}(),window.rudderAnalyticsAddScript("".concat(sdkBaseUrl,"/").concat(window.rudderAnalyticsBuildType,"/").concat(sdkName),"data-rsa-write-key","dummyWriteKey")
}(),window.rudderAnalyticsAddScript("".concat(sdkBaseUrl,"/").concat(sdkVersion,"/").concat(window.rudderAnalyticsBuildType,"/").concat(sdkFileName),"data-rsa-write-key","dummyWriteKey")
},
"undefined"==typeof Promise||"undefined"==typeof globalThis?window.rudderAnalyticsAddScript("https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=Symbol%2CPromise&callback=rudderAnalyticsMount"):window.rudderAnalyticsMount()
;}}}();
Expand Down
10 changes: 7 additions & 3 deletions examples/nextjs/hooks/sample-app/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
{`
(function() {
"use strict";
window.RudderSnippetVersion = "3.0.58";
window.RudderSnippetVersion = "3.0.60";
var identifier = "rudderanalytics";
if (!window[identifier]) {
window[identifier] = [];
Expand All @@ -29,7 +29,11 @@ export default function RootLayout({ children }: { children: React.ReactNode })
console.error("RudderStack JavaScript SDK snippet included more than once.");
} else {
rudderanalytics.snippetExecuted = true;
window.rudderAnalyticsBuildType = "legacy";
var sdkBaseUrl = "https://cdn.rudderlabs.com";
var sdkVersion = "v3";
var sdkFileName = "rsa.min.js";
var scriptLoadingMode = "async";
var methods = [ "setDefaultInstanceKey", "load", "ready", "page", "track", "identify", "alias", "group", "reset", "setAnonymousId", "startSession", "endSession", "consent" ];
for (var i = 0; i < methods.length; i++) {
var method = methods[i];
Expand All @@ -39,7 +43,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
rudderanalytics.push([ methodName ].concat(Array.prototype.slice.call(arguments)));
} else {
var _methodName;
(_methodName = window[identifier][methodName]) === null || _methodName === void 0 || _methodName.apply(window[identifier], arguments);
(_methodName = window[identifier][methodName]) === null || _methodName === undefined || _methodName.apply(window[identifier], arguments);
}
};
}(method);
Expand Down
10 changes: 7 additions & 3 deletions examples/nextjs/js/sample-app/src/app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function RootLayout({ children }) {
{`
(function() {
"use strict";
window.RudderSnippetVersion = "3.0.58";
window.RudderSnippetVersion = "3.0.60";
var identifier = "rudderanalytics";
if (!window[identifier]) {
window[identifier] = [];
Expand All @@ -28,7 +28,11 @@ export default function RootLayout({ children }) {
console.error("RudderStack JavaScript SDK snippet included more than once.");
} else {
rudderanalytics.snippetExecuted = true;
window.rudderAnalyticsBuildType = "legacy";
var sdkBaseUrl = "https://cdn.rudderlabs.com";
var sdkVersion = "v3";
var sdkFileName = "rsa.min.js";
var scriptLoadingMode = "async";
var methods = [ "setDefaultInstanceKey", "load", "ready", "page", "track", "identify", "alias", "group", "reset", "setAnonymousId", "startSession", "endSession", "consent" ];
for (var i = 0; i < methods.length; i++) {
var method = methods[i];
Expand All @@ -38,7 +42,7 @@ export default function RootLayout({ children }) {
rudderanalytics.push([ methodName ].concat(Array.prototype.slice.call(arguments)));
} else {
var _methodName;
(_methodName = window[identifier][methodName]) === null || _methodName === void 0 || _methodName.apply(window[identifier], arguments);
(_methodName = window[identifier][methodName]) === null || _methodName === undefined || _methodName.apply(window[identifier], arguments);
}
};
}(method);
Expand Down
10 changes: 7 additions & 3 deletions examples/nextjs/page-router/sample-app/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Document() {
{`
(function() {
"use strict";
window.RudderSnippetVersion = "3.0.58";
window.RudderSnippetVersion = "3.0.60";
var identifier = "rudderanalytics";
if (!window[identifier]) {
window[identifier] = [];
Expand All @@ -20,7 +20,11 @@ export default function Document() {
console.error("RudderStack JavaScript SDK snippet included more than once.");
} else {
rudderanalytics.snippetExecuted = true;
window.rudderAnalyticsBuildType = "legacy";
var sdkBaseUrl = "https://cdn.rudderlabs.com";
var sdkVersion = "v3";
var sdkFileName = "rsa.min.js";
var scriptLoadingMode = "async";
var methods = [ "setDefaultInstanceKey", "load", "ready", "page", "track", "identify", "alias", "group", "reset", "setAnonymousId", "startSession", "endSession", "consent" ];
for (var i = 0; i < methods.length; i++) {
var method = methods[i];
Expand All @@ -30,7 +34,7 @@ export default function Document() {
rudderanalytics.push([ methodName ].concat(Array.prototype.slice.call(arguments)));
} else {
var _methodName;
(_methodName = window[identifier][methodName]) === null || _methodName === void 0 || _methodName.apply(window[identifier], arguments);
(_methodName = window[identifier][methodName]) === null || _methodName === undefined || _methodName.apply(window[identifier], arguments);
}
};
}(method);
Expand Down
10 changes: 7 additions & 3 deletions examples/nextjs/ts/sample-app/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
{`
(function() {
"use strict";
window.RudderSnippetVersion = "3.0.58";
window.RudderSnippetVersion = "3.0.60";
var identifier = "rudderanalytics";
if (!window[identifier]) {
window[identifier] = [];
Expand All @@ -29,7 +29,11 @@ export default function RootLayout({ children }: { children: React.ReactNode })
console.error("RudderStack JavaScript SDK snippet included more than once.");
} else {
rudderanalytics.snippetExecuted = true;
window.rudderAnalyticsBuildType = "legacy";
var sdkBaseUrl = "https://cdn.rudderlabs.com";
var sdkVersion = "v3";
var sdkFileName = "rsa.min.js";
var scriptLoadingMode = "async";
var methods = [ "setDefaultInstanceKey", "load", "ready", "page", "track", "identify", "alias", "group", "reset", "setAnonymousId", "startSession", "endSession", "consent" ];
for (var i = 0; i < methods.length; i++) {
var method = methods[i];
Expand All @@ -39,7 +43,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
rudderanalytics.push([ methodName ].concat(Array.prototype.slice.call(arguments)));
} else {
var _methodName;
(_methodName = window[identifier][methodName]) === null || _methodName === void 0 || _methodName.apply(window[identifier], arguments);
(_methodName = window[identifier][methodName]) === null || _methodName === undefined || _methodName.apply(window[identifier], arguments);
}
};
}(method);
Expand Down
10 changes: 7 additions & 3 deletions examples/reactjs/hooks/sample-app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<script>
(function() {
"use strict";
window.RudderSnippetVersion = "3.0.58";
window.RudderSnippetVersion = "3.0.60";
var identifier = "rudderanalytics";
if (!window[identifier]) {
window[identifier] = [];
Expand All @@ -39,7 +39,11 @@
console.error("RudderStack JavaScript SDK snippet included more than once.");
} else {
rudderanalytics.snippetExecuted = true;

window.rudderAnalyticsBuildType = "legacy";
var sdkBaseUrl = "https://cdn.rudderlabs.com";
var sdkVersion = "v3";
var sdkFileName = "rsa.min.js";
var scriptLoadingMode = "async";
var methods = [ "setDefaultInstanceKey", "load", "ready", "page", "track", "identify", "alias", "group", "reset", "setAnonymousId", "startSession", "endSession", "consent" ];
for (var i = 0; i < methods.length; i++) {
var method = methods[i];
Expand All @@ -49,7 +53,7 @@
rudderanalytics.push([ methodName ].concat(Array.prototype.slice.call(arguments)));
} else {
var _methodName;
(_methodName = window[identifier][methodName]) === null || _methodName === void 0 || _methodName.apply(window[identifier], arguments);
(_methodName = window[identifier][methodName]) === null || _methodName === undefined || _methodName.apply(window[identifier], arguments);
}
};
}(method);
Expand Down
10 changes: 7 additions & 3 deletions examples/reactjs/js/sample-app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<script>
(function() {
"use strict";
window.RudderSnippetVersion = "3.0.58";
window.RudderSnippetVersion = "3.0.60";
var identifier = "rudderanalytics";
if (!window[identifier]) {
window[identifier] = [];
Expand All @@ -39,7 +39,11 @@
console.error("RudderStack JavaScript SDK snippet included more than once.");
} else {
rudderanalytics.snippetExecuted = true;

window.rudderAnalyticsBuildType = "legacy";
var sdkBaseUrl = "https://cdn.rudderlabs.com";
var sdkVersion = "v3";
var sdkFileName = "rsa.min.js";
var scriptLoadingMode = "async";
var methods = [ "setDefaultInstanceKey", "load", "ready", "page", "track", "identify", "alias", "group", "reset", "setAnonymousId", "startSession", "endSession", "consent" ];
for (var i = 0; i < methods.length; i++) {
var method = methods[i];
Expand All @@ -49,7 +53,7 @@
rudderanalytics.push([ methodName ].concat(Array.prototype.slice.call(arguments)));
} else {
var _methodName;
(_methodName = window[identifier][methodName]) === null || _methodName === void 0 || _methodName.apply(window[identifier], arguments);
(_methodName = window[identifier][methodName]) === null || _methodName === undefined || _methodName.apply(window[identifier], arguments);
}
};
}(method);
Expand Down
10 changes: 7 additions & 3 deletions examples/reactjs/ts/sample-app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<script>
(function() {
"use strict";
window.RudderSnippetVersion = "3.0.58";
window.RudderSnippetVersion = "3.0.60";
var identifier = "rudderanalytics";
if (!window[identifier]) {
window[identifier] = [];
Expand All @@ -39,7 +39,11 @@
console.error("RudderStack JavaScript SDK snippet included more than once.");
} else {
rudderanalytics.snippetExecuted = true;

window.rudderAnalyticsBuildType = "legacy";
var sdkBaseUrl = "https://cdn.rudderlabs.com";
var sdkVersion = "v3";
var sdkFileName = "rsa.min.js";
var scriptLoadingMode = "async";
var methods = [ "setDefaultInstanceKey", "load", "ready", "page", "track", "identify", "alias", "group", "reset", "setAnonymousId", "startSession", "endSession", "consent" ];
for (var i = 0; i < methods.length; i++) {
var method = methods[i];
Expand All @@ -49,7 +53,7 @@
rudderanalytics.push([ methodName ].concat(Array.prototype.slice.call(arguments)));
} else {
var _methodName;
(_methodName = window[identifier][methodName]) === null || _methodName === void 0 || _methodName.apply(window[identifier], arguments);
(_methodName = window[identifier][methodName]) === null || _methodName === undefined || _methodName.apply(window[identifier], arguments);
}
};
}(method);
Expand Down
10 changes: 7 additions & 3 deletions examples/reactjs/vite/sample-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script>
(function() {
"use strict";
window.RudderSnippetVersion = "3.0.58";
window.RudderSnippetVersion = "3.0.60";
var identifier = "rudderanalytics";
if (!window[identifier]) {
window[identifier] = [];
Expand All @@ -19,7 +19,11 @@
console.error("RudderStack JavaScript SDK snippet included more than once.");
} else {
rudderanalytics.snippetExecuted = true;

window.rudderAnalyticsBuildType = "legacy";
var sdkBaseUrl = "https://cdn.rudderlabs.com";
var sdkVersion = "v3";
var sdkFileName = "rsa.min.js";
var scriptLoadingMode = "async";
var methods = [ "setDefaultInstanceKey", "load", "ready", "page", "track", "identify", "alias", "group", "reset", "setAnonymousId", "startSession", "endSession", "consent" ];
for (var i = 0; i < methods.length; i++) {
var method = methods[i];
Expand All @@ -29,7 +33,7 @@
rudderanalytics.push([ methodName ].concat(Array.prototype.slice.call(arguments)));
} else {
var _methodName;
(_methodName = window[identifier][methodName]) === null || _methodName === void 0 || _methodName.apply(window[identifier], arguments);
(_methodName = window[identifier][methodName]) === null || _methodName === undefined || _methodName.apply(window[identifier], arguments);
}
};
}(method);
Expand Down
Loading

0 comments on commit ed4db5b

Please sign in to comment.