@linear/sdk 69.0.0
Major Changes
-
8f7ef89: Removed support for calling LinearClient::request with GraphQL document nodes
LinearClient::requestallows for raw access to Linear's GraphQL API. Previously this method would be called with either a GraphQL query string, or a document node object. We are removing support for calling this with a document node to remove the SDK's runtime dependency on thegraphql-jslibrary. If you were previously using this functionality, the migration is straightforward. Before callingrequest, stringify your document node using theprintfunction fromgraphql-js:Before:
import { DocumentNode } from "graphql"; const documentNode: DocumentNode = { /* ... */ }; const graphQLClient = linearClient.client; await client.request(documentNode);After:
import { DocumentNode, print } from "graphql"; const documentNode: DocumentNode = { /* ... */ }; const graphQLClient = linearClient.client; await client.request(print(documentNode));