Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-tag

Package Overview
Dependencies
Maintainers
6
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-tag - npm Package Compare versions

Comparing version 2.6.1 to 2.7.0

4

CHANGELOG.md
# Change log
### v2.7.0
* Export DocumentNode in TypeScript via `graphql-js` [felixfbecker](https://github.com/felixfbecker) in [PR #141](https://github.com/apollographql/graphql-tag/pull/141)
### v2.6.0

@@ -4,0 +8,0 @@

4

index.d.ts

@@ -1,3 +0,5 @@

export default function gql(literals: any, ...placeholders: any[]): any;
import { DocumentNode } from 'graphql';
export default function gql(template: TemplateStringsArray, ...substitutions: any[]): DocumentNode;
export function resetCaches(): void;
export function disableFragmentWarnings(): void;
{
"name": "graphql-tag",
"version": "2.6.1",
"version": "2.7.0",
"description": "A JavaScript template literal tag that parses GraphQL queries",

@@ -23,3 +23,5 @@ "main": "./lib/graphql-tag.umd.js",

"homepage": "https://github.com/apollostack/graphql-tag#readme",
"dependencies": {},
"dependencies": {
"@types/graphql": ">=0.8.6 <=0.11.7"
},
"devDependencies": {

@@ -26,0 +28,0 @@ "babel-preset-es2015": "^6.9.0",

@@ -6,3 +6,3 @@ # graphql-tag

GraphQL printing and parsing with bundled dependencies. Includes:
Helpful utilities for parsing GraphQL queries. Includes:

@@ -12,2 +12,4 @@ - `gql` A JavaScript template literal tag that parses GraphQL query strings into the standard GraphQL AST.

`graphql-tag` uses [the reference `graphql` library](https://github.com/graphql/graphql-js) under the hood as a peer dependency, so in addition to installing this module, you'll also have to install `graphql-js`.
### gql

@@ -83,3 +85,3 @@

### Webpack preprocessing
### Webpack preprocessing with `graphql-tag/loader`

@@ -86,0 +88,0 @@ This package also includes a [webpack loader](https://webpack.js.org/concepts/loaders). There are many benefits over this approach, which saves GraphQL ASTs processing time on client-side and enable queries to be separated from script over `.graphql` files.

Sorry, the diff of this file is not supported yet

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