From 975c83a2fd83631533aef7a746f164400df26a1e Mon Sep 17 00:00:00 2001 From: News Mob Date: Tue, 29 Oct 2019 15:49:57 +0100 Subject: [PATCH] Move graphql to peerDependencies --- CHANGELOG.md | 4 ++++ package.json | 9 +++++---- yarn.lock | 8 ++++---- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7443f7a..5b463a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.0 - 2019-10-29 + +Made "graphql" a peer dependency + ### 1.1.0 - 2019-08-28 Transpiling code to ES5 for easy use in browsers diff --git a/package.json b/package.json index d344dc2..061907a 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "graphql-defragmentizer", - "version": "1.1.0", + "version": "2.0.0", "description": "Library for building GraphQL queries from fragments. Goes nicely with React.", "main": "./distribution/index.js", "scripts": { "test": "jest test.js", "build": "babel index.js --presets babel-preset-env --out-dir distribution", - "prepare": "npm run build" + "prepare": "yarn build" }, "keywords": [ "graphql", @@ -19,12 +19,13 @@ }, "author": "Sveriges Television AB (https://www.svt.se/opensource/)", "license": "MIT", - "dependencies": { - "graphql": "^14.4.2" + "peerDependencies": { + "graphql": "14.x" }, "devDependencies": { "babel-cli": "^6.26.0", "babel-preset-env": "^1.7.0", + "graphql": "14.x", "jest": "^24.9.0" } } diff --git a/yarn.lock b/yarn.lock index eab76d3..f25809c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1955,10 +1955,10 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.4 resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02" integrity sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q== -graphql@^14.4.2: - version "14.5.3" - resolved "https://registry.yarnpkg.com/graphql/-/graphql-14.5.3.tgz#e025851cc413e153220f4edbbb25d49f55104fa0" - integrity sha512-W8A8nt9BsMg0ZK2qA3DJIVU6muWhxZRYLTmc+5XGwzWzVdUdPVlAAg5hTBjiTISEnzsKL/onasu6vl3kgGTbYg== +graphql@14.x: + version "14.5.8" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-14.5.8.tgz#504f3d3114cb9a0a3f359bbbcf38d9e5bf6a6b3c" + integrity sha512-MMwmi0zlVLQKLdGiMfWkgQD7dY/TUKt4L+zgJ/aR0Howebod3aNgP5JkgvAULiR2HPVZaP2VEElqtdidHweLkg== dependencies: iterall "^1.2.2"