From 0b2dc5b69c2a3bc16b5816dd9ce54ec99cfc83af Mon Sep 17 00:00:00 2001 From: Sven Kirschbaum Date: Sun, 23 Jun 2024 03:07:25 +0200 Subject: [PATCH] chore: Drop support for stompClientOptions property --- src/components/StompSessionProvider.tsx | 6 +----- src/interfaces/StompSessionProviderProps.ts | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/StompSessionProvider.tsx b/src/components/StompSessionProvider.tsx index aebd294..3661dc6 100644 --- a/src/components/StompSessionProvider.tsx +++ b/src/components/StompSessionProvider.tsx @@ -20,11 +20,7 @@ import { StompSessionSubscription } from "../interfaces/StompSessionSubscription * Please consult the @stomp/stompjs documentation for more information. */ function StompSessionProvider(props: StompSessionProviderProps) { - const { url, children, stompClientOptions, ...otherProps } = props; - let stompOptions = otherProps; - - // Support old API - if (stompClientOptions) stompOptions = stompClientOptions; + const { url, children, ...stompOptions } = props; const [client, setClient] = useState(undefined); const subscriptionRequests = useRef(new Map()); diff --git a/src/interfaces/StompSessionProviderProps.ts b/src/interfaces/StompSessionProviderProps.ts index 9476d36..a1415a9 100644 --- a/src/interfaces/StompSessionProviderProps.ts +++ b/src/interfaces/StompSessionProviderProps.ts @@ -4,8 +4,4 @@ import { ReactNode } from "react"; export interface StompSessionProviderProps extends StompConfig { url: string; children: ReactNode; - /** - * @deprecated - */ - stompClientOptions?: object; }