Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(core): Deprecate maskTypename option (#3299)

authored by

Phil Pluckthun and committed by
GitHub
cbf338b5 8b8cf54a

+12
+8
.changeset/swift-camels-draw.md
··· 1 + --- 2 + '@urql/core': patch 3 + --- 4 + 5 + Add deprecation notice for `maskTypename` option. 6 + Masking typenames in a result is no longer recommended. It’s only 7 + useful when multiple pre-conditions are applied and inferior to 8 + mapping to an input object manually.
+2
packages/core/src/client.ts
··· 171 171 preferGetMethod?: boolean | 'force' | 'within-url-limit'; 172 172 /** Instructs the `Client` to remove `__typename` properties on all results. 173 173 * 174 + * @deprecated Not recommended over modelling inputs manually (See #3299) 175 + * 174 176 * @remarks 175 177 * By default, cache exchanges will alter your GraphQL documents to request `__typename` fields 176 178 * for all selections. However, this means that your GraphQL data will now contain `__typename` fields you
+2
packages/core/src/utils/maskTypename.ts
··· 1 1 /** Used to recursively mark `__typename` fields in data as non-enumerable. 2 2 * 3 + * @deprecated Not recommended over modelling inputs manually (See #3299) 4 + * 3 5 * @remarks 4 6 * This utility can be used to recursively copy GraphQl response data and hide 5 7 * all `__typename` fields present on it.