Use reference-equality when filtering rules in buildSchemaFromSDL#1551
Conversation
Similar in spirit to apollographql/apollo-server#3338. The technique previously used for removing rules from the standard `specifiedRules` was leveraging a check on `Function.prototype.name`, rather than doing direct object equality. While that does generally work, thanks to the more recent standardization of `Function.prototype.name`, it still breaks down under some of the more aggressive minification techniques since a function's name is not guaranteed to remain the same. Fixes: apollographql/apollo-server#3335
|
|
buildSchemaFromSDLbuildSchemaFromSDL
|
This change broke the ability to use I recognize that the peer dep from |
|
@glasser thank you for pointing this out. Is this an issue that So I understand correctly, is it accurate to say that |
|
I believe so. |
This commit updates the apollo-graphql package to the latest version. This includes a fix for a bug that currently breaks minification. For reference, see: apollographql/apollo-tooling#1551 Fixes #3335
This commit updates the apollo-graphql package to the latest version. This includes a fix for a bug that currently breaks minification. For reference, see: apollographql/apollo-tooling#1551 Fixes #3335
…3387) This commit updates the apollo-graphql package to the latest version. This includes a fix for a bug that currently breaks minification. For reference, see: apollographql/apollo-tooling#1551 Fixes apollographql/apollo-server#3335 Apollo-Orig-Commit-AS: apollographql/apollo-server@6a4b681
Similar in spirit to apollographql/apollo-server#3338.
The technique previously used for removing rules from the standard
specifiedRuleswas leveraging a check onFunction.prototype.name, rather than doing direct object equality. While that does generally work, thanks to the more recent standardization ofFunction.prototype.name, it still breaks down under some of the more aggressive minification techniques since a function's name is not guaranteed to remain the same.Fixes: apollographql/apollo-server#3335