@splitsoftware/splitio-commons 3.0.1-rc.0 → 3.0.1-rc.2
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/CHANGES.txt +3 -0
- package/cjs/services/serviceApi.js +2 -2
- package/cjs/services/splitApi.js +2 -2
- package/esm/services/serviceApi.js +2 -2
- package/esm/services/splitApi.js +2 -2
- package/package.json +1 -1
- package/src/services/serviceApi.ts +2 -2
- package/src/services/splitApi.ts +2 -2
- package/src/utils/EventEmitter.d.ts +3 -0
package/CHANGES.txt
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
3.1.0 (July XX, 2026)
|
|
2
|
+
- Added support for rule-based segments in /api/v1/configs endpoint.
|
|
3
|
+
|
|
1
4
|
3.0.0 (June 26, 2026)
|
|
2
5
|
- Extracted SDK lifecycle methods (`init`, `flush`, and `destroy`) into a reusable `sdkLifecycle` module.
|
|
3
6
|
- Extracted the `track` method into a standalone `trackMethod` factory for reuse across SDKs.
|
|
@@ -56,8 +56,8 @@ function serviceApiFactory(settings, platform, telemetryTracker, secureSplitHttp
|
|
|
56
56
|
return splitHttpClient(url, noCache ? noCacheHeaderOptions : undefined, telemetryTracker.trackHttp(constants_1.SEGMENT));
|
|
57
57
|
},
|
|
58
58
|
// @TODO support filterQueryString and handle ERROR_TOO_MANY_SETS error
|
|
59
|
-
fetchConfigs: function (since, noCache, till) {
|
|
60
|
-
var url = "".concat(urls.configs, "/api/v1/configs?since=").concat(since).concat(filterQueryString || '').concat(till ? '&till=' + till : '');
|
|
59
|
+
fetchConfigs: function (since, noCache, till, rbSince) {
|
|
60
|
+
var url = "".concat(urls.configs, "/api/v1/configs?since=").concat(since).concat(rbSince ? '&rbSince=' + rbSince : '').concat(filterQueryString || '').concat(till ? '&till=' + till : '');
|
|
61
61
|
return secureSplitHttpClient(url, noCache ? noCacheHeaderOptions : undefined);
|
|
62
62
|
},
|
|
63
63
|
fetchConfigsSegmentChanges: function (since, segmentName, noCache, till) {
|
package/cjs/services/splitApi.js
CHANGED
|
@@ -128,8 +128,8 @@ function splitApiFactory(settings, platform, telemetryTracker) {
|
|
|
128
128
|
return splitHttpClient(url, { method: 'POST', body: body, headers: headers }, telemetryTracker.trackHttp(constants_1.TELEMETRY), true);
|
|
129
129
|
},
|
|
130
130
|
// Not used. Just here to satisfy the IServiceApi interface.
|
|
131
|
-
fetchConfigs: function (since, noCache, till) {
|
|
132
|
-
var url = "".concat(urls.configs, "/v1/configs?since=").concat(since).concat(filterQueryString || '').concat(till ? '&till=' + till : '');
|
|
131
|
+
fetchConfigs: function (since, noCache, till, rbSince) {
|
|
132
|
+
var url = "".concat(urls.configs, "/v1/configs?since=").concat(since).concat(rbSince ? '&rbSince=' + rbSince : '').concat(filterQueryString || '').concat(till ? '&till=' + till : '');
|
|
133
133
|
return splitHttpClient(url, noCache ? noCacheHeaderOptions : undefined);
|
|
134
134
|
},
|
|
135
135
|
fetchConfigsSegmentChanges: function (since, segmentName, noCache, till) {
|
|
@@ -53,8 +53,8 @@ export function serviceApiFactory(settings, platform, telemetryTracker, secureSp
|
|
|
53
53
|
return splitHttpClient(url, noCache ? noCacheHeaderOptions : undefined, telemetryTracker.trackHttp(SEGMENT));
|
|
54
54
|
},
|
|
55
55
|
// @TODO support filterQueryString and handle ERROR_TOO_MANY_SETS error
|
|
56
|
-
fetchConfigs: function (since, noCache, till) {
|
|
57
|
-
var url = "".concat(urls.configs, "/api/v1/configs?since=").concat(since).concat(filterQueryString || '').concat(till ? '&till=' + till : '');
|
|
56
|
+
fetchConfigs: function (since, noCache, till, rbSince) {
|
|
57
|
+
var url = "".concat(urls.configs, "/api/v1/configs?since=").concat(since).concat(rbSince ? '&rbSince=' + rbSince : '').concat(filterQueryString || '').concat(till ? '&till=' + till : '');
|
|
58
58
|
return secureSplitHttpClient(url, noCache ? noCacheHeaderOptions : undefined);
|
|
59
59
|
},
|
|
60
60
|
fetchConfigsSegmentChanges: function (since, segmentName, noCache, till) {
|
package/esm/services/splitApi.js
CHANGED
|
@@ -125,8 +125,8 @@ export function splitApiFactory(settings, platform, telemetryTracker) {
|
|
|
125
125
|
return splitHttpClient(url, { method: 'POST', body: body, headers: headers }, telemetryTracker.trackHttp(TELEMETRY), true);
|
|
126
126
|
},
|
|
127
127
|
// Not used. Just here to satisfy the IServiceApi interface.
|
|
128
|
-
fetchConfigs: function (since, noCache, till) {
|
|
129
|
-
var url = "".concat(urls.configs, "/v1/configs?since=").concat(since).concat(filterQueryString || '').concat(till ? '&till=' + till : '');
|
|
128
|
+
fetchConfigs: function (since, noCache, till, rbSince) {
|
|
129
|
+
var url = "".concat(urls.configs, "/v1/configs?since=").concat(since).concat(rbSince ? '&rbSince=' + rbSince : '').concat(filterQueryString || '').concat(till ? '&till=' + till : '');
|
|
130
130
|
return splitHttpClient(url, noCache ? noCacheHeaderOptions : undefined);
|
|
131
131
|
},
|
|
132
132
|
fetchConfigsSegmentChanges: function (since, segmentName, noCache, till) {
|
package/package.json
CHANGED
|
@@ -70,8 +70,8 @@ export function serviceApiFactory(
|
|
|
70
70
|
},
|
|
71
71
|
|
|
72
72
|
// @TODO support filterQueryString and handle ERROR_TOO_MANY_SETS error
|
|
73
|
-
fetchConfigs(since: number, noCache?: boolean, till?: number) {
|
|
74
|
-
const url = `${urls.configs}/api/v1/configs?since=${since}${filterQueryString || ''}${till ? '&till=' + till : ''}`;
|
|
73
|
+
fetchConfigs(since: number, noCache?: boolean, till?: number, rbSince?: number) {
|
|
74
|
+
const url = `${urls.configs}/api/v1/configs?since=${since}${rbSince ? '&rbSince=' + rbSince : ''}${filterQueryString || ''}${till ? '&till=' + till : ''}`;
|
|
75
75
|
return secureSplitHttpClient(url, noCache ? noCacheHeaderOptions : undefined);
|
|
76
76
|
},
|
|
77
77
|
|
package/src/services/splitApi.ts
CHANGED
|
@@ -149,8 +149,8 @@ export function splitApiFactory(
|
|
|
149
149
|
|
|
150
150
|
// Not used. Just here to satisfy the IServiceApi interface.
|
|
151
151
|
|
|
152
|
-
fetchConfigs(since: number, noCache?: boolean, till?: number) {
|
|
153
|
-
const url = `${urls.configs}/v1/configs?since=${since}${filterQueryString || ''}${till ? '&till=' + till : ''}`;
|
|
152
|
+
fetchConfigs(since: number, noCache?: boolean, till?: number, rbSince?: number) {
|
|
153
|
+
const url = `${urls.configs}/v1/configs?since=${since}${rbSince ? '&rbSince=' + rbSince : ''}${filterQueryString || ''}${till ? '&till=' + till : ''}`;
|
|
154
154
|
return splitHttpClient(url, noCache ? noCacheHeaderOptions : undefined);
|
|
155
155
|
},
|
|
156
156
|
|