@kameleoon/javascript-sdk 4.22.0 → 4.24.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 CHANGED
@@ -1,7 +1,42 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.24.0 (2026-05-13)
4
+
5
+ > [!WARNING]
6
+ > If you're upgrading from a version earlier than 4.24.0 and run into any unexpected build or SDK-related issues, please reach out to the Kameleoon Support Team. We're here to ensure your transition is smooth and will promptly address any concerns.
7
+
8
+ ### Features
9
+
10
+ - Removed [`INFO`][logging] and [`DEBUG`][logging] log messages from the standard bundles to significantly reduce the default JavaScript SDK bundle size.
11
+ - Added `/full` package exports for customers who require verbose SDK logging. Use `@kameleoon/javascript-sdk/full` when enabling logging with `KameleoonLogger.setLogLevel(LogLevel.INFO)` or `KameleoonLogger.setLogLevel(LogLevel.DEBUG)`.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+ - @kameleoon/javascript-sdk-core@5.25.0
17
+
18
+ ## 4.23.0 (2026-05-07)
19
+
20
+ > [!WARNING]
21
+ > If you're upgrading from a version earlier than 4.14.0 and run into any unexpected build or SDK-related issues, please reach out to the Kameleoon Support Team. We're here to ensure your transition is smooth and will promptly address any concerns.
22
+
23
+ ### Features
24
+
25
+ - Added support for processing and tracking visitor variations from `window.kameleoonQueue`, generated by the server-side SDK's [`getEngineTrackingCode`][getenginetrackingcode] method. Processing is initiated within [`getVisitorCode()`][getVisitorCode], immediately after the visitor code is determined.
26
+ - Improved [`getEngineTrackingCode`][getenginetrackingcode] performance by caching experiment metadata for reuse across calls.
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies
31
+ - @kameleoon/javascript-sdk-core@5.24.0
32
+
33
+ [getVisitorCode]: https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/js-sdk#getvisitorcode
34
+
3
35
  ## 4.22.0 (2026-05-05)
4
36
 
37
+ > [!WARNING]
38
+ > If you're upgrading from a version earlier than 4.14.0 and run into any unexpected build or SDK-related issues, please reach out to the Kameleoon Support Team. We're here to ensure your transition is smooth and will promptly address any concerns.
39
+
5
40
  ### Features
6
41
 
7
42
  - Added support for **during the current visit** and **during any of the last visits** settings across the following targeting conditions:
@@ -19,6 +54,9 @@
19
54
 
20
55
  ## 4.21.0 (2026-04-23)
21
56
 
57
+ > [!WARNING]
58
+ > If you're upgrading from a version earlier than 4.14.0 and run into any unexpected build or SDK-related issues, please reach out to the Kameleoon Support Team. We're here to ensure your transition is smooth and will promptly address any concerns.
59
+
22
60
  ### Features
23
61
 
24
62
  - Improved the performance of the [`getDataFile()`](getDataFile) method. It now returns a cached [`DataFile`](DataFile) instance that is refreshed whenever the SDK configuration is updated.
@@ -35,6 +73,9 @@
35
73
 
36
74
  ## 4.20.0 (2026-03-23)
37
75
 
76
+ > [!WARNING]
77
+ > If you're upgrading from a version earlier than 4.14.0 and run into any unexpected build or SDK-related issues, please reach out to the Kameleoon Support Team. We're here to ensure your transition is smooth and will promptly address any concerns.
78
+
38
79
  ### Features
39
80
 
40
81
  - Added support for variation simulation when feature flags are **inactive (OFF state)** across the following methods:
@@ -55,6 +96,9 @@
55
96
 
56
97
  ## 4.19.1 (2026-03-19)
57
98
 
99
+ > [!WARNING]
100
+ > If you're upgrading from a version earlier than 4.14.0 and run into any unexpected build or SDK-related issues, please reach out to the Kameleoon Support Team. We're here to ensure your transition is smooth and will promptly address any concerns.
101
+
58
102
  ### Patch Changes
59
103
 
60
104
  - Stability and performance improvements
@@ -63,6 +107,9 @@
63
107
 
64
108
  ## 4.19.0 (2026-03-04)
65
109
 
110
+ > [!WARNING]
111
+ > If you're upgrading from a version earlier than 4.14.0 and run into any unexpected build or SDK-related issues, please reach out to the Kameleoon Support Team. We're here to ensure your transition is smooth and will promptly address any concerns.
112
+
66
113
  ### Features
67
114
 
68
115
  - Introduced a new [`flushInstant`][flush] method — an asynchronous version of `flush` that returns `Promise<void>` and can be awaited:
