@splitsoftware/splitio-commons 1.13.2-rc.8 → 1.13.2-rc.9
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 +2 -2
- package/cjs/services/splitApi.js +1 -1
- package/esm/services/splitApi.js +1 -1
- package/package.json +1 -1
- package/src/services/splitApi.ts +1 -1
package/CHANGES.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
1.14.0 (April XX, 2024)
|
|
2
|
-
- Added support for
|
|
3
|
-
- Added special impression label
|
|
2
|
+
- Added support for targeting rules based on semantic versions (https://semver.org/).
|
|
3
|
+
- Added special impression label "targeting rule type unsupported by sdk" when the matcher type is not supported by the SDK, which returns 'control' treatment.
|
|
4
4
|
- Updated Split API client to include the flags spec version query parameter for the `splitChanges` and `auth` endpoints.
|
|
5
5
|
|
|
6
6
|
1.13.1 (January 10, 2024)
|
package/cjs/services/splitApi.js
CHANGED
|
@@ -41,7 +41,7 @@ function splitApiFactory(settings, platform, telemetryTracker) {
|
|
|
41
41
|
return splitHttpClient(url, undefined, telemetryTracker.trackHttp(constants_1.TOKEN));
|
|
42
42
|
},
|
|
43
43
|
fetchSplitChanges: function (since, noCache, till) {
|
|
44
|
-
var url = urls.sdk + "/splitChanges?s=" + constants_1.FLAGS_SPEC + "&since=" + since + (
|
|
44
|
+
var url = urls.sdk + "/splitChanges?s=" + constants_1.FLAGS_SPEC + "&since=" + since + (filterQueryString || '') + (till ? '&till=' + till : '');
|
|
45
45
|
return splitHttpClient(url, noCache ? noCacheHeaderOptions : undefined, telemetryTracker.trackHttp(constants_1.SPLITS))
|
|
46
46
|
.catch(function (err) {
|
|
47
47
|
if (err.statusCode === 414)
|
package/esm/services/splitApi.js
CHANGED
|
@@ -38,7 +38,7 @@ export function splitApiFactory(settings, platform, telemetryTracker) {
|
|
|
38
38
|
return splitHttpClient(url, undefined, telemetryTracker.trackHttp(TOKEN));
|
|
39
39
|
},
|
|
40
40
|
fetchSplitChanges: function (since, noCache, till) {
|
|
41
|
-
var url = urls.sdk + "/splitChanges?s=" + FLAGS_SPEC + "&since=" + since + (
|
|
41
|
+
var url = urls.sdk + "/splitChanges?s=" + FLAGS_SPEC + "&since=" + since + (filterQueryString || '') + (till ? '&till=' + till : '');
|
|
42
42
|
return splitHttpClient(url, noCache ? noCacheHeaderOptions : undefined, telemetryTracker.trackHttp(SPLITS))
|
|
43
43
|
.catch(function (err) {
|
|
44
44
|
if (err.statusCode === 414)
|
package/package.json
CHANGED
package/src/services/splitApi.ts
CHANGED
|
@@ -53,7 +53,7 @@ export function splitApiFactory(
|
|
|
53
53
|
},
|
|
54
54
|
|
|
55
55
|
fetchSplitChanges(since: number, noCache?: boolean, till?: number) {
|
|
56
|
-
const url = `${urls.sdk}/splitChanges?s=${FLAGS_SPEC}&since=${since}${till ? '&till=' + till : ''}
|
|
56
|
+
const url = `${urls.sdk}/splitChanges?s=${FLAGS_SPEC}&since=${since}${filterQueryString || ''}${till ? '&till=' + till : ''}`;
|
|
57
57
|
return splitHttpClient(url, noCache ? noCacheHeaderOptions : undefined, telemetryTracker.trackHttp(SPLITS))
|
|
58
58
|
.catch((err) => {
|
|
59
59
|
if (err.statusCode === 414) settings.log.error(ERROR_TOO_MANY_SETS);
|