From 4f3d13755bc2f1c3a419a7c4cbf06dc4db9adf63 Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Wed, 27 Sep 2023 13:12:18 -0400 Subject: [PATCH] Avoid no-op call to getStoreKeyName.setStringify in policies.ts. --- .size-limit.cjs | 4 ++-- src/cache/inmemory/policies.ts | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.size-limit.cjs b/.size-limit.cjs index db746e9af39..bc0d452dd60 100644 --- a/.size-limit.cjs +++ b/.size-limit.cjs @@ -1,7 +1,7 @@ const checks = [ { path: "dist/apollo-client.min.cjs", - limit: "38090", + limit: "38083", }, { path: "dist/main.cjs", @@ -10,7 +10,7 @@ const checks = [ { path: "dist/index.js", import: "{ ApolloClient, InMemoryCache, HttpLink }", - limit: "32126", + limit: "32123", }, ...[ "ApolloProvider", diff --git a/src/cache/inmemory/policies.ts b/src/cache/inmemory/policies.ts index d44c896cc83..6918c7dd6aa 100644 --- a/src/cache/inmemory/policies.ts +++ b/src/cache/inmemory/policies.ts @@ -20,7 +20,6 @@ import { getStoreKeyName, isNonNullObject, stringifyForDisplay, - canonicalStringify, } from "../../utilities/index.js"; import type { IdGetter, @@ -54,8 +53,6 @@ import { keyFieldsFnFromSpecifier, } from "./key-extractor.js"; -getStoreKeyName.setStringify(canonicalStringify); - export type TypePolicies = { [__typename: string]: TypePolicy; };