Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the deprecated hoc and query components #12211

Merged
merged 20 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
63 changes: 0 additions & 63 deletions docs/source/api/react/components.mdx

This file was deleted.

Loading
Loading