@@ -76,6 +123,9 @@
76
123
 
77
124
  ## 4.18.0 (2026-02-13)
78
125
 
126
+ > [!WARNING]
127
+ > If you're upgrading from a version earlier than 4.14.0 and run into any unexpected build or SDK-related issues, please reach out to the Kameleoon Support Team. We're here to ensure your transition is smooth and will promptly address any concerns.
128
+
79
129
  ### Features
80
130
 
81
131
  - Updated the allowed range for the [`trackingInterval`][configurationParameters]. The new range is from **`1000` ms** (default) to **`5000` ms**, allowing a reduction in the number of tracking requests.
@@ -1,4 +1,4 @@
1
- export declare enum CookieParameter {
1
+ export declare const enum CookieParameter {
2
2
  PairsDelimiter = "; ",
3
3
  KeyValueDelimiter = "=",
4
4
  MaxAge = "Max-Age",
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { Ok, Err, KameleoonCore, KameleoonUtils, KameleoonException, KameleoonError, Validator, KameleoonStorageKey, VisitorCodeManager, VISITOR_CODE_LENGTH, KameleoonLogger, LogLevel, Parser, SdkLanguageType, TrackingStatus, Environment, ApplicationVersion, CustomData, Conversion, Device, Cookie, Browser, UserAgent, DeviceType, GeolocationData, OperatingSystem, BrowserType, PageView, StaticData, KameleoonData, UniqueIdentifier, DataManager, DataProcessor, Header, HttpMethod, NUMBER_OF_RETRIES, ListUtilities, Utilities, DataStorage, RequestType, VariableType, Milliseconds, CustomDataScope, EventType, OperatingSystemType, Tree, VISIT_DURATION, } from '@kameleoon/javascript-sdk-core/browser';
1
+ export { Ok, Err, KameleoonCore, KameleoonUtils, KameleoonException, KameleoonError, KameleoonStorageKey, VisitorCodeManager, KameleoonLogger, LogLevel, Parser, SdkLanguageType, TrackingStatus, Environment, ApplicationVersion, CustomData, Conversion, Device, Cookie, Browser, UserAgent, DeviceType, GeolocationData, OperatingSystem, BrowserType, PageView, StaticData, KameleoonData, UniqueIdentifier, DataStorage, RequestType, VariableType, EventType, OperatingSystemType, } from '@kameleoon/javascript-sdk-core/browser';
2
2
  export type { Result, IKameleoonCore, VisitorDataFiltersType, IExternalPRNG, FeatureFlagVariationsType, IExternalStorage, StorageDataType, EventCallbackType, EventDataType, EvaluationEventDataType, ConfigurationUpdateEventDataType, IVisitorCodeManager, IExternalLogger, JSONType, ConfigurationDataType, InternalsType, FeatureFlagType, FlushParamsType, JSONVariableType, SDKCoreParameters, NumberVariableType, StringVariableType, BooleanVariableType, SDKConfigurationType, KameleoonVariableType, KameleoonVariationType, FeatureFlagVariableType, TrackConversionParamsType, FeatureVariableResultType, RemoteVisitorDataParamsType, InternalSDKConfigurationType, IsFeatureFlagActiveParamsType, SetDataCallbackParametersType, GetFeatureFlagVariableParamsType, GetVisitorWarehouseAudienceParamsType, SimulateRequestDataType, GetVariationParamsType, GetVariationsParamsType, VariationType, SetForcedVariationParametersType, ExternalPackageInfoType, CookieType, GeolocationInfoType, ApplicationVersionDataType, IDataManager, IExternalEventSource, EventSourceOpenParametersType, HeadersType, IExternalRequester, RequestParametersType, RetryCountType, KameleoonResponseType, SendRequestParametersType, ITracker, SegmentType, TargetingDataType, DataInfoType, IStorage, MappingIdentifierType, CustomDataConfigurationType, BrowserDataType, CustomDataType, DataFilterType, DataManagerParametersType, DeviceDataType, GeolocationDataType, KameleoonVisitorDataType, MutUpdateTargetingDataParametersType, OperatingSystemDataType, PageViewDataType, ProcessCustomDataManagerParametersType, VisitDataType, VisitorsDataType, KameleoonDataType, PageViewParametersType, ConversionParametersType, AddDataParamsType, } from '@kameleoon/javascript-sdk-core/browser';
3
3
  export type { FeatureFlag, Rule, DataFile, Variable, Variation, } from '@kameleoon/javascript-sdk-core/browser';
4
4
  export { KameleoonClient } from './kameleoonClient';