Skip to content

Commit

Permalink
Shared packages as peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Mar 23, 2023
1 parent eb6fa54 commit d38098e
Show file tree
Hide file tree
Showing 66 changed files with 442 additions and 377 deletions.
68 changes: 68 additions & 0 deletions .changeset/shy-socks-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
'@graphql-mesh/plugin-operation-field-permissions': patch
'@graphql-mesh/transform-resolvers-composition': patch
'@graphql-mesh/plugin-http-details-extensions': patch
'@graphql-mesh/transform-naming-convention': patch
'@graphql-mesh/plugin-deduplicate-request': patch
'@graphql-mesh/transform-filter-schema': patch
'@graphql-mesh/transform-replace-field': patch
'@graphql-mesh/transform-type-merging': patch
'@graphql-mesh/plugin-response-cache': patch
'@graphql-mesh/transform-encapsulate': patch
'@graphql-mesh/transform-hoist-field': patch
'@graphql-mesh/postgraphile': patch
'@graphql-mesh/transform-federation': patch
'@graphql-mesh/transform-rate-limit': patch
'@graphql-mesh/json-schema': patch
'@graphql-mesh/string-interpolation': patch
'@omnigraph/json-schema': patch
'@graphql-mesh/merger-federation': patch
'@graphql-mesh/plugin-http-cache': patch
'@graphql-mesh/plugin-live-query': patch
'@graphql-mesh/plugin-prometheus': patch
'@graphql-mesh/plugin-rate-limit': patch
'@graphql-mesh/cache-localforage': patch
'@graphql-mesh/mongoose': patch
'@graphql-mesh/merger-stitching': patch
'@graphql-mesh/transform-extend': patch
'@graphql-mesh/transform-prefix': patch
'@graphql-mesh/transform-rename': patch
'@graphql-mesh/graphql': patch
'@graphql-mesh/openapi': patch
'@graphql-mesh/plugin-newrelic': patch
'@graphql-mesh/plugin-snapshot': patch
'@graphql-mesh/transform-cache': patch
'@graphql-mesh/transform-prune': patch
'@graphql-mesh/thrift': patch
'@omnigraph/openapi': patch
'@graphql-mesh/transform-hive': patch
'@graphql-mesh/mysql': patch
'@graphql-mesh/neo4j': patch
'@graphql-mesh/odata': patch
'@graphql-mesh/plugin-statsd': patch
'@graphql-mesh/cross-helpers': patch
'@graphql-mesh/grpc': patch
'@graphql-mesh/raml': patch
'@graphql-mesh/soap': patch
'@graphql-mesh/tuql': patch
'@graphql-mesh/cache-cfw-kv': patch
'@graphql-mesh/jit-executor': patch
'json-machete': patch
'@omnigraph/raml': patch
'@omnigraph/soap': patch
'@graphql-mesh/merger-bare': patch
'@graphql-mesh/plugin-hive': patch
'@graphql-mesh/plugin-mock': patch
'@graphql-mesh/apollo-link': patch
'@graphql-mesh/cache-redis': patch
'@graphql-mesh/cache-file': patch
'@graphql-mesh/runtime': patch
'@graphql-mesh/config': patch
'@graphql-mesh/store': patch
'@graphql-mesh/types': patch
'@graphql-mesh/utils': patch
'@graphql-mesh/http': patch
'@graphql-mesh/urql-exchange': patch
---

