@apollo/client
Advanced tools
Comparing version 3.10.6 to 3.10.7
import type { SelectionSetNode, FieldNode } from "graphql"; | ||
import type { FragmentMap, FragmentMapFunction, StoreObject, Reference } from "../../utilities/index.js"; | ||
import type { NormalizedCache, ReadMergeModifyContext, MergeTree } from "./types.js"; | ||
import type { NormalizedCache, ReadMergeModifyContext, MergeTree, InMemoryCacheConfig } from "./types.js"; | ||
import type { StoreReader } from "./readFromStore.js"; | ||
@@ -29,3 +29,3 @@ import type { InMemoryCache } from "./inMemoryCache.js"; | ||
private fragments?; | ||
constructor(cache: InMemoryCache, reader?: StoreReader | undefined, fragments?: import("./fragmentRegistry.js").FragmentRegistryAPI | undefined); | ||
constructor(cache: InMemoryCache, reader?: StoreReader | undefined, fragments?: InMemoryCacheConfig["fragments"]); | ||
writeToStore(store: NormalizedCache, { query, result, dataId, variables, overwrite }: Cache.WriteOptions): Reference | undefined; | ||
@@ -32,0 +32,0 @@ private processSelectionSet; |
@@ -121,3 +121,3 @@ import type { DocumentNode } from "graphql"; | ||
protected inFlightLinkObservables: Trie<{ | ||
observable?: Observable<FetchResult<any>> | undefined; | ||
observable?: Observable<FetchResult<any>>; | ||
}>; | ||
@@ -124,0 +124,0 @@ private getObservableFromLink; |
@@ -436,3 +436,3 @@ 'use strict'; | ||
var version = "3.10.6"; | ||
var version = "3.10.7"; | ||
@@ -504,3 +504,11 @@ function maybe(thunk) { | ||
function stringify(arg) { | ||
return typeof arg == "string" ? arg : (stringifyForDisplay(arg, 2).slice(0, 1000)); | ||
if (typeof arg == "string") { | ||
return arg; | ||
} | ||
try { | ||
return stringifyForDisplay(arg, 2).slice(0, 1000); | ||
} | ||
catch (_a) { | ||
return "<non-serializable>"; | ||
} | ||
} | ||
@@ -507,0 +515,0 @@ function getHandledErrorMsg(message, messageArgs) { |
@@ -5,5 +5,4 @@ /** | ||
*/ | ||
/// <reference types="node" /> | ||
import type { Readable as NodeReadableStream } from "stream"; | ||
export default function nodeStreamIterator<T>(stream: NodeReadableStream): AsyncIterableIterator<T>; | ||
//# sourceMappingURL=nodeStream.d.ts.map |
{ | ||
"name": "@apollo/client", | ||
"version": "3.10.6", | ||
"version": "3.10.7", | ||
"description": "A fully-featured caching GraphQL client.", | ||
@@ -77,3 +77,3 @@ "private": false, | ||
"@graphql-tools/utils": "10.2.0", | ||
"@microsoft/api-extractor": "7.43.2", | ||
"@microsoft/api-extractor": "7.47.0", | ||
"@rollup/plugin-node-resolve": "11.2.1", | ||
@@ -105,2 +105,3 @@ "@size-limit/esbuild-why": "11.1.2", | ||
"acorn": "8.11.3", | ||
"ajv": "8.16.0", | ||
"blob-polyfill": "7.0.20220408", | ||
@@ -150,3 +151,3 @@ "bytes": "3.1.2", | ||
"typedoc": "0.25.0", | ||
"typescript": "5.4.5", | ||
"typescript": "5.5.2", | ||
"wait-for-observables": "1.0.3", | ||
@@ -164,2 +165,3 @@ "web-streams-polyfill": "4.0.0", | ||
"**/*.cjs.map", | ||
"**/*.d.cts", | ||
"**/*.js", | ||
@@ -166,0 +168,0 @@ "**/*.js.map", |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from "rehackt"; | ||
@@ -3,0 +2,0 @@ import type { OperationVariables } from "../../core/index.js"; |
@@ -1,4 +0,3 @@ | ||
/// <reference types="react" /> | ||
import * as React from "rehackt"; | ||
export declare const useIsomorphicLayoutEffect: typeof React.useLayoutEffect; | ||
//# sourceMappingURL=useIsomorphicLayoutEffect.d.ts.map |
@@ -1,4 +0,3 @@ | ||
/// <reference types="react" /> | ||
import * as React from "rehackt"; | ||
export declare function useLazyRef<T>(getInitialValue: () => T): React.MutableRefObject<T>; | ||
//# sourceMappingURL=useLazyRef.d.ts.map |
@@ -11,3 +11,3 @@ 'use strict'; | ||
var version = "3.10.6"; | ||
var version = "3.10.7"; | ||
@@ -79,3 +79,11 @@ function maybe(thunk) { | ||
function stringify(arg) { | ||
return typeof arg == "string" ? arg : (stringifyForDisplay(arg, 2).slice(0, 1000)); | ||
if (typeof arg == "string") { | ||
return arg; | ||
} | ||
try { | ||
return stringifyForDisplay(arg, 2).slice(0, 1000); | ||
} | ||
catch (_a) { | ||
return "<non-serializable>"; | ||
} | ||
} | ||
@@ -82,0 +90,0 @@ function getHandledErrorMsg(message, messageArgs) { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type { GraphQLSchema } from "graphql"; | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
/** | ||
@@ -3,0 +2,0 @@ * Temporarily disable act warnings. |
@@ -1,3 +0,1 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="jest" /> | ||
type ConsoleMethod = "log" | "info" | "warn" | "error" | "debug"; | ||
@@ -4,0 +2,0 @@ type Spies<Keys extends ConsoleMethod[]> = Record<Keys[number], jest.SpyInstance<void, any[], any>>; |
@@ -1,4 +0,3 @@ | ||
/// <reference types="node" /> | ||
/** @internal */ | ||
export declare function withCleanup<T extends object>(item: T, cleanup: (item: T) => void): T & Disposable; | ||
//# sourceMappingURL=withCleanup.d.ts.map |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { screen } from "@testing-library/dom"; | ||
@@ -3,0 +2,0 @@ /** @internal */ |
@@ -66,3 +66,3 @@ /* istanbul ignore file */ | ||
var _b = _a[0], dom = _b === void 0 ? _this.domSnapshot : _b, rest = _a.slice(1); | ||
screen.debug.apply(screen, __spreadArray([dom], rest, false)); | ||
return screen.debug.apply(screen, __spreadArray([dom], rest, false)); | ||
}, | ||
@@ -75,3 +75,3 @@ logTestingPlaygroundURL: function () { | ||
var _b = _a[0], dom = _b === void 0 ? _this.domSnapshot : _b, rest = _a.slice(1); | ||
screen.logTestingPlaygroundURL.apply(screen, __spreadArray([dom], rest, false)); | ||
return screen.logTestingPlaygroundURL.apply(screen, __spreadArray([dom], rest, false)); | ||
}, | ||
@@ -78,0 +78,0 @@ }); |
import { maybe } from "../globals/index.js"; | ||
var isReactNative = maybe(function () { return navigator.product; }) == "ReactNative"; | ||
export var canUseWeakMap = typeof WeakMap === "function" && | ||
!maybe(function () { return navigator.product == "ReactNative" && !global.HermesInternal; }); | ||
!(isReactNative && !global.HermesInternal); | ||
export var canUseWeakSet = typeof WeakSet === "function"; | ||
@@ -24,3 +25,3 @@ export var canUseSymbol = typeof Symbol === "function" && typeof Symbol.for === "function"; | ||
// prevent them (i.e. skipping useLayoutEffect when using jsdom). | ||
export var canUseLayoutEffect = canUseDOM && !usingJSDOM; | ||
export var canUseLayoutEffect = (canUseDOM || isReactNative) && !usingJSDOM; | ||
//# sourceMappingURL=canUse.js.map |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var version = "3.10.6"; | ||
var version = "3.10.7"; | ||
@@ -83,3 +83,11 @@ function maybe(thunk) { | ||
function stringify(arg) { | ||
return typeof arg == "string" ? arg : (stringifyForDisplay(arg, 2).slice(0, 1000)); | ||
if (typeof arg == "string") { | ||
return arg; | ||
} | ||
try { | ||
return stringifyForDisplay(arg, 2).slice(0, 1000); | ||
} | ||
catch (_a) { | ||
return "<non-serializable>"; | ||
} | ||
} | ||
@@ -86,0 +94,0 @@ function getHandledErrorMsg(message, messageArgs) { |
@@ -56,3 +56,11 @@ import { invariant as originalInvariant, InvariantError } from "ts-invariant"; | ||
function stringify(arg) { | ||
return typeof arg == "string" ? arg : (stringifyForDisplay(arg, 2).slice(0, 1000)); | ||
if (typeof arg == "string") { | ||
return arg; | ||
} | ||
try { | ||
return stringifyForDisplay(arg, 2).slice(0, 1000); | ||
} | ||
catch (_a) { | ||
return "<non-serializable>"; | ||
} | ||
} | ||
@@ -59,0 +67,0 @@ function getHandledErrorMsg(message, messageArgs) { |
@@ -7,4 +7,4 @@ export type CreateMultipartSubscriptionOptions = { | ||
headers: Record<string, any>; | ||
body?: string | undefined; | ||
body?: string; | ||
}; | ||
//# sourceMappingURL=shared.d.ts.map |
@@ -87,4 +87,5 @@ 'use strict'; | ||
var isReactNative = globals.maybe(function () { return navigator.product; }) == "ReactNative"; | ||
var canUseWeakMap = typeof WeakMap === "function" && | ||
!globals.maybe(function () { return navigator.product == "ReactNative" && !global.HermesInternal; }); | ||
!(isReactNative && !global.HermesInternal); | ||
var canUseWeakSet = typeof WeakSet === "function"; | ||
@@ -96,3 +97,3 @@ var canUseSymbol = typeof Symbol === "function" && typeof Symbol.for === "function"; | ||
globals.maybe(function () { return navigator.userAgent.indexOf("jsdom") >= 0; }) || false; | ||
var canUseLayoutEffect = canUseDOM && !usingJSDOM; | ||
var canUseLayoutEffect = (canUseDOM || isReactNative) && !usingJSDOM; | ||
@@ -99,0 +100,0 @@ function isNonNullObject(obj) { |
@@ -1,2 +0,2 @@ | ||
export var version = "3.10.6"; | ||
export var version = "3.10.7"; | ||
//# sourceMappingURL=version.js.map |
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 too big to display
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 too big to display
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
6910493
853
60185
83