@tanstack/solid-query
Advanced tools
Comparing version 5.0.0-alpha.81 to 5.0.0-alpha.84
@@ -53,3 +53,2 @@ import { notifyManager, QueryClient as QueryClient$1, hydrate, QueryObserver, InfiniteQueryObserver, MutationObserver, QueriesObserver } from '@tanstack/query-core'; | ||
// why that happens. | ||
function reconcileFn(store, result, reconcileOption) { | ||
@@ -56,0 +55,0 @@ if (reconcileOption === false) return result; |
@@ -0,1 +1,5 @@ | ||
/* eslint-disable @typescript-eslint/no-unnecessary-condition */ | ||
// Had to disable the lint rule because isServer type is defined as false | ||
// in solid-js/web package. I'll create a GitHub issue with them to see | ||
// why that happens. | ||
import { hydrate, notifyManager } from '@tanstack/query-core'; | ||
@@ -2,0 +6,0 @@ import { isServer } from 'solid-js/web'; |
import { InfiniteQueryObserver } from '@tanstack/query-core'; | ||
import { createMemo } from 'solid-js'; | ||
import { createBaseQuery } from './createBaseQuery'; | ||
import { createMemo } from 'solid-js'; | ||
export function createInfiniteQuery(options, queryClient) { | ||
@@ -5,0 +5,0 @@ return createBaseQuery(createMemo(() => options()), |
import { MutationObserver } from '@tanstack/query-core'; | ||
import { createComputed, on, onCleanup } from 'solid-js'; | ||
import { createStore } from 'solid-js/store'; | ||
import { useQueryClient } from './QueryClientProvider'; | ||
import { createComputed, onCleanup, on } from 'solid-js'; | ||
import { createStore } from 'solid-js/store'; | ||
import { shouldThrowError } from './utils'; | ||
@@ -6,0 +6,0 @@ // HOOK |
@@ -1,2 +0,2 @@ | ||
import { notifyManager, QueriesObserver } from '@tanstack/query-core'; | ||
import { QueriesObserver, notifyManager } from '@tanstack/query-core'; | ||
import { createComputed, onCleanup } from 'solid-js'; | ||
@@ -3,0 +3,0 @@ import { createStore, unwrap } from 'solid-js/store'; |
@@ -1,2 +0,2 @@ | ||
import { createContext, useContext, onMount, onCleanup } from 'solid-js'; | ||
import { createContext, onCleanup, onMount, useContext } from 'solid-js'; | ||
export const QueryClientContext = createContext(undefined); | ||
@@ -3,0 +3,0 @@ export const useQueryClient = (queryClient) => { |
@@ -0,3 +1,3 @@ | ||
import { createMemo, createSignal, onCleanup } from 'solid-js'; | ||
import { useQueryClient } from './QueryClientProvider'; | ||
import { createSignal, onCleanup, createMemo } from 'solid-js'; | ||
export function useIsMutating(filters, queryClient) { | ||
@@ -4,0 +4,0 @@ const client = createMemo(() => useQueryClient(queryClient?.())); |
@@ -0,5 +1,5 @@ | ||
import type { CreateBaseQueryOptions } from './types'; | ||
import type { Accessor } from 'solid-js'; | ||
import type { QueryClient } from './QueryClient'; | ||
import type { QueryKey, QueryObserver, QueryObserverResult } from '@tanstack/query-core'; | ||
import type { QueryClient } from './QueryClient'; | ||
import type { Accessor } from 'solid-js'; | ||
import type { CreateBaseQueryOptions } from './types'; | ||
export declare function createBaseQuery<TQueryFnData, TError, TData, TQueryData, TQueryKey extends QueryKey>(options: Accessor<CreateBaseQueryOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>>, Observer: typeof QueryObserver, queryClient?: Accessor<QueryClient>): QueryObserverResult<TData, TError>; |
@@ -1,2 +0,2 @@ | ||
import type { QueryKey, DefaultError, InfiniteData } from '@tanstack/query-core'; | ||
import type { DefaultError, InfiniteData, QueryKey } from '@tanstack/query-core'; | ||
import type { QueryClient } from './QueryClient'; | ||
@@ -3,0 +3,0 @@ import type { CreateInfiniteQueryOptions, CreateInfiniteQueryResult } from './types'; |
@@ -1,4 +0,4 @@ | ||
import type { QueriesPlaceholderDataFunction, QueryFunction, QueryKey, DefaultError } from '@tanstack/query-core'; | ||
import type { Accessor } from 'solid-js'; | ||
import type { QueryClient } from './QueryClient'; | ||
import type { Accessor } from 'solid-js'; | ||
import type { DefaultError, QueriesPlaceholderDataFunction, QueryFunction, QueryKey } from '@tanstack/query-core'; | ||
import type { CreateQueryResult, SolidQueryOptions } from './types'; | ||
@@ -5,0 +5,0 @@ type CreateQueryOptionsForCreateQueries<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Omit<SolidQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'placeholderData'> & { |
@@ -1,2 +0,2 @@ | ||
import type { QueryKey, DefaultError } from '@tanstack/query-core'; | ||
import type { DefaultError, QueryKey } from '@tanstack/query-core'; | ||
import type { QueryClient } from './QueryClient'; | ||
@@ -3,0 +3,0 @@ import type { CreateQueryResult, DefinedCreateQueryResult, FunctionedParams, SolidQueryOptions } from './types'; |
@@ -1,3 +0,3 @@ | ||
import type { QueryClientConfig as QueryCoreClientConfig, DefaultOptions as CoreDefaultOptions, QueryObserverOptions as QueryCoreObserverOptions, InfiniteQueryObserverOptions as QueryCoreInfiniteQueryObserverOptions, DefaultError, QueryKey } from '@tanstack/query-core'; | ||
import { QueryClient as QueryCoreClient } from '@tanstack/query-core'; | ||
import type { DefaultOptions as CoreDefaultOptions, DefaultError, QueryClientConfig as QueryCoreClientConfig, InfiniteQueryObserverOptions as QueryCoreInfiniteQueryObserverOptions, QueryObserverOptions as QueryCoreObserverOptions, QueryKey } from '@tanstack/query-core'; | ||
export interface QueryObserverOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = never> extends Omit<QueryCoreObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey, TPageParam>, 'structuralSharing'> { | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import type { QueryKey, QueryObserverResult, MutateFunction, MutationObserverOptions, MutationObserverResult, DefinedQueryObserverResult, InfiniteQueryObserverResult, WithRequired, DefaultError } from '@tanstack/query-core'; | ||
import type { QueryObserverOptions, InfiniteQueryObserverOptions } from './QueryClient'; | ||
import type { DefaultError, DefinedQueryObserverResult, InfiniteQueryObserverResult, MutateFunction, MutationObserverOptions, MutationObserverResult, QueryKey, QueryObserverResult, WithRequired } from '@tanstack/query-core'; | ||
import type { InfiniteQueryObserverOptions, QueryObserverOptions } from './QueryClient'; | ||
export type FunctionedParams<T> = () => T; | ||
@@ -4,0 +4,0 @@ export interface CreateBaseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends WithRequired<QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>, 'queryKey'> { |
{ | ||
"name": "@tanstack/solid-query", | ||
"version": "5.0.0-alpha.81", | ||
"version": "5.0.0-alpha.84", | ||
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid", | ||
@@ -39,3 +39,3 @@ "author": "tannerlinsley", | ||
"dependencies": { | ||
"@tanstack/query-core": "5.0.0-alpha.81" | ||
"@tanstack/query-core": "5.0.0-alpha.84" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
@@ -5,10 +5,3 @@ /* eslint-disable @typescript-eslint/no-unnecessary-condition */ | ||
// why that happens. | ||
import type { | ||
QueryKey, | ||
QueryObserver, | ||
QueryObserverResult, | ||
} from '@tanstack/query-core' | ||
import type { QueryClient } from './QueryClient' | ||
import { hydrate, notifyManager } from '@tanstack/query-core' | ||
import type { Accessor } from 'solid-js' | ||
import { isServer } from 'solid-js/web' | ||
@@ -24,4 +17,11 @@ import { | ||
import { useQueryClient } from './QueryClientProvider' | ||
import { shouldThrowError } from './utils' | ||
import type { CreateBaseQueryOptions } from './types' | ||
import { shouldThrowError } from './utils' | ||
import type { Accessor } from 'solid-js' | ||
import type { QueryClient } from './QueryClient' | ||
import type { | ||
QueryKey, | ||
QueryObserver, | ||
QueryObserverResult, | ||
} from '@tanstack/query-core' | ||
@@ -28,0 +28,0 @@ function reconcileFn<TData, TError>( |
@@ -0,9 +1,11 @@ | ||
import { InfiniteQueryObserver } from '@tanstack/query-core' | ||
import { createMemo } from 'solid-js' | ||
import { createBaseQuery } from './createBaseQuery' | ||
import type { | ||
QueryObserver, | ||
QueryKey, | ||
DefaultError, | ||
InfiniteData, | ||
QueryKey, | ||
QueryObserver, | ||
} from '@tanstack/query-core' | ||
import type { QueryClient } from './QueryClient' | ||
import { InfiniteQueryObserver } from '@tanstack/query-core' | ||
import type { | ||
@@ -13,4 +15,2 @@ CreateInfiniteQueryOptions, | ||
} from './types' | ||
import { createBaseQuery } from './createBaseQuery' | ||
import { createMemo } from 'solid-js' | ||
import type { Accessor } from 'solid-js' | ||
@@ -17,0 +17,0 @@ |
@@ -0,5 +1,8 @@ | ||
import { MutationObserver } from '@tanstack/query-core' | ||
import { createComputed, on, onCleanup } from 'solid-js' | ||
import { createStore } from 'solid-js/store' | ||
import { useQueryClient } from './QueryClientProvider' | ||
import { shouldThrowError } from './utils' | ||
import type { DefaultError } from '@tanstack/query-core' | ||
import type { QueryClient } from './QueryClient' | ||
import { MutationObserver } from '@tanstack/query-core' | ||
import { useQueryClient } from './QueryClientProvider' | ||
import type { | ||
@@ -11,5 +14,2 @@ CreateMutateFunction, | ||
import type { Accessor } from 'solid-js' | ||
import { createComputed, onCleanup, on } from 'solid-js' | ||
import { createStore } from 'solid-js/store' | ||
import { shouldThrowError } from './utils' | ||
@@ -16,0 +16,0 @@ // HOOK |
@@ -0,14 +1,14 @@ | ||
import { QueriesObserver, notifyManager } from '@tanstack/query-core' | ||
import { createComputed, onCleanup } from 'solid-js' | ||
import { createStore, unwrap } from 'solid-js/store' | ||
import { useQueryClient } from './QueryClientProvider' | ||
import type { Accessor } from 'solid-js' | ||
import type { QueryClient } from './QueryClient' | ||
import type { | ||
DefaultError, | ||
QueriesObserverOptions, | ||
QueriesPlaceholderDataFunction, | ||
QueryFunction, | ||
QueryKey, | ||
DefaultError, | ||
QueriesObserverOptions, | ||
} from '@tanstack/query-core' | ||
import { notifyManager, QueriesObserver } from '@tanstack/query-core' | ||
import type { QueryClient } from './QueryClient' | ||
import type { Accessor } from 'solid-js' | ||
import { createComputed, onCleanup } from 'solid-js' | ||
import { createStore, unwrap } from 'solid-js/store' | ||
import { useQueryClient } from './QueryClientProvider' | ||
import type { CreateQueryResult, SolidQueryOptions } from './types' | ||
@@ -15,0 +15,0 @@ |
@@ -1,7 +0,7 @@ | ||
import type { QueryKey, DefaultError } from '@tanstack/query-core' | ||
import { QueryObserver } from '@tanstack/query-core' | ||
import { createMemo } from 'solid-js' | ||
import { createBaseQuery } from './createBaseQuery' | ||
import type { DefaultError, QueryKey } from '@tanstack/query-core' | ||
import type { QueryClient } from './QueryClient' | ||
import type { Accessor } from 'solid-js' | ||
import { createMemo } from 'solid-js' | ||
import { createBaseQuery } from './createBaseQuery' | ||
import type { | ||
@@ -8,0 +8,0 @@ CreateQueryOptions, |
@@ -0,10 +1,10 @@ | ||
import { QueryClient as QueryCoreClient } from '@tanstack/query-core' | ||
import type { | ||
DefaultOptions as CoreDefaultOptions, | ||
DefaultError, | ||
QueryClientConfig as QueryCoreClientConfig, | ||
DefaultOptions as CoreDefaultOptions, | ||
InfiniteQueryObserverOptions as QueryCoreInfiniteQueryObserverOptions, | ||
QueryObserverOptions as QueryCoreObserverOptions, | ||
InfiniteQueryObserverOptions as QueryCoreInfiniteQueryObserverOptions, | ||
DefaultError, | ||
QueryKey, | ||
} from '@tanstack/query-core' | ||
import { QueryClient as QueryCoreClient } from '@tanstack/query-core' | ||
@@ -11,0 +11,0 @@ export interface QueryObserverOptions< |
/* istanbul ignore file */ | ||
import type { | ||
QueryKey, | ||
QueryObserverResult, | ||
DefaultError, | ||
DefinedQueryObserverResult, | ||
InfiniteQueryObserverResult, | ||
MutateFunction, | ||
MutationObserverOptions, | ||
MutationObserverResult, | ||
DefinedQueryObserverResult, | ||
InfiniteQueryObserverResult, | ||
QueryKey, | ||
QueryObserverResult, | ||
WithRequired, | ||
DefaultError, | ||
} from '@tanstack/query-core' | ||
import type { | ||
InfiniteQueryObserverOptions, | ||
QueryObserverOptions, | ||
InfiniteQueryObserverOptions, | ||
} from './QueryClient' | ||
@@ -18,0 +18,0 @@ |
@@ -0,6 +1,6 @@ | ||
import { createMemo, createSignal, onCleanup } from 'solid-js' | ||
import { useQueryClient } from './QueryClientProvider' | ||
import type { QueryFilters } from '@tanstack/query-core' | ||
import type { QueryClient } from './QueryClient' | ||
import type { Accessor } from 'solid-js' | ||
import { createMemo, createSignal, onCleanup } from 'solid-js' | ||
import { useQueryClient } from './QueryClientProvider' | ||
@@ -7,0 +7,0 @@ export function useIsFetching( |
@@ -0,6 +1,6 @@ | ||
import { createMemo, createSignal, onCleanup } from 'solid-js' | ||
import { useQueryClient } from './QueryClientProvider' | ||
import type { MutationFilters } from '@tanstack/query-core' | ||
import type { QueryClient } from './QueryClient' | ||
import { useQueryClient } from './QueryClientProvider' | ||
import type { Accessor } from 'solid-js' | ||
import { createSignal, onCleanup, createMemo } from 'solid-js' | ||
@@ -7,0 +7,0 @@ export function useIsMutating( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
467285
11987
+ Added@tanstack/query-core@5.0.0-alpha.84(transitive)
- Removed@tanstack/query-core@5.0.0-alpha.81(transitive)