Make shared packages peer dependency
7 changes: 3 additions & 4 deletions packages/apollo-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@
"peerDependencies": {
"@apollo/client": "^3.5.9",
"@graphql-mesh/runtime": "^0.46.8",
"graphql": "^15.2.0 || ^16.0.0"
},
"dependencies": {
"@graphql-tools/utils": "9.2.1",
"@graphql-tools/utils": "^9.2.1",
"graphql": "^15.2.0 || ^16.0.0",
"tslib": "^2.4.0"
},
"dependencies": {},
"devDependencies": {
"@apollo/client": "3.7.10"
},
Expand Down
9 changes: 4 additions & 5 deletions packages/cache/cfw-kv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@
},
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"graphql": "*"
},
"dependencies": {
"@graphql-mesh/types": "0.91.11",
"@graphql-mesh/utils": "0.43.19",
"@graphql-mesh/types": "^0.91.11",
"@graphql-mesh/utils": "^0.43.19",
"graphql": "*",
"tslib": "^2.4.0"
},
"dependencies": {},
"devDependencies": {
"@cloudflare/workers-types": "4.20230321.0"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/cache/file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
},
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"graphql": "*"
"@graphql-mesh/cross-helpers": "^0.3.3",
"@graphql-mesh/types": "^0.91.11",
"@graphql-mesh/utils": "^0.43.19",
"graphql": "*",
"tslib": "^2.4.0"
},
"dependencies": {
"@graphql-mesh/cross-helpers": "0.3.3",
"@graphql-mesh/types": "0.91.11",
"@graphql-mesh/utils": "0.43.19",
"dataloader": "2.2.2",
"tslib": "^2.4.0"
"dataloader": "2.2.2"
},
"publishConfig": {
"access": "public",
Expand Down
10 changes: 5 additions & 5 deletions packages/cache/localforage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
},
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"graphql": "*"
"@graphql-mesh/types": "^0.91.11",
"@graphql-mesh/utils": "^0.43.19",
"graphql": "*",
"tslib": "^2.4.0"
},
"dependencies": {
"@graphql-mesh/types": "0.91.11",
"@graphql-mesh/utils": "0.43.19",
"localforage": "1.10.0",
"tslib": "^2.4.0"
"localforage": "1.10.0"
},
"publishConfig": {
"access": "public",
Expand Down
12 changes: 6 additions & 6 deletions packages/cache/redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@
},
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"graphql": "*"
"@graphql-mesh/cross-helpers": "^0.3.3",
"@graphql-mesh/types": "^0.91.11",
"@graphql-mesh/utils": "^0.43.19",
"graphql": "*",
"tslib": "^2.4.0"
},
"dependencies": {
"@graphql-mesh/cross-helpers": "0.3.3",
"@graphql-mesh/string-interpolation": "0.4.2",
"@graphql-mesh/types": "0.91.11",
"@graphql-mesh/utils": "0.43.19",
"ioredis": "5.3.1",
"ioredis-mock": "8.2.7",
"tslib": "^2.4.0"
"ioredis-mock": "8.2.7"
},
"devDependencies": {
"@types/ioredis-mock": "8.2.1"
Expand Down
16 changes: 8 additions & 8 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@
},
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"@graphql-mesh/cross-helpers": "^0.3.3",
"@graphql-mesh/runtime": "^0.46.20",
"graphql": "*"
"@graphql-mesh/store": "^0.9.19",
"@graphql-mesh/types": "^0.91.11",
"@graphql-mesh/utils": "^0.43.19",
"@graphql-tools/utils": "^9.2.1",
"graphql": "*",
"tslib": "^2.4.0"
},
"dependencies": {
"@envelop/core": "3.0.6",
"@graphql-mesh/cache-localforage": "0.7.19",
"@graphql-mesh/cross-helpers": "0.3.3",
"@graphql-mesh/merger-bare": "0.16.21",
"@graphql-mesh/merger-stitching": "0.18.21",
"@graphql-mesh/store": "0.9.19",
"@graphql-mesh/types": "0.91.11",
"@graphql-mesh/utils": "0.43.19",
"@graphql-tools/code-file-loader": "7.3.21",
"@graphql-tools/graphql-file-loader": "7.5.16",
"@graphql-tools/load": "7.8.13",
"@graphql-tools/utils": "9.2.1",
"@whatwg-node/fetch": "^0.8.3",
"camel-case": "4.1.2",
"param-case": "3.0.4",
"pascal-case": "3.1.2",
"tslib": "^2.4.0"
"pascal-case": "3.1.2"
},
"publishConfig": {
"access": "public",
Expand Down
8 changes: 5 additions & 3 deletions packages/container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"scripts": {
"start": "graphql-mesh dev"
},
"peerDependencies": {
"graphql": "^16.6.0",
"tslib": "^2.5.0"
},
"dependencies": {
"@graphql-mesh/cli": "0.82.29",
"@graphql-mesh/config": "10.1.12",
Expand All @@ -29,9 +33,7 @@
"@graphql-mesh/transform-filter-schema": "0.15.22",
"@graphql-mesh/transform-prefix": "0.12.21",
"@graphql-mesh/transform-rename": "0.14.21",
"@graphql-mesh/transform-resolvers-composition": "0.13.19",
"graphql": "16.6.0",
"tslib": "2.5.0"
"@graphql-mesh/transform-resolvers-composition": "0.13.19"
},
"bob": false
}
2 changes: 1 addition & 1 deletion packages/cross-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"types": "index.d.ts",
"typings": "./index.d.ts",
"peerDependencies": {
"@graphql-tools/utils": "^9.2.1",
"graphql": "*"
},
"dependencies": {
"@graphql-tools/utils": "9.2.1",
"path-browserify": "1.0.1",
"react-native-fs": "2.20.0",
"react-native-path": "0.0.5"
Expand Down
16 changes: 8 additions & 8 deletions packages/handlers/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@
},
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"graphql": "*"
"@graphql-mesh/cross-helpers": "^0.3.3",
"@graphql-mesh/store": "^0.9.19",
"@graphql-mesh/types": "^0.91.11",
"@graphql-mesh/utils": "^0.43.19",
"@graphql-tools/utils": "^9.2.1",
"graphql": "*",
"tslib": "^2.4.0"
},
"dependencies": {
"@graphql-mesh/cross-helpers": "0.3.3",
"@graphql-mesh/store": "0.9.19",
"@graphql-mesh/string-interpolation": "0.4.2",
"@graphql-mesh/types": "0.91.11",
"@graphql-mesh/utils": "0.43.19",
"@graphql-tools/delegate": "9.0.28",
"@graphql-tools/url-loader": "7.17.14",
"@graphql-tools/utils": "9.2.1",
"@graphql-tools/wrap": "9.3.8",
"lodash.get": "4.4.2",
"tslib": "^2.4.0"
"lodash.get": "4.4.2"
},
"publishConfig": {
"access": "public",
Expand Down
14 changes: 7 additions & 7 deletions packages/handlers/grpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@
},
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"graphql": "*"
"@graphql-mesh/cross-helpers": "^0.3.3",
"@graphql-mesh/store": "^0.9.19",
"@graphql-mesh/types": "^0.91.11",
"@graphql-mesh/utils": "^0.43.19",
"graphql": "*",
"tslib": "^2.4.0"
},
"dependencies": {
"@ardatan/grpc-reflection-js": "0.0.2",
"@graphql-mesh/cross-helpers": "0.3.3",
"@graphql-mesh/store": "0.9.19",
"@graphql-mesh/string-interpolation": "0.4.2",
"@graphql-mesh/types": "0.91.11",
"@graphql-mesh/utils": "0.43.19",
"@grpc/grpc-js": "^1.1.7",
"@grpc/proto-loader": "0.7.6",
"globby": "11.1.0",
Expand All @@ -46,8 +47,7 @@
"lodash.get": "4.4.2",
"lodash.has": "4.5.2",
"long": "4.0.0",
"protobufjs": "7.2.2",
"tslib": "^2.4.0"
"protobufjs": "7.2.2"
},
"devDependencies": {
"@types/lodash.has": "4.5.7"
Expand Down
16 changes: 8 additions & 8 deletions packages/handlers/json-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@
},
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"graphql": "*"
"@graphql-mesh/cross-helpers": "^0.3.3",
"@graphql-mesh/store": "^0.9.19",
"@graphql-mesh/types": "^0.91.11",
"@graphql-mesh/utils": "^0.43.19",
"@graphql-tools/utils": "^9.2.1",
"graphql": "*",
"tslib": "^2.4.0"
},
"dependencies": {
"@graphql-mesh/cross-helpers": "0.3.3",
"@graphql-mesh/store": "0.9.19",
"@graphql-mesh/string-interpolation": "0.4.2",
"@graphql-mesh/types": "0.91.11",
"@graphql-mesh/utils": "0.43.19",
"@graphql-tools/utils": "9.2.1",
"@json-schema-tools/meta-schema": "1.7.0",
"@omnigraph/json-schema": "0.38.23",
"graphql-compose": "9.0.10",
"json-machete": "0.18.19",
"tslib": "^2.4.0"
"json-machete": "0.18.19"
},
"publishConfig": {
"access": "public",
Expand Down
10 changes: 5 additions & 5 deletions packages/handlers/mongoose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
},
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"@graphql-mesh/types": "^0.91.11",
"@graphql-mesh/utils": "^0.43.19",
"graphql": "*",
"mongoose": "*"
"mongoose": "*",
"tslib": "^2.4.0"
},
"dependencies": {
"@graphql-mesh/types": "0.91.11",
"@graphql-mesh/utils": "0.43.19",
"graphql-compose": "9.0.10",
"graphql-compose-connection": "8.2.1",
"graphql-compose-mongoose": "9.8.0",
"graphql-compose-pagination": "8.3.0",
"tslib": "^2.4.0"
"graphql-compose-pagination": "8.3.0"
},
"devDependencies": {
"mongoose": "7.0.2"
Expand Down
16 changes: 8 additions & 8 deletions packages/handlers/mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@
},
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"graphql": "*"
"@graphql-mesh/cross-helpers": "^0.3.3",
"@graphql-mesh/store": "^0.9.19",
"@graphql-mesh/types": "^0.91.11",
"@graphql-mesh/utils": "^0.43.19",
"@graphql-tools/utils": "^9.2.1",
"graphql": "*",
"tslib": "^2.4.0"
},
"dependencies": {
"@graphql-mesh/cross-helpers": "0.3.3",
"@graphql-mesh/store": "0.9.19",
"@graphql-mesh/string-interpolation": "0.4.2",
"@graphql-mesh/types": "0.91.11",
"@graphql-mesh/utils": "0.43.19",
"@graphql-tools/delegate": "9.0.28",
"@graphql-tools/utils": "9.2.1",
"graphql-compose": "9.0.10",
"graphql-fields": "2.0.3",
"graphql-scalars": "^1.20.4",
"mysql": "2.18.1",
"mysql-utilities": "1.1.4",
"tslib": "^2.4.0"
"mysql-utilities": "1.1.4"
},
"devDependencies": {
"@types/graphql-fields": "1.3.5",
Expand Down
Loading

0 comments on commit d38098e

Please sign in to comment.