Skip to content

Commit

Permalink
Remove the deprecated hoc and query components (#12211)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller authored Dec 13, 2024
1 parent 6676ac4 commit c2736db
Show file tree
Hide file tree
Showing 56 changed files with 181 additions and 17,267 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-cycles-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": major
---

Remove the deprecated `graphql`, `withQuery`, `withMutation`, `withSubscription`, and `withApollo` hoc components. Use the provided React hooks instead.
5 changes: 5 additions & 0 deletions .changeset/young-turtles-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": major
---

Remove the deprecated `Query`, `Mutation`, and `Subscription` components. Use the provided React hooks instead.
1 change: 0 additions & 1 deletion .size-limit.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const checks = [
"@wry/equality",
"@wry/trie",
"graphql-tag",
"hoist-non-react-statics",
"optimism",
"prop-types",
"response-iterator",
Expand Down
4 changes: 2 additions & 2 deletions .size-limits.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"dist/apollo-client.min.cjs": 41615,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 34349
"dist/apollo-client.min.cjs": 41617,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 34350
}
2 changes: 0 additions & 2 deletions config/entryPoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ const entryPoints = [
{ dirs: ["link", "ws"] },
{ dirs: ["masking"] },
{ dirs: ["react"] },
{ dirs: ["react", "components"] },
{ dirs: ["react", "context"] },
{ dirs: ["react", "hoc"] },
{ dirs: ["react", "hooks"] },
{ dirs: ["react", "internal"] },
{ dirs: ["react", "parser"] },
Expand Down
10 changes: 1 addition & 9 deletions config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ const defaults = {
const ignoreTSFiles = ".ts$";
const ignoreTSXFiles = ".tsx$";

const react19TestFileIgnoreList = [
ignoreTSFiles,
// The HOCs and Render Prop Components have been deprecated since March 2020,
// and to test them we would need to rewrite a lot of our test suites.
// We will not support them any more for React 19.
// They will probably work, but we make no more guarantees.
"src/react/hoc/.*",
"src/react/components/.*",
];
const react19TestFileIgnoreList = [ignoreTSFiles];

const react17TestFileIgnoreList = [
ignoreTSFiles,
Expand Down
63 changes: 0 additions & 63 deletions docs/source/api/react/components.mdx

This file was deleted.

Loading

0 comments on commit c2736db

Please sign in to comment.