From bf9dd17b288f33901e9421bcc0eacb3894c087af Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Wed, 24 Apr 2024 19:53:17 +0200 Subject: [PATCH] Update the `rehackt` dependency to `^0.1.0` (#11803) * Update the `rehackt` dependency to `^0.1.0` * adjust import * Clean up Prettier, Size-limit, and Api-Extractor --------- Co-authored-by: phryneas --- .changeset/healthy-chairs-sleep.md | 5 +++++ .size-limits.json | 4 ++-- package-lock.json | 8 ++++---- package.json | 2 +- .../hooks/internal/__tests__/useRenderGuard.test.tsx | 2 +- 5 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 .changeset/healthy-chairs-sleep.md diff --git a/.changeset/healthy-chairs-sleep.md b/.changeset/healthy-chairs-sleep.md new file mode 100644 index 00000000000..cfaf23a0a96 --- /dev/null +++ b/.changeset/healthy-chairs-sleep.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Update the `rehackt` dependency to `^0.1.0` diff --git a/.size-limits.json b/.size-limits.json index 3ad88477003..86e387b30fb 100644 --- a/.size-limits.json +++ b/.size-limits.json @@ -1,4 +1,4 @@ { - "dist/apollo-client.min.cjs": 39538, - "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32809 + "dist/apollo-client.min.cjs": 39534, + "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32804 } diff --git a/package-lock.json b/package-lock.json index d17a45e2735..0d79b181395 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "hoist-non-react-statics": "^3.3.2", "optimism": "^0.18.0", "prop-types": "^15.7.2", - "rehackt": "0.0.6", + "rehackt": "^0.1.0", "response-iterator": "^0.2.6", "symbol-observable": "^4.0.0", "ts-invariant": "^0.10.3", @@ -10691,9 +10691,9 @@ } }, "node_modules/rehackt": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/rehackt/-/rehackt-0.0.6.tgz", - "integrity": "sha512-l3WEzkt4ntlEc/IB3/mF6SRgNHA6zfQR7BlGOgBTOmx7IJJXojDASav+NsgXHFjHn+6RmwqsGPFgZpabWpeOdw==", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/rehackt/-/rehackt-0.1.0.tgz", + "integrity": "sha512-7kRDOuLHB87D/JESKxQoRwv4DzbIdwkAGQ7p6QKGdVlY1IZheUnVhlk/4UZlNUVxdAXpyxikE3URsG067ybVzw==", "peerDependencies": { "@types/react": "*", "react": "*" diff --git a/package.json b/package.json index e815d64a5d2..a4157dcc021 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,7 @@ "hoist-non-react-statics": "^3.3.2", "optimism": "^0.18.0", "prop-types": "^15.7.2", - "rehackt": "0.0.6", + "rehackt": "^0.1.0", "response-iterator": "^0.2.6", "symbol-observable": "^4.0.0", "ts-invariant": "^0.10.3", diff --git a/src/react/hooks/internal/__tests__/useRenderGuard.test.tsx b/src/react/hooks/internal/__tests__/useRenderGuard.test.tsx index a8cf0f0a69a..0bf53ed8ab5 100644 --- a/src/react/hooks/internal/__tests__/useRenderGuard.test.tsx +++ b/src/react/hooks/internal/__tests__/useRenderGuard.test.tsx @@ -1,5 +1,5 @@ /* eslint-disable testing-library/render-result-naming-convention */ -import React, { useEffect } from "react"; +import React, { useEffect } from "rehackt"; import { useRenderGuard } from "../useRenderGuard"; import { render, waitFor } from "@testing-library/react"; import { withCleanup } from "../../../../testing/internal";