apollo-link* is deprecated in favor or @apollo/client 3.0

Summary

Many apollo-* node modules are deprecated in favor of @apollo/client 3.0. It'd be a good idea to update to a maintained version of these dependencies.

Migration guide https://www.apollographql.com/docs/react/migrating/apollo-client-3-migration/

What’s new in 3.0

  • Apollo Client is now distributed as the @apollo/client package (previous versions are distributed as apollo-client).
  • The @apollo/client package includes both React hooks and GraphQL request handling, which previously required installing separate packages.
  • Apollo Client’s cache (InMemoryCache) is more flexible and performant. It now supports garbage collection, storage of both normalized and non-normalized data, and the customization of cached data with new TypePolicy and FieldPolicy APIs.

Improvements

Stop depending on deprecated node modules.

Risks

This is a API breaking change and will need code changes

Involved components

app/assets/javascripts

Optional: Intended side effects

Optional: Missing test coverage

Assignee Loading
Time tracking Loading