Skip to content

chore(tooling): Separate repo / npm package for common utils (@apollo/utils?) #685

@trevor-scheer

Description

@trevor-scheer

Some recent inspiration:
apollographql/apollo-tooling#2274
(now squashed, but still relevant): 6c4261b

...and plenty of useful things in apollo-graphql and apollo-tools from the to-be-sunsetted tooling repo.

I'd love to see a generally useful utils package a la @apollo/utils which is home to useful and generic utility functions. This could be:

  1. all kinds of utility fns like array utils (though these can and probably should be provided by small lodash packages)
  2. useful generic TS types and predicates
  3. anything else we find ourselves copy/pasting across multiple packages that wouldn't otherwise have a reason to depend on each other.
  4. graphql specific utils that are still generic / useful in multiple applications

I know this has been a question in the past (mostly around what do we name it and who it should be useful for). I think a package like this should be considerate of various use cases (node, web) and should really only be home to non-application-specific utilities (though inclusive to graphql-specific utils).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions