@kameleoon/javascript-sdk 4.14.1 → 4.14.3

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,33 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.14.3 (2025-08-12)
4
+
5
+ > [!WARNING]
6
+ > 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.
7
+
8
+ ### Patch Changes
9
+
10
+ - Fixed an issue where [`Cookie`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/js-sdk#cookie) would throw an exception when parsing from a string if the cookie value was empty.
11
+ - Removed the [React Native](https://reactnative.dev/) dependency from the browser bundle to avoid build-time warnings and errors.
12
+ - Corrected automatic detection of the [`Browser`](browser) version to parse versions as floats instead of integers.
13
+ - Updated dependencies
14
+ - @kameleoon/javascript-sdk-core@5.14.3
15
+
16
+ ## 4.14.2 (2025-08-01)
17
+
18
+ > [!WARNING]
19
+ > 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.
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+ - @kameleoon/javascript-sdk-core@5.14.2
25
+
3
26
  ## 4.14.1 (2025-07-30)
4
27
 
28
+ > [!WARNING]
29
+ > 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.
30
+
5
31
  ### Patch Changes
6
32
 
7
33
  - Improved error logging when parsing [`defaultDataFile`](defaultDataFile) - now provides more informative messages for easier debugging.
@@ -14,15 +40,15 @@
14
40
 
15
41
  ## 4.14.0 (2025-07-24)
16
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
+
17
46
  ### Features
18
47
 
19
48
  - Migrated the build system for the NPM package from Babel (which previously generated multiple minified JS files) to Rollup, producing a single, optimized bundle.
20
49
  - Significantly reduced package size by consolidating files and improving tree-shaking.
21
50
  - Added native ESM support via modern Rollup outputs for better compatibility with modern bundlers.
22
51
 
23
- > [!WARNING]
24
- > 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.
25
-
26
52
  ### Patch Changes
27
53
 
28
54
  - Updated dependencies
@@ -1,7 +1,12 @@
1
- import { DataManager, DataManagerParametersType, KameleoonDataType, KameleoonError, KameleoonVisitorDataType, Result, StaticData, VisitorsDataType } from '@kameleoon/javascript-sdk-core/browser';
1
+ import { DataManager, DataManagerParametersType as CoreDataManagerParametersType, KameleoonDataType, KameleoonError, KameleoonVisitorDataType, Result, StaticData, VisitorsDataType } from '@kameleoon/javascript-sdk-core/browser';
2
+ import { IPlatformAnalyzer } from 'src/utils';
3
+ type DataManagerParametersType = CoreDataManagerParametersType & {
4
+ platformAnalyzer: IPlatformAnalyzer;
5
+ };
2
6
  export declare class ClientDataManager extends DataManager {
3
7
  private visitor;
4
- constructor({ dataStorage, infoStorage, cleanupInterval, packageInfo, }: DataManagerParametersType);
8
+ private platformAnalyzer;
9
+ constructor({ dataStorage, infoStorage, cleanupInterval, packageInfo, platformAnalyzer, }: DataManagerParametersType);
5
10
  getUnsentData(visitorCode: string): (KameleoonDataType | StaticData)[];
6
11
  storeData(data: VisitorsDataType): Result<void, KameleoonError>;
7
12
  storeData(visitorCode: string, ...data: KameleoonDataType[]): Result<void, KameleoonError>;
@@ -12,3 +17,4 @@ export declare class ClientDataManager extends DataManager {
12
17
  private updateVisitor;
13
18
  private fetchVisit;
14
19
  }
20
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
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";
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, } from "@kameleoon/javascript-sdk-core/browser";
3
- export { KameleoonClient } from "./kameleoonClient";
4
- export type { ExternalsType, SDKParameters, SetDataParametersType, IExternalVisitorCodeManager, } from "./types";
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';
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, } from '@kameleoon/javascript-sdk-core/browser';
3
+ export { KameleoonClient } from './kameleoonClient';
4
+ export type { ExternalsType, SDKParameters, SetDataParametersType, IExternalVisitorCodeManager, } from './types';
5
+ export type { IPlatformAnalyzer, PlatformAnalysisResult } from './utils';