Skip to content

Commit af209f8

Browse files
Update deprecation comment
1 parent 75bddec commit af209f8

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/useClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useSplitClient } from './useSplitClient';
88
* @return A Split Client instance, or null if used outside the scope of SplitFactory
99
* @see {@link https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK#advanced-instantiate-multiple-sdk-clients}
1010
*
11-
* @deprecated useSplitClient is the new hook to use.
11+
* @deprecated Replace with the new `useSplitClient` hook.
1212
*/
1313
export function useClient(splitKey?: SplitIO.SplitKey, trafficType?: string, attributes?: SplitIO.Attributes): SplitIO.IBrowserClient | null {
1414
return useSplitClient({ splitKey, trafficType, attributes }).client;

src/useTreatments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useSplitTreatments } from './useSplitTreatments';
88
* @return A TreatmentsWithConfig instance, that might contain control treatments if the client is not available or ready, or if feature flag names do not exist.
99
* @see {@link https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK#get-treatments-with-configurations}
1010
*
11-
* @deprecated useSplitTreatments is the new hook to use.
11+
* @deprecated Replace with the new `useSplitTreatments` hook.
1212
*/
1313
export function useTreatments(featureFlagNames: string[], attributes?: SplitIO.Attributes, splitKey?: SplitIO.SplitKey): SplitIO.TreatmentsWithConfig {
1414
return useSplitTreatments({ names: featureFlagNames, attributes, splitKey }).treatments;

types/useClient.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
* @return A Split Client instance, or null if used outside the scope of SplitFactory
77
* @see {@link https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK#advanced-instantiate-multiple-sdk-clients}
88
*
9-
* @deprecated useSplitClient is the new hook to use.
9+
* @deprecated Replace with the new `useSplitClient` hook.
1010
*/
1111
export declare function useClient(splitKey?: SplitIO.SplitKey, trafficType?: string, attributes?: SplitIO.Attributes): SplitIO.IBrowserClient | null;

types/useTreatments.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
* @return A TreatmentsWithConfig instance, that might contain control treatments if the client is not available or ready, or if feature flag names do not exist.
77
* @see {@link https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK#get-treatments-with-configurations}
88
*
9-
* @deprecated useSplitTreatments is the new hook to use.
9+
* @deprecated Replace with the new `useSplitTreatments` hook.
1010
*/
1111
export declare function useTreatments(featureFlagNames: string[], attributes?: SplitIO.Attributes, splitKey?: SplitIO.SplitKey): SplitIO.TreatmentsWithConfig;

0 commit comments

Comments
 (0)