Graphql.js removed the isDeprecated field from GraphQLField in version 16.0.0. Therefore, projects that use graphql v.16.0.0 and up will not have the graphiql-explorer-deprecated className applied, since there is a check for the isDeprecated field.
Recommendation: use the deprecationReason field instead:
if (field.isDeprecated) {
className += ' graphiql-explorer-deprecated';
}
should instead be:
if (field.deprecationReason) {
className += ' graphiql-explorer-deprecated';
}