@splitsoftware/splitio 10.20.0 → 10.20.1-rc.0
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.
- package/es/settings/defaults/version.js +1 -1
- package/lib/settings/defaults/version.js +1 -1
- package/package.json +5 -3
- package/scripts/ga-to-split-autorequire.js +1 -0
- package/src/.DS_Store +0 -0
- package/src/platform/.DS_Store +0 -0
- package/src/{storage → settings}/.DS_Store +0 -0
- package/src/settings/defaults/version.js +1 -1
- package/types/splitio.d.ts +11 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export var packageVersion = '10.20.0';
|
|
1
|
+
export var packageVersion = '10.20.1-rc.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splitsoftware/splitio",
|
|
3
|
-
"version": "10.20.0",
|
|
3
|
+
"version": "10.20.1-rc.0",
|
|
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/ga-to-split-autorequire.js"
|
|
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.5.0",
|
|
36
|
+
"@splitsoftware/splitio-commons": "1.5.1-rc.0",
|
|
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:ga-to-split-autorequire": "terser ./node_modules/@splitsoftware/splitio-commons/src/integrations/ga/autoRequire.js --mangle --output ./scripts/ga-to-split-autorequire.js && cp ./scripts/ga-to-split-autorequire.js umd/ga-to-split-autorequire.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(n,t,e){n[e]=n[e]||t;n[t]=n[t]||function(){n[t].q.push(arguments)};n[t].q=n[t].q||[];var r={};function i(n){return typeof n==="object"&&typeof n.name==="string"&&n.name}function o(e){if(e&&e[0]==="create"){var o=i(e[1])||i(e[2])||i(e[3])||(typeof e[3]==="string"?e[3]:undefined);if(!r[o]){r[o]=true;n[t]((o?o+".":"")+"require","splitTracker")}}}n[t].q.forEach(o);var u=n[t].q.push;n[t].q.push=function(n){var t=u.apply(this,arguments);o(n);return t}})(window,"ga","GoogleAnalyticsObject");
|
package/src/.DS_Store
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = '10.20.0';
|
|
1
|
+
export const packageVersion = '10.20.1-rc.0';
|
package/types/splitio.d.ts
CHANGED
|
@@ -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).
|