New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apollo-deprecated-highlight-client

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-deprecated-highlight-client

This is the client of apollo-deprecated-highlight

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

apollo deprecated highlight client

circleci codecov Known Vulnerabilities

This is the client of apollo-deprecated-highlight and apollo3-deprecated-highlight. The apollo-deprecated-highlight will generate the extensions.deprecations fields of the response. This client reads the extensions of the response and generate console warn to let the engineer can see the warning message in the console.

How to use it

Make sure you've installed apollo-deprecated-highlight and the response has extensions.deprecations attribute.

Then add ApolloDeprecatedHighlightClient as a middleware of ApolloLink

const link = new ApolloLink((operation, forward) => {
        ...
        return forward(operation).map(ApolloDeprecatedHighlightClient(operation));
    });

The console will print out the warning message if there are deprecations in the response:

🚨 <deprecated field> in <operation> is deprecated. Because <deprecated reason>

Example

Here is the example project

Here are the console outputs example

Keywords

FAQs

Package last updated on 05 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc