Skip to content

Commit

Permalink
Fix paths to new entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Dec 19, 2023
1 parent 4fadaa3 commit 844b3df
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/react/hooks/__tests__/useBackgroundQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import {
import { useBackgroundQuery } from "../useBackgroundQuery";
import { useReadQuery } from "../useReadQuery";
import { ApolloProvider } from "../../context";
import { QueryReference, getWrappedPromise } from "../../cache/QueryReference";
import { QueryReference, getWrappedPromise } from "../../internal";
import { InMemoryCache } from "../../../cache";
import {
SuspenseQueryHookFetchPolicy,
Expand Down
2 changes: 1 addition & 1 deletion src/react/hooks/__tests__/useQueryRefHandlers.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { UseReadQueryResult, useReadQuery } from "../useReadQuery";
import { Suspense } from "react";
import { createQueryPreloader } from "../../query-preloader/createQueryPreloader";
import userEvent from "@testing-library/user-event";
import { QueryReference } from "../../cache/QueryReference";
import { QueryReference } from "../../internal";
import { useBackgroundQuery } from "../useBackgroundQuery";
import { useLoadableQuery } from "../useLoadableQuery";
import { concatPagination } from "../../../utilities";
Expand Down
7 changes: 3 additions & 4 deletions src/react/hooks/useBackgroundQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@ import type {
} from "../../core/index.js";
import { useApolloClient } from "./useApolloClient.js";
import {
getSuspenseCache,
unwrapQueryRef,
updateWrappedQueryRef,
wrapQueryRef,
} from "../cache/QueryReference.js";
import type { QueryReference } from "../cache/QueryReference.js";
} from "../internal/index.js";
import type { CacheKey, QueryReference } from "../internal/index.js";
import type { BackgroundQueryHookOptions, NoInfer } from "../types/types.js";
import { __use } from "./internal/index.js";
import { getSuspenseCache } from "../cache/index.js";
import { useWatchQueryOptions } from "./useSuspenseQuery.js";
import type { FetchMoreFunction, RefetchFunction } from "./useSuspenseQuery.js";
import { canonicalStringify } from "../../cache/index.js";
import type { DeepPartial } from "../../utilities/index.js";
import type { CacheKey } from "../cache/types.js";
import type { SkipToken } from "./constants.js";

export type UseBackgroundQueryResult<
Expand Down
7 changes: 3 additions & 4 deletions src/react/hooks/useLoadableQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,21 @@ import type {
} from "../../core/index.js";
import { useApolloClient } from "./useApolloClient.js";
import {
getSuspenseCache,
unwrapQueryRef,
updateWrappedQueryRef,
wrapQueryRef,
} from "../cache/QueryReference.js";
import type { QueryReference } from "../cache/QueryReference.js";
} from "../internal/index.js";
import type { CacheKey, QueryReference } from "../internal/index.js";
import type { LoadableQueryHookOptions } from "../types/types.js";
import { __use, useRenderGuard } from "./internal/index.js";
import { getSuspenseCache } from "../cache/index.js";
import { useWatchQueryOptions } from "./useSuspenseQuery.js";
import type { FetchMoreFunction, RefetchFunction } from "./useSuspenseQuery.js";
import { canonicalStringify } from "../../cache/index.js";
import type {
DeepPartial,
OnlyRequiredProperties,
} from "../../utilities/index.js";
import type { CacheKey } from "../cache/types.js";
import { invariant } from "../../utilities/globals/index.js";

export type LoadQueryFunction<TVariables extends OperationVariables> = (
Expand Down
4 changes: 2 additions & 2 deletions src/react/hooks/useQueryRefHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
unwrapQueryRef,
updateWrappedQueryRef,
wrapQueryRef,
} from "../cache/QueryReference.js";
import type { QueryReference } from "../cache/QueryReference.js";
} from "../internal/index.js";
import type { QueryReference } from "../internal/index.js";
import type { OperationVariables } from "../../core/types.js";
import type { RefetchFunction, FetchMoreFunction } from "./useSuspenseQuery.js";
import type { FetchMoreQueryOptions } from "../../core/watchQueryOptions.js";
Expand Down
4 changes: 2 additions & 2 deletions src/react/hooks/useReadQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
getWrappedPromise,
unwrapQueryRef,
updateWrappedQueryRef,
} from "../cache/QueryReference.js";
import type { QueryReference } from "../cache/QueryReference.js";
} from "../internal/index.js";
import type { QueryReference } from "../internal/index.js";
import { __use } from "./internal/index.js";
import { toApolloError } from "./useSuspenseQuery.js";
import { useSyncExternalStore } from "./useSyncExternalStore.js";
Expand Down
4 changes: 2 additions & 2 deletions src/react/hooks/useSuspenseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import type {
NoInfer,
} from "../types/types.js";
import { __use, useDeepMemo } from "./internal/index.js";
import { getSuspenseCache } from "../cache/index.js";
import { getSuspenseCache } from "../internal/index.js";
import { canonicalStringify } from "../../cache/index.js";
import { skipToken } from "./constants.js";
import type { SkipToken } from "./constants.js";
import type { CacheKey, QueryKey } from "../cache/types.js";
import type { CacheKey, QueryKey } from "../internal/index.js";

export interface UseSuspenseQueryResult<
TData = unknown,
Expand Down
2 changes: 1 addition & 1 deletion src/react/internal/cache/getSuspenseCache.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SuspenseCacheOptions } from "./index.js";
import type { SuspenseCacheOptions } from "../index.js";
import { SuspenseCache } from "./SuspenseCache.js";
import type { ApolloClient } from "../../../core/ApolloClient.js";

Expand Down
7 changes: 2 additions & 5 deletions src/react/query-preloader/createQueryPreloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ import type {
DeepPartial,
OnlyRequiredProperties,
} from "../../utilities/index.js";
import {
InternalQueryReference,
wrapQueryRef,
} from "../cache/QueryReference.js";
import type { QueryReference } from "../cache/QueryReference.js";
import { InternalQueryReference, wrapQueryRef } from "../internal/index.js";
import type { QueryReference } from "../internal/index.js";
import type { NoInfer } from "../index.js";

type VariablesOption<TVariables extends OperationVariables> =
Expand Down
2 changes: 1 addition & 1 deletion src/react/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import type {

/* QueryReference type */

export type { QueryReference } from "../cache/QueryReference.js";
export type { QueryReference } from "../internal/index.js";

/* Common types */

Expand Down
4 changes: 2 additions & 2 deletions src/testing/matchers/toBeDisposed.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { MatcherFunction } from "expect";
import type { QueryReference } from "../../react/cache/QueryReference.js";
import type { QueryReference } from "../../react/internal/index.js";
import {
InternalQueryReference,
unwrapQueryRef,
} from "../../react/cache/QueryReference.js";
} from "../../react/internal/index.js";

function isQueryRef(queryRef: unknown): queryRef is QueryReference {
try {
Expand Down
4 changes: 2 additions & 2 deletions src/testing/matchers/toHaveSuspenseCacheEntryUsing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { DocumentNode } from "graphql";
import type { OperationVariables } from "../../core/index.js";
import { ApolloClient } from "../../core/index.js";
import { canonicalStringify } from "../../cache/index.js";
import { getSuspenseCache } from "../../react/cache/index.js";
import type { CacheKey } from "../../react/cache/types.js";
import { getSuspenseCache } from "../../react/internal/index.js";
import type { CacheKey } from "../../react/internal/index.js";

export const toHaveSuspenseCacheEntryUsing: MatcherFunction<
[
Expand Down

0 comments on commit 844b3df

Please sign in to comment.