@kameleoon/javascript-sdk 4.23.0 → 4.24.1

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,11 +1,36 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.24.1 (2026-05-14)
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed the `/full` import for legacy TypeScript subpath export mapping to type declarations, ensuring it works regardless of the `moduleResolution` setting.
8
+
9
+ ## 4.24.0 (2026-05-13)
10
+
11
+ > [!WARNING]
12
+ > 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.
13
+
14
+ ### Features
15
+
16
+ - Removed [`INFO`][logging] and [`DEBUG`][logging] log messages from the standard bundles to significantly reduce the default JavaScript SDK bundle size.
17
+ - 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)`.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+ - @kameleoon/javascript-sdk-core@5.25.0
23
+
3
24
  ## 4.23.0 (2026-05-07)
4
25
 
26
+ > [!WARNING]
27
+ > 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.
28
+
5
29
  ### Features
6
30
 
7
31
  - 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.
8
32
  - Improved [`getEngineTrackingCode`][getenginetrackingcode] performance by caching experiment metadata for reuse across calls.
33
+
9
34
  ### Patch Changes
10
35
 
11
36
  - Updated dependencies
@@ -15,6 +40,9 @@
15
40
 
16
41
  ## 4.22.0 (2026-05-05)
17
42
 
43
+ > [!WARNING]
44
+ > 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.
45
+
18
46
  ### Features
19
47
 
20
48
  - Added support for **during the current visit** and **during any of the last visits** settings across the following targeting conditions:
@@ -32,6 +60,9 @@
32
60
 
33
61
  ## 4.21.0 (2026-04-23)
34
62
 
63
+ > [!WARNING]
64
+ > 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.
65
+
35
66
  ### Features
36
67
 
37
68
  - 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.
@@ -48,6 +79,9 @@
48
79
 
49
80
  ## 4.20.0 (2026-03-23)
50
81
 
82
+ > [!WARNING]
83
+ > 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.
84
+
51
85
  ### Features
52
86
 
53
87
  - Added support for variation simulation when feature flags are **inactive (OFF state)** across the following methods:
@@ -68,6 +102,9 @@
68
102
 
69
103
  ## 4.19.1 (2026-03-19)
70
104
 
105
+ > [!WARNING]
106
+ > 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.
107
+
71
108
  ### Patch Changes
72
109
 
73
110
  - Stability and performance improvements
@@ -76,6 +113,9 @@
76
113
 
77
114
  ## 4.19.0 (2026-03-04)
78
115
 
116
+ > [!WARNING]
117
+ > 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.
118
+
79
119
  ### Features
80
120
 
81
121
  - Introduced a new [`flushInstant`][flush] method — an asynchronous version of `flush` that returns `Promise<void>` and can be awaited:
@@ -89,6 +129,9 @@
89
129
 
90
130
  ## 4.18.0 (2026-02-13)
91
131
 
132
+ > [!WARNING]
133
+ > 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.
134
+
92
135
  ### Features
93
136
 
94
137
  - 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';