Skip to content

Commit ef2ea14

Browse files
refactor(angular-query): remove deprecated APIs
remove deprecated APIs so that the first stable release only contains stable APIs. BREAKING CHANGE: provideAngularQuery was removed. Use provideTanstackQuery instead. BREAKING CHANGE: injectQueryClient was removed. Use inject(QueryClient) instead. CLOSE: TanStack#8712
1 parent dcfc100 commit ef2ea14

File tree

3 files changed

+0
-40
lines changed

3 files changed

+0
-40
lines changed

packages/angular-query-experimental/src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ export * from './inject-mutation'
2626
export * from './inject-mutation-state'
2727
export * from './inject-queries'
2828
export * from './inject-query'
29-
export * from './inject-query-client'
3029
export * from './providers'

packages/angular-query-experimental/src/inject-query-client.ts

-23
This file was deleted.

packages/angular-query-experimental/src/providers.ts

-16
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,6 @@ export function provideTanStackQuery(
112112
])
113113
}
114114

115-
/**
116-
* Sets up providers necessary to enable TanStack Query functionality for Angular applications.
117-
*
118-
* Allows to configure a `QueryClient`.
119-
* @param queryClient - A `QueryClient` instance.
120-
* @returns A set of providers to set up TanStack Query.
121-
* @public
122-
* @see https://tanstack.com/query/v5/docs/framework/angular/quick-start
123-
* @deprecated Use `provideTanStackQuery` instead.
124-
*/
125-
export function provideAngularQuery(
126-
queryClient: QueryClient,
127-
): EnvironmentProviders {
128-
return provideTanStackQuery(queryClient)
129-
}
130-
131115
/**
132116
* Helper type to represent a Query feature.
133117
*/

0 commit comments

Comments
 (0)