Provide possibility to mask the __typename in client results (#533)
* implement a stripTypename helper in core
* add option to strip __typename in react-urql
* add option to strip __typename in preact-urql
* strip __typename from mutation variables
* add stripTypename to useRequest
* bail out of stripTypename when we pass in a falsy value
* run changeset
* refactor to use .reduce
* remove useRequest variables conversion and test new defineProperty
* add another fallback for non-object data-points
* add stripTypename to mutations and subscriptions
* support dates
* update changeset
* Update .changeset/modern-queens-run.md
Co-Authored-By: Phil Plückthun <phil@kitten.sh>
* Update .changeset/modern-queens-run.md
Co-Authored-By: Phil Plückthun <phil@kitten.sh>
* refactor masking typenames
* update changeset
* properly export maskTypename and update snapshots
* update changeset
* Update .changeset/modern-queens-run.md
Co-Authored-By: Phil Plückthun <phil@kitten.sh>
Co-authored-by: Phil Plückthun <phil@kitten.sh>
authored by