@kameleoon/javascript-sdk-core 5.3.0 → 5.4.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/CHANGELOG.md +8 -0
- package/dist/clientSettings/types.d.ts +1 -2
- package/dist/requester/types.d.ts +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.4.0 (2025-01-17)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- Added support for specifying a custom `Environment` value as a string in the [configuration parameters][configurationParameters], alongside the standard options.
|
|
8
|
+
|
|
9
|
+
[configurationParameters]: https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/js-sdk/#configuration-parameters
|
|
10
|
+
|
|
3
11
|
## 5.3.0 (2025-01-17)
|
|
4
12
|
|
|
5
13
|
### Features
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSONType } from '../clientConfiguration';
|
|
2
|
-
import {
|
|
2
|
+
import { ExternalPackageInfoType } from '../types';
|
|
3
3
|
import { BrowserIndexMap, BrowserType, OperatingSystemType } from '../kameleoonData';
|
|
4
4
|
import { DeviceType, KCSType, OperatingSystemIndexMap } from '../kameleoonData/types';
|
|
5
5
|
import { Header } from './constants';
|
|
@@ -23,7 +23,7 @@ export type UrlProviderInitializeParamsType = {
|
|
|
23
23
|
domain: string | null;
|
|
24
24
|
siteCode: string;
|
|
25
25
|
packageInfo: ExternalPackageInfoType;
|
|
26
|
-
environment:
|
|
26
|
+
environment: string;
|
|
27
27
|
};
|
|
28
28
|
export type RequesterParamsType = {
|
|
29
29
|
useAbortController: boolean;
|
package/dist/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { IExternalLogger } from './logging';
|
|
|
10
10
|
* @param {number} updateInterval - update interval in _minutes_ for sdk configuration, minimum value is 1 minute
|
|
11
11
|
* @defaultvalue 60
|
|
12
12
|
*
|
|
13
|
-
* @param {Environment} environment - feature flag environment
|
|
13
|
+
* @param {Environment | string | undefined} environment - feature flag environment.
|
|
14
14
|
* @defaultvalue Environment.Production
|
|
15
15
|
*
|
|
16
16
|
* @param {number | undefined} targetingDataCleanupInterval - interval in _minutes_ for cleaning up targeting data, minimum value is 1 minute
|
|
@@ -29,7 +29,7 @@ import { IExternalLogger } from './logging';
|
|
|
29
29
|
* */
|
|
30
30
|
export type SDKConfigurationType = {
|
|
31
31
|
updateInterval?: number;
|
|
32
|
-
environment?: Environment;
|
|
32
|
+
environment?: Environment | string;
|
|
33
33
|
targetingDataCleanupInterval?: number;
|
|
34
34
|
requestTimeout?: number;
|
|
35
35
|
networkDomain?: string;
|