From 518c42c5a2bee00e224df95c2beb758a28d1323c Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Tue, 22 Oct 2024 12:40:49 +0300 Subject: [PATCH] Performance Improvements (Small fixes) (#7769) * feat(serve): JIT chore(dependencies): updated changesets for modified dependencies JIT environment variable Do not release bin until release is done chore(dependencies): updated changesets for modified dependencies JIT configuration Include JIT to the bundle No need to bundle explicitly JIT env var Bump tools Fix PR workflow chore(dependencies): updated changesets for modified dependencies Bump tools chore(dependencies): updated changesets for modified dependencies Bump Tools chore(dependencies): updated changesets for modified dependencies Relax CPU New Plugin * chore(dependencies): updated changesets for modified dependencies * Better naming for loadtests * Back to most cpus * Bring back * Bump graphql-jit * chore(dependencies): updated changesets for modified dependencies * Yarn.lock * Patch for testing --------- Co-authored-by: github-actions[bot] --- ...sh_fusion-composition-7769-dependencies.md | 5 + ...l-mesh_fusion-runtime-7769-dependencies.md | 9 ++ ...@graphql-mesh_graphql-7769-dependencies.md | 7 + ...esh_merger-federation-7769-dependencies.md | 5 + ...mesh_merger-stitching-7769-dependencies.md | 6 + ...hql-mesh_postgraphile-7769-dependencies.md | 5 + ...@graphql-mesh_runtime-7769-dependencies.md | 8 + ...raphql-mesh_serve-cli-7769-dependencies.md | 5 + ...ql-mesh_serve-runtime-7769-dependencies.md | 9 ++ ...aphql-mesh_supergraph-7769-dependencies.md | 6 + ...transform-encapsulate-7769-dependencies.md | 6 + ..._transform-federation-7769-dependencies.md | 6 + ...ansform-filter-schema-7769-dependencies.md | 6 + ...l-mesh_transform-hive-7769-dependencies.md | 5 + ...transform-hoist-field-7769-dependencies.md | 6 + ...orm-naming-convention-7769-dependencies.md | 6 + ...mesh_transform-prefix-7769-dependencies.md | 6 + ...mesh_transform-rename-7769-dependencies.md | 6 + ...ransform-type-merging-7769-dependencies.md | 6 + ...mesh_transport-common-7769-dependencies.md | 5 + ...-mesh_transport-mysql-7769-dependencies.md | 5 + ...-mesh_transport-neo4j-7769-dependencies.md | 5 + .../@graphql-mesh_types-7769-dependencies.md | 6 + .../@graphql-mesh_utils-7769-dependencies.md | 5 + ...omnigraph_json-schema-7769-dependencies.md | 5 + .../@omnigraph_mysql-7769-dependencies.md | 5 + .../@omnigraph_neo4j-7769-dependencies.md | 5 + .../@omnigraph_odata-7769-dependencies.md | 5 + .../@omnigraph_openapi-7769-dependencies.md | 5 + .../@omnigraph_raml-7769-dependencies.md | 5 + .../@omnigraph_sqlite-7769-dependencies.md | 5 + .changeset/sour-kids-sort.md | 7 + .github/workflows/tests.yml | 2 +- packages/fusion/composition/package.json | 2 +- packages/fusion/runtime/package.json | 10 +- packages/hive-gateway/rollup.config.js | 11 +- packages/legacy/handlers/graphql/package.json | 6 +- .../legacy/handlers/postgraphile/package.json | 2 +- .../legacy/handlers/supergraph/package.json | 4 +- .../legacy/mergers/federation/package.json | 2 +- .../legacy/mergers/stitching/package.json | 4 +- packages/legacy/runtime/package.json | 8 +- .../transforms/encapsulate/package.json | 4 +- .../legacy/transforms/federation/package.json | 4 +- .../transforms/filter-schema/package.json | 4 +- packages/legacy/transforms/hive/package.json | 2 +- .../transforms/hoist-field/package.json | 4 +- .../transforms/naming-convention/package.json | 4 +- .../legacy/transforms/prefix/package.json | 4 +- .../legacy/transforms/rename/package.json | 4 +- .../transforms/type-merging/package.json | 4 +- packages/legacy/types/package.json | 4 +- packages/legacy/utils/package.json | 2 +- packages/loaders/json-schema/package.json | 2 +- packages/loaders/mysql/package.json | 2 +- packages/loaders/neo4j/package.json | 2 +- packages/loaders/odata/package.json | 2 +- packages/loaders/openapi/package.json | 2 +- packages/loaders/raml/package.json | 2 +- packages/loaders/sqlite/package.json | 2 +- packages/plugins/jit/package.json | 52 ++++++ packages/plugins/jit/src/index.ts | 44 +++++ packages/plugins/jit/tests/jit.spec.ts | 72 +++++++++ packages/serve-cli/package.json | 1 + packages/serve-cli/rollup.config.js | 11 +- packages/serve-cli/src/cli.ts | 27 +++- packages/serve-cli/src/commands/proxy.ts | 14 +- packages/serve-cli/src/commands/subgraph.ts | 14 +- packages/serve-cli/src/commands/supergraph.ts | 14 +- packages/serve-cli/src/config.ts | 6 + packages/serve-runtime/package.json | 10 +- packages/serve-runtime/src/landing-page.html | 2 +- packages/transports/common/package.json | 2 +- packages/transports/mysql/package.json | 2 +- packages/transports/neo4j/package.json | 2 +- patches/graphql-jit+0.8.7.patch | 24 +++ yarn.lock | 150 +++++++++--------- 77 files changed, 579 insertions(+), 159 deletions(-) create mode 100644 .changeset/@graphql-mesh_fusion-composition-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_fusion-runtime-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_graphql-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_merger-federation-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_merger-stitching-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_postgraphile-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_runtime-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_serve-cli-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_serve-runtime-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_supergraph-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transform-encapsulate-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transform-federation-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transform-filter-schema-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transform-hive-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transform-hoist-field-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transform-naming-convention-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transform-prefix-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transform-rename-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transform-type-merging-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transport-common-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transport-mysql-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_transport-neo4j-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_types-7769-dependencies.md create mode 100644 .changeset/@graphql-mesh_utils-7769-dependencies.md create mode 100644 .changeset/@omnigraph_json-schema-7769-dependencies.md create mode 100644 .changeset/@omnigraph_mysql-7769-dependencies.md create mode 100644 .changeset/@omnigraph_neo4j-7769-dependencies.md create mode 100644 .changeset/@omnigraph_odata-7769-dependencies.md create mode 100644 .changeset/@omnigraph_openapi-7769-dependencies.md create mode 100644 .changeset/@omnigraph_raml-7769-dependencies.md create mode 100644 .changeset/@omnigraph_sqlite-7769-dependencies.md create mode 100644 .changeset/sour-kids-sort.md create mode 100644 packages/plugins/jit/package.json create mode 100644 packages/plugins/jit/src/index.ts create mode 100644 packages/plugins/jit/tests/jit.spec.ts create mode 100644 patches/graphql-jit+0.8.7.patch diff --git a/.changeset/@graphql-mesh_fusion-composition-7769-dependencies.md b/.changeset/@graphql-mesh_fusion-composition-7769-dependencies.md new file mode 100644 index 0000000000000..b4c00ac6d8f28 --- /dev/null +++ b/.changeset/@graphql-mesh_fusion-composition-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-mesh/fusion-composition": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/stitching-directives@^3.1.7` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitching-directives/v/3.1.7) (from `^3.1.4`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_fusion-runtime-7769-dependencies.md b/.changeset/@graphql-mesh_fusion-runtime-7769-dependencies.md new file mode 100644 index 0000000000000..d6699d21343b4 --- /dev/null +++ b/.changeset/@graphql-mesh_fusion-runtime-7769-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/fusion-runtime": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/federation@^2.2.16` ↗︎](https://www.npmjs.com/package/@graphql-tools/federation/v/2.2.16) (from `^2.2.12`, in `dependencies`) + - Updated dependency [`@graphql-tools/stitch@^9.2.15` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitch/v/9.2.15) (from `^9.2.12`, in `dependencies`) + - Updated dependency [`@graphql-tools/stitching-directives@^3.1.7` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitching-directives/v/3.1.7) (from `^3.1.4`, in `dependencies`) + - Updated dependency [`@graphql-tools/wrap@^10.0.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.10) (from `^10.0.7`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_graphql-7769-dependencies.md b/.changeset/@graphql-mesh_graphql-7769-dependencies.md new file mode 100644 index 0000000000000..dcc6d257d96a2 --- /dev/null +++ b/.changeset/@graphql-mesh_graphql-7769-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/graphql": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/federation@^2.2.16` ↗︎](https://www.npmjs.com/package/@graphql-tools/federation/v/2.2.16) (from `^2.2.12`, in `dependencies`) + - Updated dependency [`@graphql-tools/url-loader@^8.0.7` ↗︎](https://www.npmjs.com/package/@graphql-tools/url-loader/v/8.0.7) (from `^8.0.4`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_merger-federation-7769-dependencies.md b/.changeset/@graphql-mesh_merger-federation-7769-dependencies.md new file mode 100644 index 0000000000000..3b21a600a0752 --- /dev/null +++ b/.changeset/@graphql-mesh_merger-federation-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-mesh/merger-federation": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/wrap@^10.0.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.10) (from `^10.0.7`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_merger-stitching-7769-dependencies.md b/.changeset/@graphql-mesh_merger-stitching-7769-dependencies.md new file mode 100644 index 0000000000000..7fa5ffe560d5d --- /dev/null +++ b/.changeset/@graphql-mesh_merger-stitching-7769-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/merger-stitching": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/stitch@^9.2.15` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitch/v/9.2.15) (from `^9.2.12`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_postgraphile-7769-dependencies.md b/.changeset/@graphql-mesh_postgraphile-7769-dependencies.md new file mode 100644 index 0000000000000..22c28dc6ca64f --- /dev/null +++ b/.changeset/@graphql-mesh_postgraphile-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-mesh/postgraphile": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_runtime-7769-dependencies.md b/.changeset/@graphql-mesh_runtime-7769-dependencies.md new file mode 100644 index 0000000000000..23d7a52e46178 --- /dev/null +++ b/.changeset/@graphql-mesh_runtime-7769-dependencies.md @@ -0,0 +1,8 @@ +--- +"@graphql-mesh/runtime": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/batch-delegate@^9.0.8` ↗︎](https://www.npmjs.com/package/@graphql-tools/batch-delegate/v/9.0.8) (from `^9.0.5`, in `dependencies`) + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/wrap@^10.0.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.10) (from `^10.0.7`, in `dependencies`) + - Updated dependency [`graphql-jit@^0.8.7` ↗︎](https://www.npmjs.com/package/graphql-jit/v/0.8.7) (from `0.8.7`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_serve-cli-7769-dependencies.md b/.changeset/@graphql-mesh_serve-cli-7769-dependencies.md new file mode 100644 index 0000000000000..ea9fbc49fd434 --- /dev/null +++ b/.changeset/@graphql-mesh_serve-cli-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-mesh/serve-cli": patch +--- +dependencies updates: + - Added dependency [`@graphql-mesh/plugin-jit@^0.0.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-jit/v/0.0.0) (to `dependencies`) diff --git a/.changeset/@graphql-mesh_serve-runtime-7769-dependencies.md b/.changeset/@graphql-mesh_serve-runtime-7769-dependencies.md new file mode 100644 index 0000000000000..1698471f884f3 --- /dev/null +++ b/.changeset/@graphql-mesh_serve-runtime-7769-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/serve-runtime": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/batch-delegate@^9.0.8` ↗︎](https://www.npmjs.com/package/@graphql-tools/batch-delegate/v/9.0.8) (from `^9.0.5`, in `dependencies`) + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/federation@^2.2.16` ↗︎](https://www.npmjs.com/package/@graphql-tools/federation/v/2.2.16) (from `^2.2.12`, in `dependencies`) + - Updated dependency [`@graphql-tools/stitch@^9.2.15` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitch/v/9.2.15) (from `^9.2.12`, in `dependencies`) + - Updated dependency [`@graphql-tools/wrap@^10.0.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.10) (from `^10.0.7`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_supergraph-7769-dependencies.md b/.changeset/@graphql-mesh_supergraph-7769-dependencies.md new file mode 100644 index 0000000000000..3b58cae9c86ff --- /dev/null +++ b/.changeset/@graphql-mesh_supergraph-7769-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/supergraph": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/federation@^2.2.16` ↗︎](https://www.npmjs.com/package/@graphql-tools/federation/v/2.2.16) (from `^2.2.12`, in `dependencies`) + - Updated dependency [`@graphql-tools/url-loader@^8.0.7` ↗︎](https://www.npmjs.com/package/@graphql-tools/url-loader/v/8.0.7) (from `^8.0.4`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-encapsulate-7769-dependencies.md b/.changeset/@graphql-mesh_transform-encapsulate-7769-dependencies.md new file mode 100644 index 0000000000000..4060e93c7b261 --- /dev/null +++ b/.changeset/@graphql-mesh_transform-encapsulate-7769-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/transform-encapsulate": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/wrap@^10.0.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.10) (from `^10.0.7`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-federation-7769-dependencies.md b/.changeset/@graphql-mesh_transform-federation-7769-dependencies.md new file mode 100644 index 0000000000000..483b1232a79f2 --- /dev/null +++ b/.changeset/@graphql-mesh_transform-federation-7769-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/transform-federation": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/stitching-directives@^3.1.7` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitching-directives/v/3.1.7) (from `^3.1.4`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-filter-schema-7769-dependencies.md b/.changeset/@graphql-mesh_transform-filter-schema-7769-dependencies.md new file mode 100644 index 0000000000000..a122d557000e5 --- /dev/null +++ b/.changeset/@graphql-mesh_transform-filter-schema-7769-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/transform-filter-schema": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/wrap@^10.0.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.10) (from `^10.0.7`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-hive-7769-dependencies.md b/.changeset/@graphql-mesh_transform-hive-7769-dependencies.md new file mode 100644 index 0000000000000..5603a4ef74321 --- /dev/null +++ b/.changeset/@graphql-mesh_transform-hive-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-mesh/transform-hive": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-hoist-field-7769-dependencies.md b/.changeset/@graphql-mesh_transform-hoist-field-7769-dependencies.md new file mode 100644 index 0000000000000..328f78f28dd5a --- /dev/null +++ b/.changeset/@graphql-mesh_transform-hoist-field-7769-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/transform-hoist-field": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/wrap@^10.0.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.10) (from `^10.0.7`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-naming-convention-7769-dependencies.md b/.changeset/@graphql-mesh_transform-naming-convention-7769-dependencies.md new file mode 100644 index 0000000000000..e807644149735 --- /dev/null +++ b/.changeset/@graphql-mesh_transform-naming-convention-7769-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/transform-naming-convention": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/wrap@^10.0.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.10) (from `^10.0.7`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-prefix-7769-dependencies.md b/.changeset/@graphql-mesh_transform-prefix-7769-dependencies.md new file mode 100644 index 0000000000000..e2efca00e59e7 --- /dev/null +++ b/.changeset/@graphql-mesh_transform-prefix-7769-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/transform-prefix": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/wrap@^10.0.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.10) (from `^10.0.7`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-rename-7769-dependencies.md b/.changeset/@graphql-mesh_transform-rename-7769-dependencies.md new file mode 100644 index 0000000000000..d424d0b9e8bd3 --- /dev/null +++ b/.changeset/@graphql-mesh_transform-rename-7769-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/transform-rename": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/wrap@^10.0.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.10) (from `^10.0.7`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-type-merging-7769-dependencies.md b/.changeset/@graphql-mesh_transform-type-merging-7769-dependencies.md new file mode 100644 index 0000000000000..4e7e16fddb17b --- /dev/null +++ b/.changeset/@graphql-mesh_transform-type-merging-7769-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/transform-type-merging": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) + - Updated dependency [`@graphql-tools/stitching-directives@^3.1.7` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitching-directives/v/3.1.7) (from `^3.1.4`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transport-common-7769-dependencies.md b/.changeset/@graphql-mesh_transport-common-7769-dependencies.md new file mode 100644 index 0000000000000..7fe3551eab08e --- /dev/null +++ b/.changeset/@graphql-mesh_transport-common-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-mesh/transport-common": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transport-mysql-7769-dependencies.md b/.changeset/@graphql-mesh_transport-mysql-7769-dependencies.md new file mode 100644 index 0000000000000..c2489d197b155 --- /dev/null +++ b/.changeset/@graphql-mesh_transport-mysql-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-mesh/transport-mysql": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transport-neo4j-7769-dependencies.md b/.changeset/@graphql-mesh_transport-neo4j-7769-dependencies.md new file mode 100644 index 0000000000000..576b4d5283175 --- /dev/null +++ b/.changeset/@graphql-mesh_transport-neo4j-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-mesh/transport-neo4j": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_types-7769-dependencies.md b/.changeset/@graphql-mesh_types-7769-dependencies.md new file mode 100644 index 0000000000000..c8377952a0494 --- /dev/null +++ b/.changeset/@graphql-mesh_types-7769-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/types": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/batch-delegate@^9.0.8` ↗︎](https://www.npmjs.com/package/@graphql-tools/batch-delegate/v/9.0.8) (from `^9.0.5`, in `dependencies`) + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_utils-7769-dependencies.md b/.changeset/@graphql-mesh_utils-7769-dependencies.md new file mode 100644 index 0000000000000..89baf7e83927a --- /dev/null +++ b/.changeset/@graphql-mesh_utils-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-mesh/utils": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@omnigraph_json-schema-7769-dependencies.md b/.changeset/@omnigraph_json-schema-7769-dependencies.md new file mode 100644 index 0000000000000..a143e2fc967f6 --- /dev/null +++ b/.changeset/@omnigraph_json-schema-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@omnigraph/json-schema": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@omnigraph_mysql-7769-dependencies.md b/.changeset/@omnigraph_mysql-7769-dependencies.md new file mode 100644 index 0000000000000..f3c0af56ed5dd --- /dev/null +++ b/.changeset/@omnigraph_mysql-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@omnigraph/mysql": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@omnigraph_neo4j-7769-dependencies.md b/.changeset/@omnigraph_neo4j-7769-dependencies.md new file mode 100644 index 0000000000000..75925661d07ec --- /dev/null +++ b/.changeset/@omnigraph_neo4j-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@omnigraph/neo4j": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@omnigraph_odata-7769-dependencies.md b/.changeset/@omnigraph_odata-7769-dependencies.md new file mode 100644 index 0000000000000..fed8f2d8bad0b --- /dev/null +++ b/.changeset/@omnigraph_odata-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@omnigraph/odata": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@omnigraph_openapi-7769-dependencies.md b/.changeset/@omnigraph_openapi-7769-dependencies.md new file mode 100644 index 0000000000000..b64153f49c79c --- /dev/null +++ b/.changeset/@omnigraph_openapi-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@omnigraph/openapi": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@omnigraph_raml-7769-dependencies.md b/.changeset/@omnigraph_raml-7769-dependencies.md new file mode 100644 index 0000000000000..9ffefe4a433e8 --- /dev/null +++ b/.changeset/@omnigraph_raml-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@omnigraph/raml": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/@omnigraph_sqlite-7769-dependencies.md b/.changeset/@omnigraph_sqlite-7769-dependencies.md new file mode 100644 index 0000000000000..f2b2223512cb1 --- /dev/null +++ b/.changeset/@omnigraph_sqlite-7769-dependencies.md @@ -0,0 +1,5 @@ +--- +"@omnigraph/sqlite": patch +--- +dependencies updates: + - Updated dependency [`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26) (from `^10.0.23`, in `dependencies`) diff --git a/.changeset/sour-kids-sort.md b/.changeset/sour-kids-sort.md new file mode 100644 index 0000000000000..4304f6780e128 --- /dev/null +++ b/.changeset/sour-kids-sort.md @@ -0,0 +1,7 @@ +--- +'@graphql-mesh/serve-cli': minor +'@graphql-mesh/plugin-jit': patch +--- + +Add `--jit` CLI option and `jit` configuration option to enable JIT compilation for better +performance diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bf9b50a64492d..ad2244768388e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -456,7 +456,7 @@ jobs: loadtest-e2e: needs: [e2e] - name: node ${{matrix.node-version}} + name: loadtest / e2e / node ${{matrix.node-version}} runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/packages/fusion/composition/package.json b/packages/fusion/composition/package.json index 47ff2a7afed68..6eb83746670e2 100644 --- a/packages/fusion/composition/package.json +++ b/packages/fusion/composition/package.json @@ -52,7 +52,7 @@ "dependencies": { "@graphql-mesh/utils": "^0.102.7", "@graphql-tools/schema": "^10.0.5", - "@graphql-tools/stitching-directives": "^3.1.4", + "@graphql-tools/stitching-directives": "^3.1.7", "@graphql-tools/utils": "^10.5.5", "@theguild/federation-composition": "^0.14.0", "change-case": "^4.1.2", diff --git a/packages/fusion/runtime/package.json b/packages/fusion/runtime/package.json index 2bfd70cfcfcd0..69b5294d8127b 100644 --- a/packages/fusion/runtime/package.json +++ b/packages/fusion/runtime/package.json @@ -56,13 +56,13 @@ "@graphql-mesh/transport-common": "^0.7.8", "@graphql-mesh/types": "^0.102.7", "@graphql-mesh/utils": "^0.102.7", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@graphql-tools/executor": "^1.3.2", - "@graphql-tools/federation": "^2.2.12", - "@graphql-tools/stitch": "^9.2.12", - "@graphql-tools/stitching-directives": "^3.1.4", + "@graphql-tools/federation": "^2.2.16", + "@graphql-tools/stitch": "^9.2.15", + "@graphql-tools/stitching-directives": "^3.1.7", "@graphql-tools/utils": "^10.5.5", - "@graphql-tools/wrap": "^10.0.7", + "@graphql-tools/wrap": "^10.0.10", "@whatwg-node/disposablestack": "^0.0.5", "change-case": "^4.1.2", "graphql-yoga": "^5.7.0", diff --git a/packages/hive-gateway/rollup.config.js b/packages/hive-gateway/rollup.config.js index 9b87a9bbc96d2..2cbab7f843fbb 100644 --- a/packages/hive-gateway/rollup.config.js +++ b/packages/hive-gateway/rollup.config.js @@ -45,14 +45,12 @@ const deps = { 'node_modules/@graphql-mesh/transport-common/index': '../transports/common/src/index.ts', 'node_modules/@graphql-mesh/transport-http/index': '../transports/http/src/index.ts', // extras for docker only - 'node_modules/@graphql-mesh/plugin-prometheus/index': '../plugins/prometheus/src/index.ts', + 'node_modules/@graphql-mesh/transport-ws/index': '../transports/ws/src/index.ts', + 'node_modules/@graphql-mesh/transport-http-callback/index': + '../transports/http-callback/src/index.ts', 'node_modules/@graphql-mesh/plugin-http-cache/index': '../plugins/http-cache/src/index.ts', - 'node_modules/@graphql-mesh/plugin-jwt-auth/index': '../plugins/jwt-auth/src/index.ts', 'node_modules/@graphql-mesh/hmac-upstream-signature/index': '../plugins/hmac-upstream-signature/src/index.ts', - 'node_modules/@graphql-mesh/plugin-opentelemetry/index': '../plugins/opentelemetry/src/index.ts', - 'node_modules/@envelop/generic-auth/index': - '../../node_modules/@envelop/generic-auth/esm/index.js', }; if (process.env.E2E_SERVE_RUNNER === 'docker') { @@ -62,9 +60,6 @@ if (process.env.E2E_SERVE_RUNNER === 'docker') { deps['node_modules/@e2e/opts/index'] = '../../e2e/utils/opts.ts'; deps['node_modules/@graphql-mesh/utils/index'] = '../legacy/utils/src/index.ts'; deps['node_modules/@omnigraph/openapi/index'] = '../loaders/openapi/src/index.ts'; - deps['node_modules/@graphql-mesh/transport-ws/index'] = '../transports/ws/src/index.ts'; - deps['node_modules/@graphql-mesh/transport-http-callback/index'] = - '../transports/http-callback/src/index.ts'; deps['node_modules/@graphql-mesh/transport-rest/index'] = '../transports/rest/src/index.ts'; deps['node_modules/@graphql-mesh/transport-soap/index'] = '../transports/soap/src/index.ts'; deps['node_modules/@graphql-mesh/transport-mysql/index'] = '../transports/mysql/src/index.ts'; diff --git a/packages/legacy/handlers/graphql/package.json b/packages/legacy/handlers/graphql/package.json index 24528a11659d6..e932c4dc11433 100644 --- a/packages/legacy/handlers/graphql/package.json +++ b/packages/legacy/handlers/graphql/package.json @@ -42,9 +42,9 @@ }, "dependencies": { "@graphql-mesh/string-interpolation": "^0.5.6", - "@graphql-tools/delegate": "^10.0.23", - "@graphql-tools/federation": "^2.2.12", - "@graphql-tools/url-loader": "^8.0.4", + "@graphql-tools/delegate": "^10.0.26", + "@graphql-tools/federation": "^2.2.16", + "@graphql-tools/url-loader": "^8.0.7", "lodash.get": "^4.4.2" }, "publishConfig": { diff --git a/packages/legacy/handlers/postgraphile/package.json b/packages/legacy/handlers/postgraphile/package.json index 75f6d5bfb2815..72557d70fcc2b 100644 --- a/packages/legacy/handlers/postgraphile/package.json +++ b/packages/legacy/handlers/postgraphile/package.json @@ -41,7 +41,7 @@ }, "dependencies": { "@graphql-mesh/string-interpolation": "^0.5.6", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "pg": "^8.6.0", "postgraphile": "^4.13.0", "postgraphile-core": "^4.13.0" diff --git a/packages/legacy/handlers/supergraph/package.json b/packages/legacy/handlers/supergraph/package.json index 81b9394ca2fa5..3316048a03b19 100644 --- a/packages/legacy/handlers/supergraph/package.json +++ b/packages/legacy/handlers/supergraph/package.json @@ -41,8 +41,8 @@ }, "dependencies": { "@graphql-mesh/string-interpolation": "^0.5.6", - "@graphql-tools/federation": "^2.2.12", - "@graphql-tools/url-loader": "^8.0.4", + "@graphql-tools/federation": "^2.2.16", + "@graphql-tools/url-loader": "^8.0.7", "@graphql-tools/utils": "^10.5.5", "lodash.get": "^4.4.2" }, diff --git a/packages/legacy/mergers/federation/package.json b/packages/legacy/mergers/federation/package.json index 820d7152c9d53..735d45bbaa034 100644 --- a/packages/legacy/mergers/federation/package.json +++ b/packages/legacy/mergers/federation/package.json @@ -44,7 +44,7 @@ "dependencies": { "@apollo/gateway": "^2.4.1", "@graphql-tools/schema": "^10.0.5", - "@graphql-tools/wrap": "^10.0.7" + "@graphql-tools/wrap": "^10.0.10" }, "publishConfig": { "access": "public", diff --git a/packages/legacy/mergers/stitching/package.json b/packages/legacy/mergers/stitching/package.json index 0c5f5256ce8c8..6874f4117ebad 100644 --- a/packages/legacy/mergers/stitching/package.json +++ b/packages/legacy/mergers/stitching/package.json @@ -40,9 +40,9 @@ "tslib": "^2.4.0" }, "dependencies": { - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@graphql-tools/schema": "^10.0.5", - "@graphql-tools/stitch": "^9.2.12" + "@graphql-tools/stitch": "^9.2.15" }, "publishConfig": { "access": "public", diff --git a/packages/legacy/runtime/package.json b/packages/legacy/runtime/package.json index 5d45458dcca4a..d6dab932d4879 100644 --- a/packages/legacy/runtime/package.json +++ b/packages/legacy/runtime/package.json @@ -44,12 +44,12 @@ "@envelop/extended-validation": "^4.0.0", "@envelop/graphql-jit": "^8.0.0", "@graphql-mesh/string-interpolation": "^0.5.6", - "@graphql-tools/batch-delegate": "^9.0.5", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/batch-delegate": "^9.0.8", + "@graphql-tools/delegate": "^10.0.26", "@graphql-tools/executor": "^1.3.2", - "@graphql-tools/wrap": "^10.0.7", + "@graphql-tools/wrap": "^10.0.10", "@whatwg-node/fetch": "^0.9.0", - "graphql-jit": "0.8.7" + "graphql-jit": "^0.8.7" }, "devDependencies": { "@graphql-tools/schema": "10.0.7" diff --git a/packages/legacy/transforms/encapsulate/package.json b/packages/legacy/transforms/encapsulate/package.json index 8b65e059cca8f..76c3bf508913e 100644 --- a/packages/legacy/transforms/encapsulate/package.json +++ b/packages/legacy/transforms/encapsulate/package.json @@ -39,8 +39,8 @@ "tslib": "^2.4.0" }, "dependencies": { - "@graphql-tools/delegate": "^10.0.23", - "@graphql-tools/wrap": "^10.0.7" + "@graphql-tools/delegate": "^10.0.26", + "@graphql-tools/wrap": "^10.0.10" }, "devDependencies": { "@graphql-tools/schema": "10.0.7" diff --git a/packages/legacy/transforms/federation/package.json b/packages/legacy/transforms/federation/package.json index 0ef49338a43ac..2cb47cec92b7b 100644 --- a/packages/legacy/transforms/federation/package.json +++ b/packages/legacy/transforms/federation/package.json @@ -41,8 +41,8 @@ "dependencies": { "@apollo/subgraph": "^2.4.1", "@graphql-mesh/string-interpolation": "^0.5.6", - "@graphql-tools/delegate": "^10.0.23", - "@graphql-tools/stitching-directives": "^3.1.4", + "@graphql-tools/delegate": "^10.0.26", + "@graphql-tools/stitching-directives": "^3.1.7", "dset": "^3.1.2", "graphql-transform-federation": "^2.2.0" }, diff --git a/packages/legacy/transforms/filter-schema/package.json b/packages/legacy/transforms/filter-schema/package.json index d8f3d6efae5fc..88f82a3fd7332 100644 --- a/packages/legacy/transforms/filter-schema/package.json +++ b/packages/legacy/transforms/filter-schema/package.json @@ -39,8 +39,8 @@ "tslib": "^2.4.0" }, "dependencies": { - "@graphql-tools/delegate": "^10.0.23", - "@graphql-tools/wrap": "^10.0.7", + "@graphql-tools/delegate": "^10.0.26", + "@graphql-tools/wrap": "^10.0.10", "minimatch": "^10.0.0" }, "devDependencies": { diff --git a/packages/legacy/transforms/hive/package.json b/packages/legacy/transforms/hive/package.json index 0ad961a82c45c..2c25f1f4469f5 100644 --- a/packages/legacy/transforms/hive/package.json +++ b/packages/legacy/transforms/hive/package.json @@ -42,7 +42,7 @@ "@graphql-hive/core": "^0.8.1", "@graphql-hive/yoga": "^0.38.1", "@graphql-mesh/string-interpolation": "^0.5.6", - "@graphql-tools/delegate": "^10.0.23" + "@graphql-tools/delegate": "^10.0.26" }, "publishConfig": { "access": "public", diff --git a/packages/legacy/transforms/hoist-field/package.json b/packages/legacy/transforms/hoist-field/package.json index 540a747dd8233..6f0f159cf49f9 100644 --- a/packages/legacy/transforms/hoist-field/package.json +++ b/packages/legacy/transforms/hoist-field/package.json @@ -38,8 +38,8 @@ "graphql": "*" }, "dependencies": { - "@graphql-tools/delegate": "^10.0.23", - "@graphql-tools/wrap": "^10.0.7" + "@graphql-tools/delegate": "^10.0.26", + "@graphql-tools/wrap": "^10.0.10" }, "devDependencies": { "@graphql-mesh/cache-localforage": "0.102.7" diff --git a/packages/legacy/transforms/naming-convention/package.json b/packages/legacy/transforms/naming-convention/package.json index 6e64f50afd87a..a4168a85c4403 100644 --- a/packages/legacy/transforms/naming-convention/package.json +++ b/packages/legacy/transforms/naming-convention/package.json @@ -39,8 +39,8 @@ "tslib": "^2.5.0" }, "dependencies": { - "@graphql-tools/delegate": "^10.0.23", - "@graphql-tools/wrap": "^10.0.7", + "@graphql-tools/delegate": "^10.0.26", + "@graphql-tools/wrap": "^10.0.10", "change-case": "^4.1.2", "graphql-scalars": "^1.22.4", "lower-case": "^2.0.2", diff --git a/packages/legacy/transforms/prefix/package.json b/packages/legacy/transforms/prefix/package.json index 78f408278fd05..80bff95752edd 100644 --- a/packages/legacy/transforms/prefix/package.json +++ b/packages/legacy/transforms/prefix/package.json @@ -39,8 +39,8 @@ "tslib": "^2.4.0" }, "dependencies": { - "@graphql-tools/delegate": "^10.0.23", - "@graphql-tools/wrap": "^10.0.7", + "@graphql-tools/delegate": "^10.0.26", + "@graphql-tools/wrap": "^10.0.10", "graphql-scalars": "^1.22.4" }, "devDependencies": { diff --git a/packages/legacy/transforms/rename/package.json b/packages/legacy/transforms/rename/package.json index 8cee068a5c9bd..0ebe23f3cd504 100644 --- a/packages/legacy/transforms/rename/package.json +++ b/packages/legacy/transforms/rename/package.json @@ -39,8 +39,8 @@ "tslib": "^2.4.0" }, "dependencies": { - "@graphql-tools/delegate": "^10.0.23", - "@graphql-tools/wrap": "^10.0.7", + "@graphql-tools/delegate": "^10.0.26", + "@graphql-tools/wrap": "^10.0.10", "graphql-scalars": "^1.22.4" }, "devDependencies": { diff --git a/packages/legacy/transforms/type-merging/package.json b/packages/legacy/transforms/type-merging/package.json index 7ad204157484f..d530eb2fb7e52 100644 --- a/packages/legacy/transforms/type-merging/package.json +++ b/packages/legacy/transforms/type-merging/package.json @@ -38,8 +38,8 @@ "tslib": "^2.4.0" }, "dependencies": { - "@graphql-tools/delegate": "^10.0.23", - "@graphql-tools/stitching-directives": "^3.1.4" + "@graphql-tools/delegate": "^10.0.26", + "@graphql-tools/stitching-directives": "^3.1.7" }, "publishConfig": { "access": "public", diff --git a/packages/legacy/types/package.json b/packages/legacy/types/package.json index 99423f9a12084..3fe98cb207ff9 100644 --- a/packages/legacy/types/package.json +++ b/packages/legacy/types/package.json @@ -38,8 +38,8 @@ "tslib": "^2.4.0" }, "dependencies": { - "@graphql-tools/batch-delegate": "^9.0.5", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/batch-delegate": "^9.0.8", + "@graphql-tools/delegate": "^10.0.26", "@graphql-typed-document-node/core": "^3.2.0" }, "publishConfig": { diff --git a/packages/legacy/utils/package.json b/packages/legacy/utils/package.json index 08b02ea197e18..7660aff45029f 100644 --- a/packages/legacy/utils/package.json +++ b/packages/legacy/utils/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "@graphql-mesh/string-interpolation": "^0.5.6", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@whatwg-node/disposablestack": "^0.0.5", "@whatwg-node/fetch": "^0.9.13", "dset": "^3.1.2", diff --git a/packages/loaders/json-schema/package.json b/packages/loaders/json-schema/package.json index 56dbf10f066fb..c96b29a1bb230 100644 --- a/packages/loaders/json-schema/package.json +++ b/packages/loaders/json-schema/package.json @@ -43,7 +43,7 @@ "@graphql-mesh/string-interpolation": "0.5.6", "@graphql-mesh/transport-common": "^0.7.8", "@graphql-mesh/transport-rest": "^0.7.8", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@json-schema-tools/meta-schema": "1.7.5", "@whatwg-node/fetch": "^0.9.0", "ajv": "8.17.1", diff --git a/packages/loaders/mysql/package.json b/packages/loaders/mysql/package.json index ba156a964942b..7c9d8f97b870a 100644 --- a/packages/loaders/mysql/package.json +++ b/packages/loaders/mysql/package.json @@ -40,7 +40,7 @@ "@graphql-mesh/string-interpolation": "^0.5.6", "@graphql-mesh/transport-mysql": "^0.7.8", "@graphql-mesh/utils": "^0.102.7", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@graphql-tools/utils": "^10.5.5", "graphql-compose": "^9.0.11", "graphql-fields": "^2.0.3", diff --git a/packages/loaders/neo4j/package.json b/packages/loaders/neo4j/package.json index c3d40e9f57004..61ce14af4c5db 100644 --- a/packages/loaders/neo4j/package.json +++ b/packages/loaders/neo4j/package.json @@ -38,7 +38,7 @@ }, "dependencies": { "@graphql-mesh/transport-neo4j": "^0.7.8", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@graphql-tools/schema": "^10.0.5", "@neo4j/introspector": "^3.0.0", "neo4j-driver": "^5.9.2" diff --git a/packages/loaders/odata/package.json b/packages/loaders/odata/package.json index de0f5350d9c5c..1eb238b56f244 100644 --- a/packages/loaders/odata/package.json +++ b/packages/loaders/odata/package.json @@ -42,7 +42,7 @@ }, "dependencies": { "@graphql-mesh/string-interpolation": "^0.5.6", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@whatwg-node/fetch": "^0.9.0", "dataloader": "^2.2.2", "fast-xml-parser": "^4.5.0", diff --git a/packages/loaders/openapi/package.json b/packages/loaders/openapi/package.json index ccf210b91c193..73e8c3948665c 100644 --- a/packages/loaders/openapi/package.json +++ b/packages/loaders/openapi/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "@graphql-mesh/string-interpolation": "^0.5.6", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@omnigraph/json-schema": "^0.107.1", "change-case": "^4.1.2", "json-machete": "^0.97.4", diff --git a/packages/loaders/raml/package.json b/packages/loaders/raml/package.json index 574e84588748c..44e1ea462c188 100644 --- a/packages/loaders/raml/package.json +++ b/packages/loaders/raml/package.json @@ -42,7 +42,7 @@ "dependencies": { "@ardatan/raml-1-parser": "1.1.69", "@graphql-mesh/string-interpolation": "0.5.6", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@omnigraph/json-schema": "0.107.1", "@whatwg-node/fetch": "^0.9.0", "change-case": "4.1.2", diff --git a/packages/loaders/sqlite/package.json b/packages/loaders/sqlite/package.json index 52ef2db6d0746..41739eeab4cbf 100644 --- a/packages/loaders/sqlite/package.json +++ b/packages/loaders/sqlite/package.json @@ -38,7 +38,7 @@ "dependencies": { "@graphql-mesh/cross-helpers": "^0.4.7", "@graphql-mesh/types": "^0.102.7", - "@graphql-tools/delegate": "^10.0.23" + "@graphql-tools/delegate": "^10.0.26" }, "optionalDependencies": { "tuql": "^1.7.0" diff --git a/packages/plugins/jit/package.json b/packages/plugins/jit/package.json new file mode 100644 index 0000000000000..a0a87ca205a2f --- /dev/null +++ b/packages/plugins/jit/package.json @@ -0,0 +1,52 @@ +{ + "name": "@graphql-mesh/plugin-jit", + "version": "0.0.0", + "type": "module", + "repository": { + "type": "git", + "url": "ardatan/graphql-mesh", + "directory": "packages/plugins/jit" + }, + "license": "MIT", + "engines": { + "node": ">=16.0.0" + }, + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "exports": { + ".": { + "require": { + "types": "./dist/typings/index.d.cts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/typings/index.d.ts", + "default": "./dist/esm/index.js" + } + }, + "./package.json": "./package.json" + }, + "typings": "dist/typings/index.d.ts", + "peerDependencies": { + "@envelop/core": "^5.0.2", + "@graphql-mesh/utils": "^0.102.7", + "@graphql-tools/utils": "^10.5.5", + "graphql": "*", + "tslib": "^2.4.0" + }, + "dependencies": { + "graphql-jit": "^0.8.7" + }, + "publishConfig": { + "access": "public", + "directory": "dist" + }, + "sideEffects": false, + "typescript": { + "definition": "dist/typings/index.d.ts" + } +} diff --git a/packages/plugins/jit/src/index.ts b/packages/plugins/jit/src/index.ts new file mode 100644 index 0000000000000..7c16e906031c4 --- /dev/null +++ b/packages/plugins/jit/src/index.ts @@ -0,0 +1,44 @@ +import type { DocumentNode, ExecutionArgs } from 'graphql'; +import { compileQuery, isCompiledQuery, type CompiledQuery } from 'graphql-jit'; +import { getDocumentString, type Plugin } from '@envelop/core'; +import { createLruCache } from '@graphql-mesh/utils'; + +function createExecuteFnWithJit() { + const compiledQueryByDocument = new WeakMap(); + const compiledQueryByDocumentStr = createLruCache(); + return function executeWithJit(args: ExecutionArgs) { + let compiledQuery = compiledQueryByDocument.get(args.document); + if (compiledQuery == null) { + const documentStr = getDocumentString(args.document); + compiledQuery = compiledQueryByDocumentStr.get(documentStr); + if (compiledQuery == null) { + const compilationResult = compileQuery(args.schema, args.document, args.operationName, { + disableLeafSerialization: true, + }); + if (isCompiledQuery(compilationResult)) { + compiledQuery = compilationResult; + compiledQueryByDocument.set(args.document, compiledQuery); + compiledQueryByDocumentStr.set(documentStr, compiledQuery); + } else { + return compilationResult; + } + } + } + if (compiledQuery.subscribe) { + return compiledQuery.subscribe(args.rootValue, args.contextValue, args.variableValues); + } + return compiledQuery.query(args.rootValue, args.contextValue, args.variableValues); + }; +} + +export function useJIT(): Plugin { + const executeFnWithJit = createExecuteFnWithJit(); + return { + onExecute({ setExecuteFn }) { + setExecuteFn(executeFnWithJit); + }, + onSubscribe({ setSubscribeFn }) { + setSubscribeFn(executeFnWithJit); + }, + }; +} diff --git a/packages/plugins/jit/tests/jit.spec.ts b/packages/plugins/jit/tests/jit.spec.ts new file mode 100644 index 0000000000000..4097c62806672 --- /dev/null +++ b/packages/plugins/jit/tests/jit.spec.ts @@ -0,0 +1,72 @@ +import type { ExecutionResult } from 'graphql'; +import { createSchema, createYoga } from 'graphql-yoga'; +import { getUnifiedGraphGracefully } from '@graphql-mesh/fusion-composition'; +import { createGatewayRuntime, useCustomFetch } from '@graphql-mesh/serve-runtime'; + +describe('JIT', () => { + it('memoizes the compiled query', async () => { + const graphqlJit: typeof import('graphql-jit') = require('graphql-jit'); + jest.spyOn(graphqlJit, 'compileQuery'); + const { useJIT } = require('../src/index'); + const upstreamSchema = createSchema({ + typeDefs: /* GraphQL */ ` + type Query { + hello: String + } + `, + resolvers: { + Query: { + hello: () => 'world', + }, + }, + }); + const upstreamServer = createYoga({ + schema: upstreamSchema, + }); + await using gw = createGatewayRuntime({ + supergraph: () => + getUnifiedGraphGracefully([ + { + name: 'upstream', + schema: upstreamSchema, + url: 'http://localhost:4001/graphql', + }, + ]), + plugins: () => [ + useCustomFetch(function (url, options) { + if (url === 'http://localhost:4001/graphql') { + return upstreamServer.fetch(url, options); + } + return Response.error(); + }), + useJIT(), + ], + }); + async function makeRequest() { + const res = await gw.fetch('http://localhost:4000/graphql', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify({ + query: /* GraphQL */ ` + query { + hello + } + `, + }), + }); + expect(res.status).toBe(200); + const body: ExecutionResult = await res.json(); + expect(body.data).toEqual({ + hello: 'world', + }); + } + await makeRequest(); + expect(graphqlJit.compileQuery).toHaveBeenCalledTimes(1); + await makeRequest(); + expect(graphqlJit.compileQuery).toHaveBeenCalledTimes(1); + await makeRequest(); + expect(graphqlJit.compileQuery).toHaveBeenCalledTimes(1); + }); +}); diff --git a/packages/serve-cli/package.json b/packages/serve-cli/package.json index de6ee8be7138a..8657c9cb68375 100644 --- a/packages/serve-cli/package.json +++ b/packages/serve-cli/package.json @@ -59,6 +59,7 @@ "@graphql-mesh/include": "^0.2.2", "@graphql-mesh/plugin-deduplicate-request": "^0.102.7", "@graphql-mesh/plugin-http-cache": "^0.102.7", + "@graphql-mesh/plugin-jit": "^0.0.0", "@graphql-mesh/plugin-jwt-auth": "^1.1.1", "@graphql-mesh/plugin-mock": "^0.102.8", "@graphql-mesh/plugin-opentelemetry": "^1.2.0", diff --git a/packages/serve-cli/rollup.config.js b/packages/serve-cli/rollup.config.js index aae6c133c3efc..afd11a1a0a197 100644 --- a/packages/serve-cli/rollup.config.js +++ b/packages/serve-cli/rollup.config.js @@ -44,14 +44,12 @@ const deps = { 'node_modules/@graphql-mesh/transport-common/index': '../transports/common/src/index.ts', 'node_modules/@graphql-mesh/transport-http/index': '../transports/http/src/index.ts', // extras for docker only - 'node_modules/@graphql-mesh/plugin-prometheus/index': '../plugins/prometheus/src/index.ts', + 'node_modules/@graphql-mesh/transport-ws/index': '../transports/ws/src/index.ts', + 'node_modules/@graphql-mesh/transport-http-callback/index': + '../transports/http-callback/src/index.ts', 'node_modules/@graphql-mesh/plugin-http-cache/index': '../plugins/http-cache/src/index.ts', - 'node_modules/@graphql-mesh/plugin-jwt-auth/index': '../plugins/jwt-auth/src/index.ts', 'node_modules/@graphql-mesh/hmac-upstream-signature/index': '../plugins/hmac-upstream-signature/src/index.ts', - 'node_modules/@graphql-mesh/plugin-opentelemetry/index': '../plugins/opentelemetry/src/index.ts', - 'node_modules/@envelop/generic-auth/index': - '../../node_modules/@envelop/generic-auth/esm/index.js', }; if (process.env.E2E_SERVE_RUNNER === 'docker') { @@ -61,9 +59,6 @@ if (process.env.E2E_SERVE_RUNNER === 'docker') { deps['node_modules/@e2e/opts/index'] = '../../e2e/utils/opts.ts'; deps['node_modules/@graphql-mesh/utils/index'] = '../legacy/utils/src/index.ts'; deps['node_modules/@omnigraph/openapi/index'] = '../loaders/openapi/src/index.ts'; - deps['node_modules/@graphql-mesh/transport-ws/index'] = '../transports/ws/src/index.ts'; - deps['node_modules/@graphql-mesh/transport-http-callback/index'] = - '../transports/http-callback/src/index.ts'; deps['node_modules/@graphql-mesh/transport-rest/index'] = '../transports/rest/src/index.ts'; deps['node_modules/@graphql-mesh/transport-soap/index'] = '../transports/soap/src/index.ts'; deps['node_modules/@graphql-mesh/transport-mysql/index'] = '../transports/mysql/src/index.ts'; diff --git a/packages/serve-cli/src/cli.ts b/packages/serve-cli/src/cli.ts index d13d56232b4c5..0a790df10638c 100644 --- a/packages/serve-cli/src/cli.ts +++ b/packages/serve-cli/src/cli.ts @@ -99,6 +99,13 @@ export interface GatewayCLIBuiltinPluginConfig { */ rateLimiting?: Exclude[0], GatewayConfigContext>; + /** + * Enable Just-In-Time compilation of GraphQL documents. + * + * [Learn more](https://github.com/zalando-incubator/graphql-jit?tab=readme-ov-file#benchmarks) + */ + jit?: boolean; + cache?: | KeyValueCache | GatewayCLILocalforageCacheConfig @@ -162,8 +169,9 @@ export type AddCommand = (ctx: CLIContext, cli: CLI) => void; // we dont use `Option.default()` in the command definitions because we want the CLI options to // override the config file (with option defaults, config file will always be overwritten) +const maxAvailableFork = Math.max(availableParallelism() - 1, 1); export const defaultOptions = { - fork: process.env.NODE_ENV === 'production' ? availableParallelism() : 1, + fork: process.env.NODE_ENV === 'production' ? maxAvailableFork : 1, host: platform().toLowerCase() === 'win32' || // is WSL? @@ -188,8 +196,8 @@ let cli = new Command() .env('FORK') .argParser(v => { const count = parseInt(v); - if (isNaN(count)) { - throw new InvalidArgumentError('not a number.'); + if (isNaN(count) || count > maxAvailableFork) { + return maxAvailableFork; } return count; }), @@ -277,6 +285,19 @@ let cli = new Command() '--apollo-key ', 'Apollo API key to use to authenticate with the managed federation up link', ).env('APOLLO_KEY'), + ) + .addOption( + new Option('--jit', 'Enable Just-In-Time compilation of GraphQL documents') + .env('JIT') + .argParser(value => { + if (value === 'false' || value === '0') { + return false; + } + if (value === 'true' || value === '1') { + return true; + } + return true; + }), ); export async function run(userCtx: Partial) { diff --git a/packages/serve-cli/src/commands/proxy.ts b/packages/serve-cli/src/commands/proxy.ts index 2d6ea2cf78c83..cc42cc68de496 100644 --- a/packages/serve-cli/src/commands/proxy.ts +++ b/packages/serve-cli/src/commands/proxy.ts @@ -90,10 +90,16 @@ export const addCommand: AddCommand = (ctx, cli) => pubsub, logger: ctx.log, }); - const builtinPlugins = await getBuiltinPluginsFromConfig(loadedConfig, { - cache, - logger: ctx.log, - }); + const builtinPlugins = await getBuiltinPluginsFromConfig( + { + ...loadedConfig, + ...opts, + }, + { + cache, + logger: ctx.log, + }, + ); const config: ProxyConfig = { ...defaultOptions, diff --git a/packages/serve-cli/src/commands/subgraph.ts b/packages/serve-cli/src/commands/subgraph.ts index 75e1e01bfc5f4..75ec167eb240b 100644 --- a/packages/serve-cli/src/commands/subgraph.ts +++ b/packages/serve-cli/src/commands/subgraph.ts @@ -57,10 +57,16 @@ export const addCommand: AddCommand = (ctx, cli) => pubsub, logger: ctx.log, }); - const builtinPlugins = await getBuiltinPluginsFromConfig(loadedConfig, { - cache, - logger: ctx.log, - }); + const builtinPlugins = await getBuiltinPluginsFromConfig( + { + ...loadedConfig, + ...opts, + }, + { + cache, + logger: ctx.log, + }, + ); const config: SubgraphConfig = { ...defaultOptions, diff --git a/packages/serve-cli/src/commands/supergraph.ts b/packages/serve-cli/src/commands/supergraph.ts index 89a7d64c08002..92e2e1c816913 100644 --- a/packages/serve-cli/src/commands/supergraph.ts +++ b/packages/serve-cli/src/commands/supergraph.ts @@ -156,11 +156,17 @@ export const addCommand: AddCommand = (ctx, cli) => pubsub, logger: ctx.log, }); - const builtinPlugins = await getBuiltinPluginsFromConfig(loadedConfig, { - cache, - logger: ctx.log, - }); + const builtinPlugins = await getBuiltinPluginsFromConfig( + { + ...loadedConfig, + ...opts, + }, + { + cache, + logger: ctx.log, + }, + ); const config: SupergraphConfig = { ...defaultOptions, ...loadedConfig, diff --git a/packages/serve-cli/src/config.ts b/packages/serve-cli/src/config.ts index 183f147bf086f..72b737abd76c7 100644 --- a/packages/serve-cli/src/config.ts +++ b/packages/serve-cli/src/config.ts @@ -2,6 +2,7 @@ import { lstat } from 'node:fs/promises'; import { isAbsolute, join } from 'node:path'; import { pathToFileURL } from 'node:url'; +import type { CompilerOptions } from 'graphql-jit'; import type { GatewayConfig, GatewayConfigContext } from '@graphql-mesh/serve-runtime'; import type { KeyValueCache, Logger } from '@graphql-mesh/types'; import type { GatewayCLIBuiltinPluginConfig } from './cli'; @@ -111,6 +112,11 @@ export async function getBuiltinPluginsFromConfig( ); } + if (config.jit) { + const { useJIT } = await import('@graphql-mesh/plugin-jit'); + plugins.push(useJIT()); + } + return plugins; } diff --git a/packages/serve-runtime/package.json b/packages/serve-runtime/package.json index 4ab668a0f6871..d32dc2fc5d592 100644 --- a/packages/serve-runtime/package.json +++ b/packages/serve-runtime/package.json @@ -50,13 +50,13 @@ "@graphql-mesh/transport-common": "^0.7.8", "@graphql-mesh/transport-http": "^0.6.8", "@graphql-mesh/utils": "^0.102.7", - "@graphql-tools/batch-delegate": "^9.0.5", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/batch-delegate": "^9.0.8", + "@graphql-tools/delegate": "^10.0.26", "@graphql-tools/executor-http": "^1.1.5", - "@graphql-tools/federation": "^2.2.12", - "@graphql-tools/stitch": "^9.2.12", + "@graphql-tools/federation": "^2.2.16", + "@graphql-tools/stitch": "^9.2.15", "@graphql-tools/utils": "^10.5.5", - "@graphql-tools/wrap": "^10.0.7", + "@graphql-tools/wrap": "^10.0.10", "@graphql-yoga/plugin-apollo-usage-report": "^0.1.0", "@graphql-yoga/plugin-csrf-prevention": "^3.7.0", "@graphql-yoga/plugin-defer-stream": "^3.7.0", diff --git a/packages/serve-runtime/src/landing-page.html b/packages/serve-runtime/src/landing-page.html index 895d24854562c..17c33073b4d7b 100644 --- a/packages/serve-runtime/src/landing-page.html +++ b/packages/serve-runtime/src/landing-page.html @@ -148,7 +148,7 @@

Not the page you are looking for? 👀

- If you expected this page to be the GraphQL route, you need to configure Mesh. Currently, + If you expected this page to be the GraphQL route, you need to configure the gateway. Currently, the GraphQL route is configured to be on __GRAPHIQL_LINK__.

diff --git a/packages/transports/common/package.json b/packages/transports/common/package.json index 00a88b1a9b53c..0b914e6b81685 100644 --- a/packages/transports/common/package.json +++ b/packages/transports/common/package.json @@ -38,7 +38,7 @@ }, "dependencies": { "@envelop/core": "^5.0.1", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@graphql-tools/utils": "^10.5.5" }, "publishConfig": { diff --git a/packages/transports/mysql/package.json b/packages/transports/mysql/package.json index ac1237cfa0759..c7926869dac84 100644 --- a/packages/transports/mysql/package.json +++ b/packages/transports/mysql/package.json @@ -41,7 +41,7 @@ "@graphql-mesh/transport-common": "^0.7.8", "@graphql-mesh/types": "^0.102.7", "@graphql-mesh/utils": "^0.102.7", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@graphql-tools/utils": "^10.5.5", "graphql-fields": "^2.0.3", "mysql": "^2.18.1", diff --git a/packages/transports/neo4j/package.json b/packages/transports/neo4j/package.json index b3c3cfa0ed06b..d5ee9d879b92e 100644 --- a/packages/transports/neo4j/package.json +++ b/packages/transports/neo4j/package.json @@ -39,7 +39,7 @@ "@graphql-mesh/transport-common": "^0.7.8", "@graphql-mesh/types": "^0.102.7", "@graphql-mesh/utils": "^0.102.7", - "@graphql-tools/delegate": "^10.0.23", + "@graphql-tools/delegate": "^10.0.26", "@graphql-tools/utils": "^10.5.5", "@neo4j/graphql": "^5.0.0", "graphql-scalars": "^1.22.4", diff --git a/patches/graphql-jit+0.8.7.patch b/patches/graphql-jit+0.8.7.patch new file mode 100644 index 0000000000000..4858f3596b47c --- /dev/null +++ b/patches/graphql-jit+0.8.7.patch @@ -0,0 +1,24 @@ +diff --git a/node_modules/graphql-jit/dist/index.js b/node_modules/graphql-jit/dist/index.js +index d881c5b..fce0201 100644 +--- a/node_modules/graphql-jit/dist/index.js ++++ b/node_modules/graphql-jit/dist/index.js +@@ -1,17 +1,16 @@ + "use strict"; + var __defProp = Object.defineProperty; +-var __getOwnPropDesc = Object.getOwnPropertyDescriptor; + var __getOwnPropNames = Object.getOwnPropertyNames; + var __hasOwnProp = Object.prototype.hasOwnProperty; + var __export = (target, all) => { + for (var name in all) +- __defProp(target, name, { get: all[name], enumerable: true }); ++ __defProp(target, name, { get: all[name], enumerable: true, configurable: true }); + }; + var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) +- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); ++ __defProp(to, key, { get: () => from[key], enumerable: true, configurable: true }); + } + return to; + }; diff --git a/yarn.lock b/yarn.lock index e610cd3913d8d..e8ef1db25e5cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6105,7 +6105,7 @@ __metadata: dependencies: "@graphql-mesh/utils": "npm:^0.102.7" "@graphql-tools/schema": "npm:^10.0.5" - "@graphql-tools/stitching-directives": "npm:^3.1.4" + "@graphql-tools/stitching-directives": "npm:^3.1.7" "@graphql-tools/utils": "npm:^10.5.5" "@theguild/federation-composition": "npm:^0.14.0" "@types/minimatch": "npm:5.1.2" @@ -6131,13 +6131,13 @@ __metadata: "@graphql-mesh/transport-common": "npm:^0.7.8" "@graphql-mesh/types": "npm:^0.102.7" "@graphql-mesh/utils": "npm:^0.102.7" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/executor": "npm:^1.3.2" - "@graphql-tools/federation": "npm:^2.2.12" - "@graphql-tools/stitch": "npm:^9.2.12" - "@graphql-tools/stitching-directives": "npm:^3.1.4" + "@graphql-tools/federation": "npm:^2.2.16" + "@graphql-tools/stitch": "npm:^9.2.15" + "@graphql-tools/stitching-directives": "npm:^3.1.7" "@graphql-tools/utils": "npm:^10.5.5" - "@graphql-tools/wrap": "npm:^10.0.7" + "@graphql-tools/wrap": "npm:^10.0.10" "@whatwg-node/disposablestack": "npm:^0.0.5" change-case: "npm:^4.1.2" graphql-yoga: "npm:^5.7.0" @@ -6152,9 +6152,9 @@ __metadata: resolution: "@graphql-mesh/graphql@workspace:packages/legacy/handlers/graphql" dependencies: "@graphql-mesh/string-interpolation": "npm:^0.5.6" - "@graphql-tools/delegate": "npm:^10.0.23" - "@graphql-tools/federation": "npm:^2.2.12" - "@graphql-tools/url-loader": "npm:^8.0.4" + "@graphql-tools/delegate": "npm:^10.0.26" + "@graphql-tools/federation": "npm:^2.2.16" + "@graphql-tools/url-loader": "npm:^8.0.7" lodash.get: "npm:^4.4.2" peerDependencies: "@graphql-mesh/cross-helpers": ^0.4.7 @@ -6285,7 +6285,7 @@ __metadata: dependencies: "@apollo/gateway": "npm:^2.4.1" "@graphql-tools/schema": "npm:^10.0.5" - "@graphql-tools/wrap": "npm:^10.0.7" + "@graphql-tools/wrap": "npm:^10.0.10" peerDependencies: "@graphql-mesh/cross-helpers": ^0.4.7 "@graphql-mesh/store": ^0.102.7 @@ -6302,9 +6302,9 @@ __metadata: version: 0.0.0-use.local resolution: "@graphql-mesh/merger-stitching@workspace:packages/legacy/mergers/stitching" dependencies: - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/schema": "npm:^10.0.5" - "@graphql-tools/stitch": "npm:^9.2.12" + "@graphql-tools/stitch": "npm:^9.2.15" peerDependencies: "@graphql-mesh/store": ^0.102.7 "@graphql-mesh/types": ^0.102.7 @@ -6469,6 +6469,20 @@ __metadata: languageName: unknown linkType: soft +"@graphql-mesh/plugin-jit@npm:^0.0.0, @graphql-mesh/plugin-jit@workspace:packages/plugins/jit": + version: 0.0.0-use.local + resolution: "@graphql-mesh/plugin-jit@workspace:packages/plugins/jit" + dependencies: + graphql-jit: "npm:^0.8.7" + peerDependencies: + "@envelop/core": ^5.0.2 + "@graphql-mesh/utils": ^0.102.7 + "@graphql-tools/utils": ^10.5.5 + graphql: "*" + tslib: ^2.4.0 + languageName: unknown + linkType: soft + "@graphql-mesh/plugin-jwt-auth@npm:^1.1.1, @graphql-mesh/plugin-jwt-auth@workspace:packages/plugins/jwt-auth": version: 0.0.0-use.local resolution: "@graphql-mesh/plugin-jwt-auth@workspace:packages/plugins/jwt-auth" @@ -6689,7 +6703,7 @@ __metadata: resolution: "@graphql-mesh/postgraphile@workspace:packages/legacy/handlers/postgraphile" dependencies: "@graphql-mesh/string-interpolation": "npm:^0.5.6" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" pg: "npm:^8.6.0" postgraphile: "npm:^4.13.0" postgraphile-core: "npm:^4.13.0" @@ -6725,13 +6739,13 @@ __metadata: "@envelop/extended-validation": "npm:^4.0.0" "@envelop/graphql-jit": "npm:^8.0.0" "@graphql-mesh/string-interpolation": "npm:^0.5.6" - "@graphql-tools/batch-delegate": "npm:^9.0.5" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/batch-delegate": "npm:^9.0.8" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/executor": "npm:^1.3.2" "@graphql-tools/schema": "npm:10.0.7" - "@graphql-tools/wrap": "npm:^10.0.7" + "@graphql-tools/wrap": "npm:^10.0.10" "@whatwg-node/fetch": "npm:^0.9.0" - graphql-jit: "npm:0.8.7" + graphql-jit: "npm:^0.8.7" peerDependencies: "@graphql-mesh/cross-helpers": ^0.4.7 "@graphql-mesh/types": ^0.102.7 @@ -6755,6 +6769,7 @@ __metadata: "@graphql-mesh/include": "npm:^0.2.2" "@graphql-mesh/plugin-deduplicate-request": "npm:^0.102.7" "@graphql-mesh/plugin-http-cache": "npm:^0.102.7" + "@graphql-mesh/plugin-jit": "npm:^0.0.0" "@graphql-mesh/plugin-jwt-auth": "npm:^1.1.1" "@graphql-mesh/plugin-mock": "npm:^0.102.8" "@graphql-mesh/plugin-opentelemetry": "npm:^1.2.0" @@ -6808,13 +6823,13 @@ __metadata: "@graphql-mesh/transport-common": "npm:^0.7.8" "@graphql-mesh/transport-http": "npm:^0.6.8" "@graphql-mesh/utils": "npm:^0.102.7" - "@graphql-tools/batch-delegate": "npm:^9.0.5" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/batch-delegate": "npm:^9.0.8" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/executor-http": "npm:^1.1.5" - "@graphql-tools/federation": "npm:^2.2.12" - "@graphql-tools/stitch": "npm:^9.2.12" + "@graphql-tools/federation": "npm:^2.2.16" + "@graphql-tools/stitch": "npm:^9.2.15" "@graphql-tools/utils": "npm:^10.5.5" - "@graphql-tools/wrap": "npm:^10.0.7" + "@graphql-tools/wrap": "npm:^10.0.10" "@graphql-yoga/plugin-apollo-usage-report": "npm:^0.1.0" "@graphql-yoga/plugin-csrf-prevention": "npm:^3.7.0" "@graphql-yoga/plugin-defer-stream": "npm:^3.7.0" @@ -6880,8 +6895,8 @@ __metadata: resolution: "@graphql-mesh/supergraph@workspace:packages/legacy/handlers/supergraph" dependencies: "@graphql-mesh/string-interpolation": "npm:^0.5.6" - "@graphql-tools/federation": "npm:^2.2.12" - "@graphql-tools/url-loader": "npm:^8.0.4" + "@graphql-tools/federation": "npm:^2.2.16" + "@graphql-tools/url-loader": "npm:^8.0.7" "@graphql-tools/utils": "npm:^10.5.5" lodash.get: "npm:^4.4.2" peerDependencies: @@ -6935,9 +6950,9 @@ __metadata: version: 0.0.0-use.local resolution: "@graphql-mesh/transform-encapsulate@workspace:packages/legacy/transforms/encapsulate" dependencies: - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/schema": "npm:10.0.7" - "@graphql-tools/wrap": "npm:^10.0.7" + "@graphql-tools/wrap": "npm:^10.0.10" peerDependencies: "@graphql-mesh/types": ^0.102.7 "@graphql-mesh/utils": ^0.102.7 @@ -6971,8 +6986,8 @@ __metadata: dependencies: "@apollo/subgraph": "npm:^2.4.1" "@graphql-mesh/string-interpolation": "npm:^0.5.6" - "@graphql-tools/delegate": "npm:^10.0.23" - "@graphql-tools/stitching-directives": "npm:^3.1.4" + "@graphql-tools/delegate": "npm:^10.0.26" + "@graphql-tools/stitching-directives": "npm:^3.1.7" dset: "npm:^3.1.2" graphql-transform-federation: "npm:^2.2.0" peerDependencies: @@ -6988,8 +7003,8 @@ __metadata: version: 0.0.0-use.local resolution: "@graphql-mesh/transform-filter-schema@workspace:packages/legacy/transforms/filter-schema" dependencies: - "@graphql-tools/delegate": "npm:^10.0.23" - "@graphql-tools/wrap": "npm:^10.0.7" + "@graphql-tools/delegate": "npm:^10.0.26" + "@graphql-tools/wrap": "npm:^10.0.10" "@types/minimatch": "npm:5.1.2" minimatch: "npm:^10.0.0" peerDependencies: @@ -7008,7 +7023,7 @@ __metadata: "@graphql-hive/core": "npm:^0.8.1" "@graphql-hive/yoga": "npm:^0.38.1" "@graphql-mesh/string-interpolation": "npm:^0.5.6" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" peerDependencies: "@graphql-mesh/cross-helpers": ^0.4.7 "@graphql-mesh/types": ^0.102.7 @@ -7023,8 +7038,8 @@ __metadata: resolution: "@graphql-mesh/transform-hoist-field@workspace:packages/legacy/transforms/hoist-field" dependencies: "@graphql-mesh/cache-localforage": "npm:0.102.7" - "@graphql-tools/delegate": "npm:^10.0.23" - "@graphql-tools/wrap": "npm:^10.0.7" + "@graphql-tools/delegate": "npm:^10.0.26" + "@graphql-tools/wrap": "npm:^10.0.10" peerDependencies: "@graphql-mesh/types": ^0.102.7 "@graphql-mesh/utils": ^0.102.7 @@ -7038,9 +7053,9 @@ __metadata: resolution: "@graphql-mesh/transform-naming-convention@workspace:packages/legacy/transforms/naming-convention" dependencies: "@graphql-mesh/cache-localforage": "npm:^0.102.7" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/schema": "npm:10.0.7" - "@graphql-tools/wrap": "npm:^10.0.7" + "@graphql-tools/wrap": "npm:^10.0.10" change-case: "npm:^4.1.2" graphql-scalars: "npm:^1.22.4" lower-case: "npm:^2.0.2" @@ -7059,9 +7074,9 @@ __metadata: resolution: "@graphql-mesh/transform-prefix@workspace:packages/legacy/transforms/prefix" dependencies: "@graphql-mesh/cache-localforage": "npm:0.102.7" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/schema": "npm:10.0.7" - "@graphql-tools/wrap": "npm:^10.0.7" + "@graphql-tools/wrap": "npm:^10.0.10" graphql-scalars: "npm:^1.22.4" peerDependencies: "@graphql-mesh/types": ^0.102.7 @@ -7107,9 +7122,9 @@ __metadata: resolution: "@graphql-mesh/transform-rename@workspace:packages/legacy/transforms/rename" dependencies: "@graphql-mesh/cache-localforage": "npm:0.102.7" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/schema": "npm:10.0.7" - "@graphql-tools/wrap": "npm:^10.0.7" + "@graphql-tools/wrap": "npm:^10.0.10" graphql-scalars: "npm:^1.22.4" peerDependencies: "@graphql-mesh/types": ^0.102.7 @@ -7170,8 +7185,8 @@ __metadata: version: 0.0.0-use.local resolution: "@graphql-mesh/transform-type-merging@workspace:packages/legacy/transforms/type-merging" dependencies: - "@graphql-tools/delegate": "npm:^10.0.23" - "@graphql-tools/stitching-directives": "npm:^3.1.4" + "@graphql-tools/delegate": "npm:^10.0.26" + "@graphql-tools/stitching-directives": "npm:^3.1.7" peerDependencies: "@graphql-mesh/types": ^0.102.7 "@graphql-mesh/utils": ^0.102.7 @@ -7185,7 +7200,7 @@ __metadata: resolution: "@graphql-mesh/transport-common@workspace:packages/transports/common" dependencies: "@envelop/core": "npm:^5.0.1" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/utils": "npm:^10.5.5" peerDependencies: "@graphql-mesh/types": ^0.102.7 @@ -7239,7 +7254,7 @@ __metadata: "@graphql-mesh/transport-common": "npm:^0.7.8" "@graphql-mesh/types": "npm:^0.102.7" "@graphql-mesh/utils": "npm:^0.102.7" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/utils": "npm:^10.5.5" graphql-fields: "npm:^2.0.3" mysql: "npm:^2.18.1" @@ -7257,7 +7272,7 @@ __metadata: "@graphql-mesh/transport-common": "npm:^0.7.8" "@graphql-mesh/types": "npm:^0.102.7" "@graphql-mesh/utils": "npm:^0.102.7" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/utils": "npm:^10.5.5" "@neo4j/graphql": "npm:^5.0.0" graphql-scalars: "npm:^1.22.4" @@ -7387,8 +7402,8 @@ __metadata: version: 0.0.0-use.local resolution: "@graphql-mesh/types@workspace:packages/legacy/types" dependencies: - "@graphql-tools/batch-delegate": "npm:^9.0.5" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/batch-delegate": "npm:^9.0.8" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-typed-document-node/core": "npm:^3.2.0" peerDependencies: "@graphql-mesh/store": ^0.102.7 @@ -7420,7 +7435,7 @@ __metadata: dependencies: "@apollo/server": "npm:4.11.0" "@graphql-mesh/string-interpolation": "npm:^0.5.6" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@types/js-yaml": "npm:4.0.9" "@types/lodash.topath": "npm:4.5.9" "@types/object-hash": "npm:3.0.6" @@ -7454,7 +7469,7 @@ __metadata: languageName: node linkType: hard -"@graphql-tools/batch-delegate@npm:^9.0.5, @graphql-tools/batch-delegate@npm:^9.0.8": +"@graphql-tools/batch-delegate@npm:^9.0.8": version: 9.0.8 resolution: "@graphql-tools/batch-delegate@npm:9.0.8" dependencies: @@ -7527,7 +7542,7 @@ __metadata: languageName: node linkType: hard -"@graphql-tools/delegate@npm:^10.0.23, @graphql-tools/delegate@npm:^10.0.26": +"@graphql-tools/delegate@npm:^10.0.26": version: 10.0.26 resolution: "@graphql-tools/delegate@npm:10.0.26" dependencies: @@ -7635,7 +7650,7 @@ __metadata: languageName: node linkType: hard -"@graphql-tools/federation@npm:^2.2.12": +"@graphql-tools/federation@npm:^2.2.16": version: 2.2.16 resolution: "@graphql-tools/federation@npm:2.2.16" dependencies: @@ -8056,7 +8071,7 @@ __metadata: languageName: node linkType: hard -"@graphql-tools/stitch@npm:^9.2.12, @graphql-tools/stitch@npm:^9.2.15": +"@graphql-tools/stitch@npm:^9.2.15": version: 9.2.15 resolution: "@graphql-tools/stitch@npm:9.2.15" dependencies: @@ -8075,7 +8090,7 @@ __metadata: languageName: node linkType: hard -"@graphql-tools/stitching-directives@npm:^3.1.4": +"@graphql-tools/stitching-directives@npm:^3.1.7": version: 3.1.7 resolution: "@graphql-tools/stitching-directives@npm:3.1.7" dependencies: @@ -8107,7 +8122,7 @@ __metadata: languageName: node linkType: hard -"@graphql-tools/url-loader@npm:^8.0.0, @graphql-tools/url-loader@npm:^8.0.4, @graphql-tools/url-loader@npm:^8.0.7, @graphql-tools/url-loader@npm:~8.0.0": +"@graphql-tools/url-loader@npm:^8.0.0, @graphql-tools/url-loader@npm:^8.0.7, @graphql-tools/url-loader@npm:~8.0.0": version: 8.0.7 resolution: "@graphql-tools/url-loader@npm:8.0.7" dependencies: @@ -8217,7 +8232,7 @@ __metadata: languageName: node linkType: hard -"@graphql-tools/wrap@npm:10.0.10, @graphql-tools/wrap@npm:^10.0.10, @graphql-tools/wrap@npm:^10.0.7": +"@graphql-tools/wrap@npm:10.0.10, @graphql-tools/wrap@npm:^10.0.10": version: 10.0.10 resolution: "@graphql-tools/wrap@npm:10.0.10" dependencies: @@ -10110,7 +10125,7 @@ __metadata: "@graphql-mesh/string-interpolation": "npm:0.5.6" "@graphql-mesh/transport-common": "npm:^0.7.8" "@graphql-mesh/transport-rest": "npm:^0.7.8" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@json-schema-tools/meta-schema": "npm:1.7.5" "@types/qs": "npm:6.9.16" "@types/to-json-schema": "npm:0.2.4" @@ -10145,7 +10160,7 @@ __metadata: "@graphql-mesh/string-interpolation": "npm:^0.5.6" "@graphql-mesh/transport-mysql": "npm:^0.7.8" "@graphql-mesh/utils": "npm:^0.102.7" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/utils": "npm:^10.5.5" "@types/graphql-fields": "npm:1.3.9" "@types/mysql": "npm:2.15.26" @@ -10165,7 +10180,7 @@ __metadata: resolution: "@omnigraph/neo4j@workspace:packages/loaders/neo4j" dependencies: "@graphql-mesh/transport-neo4j": "npm:^0.7.8" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/schema": "npm:^10.0.5" "@neo4j/introspector": "npm:^3.0.0" neo4j-driver: "npm:^5.9.2" @@ -10181,7 +10196,7 @@ __metadata: resolution: "@omnigraph/odata@workspace:packages/loaders/odata" dependencies: "@graphql-mesh/string-interpolation": "npm:^0.5.6" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@types/http-string-parser": "npm:0.0.33" "@types/url-join": "npm:4.0.3" "@whatwg-node/fetch": "npm:^0.9.0" @@ -10209,7 +10224,7 @@ __metadata: resolution: "@omnigraph/openapi@workspace:packages/loaders/openapi" dependencies: "@graphql-mesh/string-interpolation": "npm:^0.5.6" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@graphql-tools/utils": "npm:10.5.5" "@omnigraph/json-schema": "npm:^0.107.1" "@whatwg-node/fetch": "npm:0.9.22" @@ -10234,7 +10249,7 @@ __metadata: dependencies: "@ardatan/raml-1-parser": "npm:1.1.69" "@graphql-mesh/string-interpolation": "npm:0.5.6" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" "@omnigraph/json-schema": "npm:0.107.1" "@whatwg-node/fetch": "npm:^0.9.0" change-case: "npm:4.1.2" @@ -10276,7 +10291,7 @@ __metadata: dependencies: "@graphql-mesh/cross-helpers": "npm:^0.4.7" "@graphql-mesh/types": "npm:^0.102.7" - "@graphql-tools/delegate": "npm:^10.0.23" + "@graphql-tools/delegate": "npm:^10.0.26" tuql: "npm:^1.7.0" peerDependencies: graphql: "*" @@ -23131,7 +23146,7 @@ __metadata: languageName: node linkType: hard -"graphql-jit@npm:0.8.7": +"graphql-jit@npm:^0.8.7": version: 0.8.7 resolution: "graphql-jit@npm:0.8.7" dependencies: @@ -39172,16 +39187,7 @@ __metadata: languageName: node linkType: hard -"yaml@npm:^2.2.2, yaml@npm:^2.3.1, yaml@npm:^2.3.2, yaml@npm:^2.3.4": - version: 2.6.0 - resolution: "yaml@npm:2.6.0" - bin: - yaml: bin.mjs - checksum: 10c0/9e74cdb91cc35512a1c41f5ce509b0e93cc1d00eff0901e4ba831ee75a71ddf0845702adcd6f4ee6c811319eb9b59653248462ab94fa021ab855543a75396ceb - languageName: node - linkType: hard - -"yaml@npm:~2.5.0": +"yaml@npm:^2.2.2, yaml@npm:^2.3.1, yaml@npm:^2.3.2, yaml@npm:^2.3.4, yaml@npm:~2.5.0": version: 2.5.1 resolution: "yaml@npm:2.5.1" bin: