@splitsoftware/splitio 10.19.2-rc.0 → 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.0';
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.0';
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.0",
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.0",
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");
@@ -1 +1 @@
1
- export const packageVersion = '10.19.2-rc.0';
1
+ export const packageVersion = '10.19.2-rc.3';
@@ -761,9 +761,9 @@ declare namespace SplitIO {
761
761
  /**
762
762
  * Optional flag to log an error if the `auto-require` script is not detected.
763
763
  * The auto-require script automatically requires the `splitTracker` plugin for created trackers,
764
- * and should be placed right after your Google Analytics, GTM or gtag.js script tag.
764
+ * and should be placed right after your Google Analytics, Google Tag Manager or gtag.js script tag.
765
765
  *
766
- * @see {@link https://help.split.io/hc/en-us/articles/360040838752#google-tag-manager}
766
+ * @see {@link https://help.split.io/hc/en-us/articles/360040838752#set-up-with-gtm-and-gtag.js}
767
767
  *
768
768
  * @property {boolean} autoRequire
769
769
  * @default false
@@ -1556,9 +1556,9 @@ declare namespace SplitIO {
1556
1556
  * Get the data of a split in SplitView format.
1557
1557
  * @function split
1558
1558
  * @param {string} splitName The name of the split we wan't to get info of.
1559
- * @returns {SplitView} The SplitIO.SplitView of the given split.
1559
+ * @returns {SplitView | null} The SplitIO.SplitView of the given split or null if the split is not found.
1560
1560
  */
1561
- split(splitName: string): SplitView;
1561
+ split(splitName: string): SplitView | null;
1562
1562
  }
1563
1563
  /**
1564
1564
  * Representation of a manager instance with asynchronous storage of the SDK.