Skip to content

Commit a769ca8

Browse files
Merge pull request #106 from splitio/development
Release v1.7.0
2 parents 496336c + 84a2cf4 commit a769ca8

4 files changed

Lines changed: 99 additions & 41 deletions

File tree

CHANGES.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
1.7.0 (July 25, 2022)
2+
- Updated @splitsoftware/splitio dependency to version 10.21.1, which includes:
3+
- Added `autoRequire` configuration option to the Google Analytics to Split integration, which takes care of requiring the splitTracker plugin on trackers dynamically created by Google tag managers (See https://help.split.io/hc/en-us/articles/360040838752#set-up-with-gtm-and-gtag.js).
4+
- Updated browser listener to push remaining impressions and events on 'visibilitychange' and 'pagehide' DOM events, instead of 'unload', which is not reliable in modern mobile and desktop Web browsers.
5+
- Updated the synchronization flow to be more reliable in the event of an edge case generating delay in cache purge propagation, keeping the SDK cache properly synced.
6+
- Updated some dependencies for vulnerability fixes.
7+
18
1.6.0 (June 30, 2022)
29
- Updated @splitsoftware/splitio dependency to version 10.20.0, which includes:
310
- Added a new config option to control the tasks that listen or poll for updates on feature flags and segments, via the new config sync.enabled . Running online Split will always pull the most recent updates upon initialization, this only affects updates fetching on a running instance. Useful when a consistent session experience is a must or to save resources when updates are not being used.

package-lock.json

Lines changed: 71 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-react",
3-
"version": "1.6.0",
3+
"version": "1.7.0",
44
"description": "A React library to easily integrate and use Split JS SDK",
55
"main": "lib/index.js",
66
"module": "es/index.js",
@@ -69,7 +69,7 @@
6969
"unfetch": "^4.2.0"
7070
},
7171
"devDependencies": {
72-
"@splitsoftware/splitio": "10.20.0",
72+
"@splitsoftware/splitio": "10.21.1",
7373
"@types/enzyme": "^3.10.4",
7474
"@types/enzyme-adapter-react-16": "^1.0.5",
7575
"@types/events": "^3.0.0",

types/splitio/splitio.d.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,13 @@ interface ISharedSettings {
236236
*/
237237
impressionsMode?: SplitIO.ImpressionsMode,
238238
/**
239-
* Enables synchronization of rollout plan or segment updates while the SDK instance is running. Does not affect initialization fetches.
239+
* Controls the SDK continuous synchronization flags.
240+
*
241+
* When `true` a running SDK will process rollout plan updates performed on the UI (default).
242+
* When false it'll just fetch all data upon init
243+
*
240244
* @property {boolean} enabled
245+
* @default true
241246
*/
242247
enabled?: boolean
243248
}
@@ -722,7 +727,7 @@ declare namespace SplitIO {
722727
/**
723728
* Enable 'Google Analytics to Split' integration, to track Google Analytics hits as Split events.
724729
*
725-
* @see {@link https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK#integrations}
730+
* @see {@link https://help.split.io/hc/en-us/articles/360040838752#google-analytics-to-split}
726731
*/
727732
interface IGoogleAnalyticsToSplitConfig {
728733
type: 'GOOGLE_ANALYTICS_TO_SPLIT',
@@ -764,6 +769,17 @@ declare namespace SplitIO {
764769
* If not provided, events are sent using the key and traffic type provided at SDK config
765770
*/
766771
identities?: Identity[],
772+
/**
773+
* Optional flag to log an error if the `auto-require` script is not detected.
774+
* The auto-require script automatically requires the `splitTracker` plugin for created trackers,
775+
* and should be placed right after your Google Analytics, Google Tag Manager or gtag.js script tag.
776+
*
777+
* @see {@link https://help.split.io/hc/en-us/articles/360040838752#set-up-with-gtm-and-gtag.js}
778+
*
779+
* @property {boolean} autoRequire
780+
* @default false
781+
*/
782+
autoRequire?: boolean,
767783
}
768784
/**
769785
* Object representing the data sent by Split (events and impressions).
@@ -775,7 +791,7 @@ declare namespace SplitIO {
775791
/**
776792
* Enable 'Split to Google Analytics' integration, to track Split impressions and events as Google Analytics hits.
777793
*
778-
* @see {@link https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK#integrations}
794+
* @see {@link https://help.split.io/hc/en-us/articles/360040838752#split-to-google-analytics}
779795
*/
780796
interface ISplitToGoogleAnalyticsConfig {
781797
type: 'SPLIT_TO_GOOGLE_ANALYTICS',

0 commit comments

Comments
 (0)