Skip to content

Commit 8287408

Browse files
committed
Deprecate usePushy and PushyProvider; update exports in context and index files
1 parent 135e0c5 commit 8287408

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/context.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,5 @@ export const UpdateContext = createContext<{
4343

4444
export const useUpdate = () => useContext(UpdateContext);
4545

46+
/** @deprecated Please use `useUpdate` instead */
4647
export const usePushy = useUpdate;
47-
48-
export const useCresc = useUpdate;

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export { Pushy, Cresc } from './client';
2-
export { UpdateContext, usePushy, useCresc, useUpdate } from './context';
2+
export { UpdateContext, usePushy, useUpdate } from './context';
33
export { PushyProvider, UpdateProvider } from './provider';
44
export { PushyModule, UpdateModule } from './core';

src/provider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,4 +365,5 @@ export const UpdateProvider = ({
365365
);
366366
};
367367

368+
/** @deprecated Please use `UpdateProvider` instead */
368369
export const PushyProvider = UpdateProvider;

0 commit comments

Comments
 (0)