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.7.1 to 2.7.3

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

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

2

package.json
{
"name": "graphql-tag",
"version": "2.7.1",
"version": "2.7.3",
"description": "A JavaScript template literal tag that parses GraphQL queries",

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

@@ -75,2 +75,3 @@ # graphql-tag

#### React Native, Next.js
Additionally, in certain situations, preprocessing queries via the webpack loader is not possible. [babel-plugin-inline-import-graphql-ast](https://www.npmjs.com/package/babel-plugin-inline-import-graphql-ast) will allow one to import graphql files directly into your JavaScript by preprocessing GraphQL queries into ASTs at compile-time.

@@ -81,3 +82,3 @@

import myImportedQuery from './productsQuery.graphql'
class ProductsPage extends React.Component {

@@ -88,2 +89,8 @@ ...

#### Create-React-App
`create-react-app@2.0.0` will [support the ability to preprocess queries](https://github.com/facebook/create-react-app/pull/3909) using `graphql-tag/loader` without the need to eject.
If you're using an older version of `create-react-app`, check out [react-app-rewire-inline-import-graphql-ast](https://www.npmjs.com/package/react-app-rewire-inline-import-graphql-ast) to preprocess queries without needing to eject.
### Webpack preprocessing with `graphql-tag/loader`

@@ -90,0 +97,0 @@

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