From 0d0b22054ad52e249b62a488b16344904546188a Mon Sep 17 00:00:00 2001 From: hwillson Date: Tue, 28 Jul 2020 11:26:57 -0400 Subject: [PATCH] Clearly identify that `graphql-tag` doesn't have side effects This will help tree-shaking when used with projects that have a dependency on `graphql-tag` (like `@apollo/client`). Reference: https://github.com/apollographql/apollo-client/issues/6687 --- CHANGELOG.md | 5 +++++ package.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71f5f83c..0a6fa2d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change log +### v2.11.0 (2020-07-28) + +* `package.json` `sideEffects` changes to clearly identify that `graphql-tag` doesn't have side effects.
+ [@hwillson](http://github.com/hwillson) in [#313](https://github.com/apollographql/graphql-tag/pull/313) + ### v2.10.4 (2020-07-08) * Bump dev/peer deps to accommodate `graphql` 15.
diff --git a/package.json b/package.json index 4bc576ca..82b340b0 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "graphql-tag", - "version": "2.10.4", + "version": "2.11.0", "description": "A JavaScript template literal tag that parses GraphQL queries", "main": "./lib/graphql-tag.umd.js", "module": "./src/index.js", "jsnext:main": "./src/index.js", + "sideEffects": false, "scripts": { "bundle": "rollup -c && cp src/index.js.flow lib/graphql-tag.umd.js.flow", "test": "mocha test/graphql.js",