@splitsoftware/splitio 10.19.2-rc.2 → 10.19.2-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export var packageVersion = '10.19.2-rc.2';
1
+ export var packageVersion = '10.19.2-rc.3';
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageVersion = void 0;
4
- exports.packageVersion = '10.19.2-rc.2';
4
+ exports.packageVersion = '10.19.2-rc.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio",
3
- "version": "10.19.2-rc.2",
3
+ "version": "10.19.2-rc.3",
4
4
  "description": "Split SDK",
5
5
  "files": [
6
6
  "README.md",
@@ -10,7 +10,8 @@
10
10
  "lib",
11
11
  "types",
12
12
  "es",
13
- "src"
13
+ "src",
14
+ "scripts/GaToSplitAutoRequire"
14
15
  ],
15
16
  "repository": "splitio/javascript-client",
16
17
  "homepage": "https://github.com/splitio/javascript-client#readme",
@@ -32,7 +33,7 @@
32
33
  "node": ">=6"
33
34
  },
34
35
  "dependencies": {
35
- "@splitsoftware/splitio-commons": "1.4.2-rc.3",
36
+ "@splitsoftware/splitio-commons": "1.4.2-rc.5",
36
37
  "@types/google.analytics": "0.0.40",
37
38
  "@types/ioredis": "^4.28.0",
38
39
  "ioredis": "^4.28.0",
@@ -83,6 +84,7 @@
83
84
  "postbuild-cjs": "cross-env NODE_ENV=cjs node scripts/copy.packages.json.js && ./scripts/build_cjs_replace_imports.sh",
84
85
  "build-umd": "webpack --config webpack.dev.js --env branch=$BUILD_BRANCH --env commit_hash=$BUILD_COMMIT && webpack --config webpack.prod.js --env branch=$BUILD_BRANCH --env commit_hash=$BUILD_COMMIT && ./scripts/clean_umd_build.sh",
85
86
  "build:npm": "rimraf lib es && npm run build-cjs && npm run build-esm",
87
+ "build:gaToSplitAutoRequire": "terser ./node_modules/@splitsoftware/splitio-commons/src/integrations/ga/autoRequire.js --output ./scripts/GaToSplitAutoRequire/index.js && cp ./scripts/GaToSplitAutoRequire/index.js umd/GaToSplitAutoRequire.js",
86
88
  "build": "rimraf lib umd es && npm run build-cjs && npm run build-esm && npm run build-umd",
87
89
  "check": "npm run check:lint && npm run check:version",
88
90
  "check:lint": "eslint src",
@@ -0,0 +1 @@
1
+ (function(i,r,s){i[s]=i[s]||r;i[r]=i[r]||function(){i[r].q.push(arguments)};i[r].q=i[r].q||[];var ts={};function n(arg){return typeof arg==="object"&&typeof arg.name==="string"&&arg.name}function p(v){if(v&&v[0]==="create"){var t=n(v[1])||n(v[2])||n(v[3])||(typeof v[3]==="string"?v[3]:undefined);if(!ts[t]){ts[t]=true;i[r]((t?t+".":"")+"require","splitTracker")}}}i[r].q.forEach((function(v){p(v)}));var o=i[r].q.push;i[r].q.push=function(v){var result=o.apply(this,arguments);p(v);return result}})(window,"ga","GoogleAnalyticsObject");
package/src/.DS_Store CHANGED
Binary file
Binary file
@@ -1 +1 @@
1
- export const packageVersion = '10.19.2-rc.2';
1
+ export const packageVersion = '10.19.2-rc.3';
@@ -758,6 +758,17 @@ declare namespace SplitIO {
758
758
  * If not provided, events are sent using the key and traffic type provided at SDK config
759
759
  */
760
760
  identities?: Identity[],
761
+ /**
762
+ * Optional flag to log an error if the `auto-require` script is not detected.
763
+ * The auto-require script automatically requires the `splitTracker` plugin for created trackers,
764
+ * and should be placed right after your Google Analytics, Google Tag Manager or gtag.js script tag.
765
+ *
766
+ * @see {@link https://help.split.io/hc/en-us/articles/360040838752#set-up-with-gtm-and-gtag.js}
767
+ *
768
+ * @property {boolean} autoRequire
769
+ * @default false
770
+ */
771
+ autoRequire?: boolean,
761
772
  }
762
773
  /**
763
774
  * Object representing the data sent by Split (events and impressions).