Skip to content

Commit

Permalink
Unify algorithms for masking and migration (#12139)
Browse files Browse the repository at this point in the history
Co-authored-by: Jerel Miller <jerelmiller@gmail.com>
  • Loading branch information
phryneas and jerelmiller authored Nov 19, 2024
1 parent 48d550c commit 5a53e15
Show file tree
Hide file tree
Showing 6 changed files with 696 additions and 630 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-penguins-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": patch
---

Fix issue where masked data would sometimes get returned when the field was part of a child fragment from a fragment unmasked by the parent query.
5 changes: 5 additions & 0 deletions .changeset/mean-bottles-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": patch
---

Fix issue where the warning emitted by `@unmask(mode: "migrate")` would trigger unnecessarily when the fragment was used alongside a masked fragment inside an inline fragment.
5 changes: 5 additions & 0 deletions .changeset/wicked-pans-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": patch
---

Fix issue that threw errors when masking partial data with `@unmask(mode: "migrate")`.
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": 41638,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 34394
"dist/apollo-client.min.cjs": 41756,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 34505
}
Loading

0 comments on commit 5a53e15

Please sign in to comment.