diff --git a/.changeset/@graphql-mesh_apollo-link-4263-dependencies.md b/.changeset/@graphql-mesh_apollo-link-4263-dependencies.md new file mode 100644 index 0000000000000..fdba9e906bda8 --- /dev/null +++ b/.changeset/@graphql-mesh_apollo-link-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/apollo-link": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_cli-4263-dependencies.md b/.changeset/@graphql-mesh_cli-4263-dependencies.md new file mode 100644 index 0000000000000..3822902175c90 --- /dev/null +++ b/.changeset/@graphql-mesh_cli-4263-dependencies.md @@ -0,0 +1,17 @@ +--- +"@graphql-mesh/cli": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-codegen/core@2.6.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/core/v/2.6.1) (was `2.6.0`, in `dependencies`) +- Updated dependency [`@graphql-codegen/typescript@2.7.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/2.7.3) (was `2.7.2`, in `dependencies`) +- Updated dependency [`@graphql-codegen/typescript-operations@2.5.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript-operations/v/2.5.3) (was `2.5.2`, in `dependencies`) +- Updated dependency [`@graphql-codegen/typed-document-node@2.3.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typed-document-node/v/2.3.3) (was `2.3.2`, in `dependencies`) +- Updated dependency [`@graphql-codegen/typescript-resolvers@2.7.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript-resolvers/v/2.7.3) (was `2.7.2`, in `dependencies`) +- Updated dependency [`@graphql-tools/code-file-loader@7.3.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/7.3.2) (was `7.3.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) +- Updated dependency [`@graphql-tools/load@7.7.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/7.7.3) (was `7.7.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/graphql-file-loader@7.5.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/7.5.1) (was `7.5.0`, in `dependencies`) +- Updated dependency [`@graphql-tools/wrap@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`graphql-ws@5.10.0` ↗︎](https://www.npmjs.com/package/graphql-ws/v/5.10.0) (was `5.9.1`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_config-4263-dependencies.md b/.changeset/@graphql-mesh_config-4263-dependencies.md new file mode 100644 index 0000000000000..62a23e43d28ca --- /dev/null +++ b/.changeset/@graphql-mesh_config-4263-dependencies.md @@ -0,0 +1,10 @@ +--- +"@graphql-mesh/config": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) +- Updated dependency [`@graphql-tools/load@7.7.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/7.7.3) (was `7.7.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/code-file-loader@7.3.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/7.3.2) (was `7.3.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/graphql-file-loader@7.5.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/7.5.1) (was `7.5.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_container-4263-dependencies.md b/.changeset/@graphql-mesh_container-4263-dependencies.md new file mode 100644 index 0000000000000..033d81507ec91 --- /dev/null +++ b/.changeset/@graphql-mesh_container-4263-dependencies.md @@ -0,0 +1,8 @@ +--- +"@graphql-mesh/container": patch +--- + +dependencies updates: + +- Added dependency [`@graphql-mesh/plugin-mock@0.0.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.0.0) (to `dependencies`) +- Removed dependency [`@graphql-mesh/transform-mock@0.15.6` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-mock/v/0.15.6) (from `dependencies`) diff --git a/.changeset/@graphql-mesh_cross-helpers-4263-dependencies.md b/.changeset/@graphql-mesh_cross-helpers-4263-dependencies.md new file mode 100644 index 0000000000000..d8d829818e82c --- /dev/null +++ b/.changeset/@graphql-mesh_cross-helpers-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/cross-helpers": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_graphql-4263-dependencies.md b/.changeset/@graphql-mesh_graphql-4263-dependencies.md new file mode 100644 index 0000000000000..ffe387988209c --- /dev/null +++ b/.changeset/@graphql-mesh_graphql-4263-dependencies.md @@ -0,0 +1,10 @@ +--- +"@graphql-mesh/graphql": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/url-loader@7.13.4` ↗︎](https://www.npmjs.com/package/@graphql-tools/url-loader/v/7.13.4) (was `7.13.3`, in `dependencies`) +- Updated dependency [`@graphql-tools/wrap@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_jit-executor-4263-dependencies.md b/.changeset/@graphql-mesh_jit-executor-4263-dependencies.md new file mode 100644 index 0000000000000..311f8664192cc --- /dev/null +++ b/.changeset/@graphql-mesh_jit-executor-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/jit-executor": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_json-schema-4263-dependencies.md b/.changeset/@graphql-mesh_json-schema-4263-dependencies.md new file mode 100644 index 0000000000000..77ae74af075bb --- /dev/null +++ b/.changeset/@graphql-mesh_json-schema-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/json-schema": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_merger-bare-4263-dependencies.md b/.changeset/@graphql-mesh_merger-bare-4263-dependencies.md new file mode 100644 index 0000000000000..0eab6ad069df8 --- /dev/null +++ b/.changeset/@graphql-mesh_merger-bare-4263-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/merger-bare": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/wrap@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/schema@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_merger-federation-4263-dependencies.md b/.changeset/@graphql-mesh_merger-federation-4263-dependencies.md new file mode 100644 index 0000000000000..5076eb5970547 --- /dev/null +++ b/.changeset/@graphql-mesh_merger-federation-4263-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/merger-federation": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/wrap@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/schema@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_merger-stitching-4263-dependencies.md b/.changeset/@graphql-mesh_merger-stitching-4263-dependencies.md new file mode 100644 index 0000000000000..0b2a110d08456 --- /dev/null +++ b/.changeset/@graphql-mesh_merger-stitching-4263-dependencies.md @@ -0,0 +1,11 @@ +--- +"@graphql-mesh/merger-stitching": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/stitch@8.7.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitch/v/8.7.2) (was `8.7.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/stitching-directives@2.3.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitching-directives/v/2.3.2) (was `2.3.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/schema@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_mongoose-4263-dependencies.md b/.changeset/@graphql-mesh_mongoose-4263-dependencies.md new file mode 100644 index 0000000000000..2e8c333df592e --- /dev/null +++ b/.changeset/@graphql-mesh_mongoose-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/mongoose": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/stitching-directives@2.3.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitching-directives/v/2.3.2) (was `2.3.1`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_mysql-4263-dependencies.md b/.changeset/@graphql-mesh_mysql-4263-dependencies.md new file mode 100644 index 0000000000000..d181e6249d24e --- /dev/null +++ b/.changeset/@graphql-mesh_mysql-4263-dependencies.md @@ -0,0 +1,8 @@ +--- +"@graphql-mesh/mysql": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_neo4j-4263-dependencies.md b/.changeset/@graphql-mesh_neo4j-4263-dependencies.md new file mode 100644 index 0000000000000..2c1fb60d677aa --- /dev/null +++ b/.changeset/@graphql-mesh_neo4j-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/neo4j": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_odata-4263-dependencies.md b/.changeset/@graphql-mesh_odata-4263-dependencies.md new file mode 100644 index 0000000000000..b0978ccb2123f --- /dev/null +++ b/.changeset/@graphql-mesh_odata-4263-dependencies.md @@ -0,0 +1,8 @@ +--- +"@graphql-mesh/odata": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_openapi-4263-dependencies.md b/.changeset/@graphql-mesh_openapi-4263-dependencies.md new file mode 100644 index 0000000000000..4ae46e37a0f8e --- /dev/null +++ b/.changeset/@graphql-mesh_openapi-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/openapi": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_plugin-rate-limit-4263-dependencies.md b/.changeset/@graphql-mesh_plugin-rate-limit-4263-dependencies.md new file mode 100644 index 0000000000000..b2cf185e72bb5 --- /dev/null +++ b/.changeset/@graphql-mesh_plugin-rate-limit-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/plugin-rate-limit": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_postgraphile-4263-dependencies.md b/.changeset/@graphql-mesh_postgraphile-4263-dependencies.md new file mode 100644 index 0000000000000..88d01eab9f098 --- /dev/null +++ b/.changeset/@graphql-mesh_postgraphile-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/postgraphile": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_runtime-4263-dependencies.md b/.changeset/@graphql-mesh_runtime-4263-dependencies.md new file mode 100644 index 0000000000000..67793a5100e94 --- /dev/null +++ b/.changeset/@graphql-mesh_runtime-4263-dependencies.md @@ -0,0 +1,10 @@ +--- +"@graphql-mesh/runtime": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/batch-delegate@8.3.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/batch-delegate/v/8.3.2) (was `8.3.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/wrap@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_soap-4263-dependencies.md b/.changeset/@graphql-mesh_soap-4263-dependencies.md new file mode 100644 index 0000000000000..27e71c25de2e8 --- /dev/null +++ b/.changeset/@graphql-mesh_soap-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/soap": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_store-4263-dependencies.md b/.changeset/@graphql-mesh_store-4263-dependencies.md new file mode 100644 index 0000000000000..080ed81deb1c6 --- /dev/null +++ b/.changeset/@graphql-mesh_store-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/store": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_thrift-4263-dependencies.md b/.changeset/@graphql-mesh_thrift-4263-dependencies.md new file mode 100644 index 0000000000000..e111e1a8980f1 --- /dev/null +++ b/.changeset/@graphql-mesh_thrift-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/thrift": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-cache-4263-dependencies.md b/.changeset/@graphql-mesh_transform-cache-4263-dependencies.md new file mode 100644 index 0000000000000..7f182c21ace45 --- /dev/null +++ b/.changeset/@graphql-mesh_transform-cache-4263-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/transform-cache": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/resolvers-composition@6.5.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/resolvers-composition/v/6.5.2) (was `6.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/schema@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-encapsulate-4263-dependencies.md b/.changeset/@graphql-mesh_transform-encapsulate-4263-dependencies.md new file mode 100644 index 0000000000000..dea1f49ecb79b --- /dev/null +++ b/.changeset/@graphql-mesh_transform-encapsulate-4263-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/transform-encapsulate": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/wrap@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-extend-4263-dependencies.md b/.changeset/@graphql-mesh_transform-extend-4263-dependencies.md new file mode 100644 index 0000000000000..60efa079f0ee5 --- /dev/null +++ b/.changeset/@graphql-mesh_transform-extend-4263-dependencies.md @@ -0,0 +1,11 @@ +--- +"@graphql-mesh/transform-extend": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/load@7.7.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/7.7.3) (was `7.7.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/code-file-loader@7.3.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/7.3.2) (was `7.3.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/graphql-file-loader@7.5.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/7.5.1) (was `7.5.0`, in `dependencies`) +- Updated dependency [`@graphql-tools/schema@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-federation-4263-dependencies.md b/.changeset/@graphql-mesh_transform-federation-4263-dependencies.md new file mode 100644 index 0000000000000..83667ca9e7119 --- /dev/null +++ b/.changeset/@graphql-mesh_transform-federation-4263-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/transform-federation": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) +- Updated dependency [`@graphql-tools/stitching-directives@2.3.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitching-directives/v/2.3.2) (was `2.3.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-filter-schema-4263-dependencies.md b/.changeset/@graphql-mesh_transform-filter-schema-4263-dependencies.md new file mode 100644 index 0000000000000..4cac1c384c19a --- /dev/null +++ b/.changeset/@graphql-mesh_transform-filter-schema-4263-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/transform-filter-schema": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/wrap@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-hoist-field-4263-dependencies.md b/.changeset/@graphql-mesh_transform-hoist-field-4263-dependencies.md new file mode 100644 index 0000000000000..ada798eb3f18f --- /dev/null +++ b/.changeset/@graphql-mesh_transform-hoist-field-4263-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/transform-hoist-field": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/wrap@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-naming-convention-4263-dependencies.md b/.changeset/@graphql-mesh_transform-naming-convention-4263-dependencies.md new file mode 100644 index 0000000000000..0bc40cfb281fb --- /dev/null +++ b/.changeset/@graphql-mesh_transform-naming-convention-4263-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/transform-naming-convention": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/wrap@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-prefix-4263-dependencies.md b/.changeset/@graphql-mesh_transform-prefix-4263-dependencies.md new file mode 100644 index 0000000000000..ea8aca5064f43 --- /dev/null +++ b/.changeset/@graphql-mesh_transform-prefix-4263-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/transform-prefix": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/wrap@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-prune-4263-dependencies.md b/.changeset/@graphql-mesh_transform-prune-4263-dependencies.md new file mode 100644 index 0000000000000..78ebe0a81aeec --- /dev/null +++ b/.changeset/@graphql-mesh_transform-prune-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/transform-prune": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-rate-limit-4263-dependencies.md b/.changeset/@graphql-mesh_transform-rate-limit-4263-dependencies.md new file mode 100644 index 0000000000000..64d699636cc1d --- /dev/null +++ b/.changeset/@graphql-mesh_transform-rate-limit-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/transform-rate-limit": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-rename-4263-dependencies.md b/.changeset/@graphql-mesh_transform-rename-4263-dependencies.md new file mode 100644 index 0000000000000..7974c06ae5a9c --- /dev/null +++ b/.changeset/@graphql-mesh_transform-rename-4263-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/transform-rename": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/wrap@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-replace-field-4263-dependencies.md b/.changeset/@graphql-mesh_transform-replace-field-4263-dependencies.md new file mode 100644 index 0000000000000..77a6ce3ff30ce --- /dev/null +++ b/.changeset/@graphql-mesh_transform-replace-field-4263-dependencies.md @@ -0,0 +1,10 @@ +--- +"@graphql-mesh/transform-replace-field": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/code-file-loader@7.3.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/code-file-loader/v/7.3.2) (was `7.3.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/graphql-file-loader@7.5.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/7.5.1) (was `7.5.0`, in `dependencies`) +- Updated dependency [`@graphql-tools/load@7.7.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/load/v/7.7.3) (was `7.7.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-resolvers-composition-4263-dependencies.md b/.changeset/@graphql-mesh_transform-resolvers-composition-4263-dependencies.md new file mode 100644 index 0000000000000..5bb20e736903e --- /dev/null +++ b/.changeset/@graphql-mesh_transform-resolvers-composition-4263-dependencies.md @@ -0,0 +1,8 @@ +--- +"@graphql-mesh/transform-resolvers-composition": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/resolvers-composition@6.5.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/resolvers-composition/v/6.5.2) (was `6.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/schema@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/9.0.0) (was `8.5.1`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-snapshot-4263-dependencies.md b/.changeset/@graphql-mesh_transform-snapshot-4263-dependencies.md new file mode 100644 index 0000000000000..e035547f012fd --- /dev/null +++ b/.changeset/@graphql-mesh_transform-snapshot-4263-dependencies.md @@ -0,0 +1,9 @@ +--- +"@graphql-mesh/transform-snapshot": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/resolvers-composition@6.5.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/resolvers-composition/v/6.5.2) (was `6.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/schema@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/9.0.0) (was `8.5.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_transform-type-merging-4263-dependencies.md b/.changeset/@graphql-mesh_transform-type-merging-4263-dependencies.md new file mode 100644 index 0000000000000..2683662453fdc --- /dev/null +++ b/.changeset/@graphql-mesh_transform-type-merging-4263-dependencies.md @@ -0,0 +1,8 @@ +--- +"@graphql-mesh/transform-type-merging": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/stitching-directives@2.3.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitching-directives/v/2.3.2) (was `2.3.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_types-4263-dependencies.md b/.changeset/@graphql-mesh_types-4263-dependencies.md new file mode 100644 index 0000000000000..a3157034bd96f --- /dev/null +++ b/.changeset/@graphql-mesh_types-4263-dependencies.md @@ -0,0 +1,8 @@ +--- +"@graphql-mesh/types": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_urql-exchange-4263-dependencies.md b/.changeset/@graphql-mesh_urql-exchange-4263-dependencies.md new file mode 100644 index 0000000000000..8f9f522133c83 --- /dev/null +++ b/.changeset/@graphql-mesh_urql-exchange-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-mesh/urql-exchange": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@graphql-mesh_utils-4263-dependencies.md b/.changeset/@graphql-mesh_utils-4263-dependencies.md new file mode 100644 index 0000000000000..a1e593ba53bf4 --- /dev/null +++ b/.changeset/@graphql-mesh_utils-4263-dependencies.md @@ -0,0 +1,8 @@ +--- +"@graphql-mesh/utils": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/delegate@9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/9.0.0) (was `8.8.1`, in `dependencies`) +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@omnigraph_json-schema-4263-dependencies.md b/.changeset/@omnigraph_json-schema-4263-dependencies.md new file mode 100644 index 0000000000000..f3d313127f195 --- /dev/null +++ b/.changeset/@omnigraph_json-schema-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@omnigraph/json-schema": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/@omnigraph_raml-4263-dependencies.md b/.changeset/@omnigraph_raml-4263-dependencies.md new file mode 100644 index 0000000000000..d9dbe26f3dafb --- /dev/null +++ b/.changeset/@omnigraph_raml-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"@omnigraph/raml": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/.changeset/happy-doors-allow.md b/.changeset/happy-doors-allow.md new file mode 100644 index 0000000000000..787453f3b344e --- /dev/null +++ b/.changeset/happy-doors-allow.md @@ -0,0 +1,6 @@ +--- +"@graphql-mesh/plugin-mock": patch +"@graphql-mesh/types": patch +--- + +Mock Transform has been deprecated in favor of Mock plugin. diff --git a/.changeset/json-machete-4263-dependencies.md b/.changeset/json-machete-4263-dependencies.md new file mode 100644 index 0000000000000..5cc6d73f4d5a5 --- /dev/null +++ b/.changeset/json-machete-4263-dependencies.md @@ -0,0 +1,7 @@ +--- +"json-machete": patch +--- + +dependencies updates: + +- Updated dependency [`@graphql-tools/utils@8.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.9.1) (was `8.9.0`, in `dependencies`) diff --git a/examples/graphql-file-upload-example/frontend/package.json b/examples/graphql-file-upload-example/frontend/package.json index bebf9b9b3ce82..2f9c72e79c174 100644 --- a/examples/graphql-file-upload-example/frontend/package.json +++ b/examples/graphql-file-upload-example/frontend/package.json @@ -5,7 +5,7 @@ "dependencies": { "@testing-library/jest-dom": "5.16.5", "@testing-library/react": "13.3.0", - "@testing-library/user-event": "14.4.2", + "@testing-library/user-event": "14.4.3", "@apollo/client": "3.6.9", "apollo-upload-client": "17.0.0", "graphql": "16.5.0", diff --git a/examples/grpc-example/package.json b/examples/grpc-example/package.json index 02628b83b6175..532d26ecbfc1a 100644 --- a/examples/grpc-example/package.json +++ b/examples/grpc-example/package.json @@ -17,7 +17,7 @@ "@grpc/proto-loader": "0.7.0", "google-protobuf": "3.21.0", "graphql": "16.5.0", - "@grpc/grpc-js": "1.6.8" + "@grpc/grpc-js": "1.6.9" }, "devDependencies": { "concurrently": "5.3.0", diff --git a/examples/grpc-reflection-example/package.json b/examples/grpc-reflection-example/package.json index 192cbcd15e931..ab9be5e960789 100644 --- a/examples/grpc-reflection-example/package.json +++ b/examples/grpc-reflection-example/package.json @@ -17,7 +17,7 @@ "google-protobuf": "3.21.0", "graphql": "16.5.0", "grpc-node-server-reflection": "1.0.2", - "@grpc/grpc-js": "1.6.8" + "@grpc/grpc-js": "1.6.9" }, "devDependencies": { "concurrently": "5.3.0" diff --git a/examples/hello-world-esm/.meshrc.yml b/examples/hello-world-esm/.meshrc.yml index ee8ea2c9d19f7..9324bd79954b2 100644 --- a/examples/hello-world-esm/.meshrc.yml +++ b/examples/hello-world-esm/.meshrc.yml @@ -8,7 +8,7 @@ sources: method: GET path: / responseSample: greeting.json -transforms: +plugins: - mock: mocks: - apply: Query.greeting diff --git a/examples/hello-world-esm/package.json b/examples/hello-world-esm/package.json index 666a7e728feda..f4a848824fcfb 100644 --- a/examples/hello-world-esm/package.json +++ b/examples/hello-world-esm/package.json @@ -12,7 +12,7 @@ "dependencies": { "@graphql-mesh/cli": "0.75.7", "@graphql-mesh/json-schema": "0.31.0", - "@graphql-mesh/transform-mock": "0.15.6", + "@graphql-mesh/plugin-mock": "0.0.0", "graphql": "16.5.0" }, "devDependencies": { diff --git a/examples/hello-world/.meshrc.yml b/examples/hello-world/.meshrc.yml index ee8ea2c9d19f7..9324bd79954b2 100644 --- a/examples/hello-world/.meshrc.yml +++ b/examples/hello-world/.meshrc.yml @@ -8,7 +8,7 @@ sources: method: GET path: / responseSample: greeting.json -transforms: +plugins: - mock: mocks: - apply: Query.greeting diff --git a/examples/hello-world/package.json b/examples/hello-world/package.json index 133751e9a7621..0af9fbadec203 100644 --- a/examples/hello-world/package.json +++ b/examples/hello-world/package.json @@ -9,7 +9,7 @@ "dependencies": { "@graphql-mesh/cli": "0.75.7", "@graphql-mesh/json-schema": "0.31.0", - "@graphql-mesh/transform-mock": "0.15.6", + "@graphql-mesh/plugin-mock": "0.0.0", "graphql": "16.5.0" }, "devDependencies": { diff --git a/examples/json-schema-example/.meshrc.yml b/examples/json-schema-example/.meshrc.yml index f6d7064a63270..7c76ea483128b 100644 --- a/examples/json-schema-example/.meshrc.yml +++ b/examples/json-schema-example/.meshrc.yml @@ -51,6 +51,8 @@ transforms: - namingConvention: typeNames: pascalCase fieldNames: camelCase + +plugins: - mock: mocks: - apply: User.firstName diff --git a/examples/json-schema-example/package.json b/examples/json-schema-example/package.json index 546acf3e6dd73..07b4a561666ed 100644 --- a/examples/json-schema-example/package.json +++ b/examples/json-schema-example/package.json @@ -12,7 +12,7 @@ "dependencies": { "@graphql-mesh/cli": "0.75.7", "@graphql-mesh/json-schema": "0.31.0", - "@graphql-mesh/transform-mock": "0.15.6", + "@graphql-mesh/plugin-mock": "0.0.0", "graphql": "16.5.0" }, "devDependencies": { diff --git a/examples/mongoose-example/package.json b/examples/mongoose-example/package.json index cecf782701bdf..892d092d95d5e 100644 --- a/examples/mongoose-example/package.json +++ b/examples/mongoose-example/package.json @@ -10,7 +10,7 @@ "@graphql-mesh/cli": "0.75.7", "@graphql-mesh/mongoose": "0.10.76", "graphql": "16.5.0", - "mongoose": "6.5.1" + "mongoose": "6.5.2" }, "devDependencies": { "jest": "28.1.3" diff --git a/examples/nextjs-apollo-example/package.json b/examples/nextjs-apollo-example/package.json index 92250cfd4ccc1..97dde1feec45a 100644 --- a/examples/nextjs-apollo-example/package.json +++ b/examples/nextjs-apollo-example/package.json @@ -22,7 +22,7 @@ "react-dom": "18.2.0" }, "devDependencies": { - "@types/react": "18.0.16", + "@types/react": "18.0.17", "typescript": "4.7.4" } } diff --git a/examples/nextjs-sdk-example/package.json b/examples/nextjs-sdk-example/package.json index e2889d66e9fef..afeb8242dce2e 100644 --- a/examples/nextjs-sdk-example/package.json +++ b/examples/nextjs-sdk-example/package.json @@ -23,7 +23,7 @@ "react-dom": "18.2.0" }, "devDependencies": { - "@types/react": "18.0.16", + "@types/react": "18.0.17", "typescript": "4.7.4" } } diff --git a/examples/openapi-react-weatherbit/package.json b/examples/openapi-react-weatherbit/package.json index b38c206e3db69..6c10ad9e2386a 100644 --- a/examples/openapi-react-weatherbit/package.json +++ b/examples/openapi-react-weatherbit/package.json @@ -9,11 +9,11 @@ }, "devDependencies": { "@graphql-mesh/cli": "0.75.7", - "@types/react": "18.0.16", + "@types/react": "18.0.17", "@types/react-dom": "18.0.6", "@vitejs/plugin-react": "2.0.0", "typescript": "4.7.4", - "vite": "3.0.4" + "vite": "3.0.5" }, "scripts": { "build:mesh": "yarn mesh build", diff --git a/package.json b/package.json index 4a98b839c7afa..eef92fa9b762f 100644 --- a/package.json +++ b/package.json @@ -34,9 +34,9 @@ "@changesets/changelog-github": "0.4.6", "@theguild/prettier-config": "0.0.2", "@types/jest": "28.1.6", - "@types/node": "16.11.47", - "@typescript-eslint/eslint-plugin": "5.32.0", - "@typescript-eslint/parser": "5.32.0", + "@types/node": "18.6.5", + "@typescript-eslint/eslint-plugin": "5.33.0", + "@typescript-eslint/parser": "5.33.0", "babel-jest": "28.1.3", "bob-the-bundler": "1.7.3", "eslint": "8.21.0", @@ -89,7 +89,7 @@ }, "resolutions": { "graphql": "16.5.0", - "undici": "5.8.1", + "undici": "5.8.2", "uuid": "7.0.3" } } diff --git a/packages/apollo-link/package.json b/packages/apollo-link/package.json index 38dc5d3adb796..2857da396d201 100644 --- a/packages/apollo-link/package.json +++ b/packages/apollo-link/package.json @@ -25,7 +25,7 @@ } }, "dependencies": { - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "tslib": "^2.4.0" }, "devDependencies": { diff --git a/packages/cli/package.json b/packages/cli/package.json index 03bad860f752f..616b3e4f995d5 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -42,23 +42,23 @@ "dependencies": { "ajv": "8.11.0", "cosmiconfig": "7.0.1", - "@graphql-codegen/core": "2.6.0", - "@graphql-codegen/typescript": "2.7.2", + "@graphql-codegen/core": "2.6.1", + "@graphql-codegen/typescript": "2.7.3", "@graphql-codegen/typescript-generic-sdk": "3.0.0", - "@graphql-codegen/typescript-operations": "2.5.2", - "@graphql-codegen/typed-document-node": "2.3.2", + "@graphql-codegen/typescript-operations": "2.5.3", + "@graphql-codegen/typed-document-node": "2.3.3", "@graphql-mesh/config": "5.1.5", - "@graphql-codegen/typescript-resolvers": "2.7.2", + "@graphql-codegen/typescript-resolvers": "2.7.3", "@graphql-mesh/cross-helpers": "0.2.0", "@graphql-mesh/runtime": "0.41.7", "@graphql-mesh/utils": "0.37.7", "@graphql-mesh/store": "0.8.26", "@graphql-mesh/types": "0.78.6", - "@graphql-tools/code-file-loader": "7.3.1", - "@graphql-tools/utils": "8.9.0", - "@graphql-tools/load": "7.7.1", - "@graphql-tools/graphql-file-loader": "7.5.0", - "@graphql-tools/wrap": "8.5.1", + "@graphql-tools/code-file-loader": "7.3.2", + "@graphql-tools/utils": "8.9.1", + "@graphql-tools/load": "7.7.3", + "@graphql-tools/graphql-file-loader": "7.5.1", + "@graphql-tools/wrap": "9.0.0", "@graphql-yoga/node": "^2.4.0", "cookie-parser": "1.4.6", "cors": "2.8.5", @@ -66,7 +66,7 @@ "dnscache": "1.0.2", "graphql-import-node": "0.0.5", "express": "4.18.1", - "graphql-ws": "5.9.1", + "graphql-ws": "5.10.0", "change-case": "4.1.2", "json-bigint-patch": "0.0.8", "json5": "2.2.1", diff --git a/packages/config/package.json b/packages/config/package.json index 635da75ab90d1..248f7762fd2ca 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -36,10 +36,10 @@ "@graphql-mesh/types": "0.78.6", "@graphql-mesh/store": "0.8.26", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/utils": "8.9.0", - "@graphql-tools/load": "7.7.1", - "@graphql-tools/code-file-loader": "7.3.1", - "@graphql-tools/graphql-file-loader": "7.5.0", + "@graphql-tools/utils": "8.9.1", + "@graphql-tools/load": "7.7.3", + "@graphql-tools/code-file-loader": "7.3.2", + "@graphql-tools/graphql-file-loader": "7.5.1", "@whatwg-node/fetch": "^0.2.7", "fetchache": "0.1.2", "param-case": "3.0.4", diff --git a/packages/config/src/process.ts b/packages/config/src/process.ts index f66a5266b5b91..6c89e02a2c495 100644 --- a/packages/config/src/process.ts +++ b/packages/config/src/process.ts @@ -310,7 +310,7 @@ export async function processConfig( Promise.all( config.plugins?.map(async (p, pluginIndex) => { const pluginName = Object.keys(p)[0].toString(); - const pluginConfig = p[pluginName]; + const pluginConfig: any = p[pluginName]; if (ENVELOP_CORE_PLUGINS_MAP[pluginName] != null) { const { importName, moduleName, pluginFactory } = ENVELOP_CORE_PLUGINS_MAP[pluginName]; if (options.generateCode) { @@ -340,6 +340,8 @@ export async function processConfig( logger: logger.child(${JSON.stringify(pluginName)}), cache, pubsub, + baseDir, + importFn, })`); } } else { @@ -360,6 +362,8 @@ export async function processConfig( logger: logger.child(pluginName), cache, pubsub, + baseDir: dir, + importFn, }); }) || [] ), diff --git a/packages/container/package.json b/packages/container/package.json index c735f693e4601..51b122aa7ca11 100644 --- a/packages/container/package.json +++ b/packages/container/package.json @@ -22,7 +22,7 @@ "@graphql-mesh/odata": "0.18.9", "@graphql-mesh/soap": "0.12.7", "@graphql-mesh/postgraphile": "0.20.39", - "@graphql-mesh/transform-mock": "0.15.6", + "@graphql-mesh/plugin-mock": "0.0.0", "@graphql-mesh/transform-prefix": "0.11.62", "@graphql-mesh/transform-encapsulate": "0.3.74", "@graphql-mesh/transform-cache": "0.12.28", diff --git a/packages/cross-helpers/package.json b/packages/cross-helpers/package.json index 453e4f299a09c..77c96adf0d0cb 100644 --- a/packages/cross-helpers/package.json +++ b/packages/cross-helpers/package.json @@ -15,7 +15,7 @@ "react-native": "react-native.js", "types": "index.d.ts", "dependencies": { - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "react-native-fs": "2.20.0", "react-native-path": "0.0.5", "path-browserify": "1.0.1" diff --git a/packages/handlers/graphql/package.json b/packages/handlers/graphql/package.json index fbf98cd7fed50..1af3fb30726d3 100644 --- a/packages/handlers/graphql/package.json +++ b/packages/handlers/graphql/package.json @@ -33,10 +33,10 @@ "@graphql-mesh/string-interpolation": "0.3.0", "@graphql-mesh/utils": "0.37.7", "@graphql-mesh/types": "0.78.6", - "@graphql-tools/url-loader": "7.13.3", - "@graphql-tools/wrap": "8.5.1", - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/url-loader": "7.13.4", + "@graphql-tools/wrap": "9.0.0", + "@graphql-tools/delegate": "9.0.0", + "@graphql-tools/utils": "8.9.1", "lodash.get": "4.4.2", "tslib": "^2.4.0" }, diff --git a/packages/handlers/json-schema/package.json b/packages/handlers/json-schema/package.json index dbdd88f1c788a..8f07e102a6094 100644 --- a/packages/handlers/json-schema/package.json +++ b/packages/handlers/json-schema/package.json @@ -33,7 +33,7 @@ "@graphql-mesh/utils": "0.37.7", "@graphql-mesh/store": "0.8.26", "@graphql-mesh/string-interpolation": "0.3.0", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "@graphql-mesh/cross-helpers": "0.2.0", "graphql-compose": "9.0.8", "@omnigraph/json-schema": "0.26.0", diff --git a/packages/handlers/mongoose/package.json b/packages/handlers/mongoose/package.json index 25b911de96a3d..2167d414e50a0 100644 --- a/packages/handlers/mongoose/package.json +++ b/packages/handlers/mongoose/package.json @@ -29,7 +29,7 @@ "mongoose": "*" }, "devDependencies": { - "mongoose": "6.5.1" + "mongoose": "6.5.2" }, "dependencies": { "@graphql-mesh/types": "0.78.6", @@ -38,7 +38,7 @@ "graphql-compose-mongoose": "9.7.1", "graphql-compose-connection": "8.2.1", "graphql-compose-pagination": "8.3.0", - "@graphql-tools/stitching-directives": "2.3.1", + "@graphql-tools/stitching-directives": "2.3.2", "tslib": "^2.4.0" }, "publishConfig": { diff --git a/packages/handlers/mysql/package.json b/packages/handlers/mysql/package.json index 90739cf5a2d91..27985d998b488 100644 --- a/packages/handlers/mysql/package.json +++ b/packages/handlers/mysql/package.json @@ -42,8 +42,8 @@ "mysql-utilities": "1.1.4", "graphql-scalars": "1.17.0", "tslib": "^2.4.0", - "@graphql-tools/utils": "8.9.0", - "@graphql-tools/delegate": "8.8.1" + "@graphql-tools/utils": "8.9.1", + "@graphql-tools/delegate": "9.0.0" }, "devDependencies": { "@types/graphql-fields": "1.3.4", diff --git a/packages/handlers/neo4j/package.json b/packages/handlers/neo4j/package.json index c957846060fc6..8685ff0060246 100644 --- a/packages/handlers/neo4j/package.json +++ b/packages/handlers/neo4j/package.json @@ -39,7 +39,7 @@ "@graphql-mesh/types": "0.78.6", "neo4j-driver": "4.4.7", "tslib": "^2.4.0", - "@graphql-tools/utils": "8.9.0" + "@graphql-tools/utils": "8.9.1" }, "publishConfig": { "access": "public", diff --git a/packages/handlers/odata/package.json b/packages/handlers/odata/package.json index 2e0e9b8bafa29..c88332bbe4a90 100644 --- a/packages/handlers/odata/package.json +++ b/packages/handlers/odata/package.json @@ -37,7 +37,7 @@ "@graphql-mesh/store": "0.8.26", "@graphql-mesh/string-interpolation": "0.3.0", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "http-string-parser": "0.0.6", "@whatwg-node/fetch": "^0.2.7", "dataloader": "2.1.0", @@ -48,7 +48,7 @@ "pascal-case": "3.1.2", "url-join": "4.0.1", "tslib": "^2.4.0", - "@graphql-tools/delegate": "8.8.1" + "@graphql-tools/delegate": "9.0.0" }, "publishConfig": { "access": "public", diff --git a/packages/handlers/openapi/package.json b/packages/handlers/openapi/package.json index 03814980de311..567b3c88de04c 100644 --- a/packages/handlers/openapi/package.json +++ b/packages/handlers/openapi/package.json @@ -38,7 +38,7 @@ "@graphql-mesh/store": "0.8.26", "@graphql-mesh/string-interpolation": "0.3.0", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "@whatwg-node/fetch": "^0.2.7", "deep-equal": "2.0.5", "form-urlencoded": "6.1.0", diff --git a/packages/handlers/postgraphile/package.json b/packages/handlers/postgraphile/package.json index e8a0606148576..5db335768cc80 100644 --- a/packages/handlers/postgraphile/package.json +++ b/packages/handlers/postgraphile/package.json @@ -37,7 +37,7 @@ "postgraphile": "4.12.11", "pg": "^8.6.0", "tslib": "^2.4.0", - "@graphql-tools/delegate": "8.8.1" + "@graphql-tools/delegate": "9.0.0" }, "publishConfig": { "access": "public", diff --git a/packages/handlers/soap/package.json b/packages/handlers/soap/package.json index 85a55d644d109..c7afdd51aadb0 100644 --- a/packages/handlers/soap/package.json +++ b/packages/handlers/soap/package.json @@ -32,7 +32,7 @@ "@graphql-mesh/types": "0.78.6", "@graphql-mesh/store": "0.8.26", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "graphql-scalars": "1.17.0", "soap": "0.45.0", "tslib": "^2.4.0" diff --git a/packages/handlers/thrift/package.json b/packages/handlers/thrift/package.json index 2c6c0942f6a93..ac03914b531d0 100644 --- a/packages/handlers/thrift/package.json +++ b/packages/handlers/thrift/package.json @@ -40,7 +40,7 @@ "@graphql-mesh/store": "0.8.26", "@graphql-mesh/string-interpolation": "0.3.0", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "graphql-scalars": "1.17.0", "url-join": "4.0.1", "thrift": "0.16.0", diff --git a/packages/jit-executor/package.json b/packages/jit-executor/package.json index fec6344321101..a9dcb3c38ff88 100644 --- a/packages/jit-executor/package.json +++ b/packages/jit-executor/package.json @@ -28,7 +28,7 @@ } }, "dependencies": { - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "graphql-jit": "0.7.4", "@graphql-mesh/utils": "0.37.7", "@graphql-mesh/types": "0.78.6", diff --git a/packages/json-machete/package.json b/packages/json-machete/package.json index b29b7c2cb0993..03ef283a9e8b1 100644 --- a/packages/json-machete/package.json +++ b/packages/json-machete/package.json @@ -31,7 +31,7 @@ "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", "@graphql-mesh/cross-helpers": "0.2.0", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "url-join": "4.0.1", "to-json-schema": "0.2.5", "tslib": "^2.4.0" diff --git a/packages/loaders/json-schema/package.json b/packages/loaders/json-schema/package.json index d2932cd4c3aa4..7d5d818ab474d 100644 --- a/packages/loaders/json-schema/package.json +++ b/packages/loaders/json-schema/package.json @@ -38,7 +38,7 @@ "@graphql-mesh/types": "0.78.6", "@graphql-mesh/string-interpolation": "0.3.0", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "to-json-schema": "0.2.5", "graphql-compose": "9.0.8", "graphql-scalars": "1.17.0", diff --git a/packages/loaders/openapi/package.json b/packages/loaders/openapi/package.json index 27c77b599b34d..893644c87badc 100644 --- a/packages/loaders/openapi/package.json +++ b/packages/loaders/openapi/package.json @@ -40,7 +40,7 @@ }, "devDependencies": { "@whatwg-node/fetch": "0.2.8", - "@graphql-tools/utils": "8.9.0" + "@graphql-tools/utils": "8.9.1" }, "publishConfig": { "access": "public", diff --git a/packages/loaders/raml/package.json b/packages/loaders/raml/package.json index 7b7063cd08622..8034ea82d47fa 100644 --- a/packages/loaders/raml/package.json +++ b/packages/loaders/raml/package.json @@ -36,7 +36,7 @@ "@graphql-mesh/cross-helpers": "0.2.0", "@graphql-mesh/utils": "0.37.7", "@graphql-mesh/string-interpolation": "0.3.0", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "tslib": "^2.4.0", "change-case": "4.1.2" }, diff --git a/packages/mergers/bare/package.json b/packages/mergers/bare/package.json index 020852bd026b1..198f004f410d1 100644 --- a/packages/mergers/bare/package.json +++ b/packages/mergers/bare/package.json @@ -30,9 +30,9 @@ "dependencies": { "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/wrap": "8.5.1", - "@graphql-tools/schema": "8.5.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/wrap": "9.0.0", + "@graphql-tools/schema": "9.0.0", + "@graphql-tools/utils": "8.9.1", "tslib": "^2.4.0" }, "publishConfig": { diff --git a/packages/mergers/federation/package.json b/packages/mergers/federation/package.json index 7a1c9b1220f59..aa84cb5ea76cd 100644 --- a/packages/mergers/federation/package.json +++ b/packages/mergers/federation/package.json @@ -29,12 +29,12 @@ }, "dependencies": { "@graphql-mesh/types": "0.78.6", - "@graphql-tools/wrap": "8.5.1", + "@graphql-tools/wrap": "9.0.0", "@apollo/gateway": "2.0.5", - "@graphql-tools/schema": "8.5.1", + "@graphql-tools/schema": "9.0.0", "@graphql-mesh/cross-helpers": "0.2.0", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "@graphql-mesh/store": "0.8.26", "tslib": "^2.4.0" }, diff --git a/packages/mergers/stitching/package.json b/packages/mergers/stitching/package.json index 715ff138b86d0..2eb64e6fbb0df 100644 --- a/packages/mergers/stitching/package.json +++ b/packages/mergers/stitching/package.json @@ -29,13 +29,13 @@ }, "dependencies": { "@graphql-mesh/types": "0.78.6", - "@graphql-tools/stitch": "8.7.1", + "@graphql-tools/stitch": "8.7.2", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/stitching-directives": "2.3.1", - "@graphql-tools/schema": "8.5.1", + "@graphql-tools/delegate": "9.0.0", + "@graphql-tools/stitching-directives": "2.3.2", + "@graphql-tools/schema": "9.0.0", "@graphql-mesh/store": "0.8.26", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "tslib": "^2.4.0" }, "publishConfig": { diff --git a/packages/transforms/mock/package.json b/packages/plugins/mock/package.json similarity index 71% rename from packages/transforms/mock/package.json rename to packages/plugins/mock/package.json index f55f47033e9b8..55b563a0b7535 100644 --- a/packages/transforms/mock/package.json +++ b/packages/plugins/mock/package.json @@ -1,6 +1,6 @@ { - "name": "@graphql-mesh/transform-mock", - "version": "0.15.6", + "name": "@graphql-mesh/plugin-mock", + "version": "0.0.0", "sideEffects": false, "main": "dist/index.js", "module": "dist/index.mjs", @@ -22,26 +22,29 @@ "repository": { "type": "git", "url": "Urigo/graphql-mesh", - "directory": "packages/transforms/mock" + "directory": "packages/plugins/mock" }, "peerDependencies": { "graphql": "*" }, - "devDependencies": { - "@types/faker": "5.5.9" - }, "dependencies": { "@graphql-mesh/cross-helpers": "0.2.0", "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", "@graphql-mesh/string-interpolation": "0.3.0", - "@graphql-tools/utils": "8.9.0", - "@graphql-tools/mock": "8.7.1", - "@graphql-tools/schema": "8.5.1", + "@graphql-tools/utils": "8.9.1", + "@graphql-tools/mock": "8.7.2", + "@graphql-tools/schema": "9.0.0", "faker": "5.5.3", "graphql-scalars": "1.17.0", + "@envelop/core": "^2.3.2", "tslib": "^2.4.0" }, + "devDependencies": { + "@types/faker": "5.5.9", + "@envelop/core": "2.4.2", + "@graphql-mesh/cache-localforage": "0.6.23" + }, "publishConfig": { "access": "public", "directory": "dist" diff --git a/packages/plugins/mock/src/index.ts b/packages/plugins/mock/src/index.ts new file mode 100644 index 0000000000000..eb51abb5fa93b --- /dev/null +++ b/packages/plugins/mock/src/index.ts @@ -0,0 +1,146 @@ +import { MeshPluginOptions, YamlConfig } from '@graphql-mesh/types'; +import { Plugin } from '@envelop/core'; +import faker from 'faker'; +import { mocks as graphqlScalarsMocks } from 'graphql-scalars'; +import { addMocksToSchema, createMockStore, IMocks } from '@graphql-tools/mock'; +import { loadFromModuleExportExpression } from '@graphql-mesh/utils'; +import { getInterpolatedStringFactory } from '@graphql-mesh/string-interpolation'; +import { GraphQLResolveInfo, GraphQLFieldResolver, GraphQLSchema, execute } from 'graphql'; + +const mockedSchemas = new WeakSet(); + +// eslint-disable-next-line @typescript-eslint/ban-types +export default function useMock(config: MeshPluginOptions): Plugin<{}> { + const configIf = config != null && 'if' in config ? config.if : true; + + if (configIf) { + return { + onSchemaChange({ schema, replaceSchema }) { + if (mockedSchemas.has(schema)) { + return; + } + const mocks: IMocks = { + ...graphqlScalarsMocks, + }; + const resolvers: any = {}; + const typeMap = schema.getTypeMap(); + for (const typeName in typeMap) { + const type = typeMap[typeName]; + const examples = type.extensions.examples as any[]; + if (examples?.length) { + mocks[typeName] = () => examples[Math.floor(Math.random() * examples.length)]; + } + } + if (config?.mocks?.length) { + for (const fieldConfig of config.mocks) { + const fieldConfigIf = 'if' in fieldConfig ? fieldConfig.if : true; + if (fieldConfigIf) { + const [typeName, fieldName] = fieldConfig.apply.split('.'); + if (fieldName) { + if (fieldConfig.faker) { + let fakerFn: Function; // eslint-disable-line + const [service, method] = fieldConfig.faker.split('.'); + if (service in faker) { + fakerFn = () => (faker as any)[service][method](); + } else { + fakerFn = () => faker.fake(fieldConfig.faker || ''); + } + resolvers[typeName] = resolvers[typeName] || {}; + resolvers[typeName][fieldName] = fakerFn; + } else if (fieldConfig.custom) { + const exportedVal$ = loadFromModuleExportExpression(fieldConfig.custom, { + cwd: config.baseDir, + defaultExportName: 'default', + importFn: config.importFn, + }); + resolvers[typeName] = resolvers[typeName] || {}; + resolvers[typeName][fieldName] = (root: any, args: any, context: any, info: GraphQLResolveInfo) => { + context = context || {}; + context.mockStore = store; + return exportedVal$.then(exportedVal => + typeof exportedVal === 'function' ? exportedVal(root, args, context, info) : exportedVal + ); + }; + } else if ('length' in fieldConfig) { + resolvers[typeName] = resolvers[typeName] || {}; + resolvers[typeName][fieldName] = () => new Array(fieldConfig.length).fill({}); + } else if ('updateStore' in fieldConfig) { + const getFromStoreKeyFactory = getInterpolatedStringFactory(fieldConfig.store.key); + const updateStoreFactories = fieldConfig.updateStore.map(updateStoreConfig => ({ + updateStoreConfig, + keyFactory: getInterpolatedStringFactory(updateStoreConfig.key), + valueFactory: getInterpolatedStringFactory(updateStoreConfig.value), + })); + resolvers[typeName] = resolvers[typeName] || {}; + resolvers[typeName][fieldName] = (root: any, args: any, context: any, info: GraphQLResolveInfo) => { + const resolverData = { root, args, context, info, random: Date.now().toString(), env: process.env }; + updateStoreFactories.forEach(({ updateStoreConfig, keyFactory, valueFactory }) => { + const key = keyFactory(resolverData); + const value = valueFactory(resolverData); + store.set(updateStoreConfig.type, key, updateStoreConfig.fieldName, value); + }); + const key = getFromStoreKeyFactory(resolverData); + return store.get(fieldConfig.store.type, key, fieldConfig.store.fieldName); + }; + } else if ('store' in fieldConfig) { + const keyFactory = getInterpolatedStringFactory(fieldConfig.store.key); + resolvers[typeName] = resolvers[typeName] || {}; + resolvers[typeName][fieldName] = (root: any, args: any, context: any, info: GraphQLResolveInfo) => { + const key = keyFactory({ root, args, context, info, env: process.env }); + return store.get(fieldConfig.store.type, key, fieldConfig.store.fieldName); + }; + } + } else { + if (fieldConfig.faker) { + let fakerFn: GraphQLFieldResolver; + const [service, method] = fieldConfig.faker.split('.'); + if (service in faker) { + fakerFn = () => (faker as any)[service][method](); + } else { + fakerFn = () => faker.fake(fieldConfig.faker || ''); + } + mocks[typeName] = fakerFn; + } else if (fieldConfig.custom) { + const exportedVal$ = loadFromModuleExportExpression(fieldConfig.custom, { + cwd: config.baseDir, + defaultExportName: 'default', + importFn: config.importFn, + }); + mocks[typeName] = () => { + return exportedVal$.then(exportedVal => + typeof exportedVal === 'function' ? exportedVal(store) : exportedVal + ); + }; + } + } + } + } + } + const store = createMockStore({ schema, mocks }); + if (config?.initializeStore) { + const initializeStoreFn$ = loadFromModuleExportExpression(config.initializeStore, { + cwd: config.baseDir, + defaultExportName: 'default', + importFn: config.importFn, + }); + // eslint-disable-next-line no-void + void initializeStoreFn$.then(fn => fn(store)); + } + const mockedSchema = addMocksToSchema({ + schema, + store, + mocks, + resolvers, + preserveResolvers: config?.preserveResolvers, + }); + mockedSchemas.add(mockedSchema); + replaceSchema(mockedSchema); + }, + onExecute({ setExecuteFn }) { + setExecuteFn(execute); + }, + }; + } + + return {}; +} diff --git a/packages/transforms/mock/test/mocking.spec.ts b/packages/plugins/mock/tests/mocking.spec.ts similarity index 63% rename from packages/transforms/mock/test/mocking.spec.ts rename to packages/plugins/mock/tests/mocking.spec.ts index d4b8b4443802c..b2c8574e6238f 100644 --- a/packages/transforms/mock/test/mocking.spec.ts +++ b/packages/plugins/mock/tests/mocking.spec.ts @@ -1,20 +1,22 @@ import { makeExecutableSchema } from '@graphql-tools/schema'; -import { wrapSchema } from '@graphql-tools/wrap'; -import { YamlConfig, MeshPubSub, ImportFn } from '@graphql-mesh/types'; -import { buildSchema, execute, graphql, parse } from 'graphql'; +import { YamlConfig, MeshPubSub, ImportFn, Logger } from '@graphql-mesh/types'; +import { buildSchema, parse } from 'graphql'; import InMemoryLRUCache from '@graphql-mesh/cache-localforage'; -import { PubSub } from '@graphql-mesh/utils'; -import MockingTransform from '../src'; +import { DefaultLogger, PubSub } from '@graphql-mesh/utils'; +import { envelop, useSchema } from '@envelop/core'; +import useMock from '../src'; describe('mocking', () => { let cache: InMemoryLRUCache; let pubsub: MeshPubSub; + let logger: Logger; const baseDir: string = __dirname; const importFn: ImportFn = m => import(m); beforeEach(() => { cache = new InMemoryLRUCache(); pubsub = new PubSub(); + logger = new DefaultLogger('test-rate-limit'); }); it('should mock fields and resolvers should not get called', async () => { @@ -54,29 +56,30 @@ describe('mocking', () => { }, ], }; - const transformedSchema = await wrapSchema({ - schema, - transforms: [ - new MockingTransform({ - config: mockingConfig, + const getEnveloped = envelop({ + plugins: [ + useSchema(schema), + useMock({ + ...mockingConfig, + logger, cache, pubsub, baseDir, - apiName: '', importFn, }), ], }); - const result = await graphql({ - schema: transformedSchema, - source: /* GraphQL */ ` + const enveloped = getEnveloped(); + const result = await enveloped.execute({ + schema: enveloped.schema, + document: enveloped.parse(/* GraphQL */ ` { users { id fullName } } - `, + `), contextValue: {}, }); @@ -124,30 +127,30 @@ describe('mocking', () => { ], }; - const transformedSchema = await wrapSchema({ - schema, - transforms: [ - new MockingTransform({ - config: mockingConfig, + const getEnveloped = envelop({ + plugins: [ + useSchema(schema), + useMock({ + ...mockingConfig, + logger, cache, pubsub, baseDir, - apiName: '', importFn, }), ], }); - - const result = await graphql({ - schema: transformedSchema, - source: /* GraphQL */ ` + const enveloped = getEnveloped(); + const result = await enveloped.execute({ + schema: enveloped.schema, + document: enveloped.parse(/* GraphQL */ ` { users { id fullName } } - `, + `), contextValue: {}, }); @@ -171,35 +174,35 @@ describe('mocking', () => { name: String } `); - const mockedSchema = wrapSchema({ - schema, - transforms: [ - new MockingTransform({ - config: { - mocks: [ - { - apply: 'Query.user', - custom: './mocks.ts#GetUserMock', - }, - { - apply: 'Mutation.addUser', - custom: './mocks.ts#AddUserMock', - }, - { - apply: 'Mutation.updateUser', - custom: './mocks.ts#UpdateUserMock', - }, - ], - }, + + const getEnveloped = envelop({ + plugins: [ + useSchema(schema), + useMock({ + mocks: [ + { + apply: 'Query.user', + custom: './mocks.ts#GetUserMock', + }, + { + apply: 'Mutation.addUser', + custom: './mocks.ts#AddUserMock', + }, + { + apply: 'Mutation.updateUser', + custom: './mocks.ts#UpdateUserMock', + }, + ], + logger, cache, pubsub, baseDir, - apiName: '', importFn, }), ], }); - const ADD_USER = parse(/* GraphQL */ ` + const enveloped = getEnveloped(); + const ADD_USER = enveloped.parse(/* GraphQL */ ` mutation AddUser { addUser(name: "John Doe") { id @@ -207,13 +210,13 @@ describe('mocking', () => { } } `); - const addUserResult: any = await execute({ - schema: mockedSchema, + const addUserResult: any = await enveloped.execute({ + schema: enveloped.schema, document: ADD_USER, }); expect(addUserResult?.data?.addUser?.name).toBe('John Doe'); const addedUserId = addUserResult.data.addUser.id; - const GET_USER = parse(/* GraphQL */ ` + const GET_USER = enveloped.parse(/* GraphQL */ ` query GetUser { user(id: "${addedUserId}") { id @@ -221,10 +224,10 @@ describe('mocking', () => { } } `); - const getUserResult: any = await execute({ schema: mockedSchema, document: GET_USER }); + const getUserResult: any = await enveloped.execute({ schema: enveloped.schema, document: GET_USER }); expect(getUserResult?.data?.user?.id).toBe(addedUserId); expect(getUserResult?.data?.user?.name).toBe('John Doe'); - const UPDATE_USER = parse(/* GraphQL */ ` + const UPDATE_USER = enveloped.parse(/* GraphQL */ ` mutation UpdateUser { updateUser(id: "${addedUserId}", name: "Jane Doe") { id @@ -232,7 +235,7 @@ describe('mocking', () => { } } `); - const updateUserResult: any = await execute({ schema: mockedSchema, document: UPDATE_USER }); + const updateUserResult: any = await enveloped.execute({ schema: enveloped.schema, document: UPDATE_USER }); expect(updateUserResult?.data?.updateUser?.id).toBe(addedUserId); expect(updateUserResult?.data?.updateUser?.name).toBe('Jane Doe'); }); @@ -250,60 +253,59 @@ describe('mocking', () => { name: String } `); - const mockedSchema = wrapSchema({ - schema, - transforms: [ - new MockingTransform({ - config: { - mocks: [ - { - apply: 'Query.user', - store: { - type: 'User', - key: '{args.id}', - }, + const getEnveloped = envelop({ + plugins: [ + useSchema(schema), + useMock({ + mocks: [ + { + apply: 'Query.user', + store: { + type: 'User', + key: '{args.id}', }, - { - apply: 'Mutation.addUser', - updateStore: [ - { - type: 'User', - key: '{random}', - fieldName: 'name', - value: '{args.name}', - }, - ], - store: { + }, + { + apply: 'Mutation.addUser', + updateStore: [ + { type: 'User', key: '{random}', + fieldName: 'name', + value: '{args.name}', }, + ], + store: { + type: 'User', + key: '{random}', }, - { - apply: 'Mutation.updateUser', - updateStore: [ - { - type: 'User', - key: '{args.id}', - fieldName: 'name', - value: '{args.name}', - }, - ], - store: { + }, + { + apply: 'Mutation.updateUser', + updateStore: [ + { type: 'User', key: '{args.id}', + fieldName: 'name', + value: '{args.name}', }, + ], + store: { + type: 'User', + key: '{args.id}', }, - ], - }, + }, + ], cache, pubsub, baseDir, - apiName: '', importFn, + logger, }), ], }); - const ADD_USER = parse(/* GraphQL */ ` + const enveloped = getEnveloped(); + const ADD_USER = enveloped.parse(/* GraphQL */ ` mutation AddUser { addUser(name: "John Doe") { id @@ -311,10 +313,10 @@ describe('mocking', () => { } } `); - const addUserResult: any = await execute({ schema: mockedSchema, document: ADD_USER }); + const addUserResult: any = await enveloped.execute({ schema: enveloped.schema, document: ADD_USER }); expect(addUserResult?.data?.addUser?.name).toBe('John Doe'); const addedUserId = addUserResult.data.addUser.id; - const GET_USER = parse(/* GraphQL */ ` + const GET_USER = enveloped.parse(/* GraphQL */ ` query GetUser { user(id: "${addedUserId}") { id @@ -322,7 +324,7 @@ describe('mocking', () => { } } `); - const getUserResult: any = await execute({ schema: mockedSchema, document: GET_USER }); + const getUserResult: any = await enveloped.execute({ schema: enveloped.schema, document: GET_USER }); expect(getUserResult?.data?.user?.id).toBe(addedUserId); expect(getUserResult?.data?.user?.name).toBe('John Doe'); const UPDATE_USER = parse(/* GraphQL */ ` @@ -333,7 +335,7 @@ describe('mocking', () => { } } `); - const updateUserResult: any = await execute({ schema: mockedSchema, document: UPDATE_USER }); + const updateUserResult: any = await enveloped.execute({ schema: enveloped.schema, document: UPDATE_USER }); expect(updateUserResult?.data?.updateUser?.id).toBe(addedUserId); expect(updateUserResult?.data?.updateUser?.name).toBe('Jane Doe'); }); diff --git a/packages/transforms/mock/test/mocks.ts b/packages/plugins/mock/tests/mocks.ts similarity index 100% rename from packages/transforms/mock/test/mocks.ts rename to packages/plugins/mock/tests/mocks.ts diff --git a/packages/transforms/mock/yaml-config.graphql b/packages/plugins/mock/yaml-config.graphql similarity index 98% rename from packages/transforms/mock/yaml-config.graphql rename to packages/plugins/mock/yaml-config.graphql index 7ed18a9559e59..6d05e0269a755 100644 --- a/packages/transforms/mock/yaml-config.graphql +++ b/packages/plugins/mock/yaml-config.graphql @@ -1,4 +1,4 @@ -extend type Transform { +extend type Plugin { """ Mock configuration for your source """ diff --git a/packages/plugins/rate-limit/package.json b/packages/plugins/rate-limit/package.json index af463e08150bd..ca5850a17dcac 100644 --- a/packages/plugins/rate-limit/package.json +++ b/packages/plugins/rate-limit/package.json @@ -31,7 +31,7 @@ "@graphql-mesh/types": "0.78.6", "@graphql-mesh/cross-helpers": "0.2.0", "@graphql-mesh/string-interpolation": "0.3.0", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "minimatch": "5.1.0", "@envelop/core": "^2.3.2", "tslib": "^2.4.0" diff --git a/packages/plugins/rate-limit/tests/rate-limit.spec.ts b/packages/plugins/rate-limit/tests/rate-limit.spec.ts index 59dad28ca8927..d9f96ae375f3e 100644 --- a/packages/plugins/rate-limit/tests/rate-limit.spec.ts +++ b/packages/plugins/rate-limit/tests/rate-limit.spec.ts @@ -1,5 +1,5 @@ /* eslint-disable import/no-extraneous-dependencies */ -import { DefaultLogger, PubSub } from '@graphql-mesh/utils'; +import { defaultImportFn, DefaultLogger, PubSub } from '@graphql-mesh/utils'; import InMemoryLRUCache from '@graphql-mesh/cache-localforage'; import useMeshRateLimit from '../src'; import { makeExecutableSchema } from '@graphql-tools/schema'; @@ -54,6 +54,8 @@ describe('Rate Limit Plugin', () => { logger, cache, pubsub, + baseDir: __dirname, + importFn: defaultImportFn, }), ], }); @@ -119,6 +121,8 @@ describe('Rate Limit Plugin', () => { cache, pubsub, logger, + baseDir: __dirname, + importFn: defaultImportFn, }), ], }); @@ -181,6 +185,8 @@ describe('Rate Limit Plugin', () => { cache, pubsub, logger, + baseDir: __dirname, + importFn: defaultImportFn, }), ], }); @@ -259,6 +265,8 @@ describe('Rate Limit Plugin', () => { cache, pubsub, logger, + baseDir: __dirname, + importFn: defaultImportFn, }), ], }); diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 37de50ba6ddc2..4df5aa9c741bf 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -31,10 +31,10 @@ "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", "@graphql-mesh/string-interpolation": "0.3.0", - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/batch-delegate": "8.3.1", - "@graphql-tools/wrap": "8.5.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/delegate": "9.0.0", + "@graphql-tools/batch-delegate": "8.3.2", + "@graphql-tools/wrap": "9.0.0", + "@graphql-tools/utils": "8.9.1", "@envelop/core": "2.4.2", "@envelop/extended-validation": "1.7.2", "tslib": "^2.4.0" diff --git a/packages/runtime/src/get-mesh.ts b/packages/runtime/src/get-mesh.ts index 5b93504740215..aed3c96957c59 100644 --- a/packages/runtime/src/get-mesh.ts +++ b/packages/runtime/src/get-mesh.ts @@ -192,14 +192,14 @@ export async function getMesh(options: GetMeshOptions): Promise { operationName?: string ) { const getEnveloped = memoizedGetEnvelopedFactory(plugins); - const { execute, contextFactory, parse } = getEnveloped(contextValue); + const { schema, execute, contextFactory, parse } = getEnveloped(contextValue); return execute({ document: typeof documentOrSDL === 'string' ? parse(documentOrSDL) : documentOrSDL, contextValue: await contextFactory(), rootValue, variableValues: variableValues as any, - schema: unifiedSubschema.schema, + schema, operationName, }); } @@ -212,14 +212,14 @@ export async function getMesh(options: GetMeshOptions): Promise { operationName?: string ) { const getEnveloped = memoizedGetEnvelopedFactory(plugins); - const { subscribe, contextFactory, parse } = getEnveloped(contextValue); + const { schema, subscribe, contextFactory, parse } = getEnveloped(contextValue); return subscribe({ document: typeof documentOrSDL === 'string' ? parse(documentOrSDL) : documentOrSDL, contextValue: await contextFactory(), rootValue, variableValues: variableValues as any, - schema: unifiedSubschema.schema, + schema, operationName, }); } diff --git a/packages/store/package.json b/packages/store/package.json index 56f2831442cd2..e2a3593c1e92c 100644 --- a/packages/store/package.json +++ b/packages/store/package.json @@ -34,7 +34,7 @@ "@graphql-inspector/core": "3.3.0", "@graphql-mesh/cross-helpers": "0.2.0", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "@graphql-mesh/types": "0.78.6", "tslib": "^2.4.0" }, diff --git a/packages/transforms/cache/package.json b/packages/transforms/cache/package.json index fad55a8c1edc0..c2ebb1137df3e 100644 --- a/packages/transforms/cache/package.json +++ b/packages/transforms/cache/package.json @@ -33,9 +33,9 @@ "@graphql-mesh/string-interpolation": "0.3.0", "dayjs": "1.11.4", "@graphql-mesh/cross-helpers": "0.2.0", - "@graphql-tools/resolvers-composition": "6.5.1", - "@graphql-tools/schema": "8.5.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/resolvers-composition": "6.5.2", + "@graphql-tools/schema": "9.0.0", + "@graphql-tools/utils": "8.9.1", "tslib": "^2.4.0" }, "devDependencies": { diff --git a/packages/transforms/encapsulate/package.json b/packages/transforms/encapsulate/package.json index 0c931341446b7..e2d7ac71ec24e 100644 --- a/packages/transforms/encapsulate/package.json +++ b/packages/transforms/encapsulate/package.json @@ -30,9 +30,9 @@ "dependencies": { "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/wrap": "8.5.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/delegate": "9.0.0", + "@graphql-tools/wrap": "9.0.0", + "@graphql-tools/utils": "8.9.1", "tslib": "^2.4.0" }, "publishConfig": { diff --git a/packages/transforms/extend/package.json b/packages/transforms/extend/package.json index fa13ffe569512..a229a97ba26ab 100644 --- a/packages/transforms/extend/package.json +++ b/packages/transforms/extend/package.json @@ -30,11 +30,11 @@ "dependencies": { "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/load": "7.7.1", - "@graphql-tools/code-file-loader": "7.3.1", - "@graphql-tools/graphql-file-loader": "7.5.0", - "@graphql-tools/schema": "8.5.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/load": "7.7.3", + "@graphql-tools/code-file-loader": "7.3.2", + "@graphql-tools/graphql-file-loader": "7.5.1", + "@graphql-tools/schema": "9.0.0", + "@graphql-tools/utils": "8.9.1", "@graphql-mesh/cross-helpers": "0.2.0", "tslib": "^2.4.0" }, diff --git a/packages/transforms/federation/package.json b/packages/transforms/federation/package.json index d8d4e20c9227b..c04ff3139a166 100644 --- a/packages/transforms/federation/package.json +++ b/packages/transforms/federation/package.json @@ -32,9 +32,9 @@ "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", "graphql-transform-federation": "2.2.0", - "@graphql-tools/utils": "8.9.0", - "@graphql-tools/stitching-directives": "2.3.1", - "@graphql-tools/delegate": "8.8.1", + "@graphql-tools/utils": "8.9.1", + "@graphql-tools/stitching-directives": "2.3.2", + "@graphql-tools/delegate": "9.0.0", "tslib": "^2.4.0" }, "publishConfig": { diff --git a/packages/transforms/filter-schema/package.json b/packages/transforms/filter-schema/package.json index 8ee545aa3cda5..d5c57a7b086ac 100644 --- a/packages/transforms/filter-schema/package.json +++ b/packages/transforms/filter-schema/package.json @@ -34,9 +34,9 @@ "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", "minimatch": "5.1.0", - "@graphql-tools/wrap": "8.5.1", - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/wrap": "9.0.0", + "@graphql-tools/delegate": "9.0.0", + "@graphql-tools/utils": "8.9.1", "tslib": "^2.4.0" }, "publishConfig": { diff --git a/packages/transforms/hoist-field/package.json b/packages/transforms/hoist-field/package.json index 598e36350bdc4..5628375ea8d67 100644 --- a/packages/transforms/hoist-field/package.json +++ b/packages/transforms/hoist-field/package.json @@ -30,9 +30,9 @@ "dependencies": { "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/wrap": "8.5.1", - "@graphql-tools/utils": "8.9.0" + "@graphql-tools/delegate": "9.0.0", + "@graphql-tools/wrap": "9.0.0", + "@graphql-tools/utils": "8.9.1" }, "devDependencies": { "@graphql-mesh/cache-localforage": "0.6.23" diff --git a/packages/transforms/mock/CHANGELOG.md b/packages/transforms/mock/CHANGELOG.md deleted file mode 100644 index 7fa8c4e3ec2ad..0000000000000 --- a/packages/transforms/mock/CHANGELOG.md +++ /dev/null @@ -1,1488 +0,0 @@ -# @graphql-mesh/transform-mock - -## 0.15.6 - -### Patch Changes - -- Updated dependencies [[`02c018249`](https://github.com/Urigo/graphql-mesh/commit/02c0182498e60c78bee5c44c42dc897a739e8f18), [`f95036a33`](https://github.com/Urigo/graphql-mesh/commit/f95036a3360bd76d9f4b9e2725f4d344343fe41b)]: - - @graphql-mesh/utils@0.37.7 - - @graphql-mesh/types@0.78.6 - -## 0.15.5 - -### Patch Changes - -- Updated dependencies [c88a34d82] - - @graphql-mesh/types@0.78.5 - - @graphql-mesh/utils@0.37.6 - -## 0.15.4 - -### Patch Changes - -- Updated dependencies [30d046724] - - @graphql-mesh/utils@0.37.5 - - @graphql-mesh/types@0.78.4 - -## 0.15.3 - -### Patch Changes - -- Updated dependencies [738e2f378] - - @graphql-mesh/types@0.78.3 - - @graphql-mesh/utils@0.37.4 - -## 0.15.2 - -### Patch Changes - -- Updated dependencies [a2ef35c35] - - @graphql-mesh/types@0.78.2 - - @graphql-mesh/utils@0.37.3 - -## 0.15.1 - -### Patch Changes - -- @graphql-mesh/types@0.78.1 -- @graphql-mesh/utils@0.37.2 - -## 0.15.0 - -### Minor Changes - -- bcd9355ee: Breaking change in merger API; - - Before a merger should return a `GraphQLSchema`, not it needs to return `SubschemaConfig` from `@graphql-tools/delegate` package. - The idea is to prevent the schema from being wrap to reduce the execution complexity. - Now if merger returns an executor, it will be used directly as an executor inside Envelop's pipeline. - Also it can return `transforms` which will be applied during execution while schema transforms are applied on build time without any modification in the resolvers. - - If there are some root transforms, those are applied together with the source transforms on the execution level in case of a single source. - -### Patch Changes - -- Updated dependencies [6e6fd4ab7] -- Updated dependencies [bcd9355ee] - - @graphql-mesh/utils@0.37.1 - - @graphql-mesh/types@0.78.0 - -## 0.14.51 - -### Patch Changes - -- Updated dependencies [66f5d0189] -- Updated dependencies [0401c7617] - - @graphql-mesh/types@0.77.1 - - @graphql-mesh/cross-helpers@0.2.0 - - @graphql-mesh/utils@0.37.0 - -## 0.14.50 - -### Patch Changes - -- Updated dependencies [12e1e5d72] -- Updated dependencies [12e1e5d72] -- Updated dependencies [12e1e5d72] - - @graphql-mesh/cross-helpers@0.1.7 - - @graphql-mesh/types@0.77.0 - - @graphql-mesh/utils@0.36.1 - -## 0.14.49 - -### Patch Changes - -- Updated dependencies [19d06f6c9] -- Updated dependencies [19d06f6c9] -- Updated dependencies [a0950ac6f] - - @graphql-mesh/utils@0.36.0 - - @graphql-mesh/types@0.76.0 - -## 0.14.48 - -### Patch Changes - -- Updated dependencies [d4754ad08] -- Updated dependencies [2df026e90] - - @graphql-mesh/types@0.75.0 - - @graphql-mesh/utils@0.35.7 - -## 0.14.47 - -### Patch Changes - -- Updated dependencies [ed9ba7f48] - - @graphql-mesh/types@0.74.2 - - @graphql-mesh/utils@0.35.6 - -## 0.14.46 - -### Patch Changes - -- Updated dependencies [41cfb46b4] - - @graphql-mesh/utils@0.35.5 - - @graphql-mesh/types@0.74.1 - -## 0.14.45 - -### Patch Changes - -- Updated dependencies [13b9b30f7] - - @graphql-mesh/string-interpolation@0.3.0 - - @graphql-mesh/types@0.74.0 - - @graphql-mesh/utils@0.35.4 - -## 0.14.44 - -### Patch Changes - -- Updated dependencies [9733f490c] - - @graphql-mesh/utils@0.35.3 - - @graphql-mesh/types@0.73.3 - -## 0.14.43 - -### Patch Changes - -- 3c0366d2c: - Support import.meta.env instead of process.env for browsers - - Ponyfill `util.inspect` only if it is not Node env -- Updated dependencies [3c0366d2c] -- Updated dependencies [3c0366d2c] - - @graphql-mesh/cross-helpers@0.1.6 - - @graphql-mesh/utils@0.35.2 - - @graphql-mesh/types@0.73.2 - -## 0.14.42 - -### Patch Changes - -- Updated dependencies [abe9fcc41] - - @graphql-mesh/utils@0.35.1 - - @graphql-mesh/types@0.73.1 - -## 0.14.41 - -### Patch Changes - -- 974e703e2: Cleanup dependencies -- Updated dependencies [974e703e2] -- Updated dependencies [19a99c055] -- Updated dependencies [974e703e2] -- Updated dependencies [974e703e2] -- Updated dependencies [893d526ab] -- Updated dependencies [974e703e2] - - @graphql-mesh/string-interpolation@0.2.0 - - @graphql-mesh/types@0.73.0 - - @graphql-mesh/utils@0.35.0 - -## 0.14.40 - -### Patch Changes - -- Updated dependencies [43eb3d2c2] - - @graphql-mesh/utils@0.34.10 - - @graphql-mesh/types@0.72.5 - -## 0.14.39 - -### Patch Changes - -- Updated dependencies [55ad5ea44] - - @graphql-mesh/utils@0.34.9 - - @graphql-mesh/types@0.72.4 - -## 0.14.38 - -### Patch Changes - -- Updated dependencies [31efa964e] - - @graphql-mesh/utils@0.34.8 - - @graphql-mesh/types@0.72.3 - -## 0.14.37 - -### Patch Changes - -- @graphql-mesh/utils@0.34.7 -- @graphql-mesh/types@0.72.2 - -## 0.14.36 - -### Patch Changes - -- Updated dependencies [b9beacca2] - - @graphql-mesh/utils@0.34.6 - - @graphql-mesh/types@0.72.1 - -## 0.14.35 - -### Patch Changes - -- Updated dependencies [fa2542468] - - @graphql-mesh/types@0.72.0 - - @graphql-mesh/utils@0.34.5 - -## 0.14.34 - -### Patch Changes - -- Updated dependencies [ddbbec8a8] - - @graphql-mesh/utils@0.34.4 - - @graphql-mesh/types@0.71.4 - -## 0.14.33 - -### Patch Changes - -- Updated dependencies [2e9addd80] - - @graphql-mesh/utils@0.34.3 - - @graphql-mesh/types@0.71.3 - -## 0.14.32 - -### Patch Changes - -- @graphql-mesh/types@0.71.2 -- @graphql-mesh/utils@0.34.2 - -## 0.14.31 - -### Patch Changes - -- 7856f92d3: Bump all packages -- Updated dependencies [7856f92d3] - - @graphql-mesh/types@0.71.1 - - @graphql-mesh/utils@0.34.1 - -## 0.14.30 - -### Patch Changes - -- Updated dependencies [f963b57ce] -- Updated dependencies [0644f31f2] -- Updated dependencies [331b62637] -- Updated dependencies [331b62637] -- Updated dependencies [331b62637] -- Updated dependencies [331b62637] - - @graphql-mesh/types@0.71.0 - - @graphql-mesh/utils@0.34.0 - -## 0.14.29 - -### Patch Changes - -- @graphql-mesh/utils@0.33.6 -- @graphql-mesh/types@0.70.6 - -## 0.14.28 - -### Patch Changes - -- @graphql-mesh/types@0.70.5 -- @graphql-mesh/utils@0.33.5 - -## 0.14.27 - -### Patch Changes - -- 35a55e841: Bump GraphQL Tools packages -- Updated dependencies [35a55e841] - - @graphql-mesh/types@0.70.4 - - @graphql-mesh/utils@0.33.4 - -## 0.14.26 - -### Patch Changes - -- @graphql-mesh/types@0.70.3 -- @graphql-mesh/utils@0.33.3 - -## 0.14.25 - -### Patch Changes - -- Updated dependencies [b02f5b008] - - @graphql-mesh/types@0.70.2 - - @graphql-mesh/utils@0.33.2 - -## 0.14.24 - -### Patch Changes - -- 2d5c6c72a: add Git repository link in package.json -- Updated dependencies [2d5c6c72a] - - @graphql-mesh/types@0.70.1 - - @graphql-mesh/utils@0.33.1 - -## 0.14.23 - -### Patch Changes - -- Updated dependencies [d567be7b5] - - @graphql-mesh/types@0.70.0 - - @graphql-mesh/utils@0.33.0 - -## 0.14.22 - -### Patch Changes - -- Updated dependencies [f30dba61e] - - @graphql-mesh/types@0.69.0 - - @graphql-mesh/utils@0.32.2 - -## 0.14.21 - -### Patch Changes - -- Updated dependencies [be61de529] - - @graphql-mesh/types@0.68.3 - - @graphql-mesh/utils@0.32.1 - -## 0.14.20 - -### Patch Changes - -- Updated dependencies [b1a6df928] -- Updated dependencies [67fb11706] - - @graphql-mesh/types@0.68.2 - - @graphql-mesh/utils@0.32.0 - -## 0.14.19 - -### Patch Changes - -- Updated dependencies [b2c537c2a] - - @graphql-mesh/utils@0.31.0 - - @graphql-mesh/types@0.68.1 - -## 0.14.18 - -### Patch Changes - -- Updated dependencies [6c318b91a] - - @graphql-mesh/types@0.68.0 - - @graphql-mesh/utils@0.30.2 - -## 0.14.17 - -### Patch Changes - -- @graphql-mesh/types@0.67.1 -- @graphql-mesh/utils@0.30.1 - -## 0.14.16 - -### Patch Changes - -- 01bac6bb5: fix - align graphql-tools versions -- Updated dependencies [01bac6bb5] -- Updated dependencies [01bac6bb5] - - @graphql-mesh/types@0.67.0 - - @graphql-mesh/utils@0.30.0 - -## 0.14.15 - -### Patch Changes - -- Updated dependencies [268db0462] - - @graphql-mesh/utils@0.29.0 - - @graphql-mesh/types@0.66.6 - -## 0.14.14 - -### Patch Changes - -- Updated dependencies [2ffb1f287] - - @graphql-mesh/types@0.66.5 - - @graphql-mesh/utils@0.28.5 - -## 0.14.13 - -### Patch Changes - -- Updated dependencies [6d2d46480] - - @graphql-mesh/types@0.66.4 - - @graphql-mesh/utils@0.28.4 - -## 0.14.12 - -### Patch Changes - -- @graphql-mesh/types@0.66.3 -- @graphql-mesh/utils@0.28.3 - -## 0.14.11 - -### Patch Changes - -- Updated dependencies [fb876e99c] - - @graphql-mesh/types@0.66.2 - - @graphql-mesh/utils@0.28.2 - -## 0.14.10 - -### Patch Changes - -- Updated dependencies [98ff961ff] - - @graphql-mesh/types@0.66.1 - - @graphql-mesh/utils@0.28.1 - -## 0.14.9 - -### Patch Changes - -- 6f07de8fe: fix: do not import process from env -- b481fbc39: enhance: add tslib to dependencies to reduce bundle size -- Updated dependencies [6f07de8fe] -- Updated dependencies [6f07de8fe] -- Updated dependencies [b481fbc39] - - @graphql-mesh/types@0.66.0 - - @graphql-mesh/utils@0.28.0 - -## 0.14.8 - -### Patch Changes - -- Updated dependencies [21de17a3d] -- Updated dependencies [3f4bb09a9] - - @graphql-mesh/types@0.65.0 - - @graphql-mesh/utils@0.27.9 - -## 0.14.7 - -### Patch Changes - -- Updated dependencies [8b8eb5158] -- Updated dependencies [8b8eb5158] - - @graphql-mesh/types@0.64.2 - - @graphql-mesh/utils@0.27.8 - -## 0.14.6 - -### Patch Changes - -- Updated dependencies [ca6bb5ff3] - - @graphql-mesh/utils@0.27.7 - - @graphql-mesh/types@0.64.1 - -## 0.14.5 - -### Patch Changes - -- Updated dependencies [08b250e04] - - @graphql-mesh/types@0.64.0 - - @graphql-mesh/utils@0.27.6 - -## 0.14.4 - -### Patch Changes - -- 1815865c3: fix: bump fixed graphql-tools -- Updated dependencies [1815865c3] - - @graphql-mesh/types@0.63.1 - - @graphql-mesh/utils@0.27.5 - -## 0.14.3 - -### Patch Changes - -- Updated dependencies [b6eca9baa] -- Updated dependencies [b6eca9baa] - - @graphql-mesh/types@0.63.0 - - @graphql-mesh/utils@0.27.4 - -## 0.14.2 - -### Patch Changes - -- Updated dependencies [0d43ecf19] - - @graphql-mesh/types@0.62.2 - - @graphql-mesh/utils@0.27.3 - -## 0.14.1 - -### Patch Changes - -- 16321ddc9: fix(mock): fix the issue when you provide no configuration - -## 0.14.0 - -### Minor Changes - -- 15e1f68c5: feat(json-schema): respect given samples in mocks transform - -### Patch Changes - -- Updated dependencies [c71b29004] -- Updated dependencies [447bc3697] - - @graphql-mesh/utils@0.27.2 - - @graphql-mesh/types@0.62.1 - -## 0.13.6 - -### Patch Changes - -- Updated dependencies [240ec7b38] -- Updated dependencies [fcbd12a35] - - @graphql-mesh/types@0.62.0 - - @graphql-mesh/utils@0.27.1 - -## 0.13.5 - -### Patch Changes - -- Updated dependencies [900a01355] - - @graphql-mesh/utils@0.27.0 - -## 0.13.4 - -### Patch Changes - -- Updated dependencies [66ca1a366] - - @graphql-mesh/types@0.61.0 - - @graphql-mesh/utils@0.26.4 - -## 0.13.3 - -### Patch Changes - -- Updated dependencies [a79268b3a] -- Updated dependencies [a79268b3a] - - @graphql-mesh/types@0.60.0 - - @graphql-mesh/utils@0.26.3 - -## 0.13.2 - -### Patch Changes - -- Updated dependencies [020431bdc] -- Updated dependencies [020431bdc] -- Updated dependencies [020431bdc] - - @graphql-mesh/types@0.59.0 - - @graphql-mesh/utils@0.26.2 - -## 0.13.1 - -### Patch Changes - -- Updated dependencies [113091148] -- Updated dependencies [6bb4cf673] - - @graphql-mesh/utils@0.26.1 - - @graphql-mesh/types@0.58.0 - -## 0.13.0 - -### Minor Changes - -- 56e2257fa: feat: use JIT in all execution phases - -### Patch Changes - -- 56e2257fa: fix(merger-bare): handle single source transforms correctly -- Updated dependencies [1ab0aebbc] -- Updated dependencies [56e2257fa] -- Updated dependencies [56e2257fa] - - @graphql-mesh/types@0.57.2 - - @graphql-mesh/utils@0.26.0 - -## 0.12.7 - -### Patch Changes - -- Updated dependencies [2b876f2b8] - - @graphql-mesh/utils@0.25.0 - -## 0.12.6 - -### Patch Changes - -- Updated dependencies [d907351c5] - - @graphql-mesh/types@0.57.1 - - @graphql-mesh/utils@0.24.2 - -## 0.12.5 - -### Patch Changes - -- Updated dependencies [26d685f2a] - - @graphql-mesh/utils@0.24.1 - -## 0.12.4 - -### Patch Changes - -- Updated dependencies [cfca98d34] - - @graphql-mesh/types@0.57.0 - - @graphql-mesh/utils@0.24.0 - -## 0.12.3 - -### Patch Changes - -- Updated dependencies [5666484d6] - - @graphql-mesh/utils@0.23.0 - -## 0.12.2 - -### Patch Changes - -- Updated dependencies [6c216c309] - - @graphql-mesh/utils@0.22.2 - -## 0.12.1 - -### Patch Changes - -- Updated dependencies [c22eb1b5e] - - @graphql-mesh/utils@0.22.1 - -## 0.12.0 - -### Minor Changes - -- ec0d1d639: enhance: avoid sync require but collect import sync - -### Patch Changes - -- Updated dependencies [ec0d1d639] -- Updated dependencies [1cc0acb9a] - - @graphql-mesh/types@0.56.0 - - @graphql-mesh/utils@0.22.0 - -## 0.11.3 - -### Patch Changes - -- Updated dependencies [1b332487c] - - @graphql-mesh/types@0.55.0 - - @graphql-mesh/utils@0.21.1 - -## 0.11.2 - -### Patch Changes - -- Updated dependencies [875d0e48d] - - @graphql-mesh/utils@0.21.0 - -## 0.11.1 - -### Patch Changes - -- Updated dependencies [761b16ed9] - - @graphql-mesh/types@0.54.1 - - @graphql-mesh/utils@0.20.1 - -## 0.11.0 - -### Minor Changes - -- 09f81dd74: GraphQL v16 compatibility -- 09f81dd74: GraphQL v16 compability - -### Patch Changes - -- Updated dependencies [09f81dd74] -- Updated dependencies [09f81dd74] - - @graphql-mesh/types@0.54.0 - - @graphql-mesh/utils@0.20.0 - -## 0.10.21 - -### Patch Changes - -- Updated dependencies [0dc08e5cc] - - @graphql-mesh/utils@0.19.0 - -## 0.10.20 - -### Patch Changes - -- 963e064f0: chore: update scalars to support included codegen support - -## 0.10.19 - -### Patch Changes - -- Updated dependencies [6f57be0c1] - - @graphql-mesh/types@0.53.0 - - @graphql-mesh/utils@0.18.1 - -## 0.10.18 - -### Patch Changes - -- Updated dependencies [4ec7a14ba] -- Updated dependencies [811960cdc] -- Updated dependencies [6f5ffe766] - - @graphql-mesh/utils@0.18.0 - - @graphql-mesh/types@0.52.0 - -## 0.10.17 - -### Patch Changes - -- Updated dependencies [256abf5f7] - - @graphql-mesh/types@0.51.0 - - @graphql-mesh/utils@0.17.2 - -## 0.10.16 - -### Patch Changes - -- Updated dependencies [8c9b709ae] - - @graphql-mesh/types@0.50.0 - - @graphql-mesh/utils@0.17.1 - -## 0.10.15 - -### Patch Changes - -- Updated dependencies [7bd145769] - - @graphql-mesh/utils@0.17.0 - -## 0.10.14 - -### Patch Changes - -- Updated dependencies [472c5887b] - - @graphql-mesh/utils@0.16.3 - -## 0.10.13 - -### Patch Changes - -- Updated dependencies [6ce43ddac] - - @graphql-mesh/types@0.49.0 - - @graphql-mesh/utils@0.16.2 - -## 0.10.12 - -### Patch Changes - -- Updated dependencies [46a4f7b73] -- Updated dependencies [aa804d043] -- Updated dependencies [67552c8f8] - - @graphql-mesh/utils@0.16.1 - - @graphql-mesh/types@0.48.0 - -## 0.10.11 - -### Patch Changes - -- Updated dependencies [9eff8a396] - - @graphql-mesh/types@0.47.0 - - @graphql-mesh/utils@0.16.0 - -## 0.10.10 - -### Patch Changes - -- Updated dependencies [f4f30741d] - - @graphql-mesh/utils@0.15.0 - -## 0.10.9 - -### Patch Changes - -- Updated dependencies [4545fe72d] -- Updated dependencies [d189b4034] -- Updated dependencies [f23820ed0] -- Updated dependencies [06d688e70] - - @graphql-mesh/types@0.46.0 - - @graphql-mesh/utils@0.14.0 - -## 0.10.8 - -### Patch Changes - -- fc51c574d: Dependency updates -- Updated dependencies [fc51c574d] - - @graphql-mesh/types@0.45.2 - - @graphql-mesh/utils@0.13.7 - -## 0.10.7 - -### Patch Changes - -- Updated dependencies [1c2667489] - - @graphql-mesh/types@0.45.1 - - @graphql-mesh/utils@0.13.6 - -## 0.10.6 - -### Patch Changes - -- Updated dependencies [7080a2f1d] - - @graphql-mesh/utils@0.13.5 - -## 0.10.5 - -### Patch Changes - -- Updated dependencies [6266d1774] -- Updated dependencies [94606e7b9] -- Updated dependencies [2b8dae1cb] -- Updated dependencies [0c97b4b75] - - @graphql-mesh/types@0.45.0 - - @graphql-mesh/utils@0.13.4 - -## 0.10.4 - -### Patch Changes - -- Updated dependencies [25d10cc23] - - @graphql-mesh/types@0.44.2 - - @graphql-mesh/utils@0.13.3 - -## 0.10.3 - -### Patch Changes - -- Updated dependencies [49c8ceb38] - - @graphql-mesh/types@0.44.1 - - @graphql-mesh/utils@0.13.2 - -## 0.10.2 - -### Patch Changes - -- Updated dependencies [1ee417e3d] - - @graphql-mesh/types@0.44.0 - - @graphql-mesh/utils@0.13.1 - -## 0.10.1 - -### Patch Changes - -- Updated dependencies [885ea439a] -- Updated dependencies [d8051f87d] -- Updated dependencies [d8051f87d] - - @graphql-mesh/types@0.43.0 - - @graphql-mesh/utils@0.13.0 - -## 0.10.0 - -### Minor Changes - -- 05025d42a: feat(mock): apply mocks for graphql-scalars automatically - -## 0.9.7 - -### Patch Changes - -- Updated dependencies [bdb58dfec] - - @graphql-mesh/utils@0.12.0 - -## 0.9.6 - -### Patch Changes - -- bcfe7a676: fix(mock): respect cwd while importing initializeStore script - -## 0.9.5 - -### Patch Changes - -- Updated dependencies [7d0e33660] - - @graphql-mesh/utils@0.11.4 - -## 0.9.4 - -### Patch Changes - -- Updated dependencies [cfb517b3d] - - @graphql-mesh/types@0.42.0 - -## 0.9.3 - -### Patch Changes - -- Updated dependencies [3c4c51100] - - @graphql-mesh/utils@0.11.3 - -## 0.9.2 - -### Patch Changes - -- e6acdbd7d: enhance(runtime): do not compose unnecessary resolvers -- Updated dependencies [e6acdbd7d] - - @graphql-mesh/types@0.41.1 - - @graphql-mesh/utils@0.11.2 - -## 0.9.1 - -### Patch Changes - -- Updated dependencies [69c89666d] - - @graphql-mesh/utils@0.11.1 - -## 0.9.0 - -### Minor Changes - -- acb45130b: feat(mock): initial impl of stateful mocking - -### Patch Changes - -- acb45130b: fix(mock): fix field mockings -- Updated dependencies [214b7a23c] - - @graphql-mesh/types@0.41.0 - -## 0.8.8 - -### Patch Changes - -- Updated dependencies [0d2f7bfcd] - - @graphql-mesh/types@0.40.0 - -## 0.8.7 - -### Patch Changes - -- Updated dependencies [1caa8ffd3] - - @graphql-mesh/utils@0.11.0 - -## 0.8.6 - -### Patch Changes - -- Updated dependencies [6c90e0e39] - - @graphql-mesh/types@0.39.0 - -## 0.8.5 - -### Patch Changes - -- Updated dependencies [346fe9c61] - - @graphql-mesh/types@0.38.0 - - @graphql-mesh/utils@0.10.0 - -## 0.8.4 - -### Patch Changes - -- Updated dependencies [4b57f7496] -- Updated dependencies [4b57f7496] - - @graphql-mesh/types@0.37.0 - -## 0.8.3 - -### Patch Changes - -- b77148a04: fix(npm-publish): bump all versions to publish again -- Updated dependencies [b77148a04] - - @graphql-mesh/types@0.36.1 - - @graphql-mesh/utils@0.9.2 - -## 0.8.2 - -### Patch Changes - -- Updated dependencies [634a8a134] -- Updated dependencies [6b8b23a4e] -- Updated dependencies [2c3312f1a] -- Updated dependencies [d12c7d978] - - @graphql-mesh/types@0.36.0 - - @graphql-mesh/utils@0.9.1 - -## 0.8.1 - -### Patch Changes - -- Updated dependencies [191a663a] - - @graphql-mesh/types@0.35.1 - -## 0.8.0 - -### Minor Changes - -- b9ca0c30: Make Transforms and Handlers base-dir aware - -### Patch Changes - -- Updated dependencies [b9ca0c30] - - @graphql-mesh/types@0.35.0 - - @graphql-mesh/utils@0.9.0 - -## 0.7.7 - -### Patch Changes - -- Updated dependencies [ec89a923] - - @graphql-mesh/utils@0.8.8 - -## 0.7.6 - -### Patch Changes - -- Updated dependencies [55327fd6] - - @graphql-mesh/types@0.34.1 - -## 0.7.5 - -### Patch Changes - -- Updated dependencies [76051dd7] - - @graphql-mesh/types@0.34.0 - -## 0.7.4 - -### Patch Changes - -- Updated dependencies [646d6bdb] - - @graphql-mesh/types@0.33.0 - -## 0.7.3 - -### Patch Changes - -- Updated dependencies [68d6b117] - - @graphql-mesh/types@0.32.0 - -## 0.7.2 - -### Patch Changes - -- Updated dependencies [212f2d66] - - @graphql-mesh/types@0.31.1 - -## 0.7.1 - -### Patch Changes - -- Updated dependencies [77327988] - - @graphql-mesh/types@0.31.0 - -## 0.7.0 - -### Minor Changes - -- 3f307c8c: feat(mock): use new stateful mock - -## 0.6.25 - -### Patch Changes - -- Updated dependencies [48f38a4a] - - @graphql-mesh/types@0.30.1 - -## 0.6.24 - -### Patch Changes - -- Updated dependencies [938cca26] - - @graphql-mesh/types@0.30.0 - -## 0.6.23 - -### Patch Changes - -- Updated dependencies [8ef29de1] - - @graphql-mesh/types@0.29.4 - -## 0.6.22 - -### Patch Changes - -- Updated dependencies [a02d86c3] -- Updated dependencies [a02d86c3] -- Updated dependencies [a02d86c3] - - @graphql-mesh/types@0.29.3 - -## 0.6.21 - -### Patch Changes - -- Updated dependencies [69d2198d] - - @graphql-mesh/utils@0.8.7 - -## 0.6.20 - -### Patch Changes - -- Updated dependencies [8e8848e1] - - @graphql-mesh/types@0.29.2 - -## 0.6.19 - -### Patch Changes - -- Updated dependencies [7e970f09] - - @graphql-mesh/utils@0.8.6 - -## 0.6.18 - -### Patch Changes - -- Updated dependencies [e8994875] - - @graphql-mesh/types@0.29.1 - -## 0.6.17 - -### Patch Changes - -- Updated dependencies [8d345721] - - @graphql-mesh/utils@0.8.5 - -## 0.6.16 - -### Patch Changes - -- Updated dependencies [c767df01] -- Updated dependencies [183cfa96] -- Updated dependencies [b3d7ecbf] - - @graphql-mesh/types@0.29.0 - - @graphql-mesh/utils@0.8.4 - -## 0.6.15 - -### Patch Changes - -- Updated dependencies [a22fc6f3] - - @graphql-mesh/types@0.28.0 - -## 0.6.14 - -### Patch Changes - -- Updated dependencies [c1de3e43] - - @graphql-mesh/types@0.27.0 - -## 0.6.13 - -### Patch Changes - -- Updated dependencies [75f6dff9] -- Updated dependencies [c4f207a7] - - @graphql-mesh/types@0.26.0 - -## 0.6.12 - -### Patch Changes - -- Updated dependencies [0df817d0] - - @graphql-mesh/types@0.25.0 - -## 0.6.11 - -### Patch Changes - -- Updated dependencies [08c2966e] - - @graphql-mesh/utils@0.8.3 - -## 0.6.10 - -### Patch Changes - -- Updated dependencies [b6262481] - - @graphql-mesh/types@0.24.0 - -## 0.6.9 - -### Patch Changes - -- Updated dependencies [e5b38574] - - @graphql-mesh/types@0.23.3 - -## 0.6.8 - -### Patch Changes - -- Updated dependencies [c85a54eb] - - @graphql-mesh/utils@0.8.2 - -## 0.6.7 - -### Patch Changes - -- Updated dependencies [c614e796] - - @graphql-mesh/types@0.23.2 - -## 0.6.6 - -### Patch Changes - -- Updated dependencies [59d77fb8] - - @graphql-mesh/types@0.23.1 - -## 0.6.5 - -### Patch Changes - -- Updated dependencies [e5cd44f5] - - @graphql-mesh/types@0.23.0 - -## 0.6.4 - -### Patch Changes - -- Updated dependencies [2fd59a83] - - @graphql-mesh/types@0.22.0 - -## 0.6.3 - -### Patch Changes - -- Updated dependencies [c064e3a8] - - @graphql-mesh/types@0.21.1 - - @graphql-mesh/utils@0.8.1 - -## 0.6.2 - -### Patch Changes - -- Updated dependencies [03f41cd0] - - @graphql-mesh/types@0.21.0 - -## 0.6.1 - -### Patch Changes - -- Updated dependencies [1e7fd602] - - @graphql-mesh/types@0.20.1 - -## 0.6.0 - -### Minor Changes - -- 2d14fcc3: bump graphql-tools to v7 - -### Patch Changes - -- Updated dependencies [2d14fcc3] -- Updated dependencies [2d14fcc3] - - @graphql-mesh/types@0.20.0 - - @graphql-mesh/utils@0.8.0 - -## 0.5.21 - -### Patch Changes - -- Updated dependencies [c1b073de] - - @graphql-mesh/types@0.19.0 - - @graphql-mesh/utils@0.7.0 - -## 0.5.20 - -### Patch Changes - -- Updated dependencies [5628fb14] - - @graphql-mesh/types@0.18.0 - -## 0.5.19 - -### Patch Changes - -- Updated dependencies [0560e806] - - @graphql-mesh/types@0.17.1 - -## 0.5.18 - -### Patch Changes - -- Updated dependencies [c26c8c56] - - @graphql-mesh/types@0.17.0 - -## 0.5.17 - -### Patch Changes - -- Updated dependencies [3770af72] - - @graphql-mesh/types@0.16.1 - -## 0.5.16 - -### Patch Changes - -- Updated dependencies [3ee10180] - - @graphql-mesh/types@0.16.0 - -## 0.5.15 - -### Patch Changes - -- Updated dependencies [0f17c58c] - - @graphql-mesh/types@0.15.0 - -## 0.5.14 - -### Patch Changes - -- Updated dependencies [937c87d2] - - @graphql-mesh/types@0.14.1 - -## 0.5.13 - -### Patch Changes - -- Updated dependencies [1e0445ee] - - @graphql-mesh/types@0.14.0 - -## 0.5.12 - -### Patch Changes - -- Updated dependencies [b50a68e3] - - @graphql-mesh/types@0.13.0 - -## 0.5.11 - -### Patch Changes - -- Updated dependencies [e2b34219] -- Updated dependencies [9a7a55c4] - - @graphql-mesh/types@0.12.0 - - @graphql-mesh/utils@0.6.0 - -## 0.5.10 - -### Patch Changes - -- 864ca71d: fix(mock): do not wrap the schema for mocking -- a3b42cfd: fix(runtime): handle transforms correctly for single source -- Updated dependencies [2dedda3c] -- Updated dependencies [a3b42cfd] - - @graphql-mesh/types@0.11.3 - - @graphql-mesh/utils@0.5.4 - -## 0.5.9 - -### Patch Changes - -- Updated dependencies [6d624576] - - @graphql-mesh/types@0.11.2 - -## 0.5.8 - -### Patch Changes - -- 405cec23: enhance(types): improve typings for PubSub -- Updated dependencies [405cec23] - - @graphql-mesh/types@0.11.1 - -## 0.5.7 - -### Patch Changes - -- Updated dependencies [48d89de2] - - @graphql-mesh/types@0.11.0 - -## 0.5.6 - -### Patch Changes - -- Updated dependencies [79adf4b6] -- Updated dependencies [79adf4b6] - - @graphql-mesh/utils@0.5.3 - - @graphql-mesh/types@0.10.0 - -## 0.5.5 - -### Patch Changes - -- Updated dependencies [2d5cc25b] - - @graphql-mesh/types@0.9.2 - -## 0.5.4 - -### Patch Changes - -- Updated dependencies [93ad5255] - - @graphql-mesh/types@0.9.1 - -## 0.5.3 - -### Patch Changes - -- Updated dependencies [9900d2fa] -- Updated dependencies [9900d2fa] - - @graphql-mesh/utils@0.5.2 - -## 0.5.2 - -### Patch Changes - -- Updated dependencies [c8d9695e] -- Updated dependencies [8f53be10] - - @graphql-mesh/types@0.9.0 - - @graphql-mesh/utils@0.5.1 - -## 0.5.1 - -### Patch Changes - -- Updated dependencies [d2e56567] - - @graphql-mesh/types@0.8.1 - -## 0.5.0 - -### Minor Changes - -- a789c312: feat(stitching): use batch execution - -### Patch Changes - -- Updated dependencies [a789c312] - - @graphql-mesh/types@0.8.0 - - @graphql-mesh/utils@0.5.0 - -## 0.4.0 - -### Minor Changes - -- 718e7a16: fix(runtime): fix browser support - -### Patch Changes - -- Updated dependencies [718e7a16] - - @graphql-mesh/types@0.7.0 - - @graphql-mesh/utils@0.4.0 - -## 0.3.2 - -### Patch Changes - -- Updated dependencies [5067ac73] -- Updated dependencies [a76d74bb] - - @graphql-mesh/types@0.6.0 - -## 0.3.1 - -### Patch Changes - -- Updated dependencies [dde7878b] - - @graphql-mesh/types@0.5.1 - -## 0.3.0 - -### Minor Changes - -- 705c4626: introduce an independent config package - -### Patch Changes - -- Updated dependencies [705c4626] - - @graphql-mesh/types@0.5.0 - - @graphql-mesh/utils@0.3.0 - -## 0.2.18 - -### Patch Changes - -- Updated dependencies [854dc550] -- Updated dependencies [6f21094b] - - @graphql-mesh/types@0.4.0 - -## 0.2.17 - -### Patch Changes - -- Updated dependencies [3c131332] - - @graphql-mesh/types@0.3.1 - -## 0.2.16 - -### Patch Changes - -- Updated dependencies [ccede377] - - @graphql-mesh/types@0.3.0 diff --git a/packages/transforms/mock/Readme.md b/packages/transforms/mock/Readme.md deleted file mode 100644 index ceadb0ea644c6..0000000000000 --- a/packages/transforms/mock/Readme.md +++ /dev/null @@ -1,17 +0,0 @@ -# @graphql-mesh/transform-mock - -The `mock` transform allow you to apply mocking for development usage. It provides both programmatic as well as declarative mocking. - -To get started with this transform, first install it: - -``` -npm i -D @graphql-mesh/transform-mock - -// or - -yarn add @graphql-mesh/transform-mock -D -``` - -For the complete documentation go to the [graphql-mesh website](https://www.graphql-mesh.com/docs/transforms/mock). - -Source can be found at Github https://github.com/Urigo/graphql-mesh diff --git a/packages/transforms/mock/src/index.ts b/packages/transforms/mock/src/index.ts deleted file mode 100644 index e4edd020adfe8..0000000000000 --- a/packages/transforms/mock/src/index.ts +++ /dev/null @@ -1,153 +0,0 @@ -import { GraphQLSchema, GraphQLFieldResolver, GraphQLResolveInfo } from 'graphql'; -import { MeshTransform, YamlConfig, MeshTransformOptions, ImportFn } from '@graphql-mesh/types'; -import { addMocksToSchema, createMockStore, IMocks } from '@graphql-tools/mock'; -import faker from 'faker'; -import { loadFromModuleExportExpression } from '@graphql-mesh/utils'; - -import { mocks as graphqlScalarsMocks } from 'graphql-scalars'; -import { getInterpolatedStringFactory } from '@graphql-mesh/string-interpolation'; -import { process } from '@graphql-mesh/cross-helpers'; -import { getResolversFromSchema } from '@graphql-tools/utils'; -import { addResolversToSchema } from '@graphql-tools/schema'; - -export default class MockingTransform implements MeshTransform { - noWrap = true; - private config: YamlConfig.MockingConfig; - private baseDir: string; - private importFn: ImportFn; - - constructor({ baseDir, config, importFn }: MeshTransformOptions) { - this.config = config; - this.baseDir = baseDir; - this.importFn = importFn; - } - - transformSchema(schema: GraphQLSchema, context: any, transformedSchema: GraphQLSchema) { - const configIf = this.config != null && 'if' in this.config ? this.config.if : true; - if (configIf) { - const mocks: IMocks = { - ...graphqlScalarsMocks, - }; - const resolvers: any = {}; - const typeMap = schema.getTypeMap(); - for (const typeName in typeMap) { - const type = typeMap[typeName]; - const examples = type.extensions.examples as any[]; - if (examples?.length) { - mocks[typeName] = () => examples[Math.floor(Math.random() * examples.length)]; - } - } - if (this.config?.mocks?.length) { - for (const fieldConfig of this.config.mocks) { - const fieldConfigIf = 'if' in fieldConfig ? fieldConfig.if : true; - if (fieldConfigIf) { - const [typeName, fieldName] = fieldConfig.apply.split('.'); - if (fieldName) { - if (fieldConfig.faker) { - let fakerFn: Function; // eslint-disable-line - const [service, method] = fieldConfig.faker.split('.'); - if (service in faker) { - fakerFn = () => (faker as any)[service][method](); - } else { - fakerFn = () => faker.fake(fieldConfig.faker || ''); - } - resolvers[typeName] = resolvers[typeName] || {}; - resolvers[typeName][fieldName] = fakerFn; - } else if (fieldConfig.custom) { - const exportedVal$ = loadFromModuleExportExpression(fieldConfig.custom, { - cwd: this.baseDir, - defaultExportName: 'default', - importFn: this.importFn, - }); - resolvers[typeName] = resolvers[typeName] || {}; - resolvers[typeName][fieldName] = (root: any, args: any, context: any, info: GraphQLResolveInfo) => { - context = context || {}; - context.mockStore = store; - return exportedVal$.then(exportedVal => - typeof exportedVal === 'function' ? exportedVal(root, args, context, info) : exportedVal - ); - }; - } else if ('length' in fieldConfig) { - resolvers[typeName] = resolvers[typeName] || {}; - resolvers[typeName][fieldName] = () => new Array(fieldConfig.length).fill({}); - } else if ('updateStore' in fieldConfig) { - const getFromStoreKeyFactory = getInterpolatedStringFactory(fieldConfig.store.key); - const updateStoreFactories = fieldConfig.updateStore.map(updateStoreConfig => ({ - updateStoreConfig, - keyFactory: getInterpolatedStringFactory(updateStoreConfig.key), - valueFactory: getInterpolatedStringFactory(updateStoreConfig.value), - })); - resolvers[typeName] = resolvers[typeName] || {}; - resolvers[typeName][fieldName] = (root: any, args: any, context: any, info: GraphQLResolveInfo) => { - const resolverData = { root, args, context, info, random: Date.now().toString(), env: process.env }; - updateStoreFactories.forEach(({ updateStoreConfig, keyFactory, valueFactory }) => { - const key = keyFactory(resolverData); - const value = valueFactory(resolverData); - store.set(updateStoreConfig.type, key, updateStoreConfig.fieldName, value); - }); - const key = getFromStoreKeyFactory(resolverData); - return store.get(fieldConfig.store.type, key, fieldConfig.store.fieldName); - }; - } else if ('store' in fieldConfig) { - const keyFactory = getInterpolatedStringFactory(fieldConfig.store.key); - resolvers[typeName] = resolvers[typeName] || {}; - resolvers[typeName][fieldName] = (root: any, args: any, context: any, info: GraphQLResolveInfo) => { - const key = keyFactory({ root, args, context, info, env: process.env }); - return store.get(fieldConfig.store.type, key, fieldConfig.store.fieldName); - }; - } - } else { - if (fieldConfig.faker) { - let fakerFn: GraphQLFieldResolver; - const [service, method] = fieldConfig.faker.split('.'); - if (service in faker) { - fakerFn = () => (faker as any)[service][method](); - } else { - fakerFn = () => faker.fake(fieldConfig.faker || ''); - } - mocks[typeName] = fakerFn; - } else if (fieldConfig.custom) { - const exportedVal$ = loadFromModuleExportExpression(fieldConfig.custom, { - cwd: this.baseDir, - defaultExportName: 'default', - importFn: this.importFn, - }); - mocks[typeName] = () => { - return exportedVal$.then(exportedVal => - typeof exportedVal === 'function' ? exportedVal(store) : exportedVal - ); - }; - } - } - } - } - } - const store = createMockStore({ schema, mocks }); - if (this.config?.initializeStore) { - const initializeStoreFn$ = loadFromModuleExportExpression(this.config.initializeStore, { - cwd: this.baseDir, - defaultExportName: 'default', - importFn: this.importFn, - }); - // eslint-disable-next-line no-void - void initializeStoreFn$.then(fn => fn(store)); - } - const newResolvers = getResolversFromSchema( - addMocksToSchema({ - schema: transformedSchema || schema, - store, - mocks, - resolvers, - preserveResolvers: this.config?.preserveResolvers, - }), - true - ); - addResolversToSchema({ - schema: transformedSchema || schema, - resolvers: newResolvers, - updateResolversInPlace: true, - }); - } - return schema; - } -} diff --git a/packages/transforms/naming-convention/package.json b/packages/transforms/naming-convention/package.json index 2f8e46a516ea4..c8f24bf577b2b 100644 --- a/packages/transforms/naming-convention/package.json +++ b/packages/transforms/naming-convention/package.json @@ -30,9 +30,9 @@ "dependencies": { "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/wrap": "8.5.1", - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/wrap": "9.0.0", + "@graphql-tools/delegate": "9.0.0", + "@graphql-tools/utils": "8.9.1", "change-case": "4.1.2", "upper-case": "2.0.2", "lower-case": "2.0.2", diff --git a/packages/transforms/prefix/package.json b/packages/transforms/prefix/package.json index 8db1198d2a557..40519aa4877b0 100644 --- a/packages/transforms/prefix/package.json +++ b/packages/transforms/prefix/package.json @@ -30,9 +30,9 @@ "dependencies": { "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/wrap": "8.5.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/delegate": "9.0.0", + "@graphql-tools/wrap": "9.0.0", + "@graphql-tools/utils": "8.9.1", "graphql-scalars": "1.17.0", "tslib": "^2.4.0" }, diff --git a/packages/transforms/prune/package.json b/packages/transforms/prune/package.json index ef29b59da4348..f7a33fb9faca8 100644 --- a/packages/transforms/prune/package.json +++ b/packages/transforms/prune/package.json @@ -29,7 +29,7 @@ }, "dependencies": { "@graphql-mesh/types": "0.78.6", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "tslib": "^2.4.0" }, "publishConfig": { diff --git a/packages/transforms/rate-limit/package.json b/packages/transforms/rate-limit/package.json index aebc26d77506b..dbe55847b5fe6 100644 --- a/packages/transforms/rate-limit/package.json +++ b/packages/transforms/rate-limit/package.json @@ -30,15 +30,15 @@ "dependencies": { "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "@graphql-mesh/cross-helpers": "0.2.0", "@graphql-mesh/string-interpolation": "0.3.0", "tslib": "^2.4.0" }, "devDependencies": { "@graphql-mesh/cache-localforage": "0.6.23", - "@graphql-tools/schema": "8.5.1", - "@graphql-tools/wrap": "8.5.1" + "@graphql-tools/schema": "9.0.0", + "@graphql-tools/wrap": "9.0.0" }, "publishConfig": { "access": "public", diff --git a/packages/transforms/rename/package.json b/packages/transforms/rename/package.json index e037f849d77d6..909d8a9232441 100644 --- a/packages/transforms/rename/package.json +++ b/packages/transforms/rename/package.json @@ -29,14 +29,14 @@ }, "devDependencies": { "@graphql-mesh/cache-localforage": "0.6.23", - "@graphql-tools/schema": "8.5.1" + "@graphql-tools/schema": "9.0.0" }, "dependencies": { "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/wrap": "8.5.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/delegate": "9.0.0", + "@graphql-tools/wrap": "9.0.0", + "@graphql-tools/utils": "8.9.1", "tslib": "^2.4.0" }, "publishConfig": { diff --git a/packages/transforms/replace-field/package.json b/packages/transforms/replace-field/package.json index 8ac491a8d07d6..dfde7243f771f 100644 --- a/packages/transforms/replace-field/package.json +++ b/packages/transforms/replace-field/package.json @@ -30,10 +30,10 @@ "dependencies": { "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/code-file-loader": "7.3.1", - "@graphql-tools/graphql-file-loader": "7.5.0", - "@graphql-tools/load": "7.7.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/code-file-loader": "7.3.2", + "@graphql-tools/graphql-file-loader": "7.5.1", + "@graphql-tools/load": "7.7.3", + "@graphql-tools/utils": "8.9.1", "tslib": "^2.4.0" }, "publishConfig": { @@ -42,6 +42,6 @@ }, "devDependencies": { "@graphql-mesh/cache-localforage": "0.6.23", - "@graphql-tools/schema": "8.5.1" + "@graphql-tools/schema": "9.0.0" } } diff --git a/packages/transforms/resolvers-composition/package.json b/packages/transforms/resolvers-composition/package.json index 4360824561f5a..a62525c1f390a 100644 --- a/packages/transforms/resolvers-composition/package.json +++ b/packages/transforms/resolvers-composition/package.json @@ -30,8 +30,8 @@ "dependencies": { "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/resolvers-composition": "6.5.1", - "@graphql-tools/schema": "8.5.1", + "@graphql-tools/resolvers-composition": "6.5.2", + "@graphql-tools/schema": "9.0.0", "tslib": "^2.4.0" }, "publishConfig": { diff --git a/packages/transforms/snapshot/package.json b/packages/transforms/snapshot/package.json index 845298581ca8d..6f8f3342e70a5 100644 --- a/packages/transforms/snapshot/package.json +++ b/packages/transforms/snapshot/package.json @@ -34,9 +34,9 @@ "@graphql-mesh/cross-helpers": "0.2.0", "@graphql-mesh/types": "0.78.6", "@graphql-mesh/utils": "0.37.7", - "@graphql-tools/resolvers-composition": "6.5.1", - "@graphql-tools/schema": "8.5.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/resolvers-composition": "6.5.2", + "@graphql-tools/schema": "9.0.0", + "@graphql-tools/utils": "8.9.1", "object-hash": "3.0.0", "tslib": "^2.4.0" }, diff --git a/packages/transforms/type-merging/package.json b/packages/transforms/type-merging/package.json index e1648697a56f3..bd589ec77dc8c 100644 --- a/packages/transforms/type-merging/package.json +++ b/packages/transforms/type-merging/package.json @@ -29,8 +29,8 @@ }, "dependencies": { "@graphql-mesh/types": "0.78.6", - "@graphql-tools/stitching-directives": "2.3.1", - "@graphql-tools/delegate": "8.8.1", + "@graphql-tools/stitching-directives": "2.3.2", + "@graphql-tools/delegate": "9.0.0", "@graphql-mesh/utils": "0.37.7", "tslib": "^2.4.0" }, diff --git a/packages/types/package.json b/packages/types/package.json index 21ebb7effa09d..9d47bb1e80a37 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -29,8 +29,8 @@ }, "dependencies": { "@graphql-mesh/store": "0.8.26", - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/delegate": "9.0.0", + "@graphql-tools/utils": "8.9.1", "@graphql-typed-document-node/core": "3.1.1", "tslib": "^2.4.0" }, diff --git a/packages/types/src/config-schema.json b/packages/types/src/config-schema.json index 3c746a9d34bda..d7d6fd5ace09a 100644 --- a/packages/types/src/config-schema.json +++ b/packages/types/src/config-schema.json @@ -327,10 +327,6 @@ "additionalItems": false, "description": "Transformer to hoist GraphQL fields" }, - "mock": { - "$ref": "#/definitions/MockingConfig", - "description": "Mock configuration for your source" - }, "namingConvention": { "$ref": "#/definitions/NamingConventionTransformConfig", "description": "Transformer to apply naming convention to GraphQL Types" @@ -514,6 +510,10 @@ "liveQuery": { "$ref": "#/definitions/LiveQueryConfig" }, + "mock": { + "$ref": "#/definitions/MockingConfig", + "description": "Mock configuration for your source" + }, "rateLimit": { "$ref": "#/definitions/RateLimitPluginConfig", "description": "RateLimit plugin" @@ -2119,6 +2119,120 @@ }, "required": ["interval", "invalidate"] }, + "MockingConfig": { + "additionalProperties": false, + "type": "object", + "title": "MockingConfig", + "properties": { + "if": { + "type": "boolean", + "description": "If this expression is truthy, mocking would be enabled\nYou can use environment variables expression, for example: `${MOCKING_ENABLED}`" + }, + "preserveResolvers": { + "type": "boolean", + "description": "Do not mock any other resolvers other than defined in `mocks`.\nFor example, you can enable this if you don't want to mock entire schema but partially." + }, + "mocks": { + "type": "array", + "items": { + "$ref": "#/definitions/MockingFieldConfig" + }, + "additionalItems": false, + "description": "Mock configurations" + }, + "initializeStore": { + "anyOf": [ + { + "type": "object", + "additionalProperties": true + }, + { + "type": "string" + }, + { + "type": "array", + "additionalItems": true + } + ], + "description": "The path to the code runs before the store is attached to the schema" + } + } + }, + "MockingFieldConfig": { + "additionalProperties": false, + "type": "object", + "title": "MockingFieldConfig", + "properties": { + "apply": { + "type": "string", + "description": "Resolver path\nExample: User.firstName" + }, + "if": { + "type": "boolean", + "description": "If this expression is truthy, mocking would be enabled\nYou can use environment variables expression, for example: `${MOCKING_ENABLED}`" + }, + "faker": { + "type": "string", + "description": "Faker.js expression or function\nRead more (https://github.com/marak/Faker.js/#fakerfake)\nExample:\nfaker: `name.firstName`\nfaker: `{{ name.firstName }} {{ name.lastName }}`" + }, + "custom": { + "type": "string", + "description": "Custom mocking\nIt can be a module or json file.\nBoth \"moduleName#exportName\" or only \"moduleName\" would work" + }, + "length": { + "type": "integer", + "description": "Length of the mock list\nFor the list types `[ObjectType]`, how many `ObjectType` you want to return?\ndefault: 2" + }, + "store": { + "$ref": "#/definitions/GetFromMockStoreConfig", + "description": "Get the data from the mock store" + }, + "updateStore": { + "type": "array", + "items": { + "$ref": "#/definitions/UpdateMockStoreConfig" + }, + "additionalItems": false, + "description": "Update the data on the mock store" + } + }, + "required": ["apply"] + }, + "GetFromMockStoreConfig": { + "additionalProperties": false, + "type": "object", + "title": "GetFromMockStoreConfig", + "properties": { + "type": { + "type": "string" + }, + "key": { + "type": "string" + }, + "fieldName": { + "type": "string" + } + } + }, + "UpdateMockStoreConfig": { + "additionalProperties": false, + "type": "object", + "title": "UpdateMockStoreConfig", + "properties": { + "type": { + "type": "string" + }, + "key": { + "type": "string" + }, + "fieldName": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, "RateLimitPluginConfig": { "additionalProperties": false, "type": "object", @@ -2855,120 +2969,6 @@ }, "required": ["fieldName", "filterArgs"] }, - "MockingConfig": { - "additionalProperties": false, - "type": "object", - "title": "MockingConfig", - "properties": { - "if": { - "type": "boolean", - "description": "If this expression is truthy, mocking would be enabled\nYou can use environment variables expression, for example: `${MOCKING_ENABLED}`" - }, - "preserveResolvers": { - "type": "boolean", - "description": "Do not mock any other resolvers other than defined in `mocks`.\nFor example, you can enable this if you don't want to mock entire schema but partially." - }, - "mocks": { - "type": "array", - "items": { - "$ref": "#/definitions/MockingFieldConfig" - }, - "additionalItems": false, - "description": "Mock configurations" - }, - "initializeStore": { - "anyOf": [ - { - "type": "object", - "additionalProperties": true - }, - { - "type": "string" - }, - { - "type": "array", - "additionalItems": true - } - ], - "description": "The path to the code runs before the store is attached to the schema" - } - } - }, - "MockingFieldConfig": { - "additionalProperties": false, - "type": "object", - "title": "MockingFieldConfig", - "properties": { - "apply": { - "type": "string", - "description": "Resolver path\nExample: User.firstName" - }, - "if": { - "type": "boolean", - "description": "If this expression is truthy, mocking would be enabled\nYou can use environment variables expression, for example: `${MOCKING_ENABLED}`" - }, - "faker": { - "type": "string", - "description": "Faker.js expression or function\nRead more (https://github.com/marak/Faker.js/#fakerfake)\nExample:\nfaker: `name.firstName`\nfaker: `{{ name.firstName }} {{ name.lastName }}`" - }, - "custom": { - "type": "string", - "description": "Custom mocking\nIt can be a module or json file.\nBoth \"moduleName#exportName\" or only \"moduleName\" would work" - }, - "length": { - "type": "integer", - "description": "Length of the mock list\nFor the list types `[ObjectType]`, how many `ObjectType` you want to return?\ndefault: 2" - }, - "store": { - "$ref": "#/definitions/GetFromMockStoreConfig", - "description": "Get the data from the mock store" - }, - "updateStore": { - "type": "array", - "items": { - "$ref": "#/definitions/UpdateMockStoreConfig" - }, - "additionalItems": false, - "description": "Update the data on the mock store" - } - }, - "required": ["apply"] - }, - "GetFromMockStoreConfig": { - "additionalProperties": false, - "type": "object", - "title": "GetFromMockStoreConfig", - "properties": { - "type": { - "type": "string" - }, - "key": { - "type": "string" - }, - "fieldName": { - "type": "string" - } - } - }, - "UpdateMockStoreConfig": { - "additionalProperties": false, - "type": "object", - "title": "UpdateMockStoreConfig", - "properties": { - "type": { - "type": "string" - }, - "key": { - "type": "string" - }, - "fieldName": { - "type": "string" - }, - "value": { - "type": "string" - } - } - }, "NamingConventionTransformConfig": { "additionalProperties": false, "type": "object", diff --git a/packages/types/src/config.ts b/packages/types/src/config.ts index 8a258c944067e..db9f7a1f68a8e 100644 --- a/packages/types/src/config.ts +++ b/packages/types/src/config.ts @@ -1200,7 +1200,6 @@ export interface Transform { * Transformer to hoist GraphQL fields */ hoistField?: HoistFieldTransformConfig[]; - mock?: MockingConfig; namingConvention?: NamingConventionTransformConfig; prefix?: PrefixTransformConfig; prune?: PruneTransformConfig; @@ -1363,80 +1362,6 @@ export interface HoistFieldTransformFieldPathConfigObject { */ filterArgs: string[]; } -/** - * Mock configuration for your source - */ -export interface MockingConfig { - /** - * If this expression is truthy, mocking would be enabled - * You can use environment variables expression, for example: `${MOCKING_ENABLED}` - */ - if?: boolean; - /** - * Do not mock any other resolvers other than defined in `mocks`. - * For example, you can enable this if you don't want to mock entire schema but partially. - */ - preserveResolvers?: boolean; - /** - * Mock configurations - */ - mocks?: MockingFieldConfig[]; - /** - * The path to the code runs before the store is attached to the schema - */ - initializeStore?: any; -} -export interface MockingFieldConfig { - /** - * Resolver path - * Example: User.firstName - */ - apply: string; - /** - * If this expression is truthy, mocking would be enabled - * You can use environment variables expression, for example: `${MOCKING_ENABLED}` - */ - if?: boolean; - /** - * Faker.js expression or function - * Read more (https://github.com/marak/Faker.js/#fakerfake) - * Example: - * faker: `name.firstName` - * faker: `{{ name.firstName }} {{ name.lastName }}` - */ - faker?: string; - /** - * Custom mocking - * It can be a module or json file. - * Both "moduleName#exportName" or only "moduleName" would work - */ - custom?: string; - /** - * Length of the mock list - * For the list types `[ObjectType]`, how many `ObjectType` you want to return? - * default: 2 - */ - length?: number; - store?: GetFromMockStoreConfig; - /** - * Update the data on the mock store - */ - updateStore?: UpdateMockStoreConfig[]; -} -/** - * Get the data from the mock store - */ -export interface GetFromMockStoreConfig { - type?: string; - key?: string; - fieldName?: string; -} -export interface UpdateMockStoreConfig { - type?: string; - key?: string; - fieldName?: string; - value?: string; -} /** * Transformer to apply naming convention to GraphQL Types */ @@ -1874,6 +1799,7 @@ export interface Plugin { maskedErrors?: MaskedErrorsPluginConfig; immediateIntrospection?: any; liveQuery?: LiveQueryConfig; + mock?: MockingConfig; rateLimit?: RateLimitPluginConfig; responseCache?: ResponseCacheConfig; webhook?: WebhookPluginConfig; @@ -1903,6 +1829,80 @@ export interface LiveQueryPolling { interval: number; invalidate: string[]; } +/** + * Mock configuration for your source + */ +export interface MockingConfig { + /** + * If this expression is truthy, mocking would be enabled + * You can use environment variables expression, for example: `${MOCKING_ENABLED}` + */ + if?: boolean; + /** + * Do not mock any other resolvers other than defined in `mocks`. + * For example, you can enable this if you don't want to mock entire schema but partially. + */ + preserveResolvers?: boolean; + /** + * Mock configurations + */ + mocks?: MockingFieldConfig[]; + /** + * The path to the code runs before the store is attached to the schema + */ + initializeStore?: any; +} +export interface MockingFieldConfig { + /** + * Resolver path + * Example: User.firstName + */ + apply: string; + /** + * If this expression is truthy, mocking would be enabled + * You can use environment variables expression, for example: `${MOCKING_ENABLED}` + */ + if?: boolean; + /** + * Faker.js expression or function + * Read more (https://github.com/marak/Faker.js/#fakerfake) + * Example: + * faker: `name.firstName` + * faker: `{{ name.firstName }} {{ name.lastName }}` + */ + faker?: string; + /** + * Custom mocking + * It can be a module or json file. + * Both "moduleName#exportName" or only "moduleName" would work + */ + custom?: string; + /** + * Length of the mock list + * For the list types `[ObjectType]`, how many `ObjectType` you want to return? + * default: 2 + */ + length?: number; + store?: GetFromMockStoreConfig; + /** + * Update the data on the mock store + */ + updateStore?: UpdateMockStoreConfig[]; +} +/** + * Get the data from the mock store + */ +export interface GetFromMockStoreConfig { + type?: string; + key?: string; + fieldName?: string; +} +export interface UpdateMockStoreConfig { + type?: string; + key?: string; + fieldName?: string; + value?: string; +} /** * RateLimit plugin */ diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index a83dd46aec996..2f002b92180c8 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -119,6 +119,8 @@ export type MeshPluginOptions = TConfig & { logger: Logger; cache: KeyValueCache; pubsub: MeshPubSub; + baseDir: string; + importFn: ImportFn; }; export type MeshPluginFactory = (options: MeshPluginOptions) => Plugin; diff --git a/packages/urql/package.json b/packages/urql/package.json index ebcbb9e60af77..e743d7f1ced6e 100644 --- a/packages/urql/package.json +++ b/packages/urql/package.json @@ -25,7 +25,7 @@ } }, "dependencies": { - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/utils": "8.9.1", "tslib": "^2.4.0" }, "devDependencies": { diff --git a/packages/utils/package.json b/packages/utils/package.json index 92781c5e9a312..092a907afd479 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -35,8 +35,8 @@ }, "dependencies": { "@graphql-mesh/string-interpolation": "0.3.0", - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/delegate": "9.0.0", + "@graphql-tools/utils": "8.9.1", "@graphql-typed-document-node/core": "3.1.1", "@graphql-mesh/cross-helpers": "0.2.0", "@graphql-mesh/types": "0.78.6", diff --git a/packages/utils/src/apply-transforms.ts b/packages/utils/src/apply-transforms.ts index cd65013ac1c07..df0f7c6337964 100644 --- a/packages/utils/src/apply-transforms.ts +++ b/packages/utils/src/apply-transforms.ts @@ -11,7 +11,7 @@ export function applySchemaTransforms( if (transforms?.length) { return transforms.reduce( (schema, transform) => - 'transformSchema' in transform ? transform.transformSchema(schema, subschemaConfig, transformedSchema) : schema, + 'transformSchema' in transform ? transform.transformSchema(schema, subschemaConfig) : schema, originalWrappingSchema ); } diff --git a/renovate.json b/renovate.json index 38da863d0d71a..6dffc99fbb205 100644 --- a/renovate.json +++ b/renovate.json @@ -1,5 +1,11 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["github>the-guild-org/shared-config:renovate"], - "ignoreDeps": ["typedoc", "typedoc-plugin-markdown", "typedoc-plugin-rename-defaults", "@theguild/components", "guild-docs"] + "ignoreDeps": [ + "typedoc", + "typedoc-plugin-markdown", + "typedoc-plugin-rename-defaults", + "@theguild/components", + "guild-docs" + ] } diff --git a/website/package.json b/website/package.json index 192309bff695c..695fad1f80a5f 100644 --- a/website/package.json +++ b/website/package.json @@ -35,10 +35,10 @@ ] }, "devDependencies": { - "@guild-docs/algolia": "0.2.0", + "@guild-docs/algolia": "0.2.2", "@theguild/tailwind-config": "0.0.2", "@types/node": "18.6.1", - "@types/react": "18.0.16", + "@types/react": "18.0.17", "cross-env": "7.0.3", "eslint-config-next": "12.2.4", "postcss-import": "14.1.0", diff --git a/website/src/pages/docs/transforms/mock.mdx b/website/src/pages/docs/transforms/mock.mdx index 928b44c35a45e..64886d4ae4762 100644 --- a/website/src/pages/docs/transforms/mock.mdx +++ b/website/src/pages/docs/transforms/mock.mdx @@ -1,19 +1,19 @@ import { PackageCmd, Callout } from '@theguild/components' -# Mock Transform +# Mock Plugin -The `mock` transform allows you to apply mocking for development usage. +The `mock` plugin allows you to apply mocking for development usage. -To get started with this transform, install it: +To get started with this plugin, install it: - + ## How to use? Add the following configuration to your Mesh config file: ```yaml -transforms: +plugins: - mock: mocks: - apply: User.firstName @@ -27,7 +27,7 @@ The example above will replace the resolver of `User.firstName` with a mock that You can mock a specific field of a type; ```yaml -transforms: +plugins: - mock: mocks: - apply: User.fullName @@ -39,7 +39,7 @@ transforms: You can mock types with custom mock functions like below; ```yaml -transforms: +plugins: - mock: mocks: - apply: DateTime @@ -101,7 +101,7 @@ type User { ``` ```yaml -transforms: +plugins: - mock: mocks: - apply: User.fullName @@ -145,7 +145,7 @@ Initially, populating the list of users can be done by utilizing the `initialize There is no need to provide a particular array mocking definition, like `length`. It will automatically be taken based on the mock data. ```yaml -transforms: +plugins: - mock: initializeStore: ./myMock#initializeStore ``` @@ -177,7 +177,7 @@ type Query { ``` ```yaml -transforms: +plugins: - mock: initializeStore: absolute-path-to-file/myMock#initializeStore mocks: @@ -204,7 +204,7 @@ type Mutation { ``` ```yaml -transforms: +plugins: - mock: mocks: - apply: Mutation.changeMyName diff --git a/yarn.lock b/yarn.lock index 94076ad092378..4126ebd4be60e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2689,17 +2689,17 @@ dependencies: tslib "^2.0.1" -"@graphql-codegen/core@2.6.0": - version "2.6.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/core/-/core-2.6.0.tgz#06a237892285aa6364a8ff40bb234e5b553b4489" - integrity sha512-7uZGnLCMR/pnh/5CsyI4y5bBvRndNHFs+AWpMUUjDBcjMRrMaavu37VyyYDz4/ob0BnQJt8RTBN9eArS9PLYAQ== +"@graphql-codegen/core@2.6.1": + version "2.6.1" + resolved "https://registry.yarnpkg.com/@graphql-codegen/core/-/core-2.6.1.tgz#57599a2e97d3c5109d888781587eba65f3c6cabe" + integrity sha512-X6IIQCIvEm+g6xcd/5ml/Tmz8U6pd4q9s1mM4WcstBQ26v+gzzlj6lc7+6ALhrNm25gHKQ4PiVoG2W0pw503Dw== dependencies: - "@graphql-codegen/plugin-helpers" "^2.5.0" + "@graphql-codegen/plugin-helpers" "^2.6.2" "@graphql-tools/schema" "^8.5.0" "@graphql-tools/utils" "^8.8.0" tslib "~2.4.0" -"@graphql-codegen/plugin-helpers@^2.5.0", "@graphql-codegen/plugin-helpers@^2.6.0", "@graphql-codegen/plugin-helpers@^2.6.2": +"@graphql-codegen/plugin-helpers@^2.6.2": version "2.6.2" resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.6.2.tgz#3c65d89fc9b61914235fc7cb14f1d48492d27944" integrity sha512-bt5PNix0MwzWP53UdaYm6URrVMWU8RlQhrTSLFjxQ8ShS5zoTlQtpZJGZc5ONqFgKa83qbUmzXUtP8oRVVn8zw== @@ -2711,22 +2711,22 @@ lodash "~4.17.0" tslib "~2.4.0" -"@graphql-codegen/schema-ast@^2.5.0": - version "2.5.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-2.5.0.tgz#1b33a17924f0dd4c78d4f2c9dfce215d0bdd29ae" - integrity sha512-nlF4Yc7h90nmogG2E11TeFJ3/hCkb4SDMSdbJX68b1mhvVEji/kq3zWYKAQ+lAzjZ7HF94Eylm3MrZAjjpCKIA== +"@graphql-codegen/schema-ast@^2.5.1": + version "2.5.1" + resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-2.5.1.tgz#ce030ae6de5dacd745848009ba0ca18c9c30910c" + integrity sha512-tewa5DEKbglWn7kYyVBkh3J8YQ5ALqAMVmZwiVFIGOao5u66nd+e4HuFqp0u+Jpz4SJGGi0ap/oFrEvlqLjd2A== dependencies: - "@graphql-codegen/plugin-helpers" "^2.5.0" + "@graphql-codegen/plugin-helpers" "^2.6.2" "@graphql-tools/utils" "^8.8.0" tslib "~2.4.0" -"@graphql-codegen/typed-document-node@2.3.2": - version "2.3.2" - resolved "https://registry.yarnpkg.com/@graphql-codegen/typed-document-node/-/typed-document-node-2.3.2.tgz#48efec13ca6e72c7309d43826a6eca1f0adf9b34" - integrity sha512-QJtSXEFMx5Ze5vqGXOphhuOAIbWfTPjTAMoNFXtaLsbrihooDNq2/BIujAxHc/Cw0pS2JjMRjbur118v0yXbSQ== +"@graphql-codegen/typed-document-node@2.3.3": + version "2.3.3" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typed-document-node/-/typed-document-node-2.3.3.tgz#898b36738ee5377d83bd381460faf4c32013afe8" + integrity sha512-0zUPMr1pAqzMyPvtpnlfCbwQgS22t2kPhhfGQs2Yw32O+0+vn1ACcvxt0x1TfUwspYfFJa8AAXJ8NjwmDVAFMQ== dependencies: - "@graphql-codegen/plugin-helpers" "^2.6.0" - "@graphql-codegen/visitor-plugin-common" "2.12.0" + "@graphql-codegen/plugin-helpers" "^2.6.2" + "@graphql-codegen/visitor-plugin-common" "2.12.1" auto-bind "~4.0.0" change-case-all "1.0.14" tslib "~2.4.0" @@ -2741,54 +2741,38 @@ auto-bind "~4.0.0" tslib "~2.4.0" -"@graphql-codegen/typescript-operations@2.5.2": - version "2.5.2" - resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-2.5.2.tgz#17dd6837eadb5bcd42b0c822b78f75c44a9a3c0b" - integrity sha512-iFZsdsF4380WrN2UQHfgLjrjyo9VFIsZuCaHe1OoC4fQQ+P3t/GfJ0aj0hc5hNwTNJZ3BzBLHSRgE6wqO4591A== +"@graphql-codegen/typescript-operations@2.5.3": + version "2.5.3" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-2.5.3.tgz#c6fd3f209e3482b86b08050685af8fa45ab14297" + integrity sha512-s+pA+Erm0HeBb/D5cNrflwRM5KWhkiA5cbz4uA99l3fzFPveoQBPfRCBu0XAlJLP/kBDy64+o4B8Nfc7wdRtmA== dependencies: - "@graphql-codegen/plugin-helpers" "^2.6.0" - "@graphql-codegen/typescript" "^2.7.2" - "@graphql-codegen/visitor-plugin-common" "2.12.0" + "@graphql-codegen/plugin-helpers" "^2.6.2" + "@graphql-codegen/typescript" "^2.7.3" + "@graphql-codegen/visitor-plugin-common" "2.12.1" auto-bind "~4.0.0" tslib "~2.4.0" -"@graphql-codegen/typescript-resolvers@2.7.2": - version "2.7.2" - resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-resolvers/-/typescript-resolvers-2.7.2.tgz#c5475400e505b145e956f6695944b00c77d341e0" - integrity sha512-Yo0ab37mG438z8xcdtApDyTECqfdH2CeamKTjTQiOxeUBCWZt0MgIjt6jIz2ZTQJVsL7AO5aFjPDoS+00dkLQA== +"@graphql-codegen/typescript-resolvers@2.7.3": + version "2.7.3" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-resolvers/-/typescript-resolvers-2.7.3.tgz#eac354fc68a796a94055b176f45d628430042285" + integrity sha512-6Yh1y7Z93H/PxF8tnUb3Bp1q+JuS31Dg5jZI1/FdXp931jW6pgK6g60+CKpxlIBcY6MNrFZkYKL/VRPTc8u00A== dependencies: - "@graphql-codegen/plugin-helpers" "^2.6.0" - "@graphql-codegen/typescript" "^2.7.2" - "@graphql-codegen/visitor-plugin-common" "2.12.0" + "@graphql-codegen/plugin-helpers" "^2.6.2" + "@graphql-codegen/typescript" "^2.7.3" + "@graphql-codegen/visitor-plugin-common" "2.12.1" "@graphql-tools/utils" "^8.8.0" auto-bind "~4.0.0" tslib "~2.4.0" -"@graphql-codegen/typescript@2.7.2", "@graphql-codegen/typescript@^2.7.2": - version "2.7.2" - resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-2.7.2.tgz#ad47ad1abf8e49f455a47cb71d2d9fd149d7846d" - integrity sha512-lFqvLgw4oAChA9+ifC2K7Ie+mE+XvHcZqwXsm45bpF7jbmqfgjS0gvQNfu2egi6u4hdg+xL+olNxwnyhayrikw== - dependencies: - "@graphql-codegen/plugin-helpers" "^2.6.0" - "@graphql-codegen/schema-ast" "^2.5.0" - "@graphql-codegen/visitor-plugin-common" "2.12.0" - auto-bind "~4.0.0" - tslib "~2.4.0" - -"@graphql-codegen/visitor-plugin-common@2.12.0": - version "2.12.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.12.0.tgz#49b055c5c2c5c0890f2226ce9e84bb73dfd83801" - integrity sha512-ULhFgOY05U+dlPsXkPT2wSBaAZMtEuHPL5Q1u8xwBdHWHi/uT4L5zEcBx+If/f6UWrOw7ufjEM0L7XSupe1iCA== +"@graphql-codegen/typescript@2.7.3", "@graphql-codegen/typescript@^2.7.3": + version "2.7.3" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-2.7.3.tgz#ad786a1c74e16eca8e01e7a8f28078e1c24eeb61" + integrity sha512-EzX/acijXtbG/AwPzho2ZZWaNo00+xAbsRDP+vnT2PwQV3AYq3/5bFvjq1XfAGWbTntdmlYlIwC9hf5bI85WVA== dependencies: - "@graphql-codegen/plugin-helpers" "^2.6.0" - "@graphql-tools/optimize" "^1.3.0" - "@graphql-tools/relay-operation-optimizer" "^6.5.0" - "@graphql-tools/utils" "^8.8.0" + "@graphql-codegen/plugin-helpers" "^2.6.2" + "@graphql-codegen/schema-ast" "^2.5.1" + "@graphql-codegen/visitor-plugin-common" "2.12.1" auto-bind "~4.0.0" - change-case-all "1.0.14" - dependency-graph "^0.11.0" - graphql-tag "^2.11.0" - parse-filepath "^1.0.2" tslib "~2.4.0" "@graphql-codegen/visitor-plugin-common@2.12.1": @@ -2816,33 +2800,33 @@ object-inspect "1.10.3" tslib "^2.0.0" -"@graphql-tools/batch-delegate@8.3.1": - version "8.3.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/batch-delegate/-/batch-delegate-8.3.1.tgz#fbc4053aeadb142f0c97a7e240e168963dfaa6f7" - integrity sha512-zbgc82Xoab+0QtdLLzCkYRy3XtBIdzcdKOIPnjOHp3aZqO6SZg8UIIGhLecK1Jd0zlU4j4HZt6+ZQDNvsR2/WQ== +"@graphql-tools/batch-delegate@8.3.2": + version "8.3.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/batch-delegate/-/batch-delegate-8.3.2.tgz#3028ce4c6445899f71e0ab56da3a6335fb8c4901" + integrity sha512-yCz39bY4JsklZEweluY2u2c2FwfQtpc9htAuPSeGL26Kf0wSL89SyHru/tA3dZvoc4KdLun9NwAV9ll/vZlTdg== dependencies: - "@graphql-tools/delegate" "8.8.1" - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/delegate" "9.0.0" + "@graphql-tools/utils" "8.9.1" dataloader "2.1.0" tslib "^2.4.0" -"@graphql-tools/batch-execute@8.5.1": - version "8.5.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/batch-execute/-/batch-execute-8.5.1.tgz#fa3321d58c64041650be44250b1ebc3aab0ba7a9" - integrity sha512-hRVDduX0UDEneVyEWtc2nu5H2PxpfSfM/riUlgZvo/a/nG475uyehxR5cFGvTEPEQUKY3vGIlqvtRigzqTfCew== +"@graphql-tools/batch-execute@8.5.2": + version "8.5.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/batch-execute/-/batch-execute-8.5.2.tgz#b6547d401992588ca218def5e04d53903565f2a8" + integrity sha512-ykB7RwDjdtR6MdBz6aB0/LzU8V0TJA93ziIWiQZRgC30oPye3ROUuxITMD3Trij6iFQyyuuecGm9GxM9oEvEcQ== dependencies: - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/utils" "8.9.1" dataloader "2.1.0" tslib "^2.4.0" value-or-promise "1.0.11" -"@graphql-tools/code-file-loader@7.3.1": - version "7.3.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/code-file-loader/-/code-file-loader-7.3.1.tgz#82cf1e7c5366fd6e084f607e6c14a4447110f035" - integrity sha512-nyr0zln7fi4E8lK98THdb8k3gPsSCiyXRFTTNhPRUCPeOD2RCpUZCClM5AB0xv8HjILAipdaxjhb2elPvnY5dw== +"@graphql-tools/code-file-loader@7.3.2": + version "7.3.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/code-file-loader/-/code-file-loader-7.3.2.tgz#16ca44dc657df84ba45595199daae09e239eca17" + integrity sha512-ycYsaQ35DBg4OZbSajvuawbhUn/+SULCRFqmy3eyUgqDb5u0AQHJq/R4gYdx+pxV1zrzGOCPlDRYdY372cRRnQ== dependencies: - "@graphql-tools/graphql-tag-pluck" "7.3.1" - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/graphql-tag-pluck" "7.3.2" + "@graphql-tools/utils" "8.9.1" globby "^11.0.3" tslib "^2.4.0" unixify "^1.0.0" @@ -2858,14 +2842,14 @@ is-promise "4.0.0" tslib "~2.0.1" -"@graphql-tools/delegate@8.8.1": - version "8.8.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/delegate/-/delegate-8.8.1.tgz#0653a72f38947f38ab7917dfac50ebf6a6b883e9" - integrity sha512-NDcg3GEQmdEHlnF7QS8b4lM1PSF+DKeFcIlLEfZFBvVq84791UtJcDj8734sIHLukmyuAxXMfA1qLd2l4lZqzA== +"@graphql-tools/delegate@9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/delegate/-/delegate-9.0.0.tgz#099a5bb0fe2e928c7b9aa1be3d2769c3aba3fa5e" + integrity sha512-Y7cvToqKWdNZIk+wqcc3A7lQ/tLMwHDor0q5TE44FRkcvY9cvwEXUi+u6gV9SQ89vLaGz/VaNYJmMAG0cdOyMg== dependencies: - "@graphql-tools/batch-execute" "8.5.1" - "@graphql-tools/schema" "8.5.1" - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/batch-execute" "8.5.2" + "@graphql-tools/schema" "9.0.0" + "@graphql-tools/utils" "8.9.1" dataloader "2.1.0" tslib "~2.4.0" value-or-promise "1.0.11" @@ -2880,26 +2864,26 @@ fs-extra "9.0.1" tslib "~2.0.1" -"@graphql-tools/graphql-file-loader@7.5.0": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-file-loader/-/graphql-file-loader-7.5.0.tgz#b08e2a7c64a1fecb5fc01d557a07116a3151ee14" - integrity sha512-X3wcC+ZljbXTwdTTSp3oUHJd66mFLDKI750uhB0HidBxE6+wyw7fhmJVJiYROXPswaGliuabpo0JEyLj7hhWKA== +"@graphql-tools/graphql-file-loader@7.5.1": + version "7.5.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-file-loader/-/graphql-file-loader-7.5.1.tgz#de6c1259a30e8c11adcc4a8c3ac5844a83b24e9b" + integrity sha512-6jf6ueuKnkBt8zycmbu9TwyP4vOdGu0Bht3001U1O+yWwDfbBTyTo0AyGupf9kbkpWfWamLCcXs4wMOKT2k25g== dependencies: - "@graphql-tools/import" "6.7.1" - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/import" "6.7.2" + "@graphql-tools/utils" "8.9.1" globby "^11.0.3" tslib "^2.4.0" unixify "^1.0.0" -"@graphql-tools/graphql-tag-pluck@7.3.1": - version "7.3.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-7.3.1.tgz#067880a923bacbb522eab68d994975346d68ab64" - integrity sha512-+Aayl4y42ASrxDvu613lp3NiK1JRggy/m9wlo93dJp/9L5vKPYlrtFvuQ1tpPEEuSBboYNa/erOsELrRwzzakA== +"@graphql-tools/graphql-tag-pluck@7.3.2": + version "7.3.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-7.3.2.tgz#10724af6f5eed959ced77ac38e2a4883918474aa" + integrity sha512-dRnDCtLDzL+UKcvVcC4j8zouC77/0HWg31mk9XAg5wHYyjB9EQ5R+i+SwTtG9NweczuQGqznAgwNbwrVt2g4aQ== dependencies: "@babel/parser" "^7.16.8" "@babel/traverse" "^7.16.8" "@babel/types" "^7.16.8" - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/utils" "8.9.1" tslib "^2.4.0" "@graphql-tools/import@6.1.0": @@ -2910,12 +2894,12 @@ fs-extra "9.0.1" resolve-from "5.0.0" -"@graphql-tools/import@6.7.1": - version "6.7.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/import/-/import-6.7.1.tgz#bb62a109503266f25e6dd8799763eddaeba8da3a" - integrity sha512-StLosFVhdw+eZkL+v9dBabszxCAZtEYW4Oy1+750fDkH39GrmzOB8mWiYna7rm9+GMisC9atJtXuAfMF02Aoag== +"@graphql-tools/import@6.7.2": + version "6.7.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/import/-/import-6.7.2.tgz#76f848543b4587b3660e8a7971ca62a226fec751" + integrity sha512-eGIUtdB5ekyVTyIkJSS7SkY1znSgwmhDr627W/oRw8UvoV10S7CxoECJChjA+web6Y46Jz1CF7K7JxwadexD4g== dependencies: - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/utils" "8.9.1" resolve-from "5.0.0" tslib "^2.4.0" @@ -2943,13 +2927,13 @@ unixify "1.0.0" valid-url "1.0.9" -"@graphql-tools/load@7.7.1": - version "7.7.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/load/-/load-7.7.1.tgz#937354e5123a8b0e0d59585ebca7c55165265a98" - integrity sha512-rJ2WUV41wwAkMnBgtcBym3TKVbPgz7z9tBCjOmbNVLy5bB9StVPdo2Uci0D5xYSgLV9XIt+zdyAnYGptioJeWg== +"@graphql-tools/load@7.7.3": + version "7.7.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/load/-/load-7.7.3.tgz#1b00cbfc6a2f97413fb44318ee2ad3f735452ebd" + integrity sha512-PD8/oCx/cuHhAhHYnLh5WN1uI9FeTHEK9X5FCR+BIaayZeyMQiW9OUbKyfVyzxKRQPRsMZVvbbcxACzLk1g9WQ== dependencies: - "@graphql-tools/schema" "8.5.1" - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/schema" "9.0.0" + "@graphql-tools/utils" "8.9.1" p-limit "3.1.0" tslib "^2.4.0" @@ -2962,7 +2946,7 @@ "@graphql-tools/utils" "6.1.0" tslib "~2.0.1" -"@graphql-tools/merge@8.3.1", "@graphql-tools/merge@^8.2.1": +"@graphql-tools/merge@8.3.1": version "8.3.1" resolved "https://registry.yarnpkg.com/@graphql-tools/merge/-/merge-8.3.1.tgz#06121942ad28982a14635dbc87b5d488a041d722" integrity sha512-BMm99mqdNZbEYeTPK3it9r9S6rsZsQKtlqJsSBknAclXq2pGEfOxjcIZi+kBSkHZKPKCRrYDd5vY0+rUmIHVLg== @@ -2970,13 +2954,21 @@ "@graphql-tools/utils" "8.9.0" tslib "^2.4.0" -"@graphql-tools/mock@8.7.1": - version "8.7.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/mock/-/mock-8.7.1.tgz#b11434a3087ed13afd1dff914df53c9901971d42" - integrity sha512-k85qWloFnxw1AAu7P153y1y+9GEbiQ4T17uay2o2QZKtjxPkBADkX0sKYsI7oj+ip+l/D4an3FfsbWATGxzT8w== +"@graphql-tools/merge@8.3.2", "@graphql-tools/merge@^8.2.1": + version "8.3.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/merge/-/merge-8.3.2.tgz#a058e0307b9a145c6965420fd67ee1405cf033e8" + integrity sha512-r8TFlDFA9N4hbkKbHCUK5pkiSnVUsB5AtcyhoY1d3b9zNa9CAYgxZMkKZgDJAf9ZTIqki9t0eOW/jn1H4MCFsg== dependencies: - "@graphql-tools/schema" "8.5.1" - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/utils" "8.9.1" + tslib "^2.4.0" + +"@graphql-tools/mock@8.7.2": + version "8.7.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/mock/-/mock-8.7.2.tgz#a17e66412056acfc236d9496018053a99dd183ba" + integrity sha512-e4ZvTJEYKjK07SUw8I8rneoqAXbNM6O4vG7jEQavc5n1U/SO16JI8lk+qcK+mIxT92otxJPARszOATxj9iZ7YA== + dependencies: + "@graphql-tools/schema" "9.0.0" + "@graphql-tools/utils" "8.9.1" fast-json-stable-stringify "^2.1.0" tslib "^2.4.0" @@ -2996,12 +2988,12 @@ "@graphql-tools/utils" "8.8.0" tslib "^2.4.0" -"@graphql-tools/resolvers-composition@6.5.1", "@graphql-tools/resolvers-composition@^6.4.1": - version "6.5.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/resolvers-composition/-/resolvers-composition-6.5.1.tgz#7a34823c24121913e0bfc77bb270cbf12ff09374" - integrity sha512-OsXIc7B9uLpoj6Uzlq9jOfn0UYmhS9wWlM0iC86KlWRfuWhI8rP1Qj5wK1E+4W+V/9cZj0YbwPXdDWoG2nr5fA== +"@graphql-tools/resolvers-composition@6.5.2", "@graphql-tools/resolvers-composition@^6.4.1": + version "6.5.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/resolvers-composition/-/resolvers-composition-6.5.2.tgz#ab8954b606add2ccdede79692eac400828ffbfad" + integrity sha512-Ld7Rj+747jU9CtXUIoBthvWPDcQFvHw7kxSz+Upp9J2syzw1FKGlImQ3BuwoPcTif2hGm0QR047J6ihU/bXDow== dependencies: - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/utils" "8.9.1" lodash "4.17.21" micromatch "^4.0.4" tslib "^2.4.0" @@ -3014,7 +3006,17 @@ "@graphql-tools/utils" "6.1.0" tslib "~2.0.1" -"@graphql-tools/schema@8.5.1", "@graphql-tools/schema@^8.3.1", "@graphql-tools/schema@^8.5.0": +"@graphql-tools/schema@9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/schema/-/schema-9.0.0.tgz#a689ae23474bf662b3571a180f0e0d11c7b8f135" + integrity sha512-H1rlt0tptzYE1jnKGjfmMvvMCwsDTUgCy3Eam9agsPP4ZtHAcwijDx3BKKJaV1fDRV5ztz2aJ5Q7+4s/SMOYvQ== + dependencies: + "@graphql-tools/merge" "8.3.2" + "@graphql-tools/utils" "8.9.1" + tslib "^2.4.0" + value-or-promise "1.0.11" + +"@graphql-tools/schema@^8.3.1", "@graphql-tools/schema@^8.5.0": version "8.5.1" resolved "https://registry.yarnpkg.com/@graphql-tools/schema/-/schema-8.5.1.tgz#c2f2ff1448380919a330312399c9471db2580b58" integrity sha512-0Esilsh0P/qYcB5DKQpiKeQs/jevzIadNTaT0jeWklPMwNbT7yMX4EqZany7mbeRRlSRwMzNzL5olyFdffHBZg== @@ -3024,27 +3026,27 @@ tslib "^2.4.0" value-or-promise "1.0.11" -"@graphql-tools/stitch@8.7.1": - version "8.7.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/stitch/-/stitch-8.7.1.tgz#7e56279a2cdba55a9360ddd8fe58f74c556dd826" - integrity sha512-RX1X2ouvfjUbTe/hSQTHfjzPkcZpA5QEhFLATQAIib/yikNLTncPUx5OfpG/J/+V1dzeo9xk1k+A+8A+nTk0jg== - dependencies: - "@graphql-tools/batch-delegate" "8.3.1" - "@graphql-tools/delegate" "8.8.1" - "@graphql-tools/merge" "8.3.1" - "@graphql-tools/schema" "8.5.1" - "@graphql-tools/utils" "8.9.0" - "@graphql-tools/wrap" "8.5.1" +"@graphql-tools/stitch@8.7.2": + version "8.7.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/stitch/-/stitch-8.7.2.tgz#903bf4f662dff9f69f6aedaaedd38d143fe9a237" + integrity sha512-smluYRpK8+9WSHJmXSWe/NI0bYEbx5MthOuMPRLBlBC8C4VMm0Eu5YkTloPl1DFrGrkmkG7zJuig2cmX5nUN1A== + dependencies: + "@graphql-tools/batch-delegate" "8.3.2" + "@graphql-tools/delegate" "9.0.0" + "@graphql-tools/merge" "8.3.2" + "@graphql-tools/schema" "9.0.0" + "@graphql-tools/utils" "8.9.1" + "@graphql-tools/wrap" "9.0.0" tslib "^2.4.0" value-or-promise "^1.0.11" -"@graphql-tools/stitching-directives@2.3.1": - version "2.3.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/stitching-directives/-/stitching-directives-2.3.1.tgz#bd4f4410a7b1f233e2f7df91c713704fbc00f10d" - integrity sha512-5NZtyLdMuXzEU+SBZIimqmQax2zOIT2x7MQpGQUcrOxJlDkDu452m4jpxt9PNbhV1JHE3hhc+WoFcpWjBc0jdw== +"@graphql-tools/stitching-directives@2.3.2": + version "2.3.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/stitching-directives/-/stitching-directives-2.3.2.tgz#7522c1845efe0d895e6305643e81e5f1ab03e329" + integrity sha512-Xv2vByEAmD5BOreukgIppKw1TB3wm521Cht1V3zYiE6AFlG6Ih90ov3RZoUyO0PdhuYcr5Yd5LB5GARRACGqKg== dependencies: - "@graphql-tools/delegate" "8.8.1" - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/delegate" "9.0.0" + "@graphql-tools/utils" "8.9.1" tslib "^2.4.0" "@graphql-tools/url-loader@6.1.0": @@ -3062,15 +3064,15 @@ valid-url "1.0.9" websocket "1.0.31" -"@graphql-tools/url-loader@7.13.3": - version "7.13.3" - resolved "https://registry.yarnpkg.com/@graphql-tools/url-loader/-/url-loader-7.13.3.tgz#bbded3c86325c26bdc32d4a8c0a2767e045f6603" - integrity sha512-92z2HJd+Ae2wlZH0kFb20aSxX8CkJDcYyUtbtBNSadu5rKzkiYQPlihfRJFJs4zmDdV+DSmmGvQtDuAKLV+iNg== +"@graphql-tools/url-loader@7.13.4": + version "7.13.4" + resolved "https://registry.yarnpkg.com/@graphql-tools/url-loader/-/url-loader-7.13.4.tgz#45c112d01963c0ac895f0bfce238ea54f0a12fe8" + integrity sha512-xAaRpfoUdlKBq88JTO8FIlxuQ7uej/zOVe7aYJ0oPfrFvG0TwS+FcggCpvGVPIfN20ABogaiBKL8DIGVuC470A== dependencies: "@ardatan/sync-fetch" "0.0.1" - "@graphql-tools/delegate" "8.8.1" - "@graphql-tools/utils" "8.9.0" - "@graphql-tools/wrap" "8.5.1" + "@graphql-tools/delegate" "9.0.0" + "@graphql-tools/utils" "8.9.1" + "@graphql-tools/wrap" "9.0.0" "@n1ru4l/graphql-live-query" "^0.10.0" "@types/ws" "^8.0.0" "@whatwg-node/fetch" "^0.2.4" @@ -3098,13 +3100,20 @@ dependencies: tslib "^2.4.0" -"@graphql-tools/utils@8.9.0", "@graphql-tools/utils@^8.5.2", "@graphql-tools/utils@^8.6.0", "@graphql-tools/utils@^8.8.0": +"@graphql-tools/utils@8.9.0": version "8.9.0" resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-8.9.0.tgz#c6aa5f651c9c99e1aca55510af21b56ec296cdb7" integrity sha512-pjJIWH0XOVnYGXCqej8g/u/tsfV4LvLlj0eATKQu5zwnxd/TiTHq7Cg313qUPTFFHZ3PP5wJ15chYVtLDwaymg== dependencies: tslib "^2.4.0" +"@graphql-tools/utils@8.9.1", "@graphql-tools/utils@^8.5.2", "@graphql-tools/utils@^8.6.0", "@graphql-tools/utils@^8.8.0": + version "8.9.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-8.9.1.tgz#11d6c8a292ac5f224dfda655b87adfece3a257c6" + integrity sha512-LHR7U4okICeUap+WV/T1FnLOmTr3KYuphgkXYendaBVO/DXKyc+TeOFBiN1LcEjPqCB8hO+0B0iTIO0cGqhNTA== + dependencies: + tslib "^2.4.0" + "@graphql-tools/wrap@6.1.0": version "6.1.0" resolved "https://registry.yarnpkg.com/@graphql-tools/wrap/-/wrap-6.1.0.tgz#52451574dc667a423b66ad05720add03cbecb7b8" @@ -3117,14 +3126,14 @@ is-promise "4.0.0" tslib "~2.0.1" -"@graphql-tools/wrap@8.5.1": - version "8.5.1" - resolved "https://registry.yarnpkg.com/@graphql-tools/wrap/-/wrap-8.5.1.tgz#d4bd1f89850bb1ce0209f35f66d002080b439495" - integrity sha512-KpVVfha2wLSpE08YLX0jeo5nXPfDLASlxOqMlvfa/B4X8SOVmuLyN1L5YZ132tPLDF93uflwlHFnUO5ahpRNlA== +"@graphql-tools/wrap@9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/wrap/-/wrap-9.0.0.tgz#6f89fa379f4decae45dc3a89366cbb54c4fc6278" + integrity sha512-kBR7xKdPPnAK2OKimAeFKN/OZHSKVjAoxJPT6gfPE27fe/N1vhvAV6/wlYDgfJvWfeX3+3XLwRAcWCyZQbg0QQ== dependencies: - "@graphql-tools/delegate" "8.8.1" - "@graphql-tools/schema" "8.5.1" - "@graphql-tools/utils" "8.9.0" + "@graphql-tools/delegate" "9.0.0" + "@graphql-tools/schema" "9.0.0" + "@graphql-tools/utils" "8.9.1" tslib "^2.4.0" value-or-promise "1.0.11" @@ -3178,10 +3187,10 @@ "@repeaterjs/repeater" "^3.0.4" tslib "^2.3.1" -"@grpc/grpc-js@1.6.8", "@grpc/grpc-js@^1.1.7", "@grpc/grpc-js@^1.2.8": - version "1.6.8" - resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.6.8.tgz#77cc8b2d841c34dea8b105d45ff1732caefae4f2" - integrity sha512-Nt5tufF/O5Q310kP0cDzxznWMZW58GCTZhUUiAQ9B0K0ANKNQ4Lj/K9XK0vZg+UBKq5/7z7+8mXHHfrcwoeFJQ== +"@grpc/grpc-js@1.6.9", "@grpc/grpc-js@^1.1.7", "@grpc/grpc-js@^1.2.8": + version "1.6.9" + resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.6.9.tgz#f8feeeb599c1ad148abaab39efbb597c22783fef" + integrity sha512-01Dy1wqXVsuiMI4m4tDoX+IPYAeNI8EsfNFPqAJBX4OiCSs5VU8Gw0pJq5NhGizH6nKUprmHb/QvxTq3d1xL5g== dependencies: "@grpc/proto-loader" "^0.7.0" "@types/node" ">=12.12.47" @@ -3208,10 +3217,10 @@ protobufjs "^6.11.3" yargs "^16.2.0" -"@guild-docs/algolia@0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@guild-docs/algolia/-/algolia-0.2.0.tgz#41640f8ed2fe92792a644695186e009b71e838e9" - integrity sha512-69oyUSud92K9d5RZXLSJ2eB6wSQVsWLtCcbsRZEF2LhWBjaVHzr9b2hwntIoARZE+/EcPJCYR0QNCDHpKr2rgQ== +"@guild-docs/algolia@0.2.2": + version "0.2.2" + resolved "https://registry.yarnpkg.com/@guild-docs/algolia/-/algolia-0.2.2.tgz#cd85e0e9d3db5fc16c9f97f64ba46f7d9eda0256" + integrity sha512-USTJlJGXvFEv2cF/IFkS9dhpEu2vGV8nJf8nTQr1GMQs3VPOSSN6WQpKVRAE5Cd2REZRg24U33g7i/p7BxRZ1g== dependencies: algoliasearch "^4.13.1" github-slugger "^1.4.0" @@ -4735,10 +4744,10 @@ "@testing-library/dom" "^8.5.0" "@types/react-dom" "^18.0.0" -"@testing-library/user-event@14.4.2": - version "14.4.2" - resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.4.2.tgz#d3fb5d24e2d7d019a7d2e9978a8deb90b0aa230b" - integrity sha512-1gVTWtueNimveOjcm2ApFCnCTeky7WqY3EX31/GRKLWyCd+HfH+Gd2l1J8go9FpDNe+0Mx8X4zbQHTg0WWNJwg== +"@testing-library/user-event@14.4.3": + version "14.4.3" + resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.4.3.tgz#af975e367743fa91989cd666666aec31a8f50591" + integrity sha512-kCUc5MEwaEMakkO5x7aoD+DLi02ehmEM2QCGWvNqAS1dV/fAvORWEjnjsEIvml59M7Y5kCkWN6fCCyPOe8OL6Q== "@theguild/components@2.0.1": version "2.0.1" @@ -5352,6 +5361,11 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.47.tgz#efa9e3e0f72e7aa6a138055dace7437a83d9f91c" integrity sha512-fpP+jk2zJ4VW66+wAMFoBJlx1bxmBKx4DUFf68UHgdGCOuyUTDlLWqsaNPJh7xhNDykyJ9eIzAygilP/4WoN8g== +"@types/node@18.6.5": + version "18.6.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.6.5.tgz#06caea822caf9e59d5034b695186ee74154d2802" + integrity sha512-Xjt5ZGUa5WusGZJ4WJPbOT8QOqp6nDynVFRKcUt32bOgvXEoc6o085WNkYTMO7ifAj2isEfQQ2cseE+wT6jsRw== + "@types/node@^10.0.3", "@types/node@^10.1.0": version "10.17.60" resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b" @@ -5423,10 +5437,10 @@ dependencies: "@types/react" "*" -"@types/react@*", "@types/react@18.0.16", "@types/react@>=16": - version "18.0.16" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.16.tgz#8de9bf7feebfa520777e8d30815070b39cb663c0" - integrity sha512-3vX1dzVucqc2nhXtzyaParTIIRZeNbisRqLE7QdeLomVybEyeiuAouzZXgz71P+2kbJOqj3dy0fzoATg2I06GQ== +"@types/react@*", "@types/react@18.0.17", "@types/react@>=16": + version "18.0.17" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.17.tgz#4583d9c322d67efe4b39a935d223edcc7050ccf4" + integrity sha512-38ETy4tL+rn4uQQi7mB81G7V1g0u2ryquNmsVIOKUAEIDK+3CUjZ6rSRpdvS99dNBnkLFL83qfmtLacGOTIhwQ== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" @@ -5599,14 +5613,14 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@5.32.0", "@typescript-eslint/eslint-plugin@^5.5.0": - version "5.32.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.32.0.tgz#e27e38cffa4a61226327c874a7be965e9a861624" - integrity sha512-CHLuz5Uz7bHP2WgVlvoZGhf0BvFakBJKAD/43Ty0emn4wXWv5k01ND0C0fHcl/Im8Td2y/7h44E9pca9qAu2ew== +"@typescript-eslint/eslint-plugin@5.33.0", "@typescript-eslint/eslint-plugin@^5.5.0": + version "5.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.33.0.tgz#059798888720ec52ffa96c5f868e31a8f70fa3ec" + integrity sha512-jHvZNSW2WZ31OPJ3enhLrEKvAZNyAFWZ6rx9tUwaessTc4sx9KmgMNhVcqVAl1ETnT5rU5fpXTLmY9YvC1DCNg== dependencies: - "@typescript-eslint/scope-manager" "5.32.0" - "@typescript-eslint/type-utils" "5.32.0" - "@typescript-eslint/utils" "5.32.0" + "@typescript-eslint/scope-manager" "5.33.0" + "@typescript-eslint/type-utils" "5.33.0" + "@typescript-eslint/utils" "5.33.0" debug "^4.3.4" functional-red-black-tree "^1.0.1" ignore "^5.2.0" @@ -5621,14 +5635,14 @@ dependencies: "@typescript-eslint/utils" "5.31.0" -"@typescript-eslint/parser@5.32.0", "@typescript-eslint/parser@^5.21.0", "@typescript-eslint/parser@^5.5.0": - version "5.32.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.32.0.tgz#1de243443bc6186fb153b9e395b842e46877ca5d" - integrity sha512-IxRtsehdGV9GFQ35IGm5oKKR2OGcazUoiNBxhRV160iF9FoyuXxjY+rIqs1gfnd+4eL98OjeGnMpE7RF/NBb3A== +"@typescript-eslint/parser@5.33.0", "@typescript-eslint/parser@^5.21.0", "@typescript-eslint/parser@^5.5.0": + version "5.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.33.0.tgz#26ec3235b74f0667414613727cb98f9b69dc5383" + integrity sha512-cgM5cJrWmrDV2KpvlcSkelTBASAs1mgqq+IUGKJvFxWrapHpaRy5EXPQz9YaKF3nZ8KY18ILTiVpUtbIac86/w== dependencies: - "@typescript-eslint/scope-manager" "5.32.0" - "@typescript-eslint/types" "5.32.0" - "@typescript-eslint/typescript-estree" "5.32.0" + "@typescript-eslint/scope-manager" "5.33.0" + "@typescript-eslint/types" "5.33.0" + "@typescript-eslint/typescript-estree" "5.33.0" debug "^4.3.4" "@typescript-eslint/scope-manager@5.31.0": @@ -5639,20 +5653,20 @@ "@typescript-eslint/types" "5.31.0" "@typescript-eslint/visitor-keys" "5.31.0" -"@typescript-eslint/scope-manager@5.32.0": - version "5.32.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.32.0.tgz#763386e963a8def470580cc36cf9228864190b95" - integrity sha512-KyAE+tUON0D7tNz92p1uetRqVJiiAkeluvwvZOqBmW9z2XApmk5WSMV9FrzOroAcVxJZB3GfUwVKr98Dr/OjOg== +"@typescript-eslint/scope-manager@5.33.0": + version "5.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.33.0.tgz#509d7fa540a2c58f66bdcfcf278a3fa79002e18d" + integrity sha512-/Jta8yMNpXYpRDl8EwF/M8It2A9sFJTubDo0ATZefGXmOqlaBffEw0ZbkbQ7TNDK6q55NPHFshGBPAZvZkE8Pw== dependencies: - "@typescript-eslint/types" "5.32.0" - "@typescript-eslint/visitor-keys" "5.32.0" + "@typescript-eslint/types" "5.33.0" + "@typescript-eslint/visitor-keys" "5.33.0" -"@typescript-eslint/type-utils@5.32.0": - version "5.32.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.32.0.tgz#45a14506fe3fb908600b4cef2f70778f7b5cdc79" - integrity sha512-0gSsIhFDduBz3QcHJIp3qRCvVYbqzHg8D6bHFsDMrm0rURYDj+skBK2zmYebdCp+4nrd9VWd13egvhYFJj/wZg== +"@typescript-eslint/type-utils@5.33.0": + version "5.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.33.0.tgz#92ad1fba973c078d23767ce2d8d5a601baaa9338" + integrity sha512-2zB8uEn7hEH2pBeyk3NpzX1p3lF9dKrEbnXq1F7YkpZ6hlyqb2yZujqgRGqXgRBTHWIUG3NGx/WeZk224UKlIA== dependencies: - "@typescript-eslint/utils" "5.32.0" + "@typescript-eslint/utils" "5.33.0" debug "^4.3.4" tsutils "^3.21.0" @@ -5661,10 +5675,10 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.31.0.tgz#7aa389122b64b18e473c1672fb3b8310e5f07a9a" integrity sha512-/f/rMaEseux+I4wmR6mfpM2wvtNZb1p9hAV77hWfuKc3pmaANp5dLAZSiE3/8oXTYTt3uV9KW5yZKJsMievp6g== -"@typescript-eslint/types@5.32.0": - version "5.32.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.32.0.tgz#484273021eeeae87ddb288f39586ef5efeb6dcd8" - integrity sha512-EBUKs68DOcT/EjGfzywp+f8wG9Zw6gj6BjWu7KV/IYllqKJFPlZlLSYw/PTvVyiRw50t6wVbgv4p9uE2h6sZrQ== +"@typescript-eslint/types@5.33.0": + version "5.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.33.0.tgz#d41c584831805554b063791338b0220b613a275b" + integrity sha512-nIMt96JngB4MYFYXpZ/3ZNU4GWPNdBbcB5w2rDOCpXOVUkhtNlG2mmm8uXhubhidRZdwMaMBap7Uk8SZMU/ppw== "@typescript-eslint/typescript-estree@5.31.0": version "5.31.0" @@ -5679,13 +5693,13 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/typescript-estree@5.32.0": - version "5.32.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.32.0.tgz#282943f34babf07a4afa7b0ff347a8e7b6030d12" - integrity sha512-ZVAUkvPk3ITGtCLU5J4atCw9RTxK+SRc6hXqLtllC2sGSeMFWN+YwbiJR9CFrSFJ3w4SJfcWtDwNb/DmUIHdhg== +"@typescript-eslint/typescript-estree@5.33.0": + version "5.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.33.0.tgz#02d9c9ade6f4897c09e3508c27de53ad6bfa54cf" + integrity sha512-tqq3MRLlggkJKJUrzM6wltk8NckKyyorCSGMq4eVkyL5sDYzJJcMgZATqmF8fLdsWrW7OjjIZ1m9v81vKcaqwQ== dependencies: - "@typescript-eslint/types" "5.32.0" - "@typescript-eslint/visitor-keys" "5.32.0" + "@typescript-eslint/types" "5.33.0" + "@typescript-eslint/visitor-keys" "5.33.0" debug "^4.3.4" globby "^11.1.0" is-glob "^4.0.3" @@ -5704,15 +5718,15 @@ eslint-scope "^5.1.1" eslint-utils "^3.0.0" -"@typescript-eslint/utils@5.32.0", "@typescript-eslint/utils@^5.13.0": - version "5.32.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.32.0.tgz#eccb6b672b94516f1afc6508d05173c45924840c" - integrity sha512-W7lYIAI5Zlc5K082dGR27Fczjb3Q57ECcXefKU/f0ajM5ToM0P+N9NmJWip8GmGu/g6QISNT+K6KYB+iSHjXCQ== +"@typescript-eslint/utils@5.33.0", "@typescript-eslint/utils@^5.13.0": + version "5.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.33.0.tgz#46797461ce3146e21c095d79518cc0f8ec574038" + integrity sha512-JxOAnXt9oZjXLIiXb5ZIcZXiwVHCkqZgof0O8KPgz7C7y0HS42gi75PdPlqh1Tf109M0fyUw45Ao6JLo7S5AHw== dependencies: "@types/json-schema" "^7.0.9" - "@typescript-eslint/scope-manager" "5.32.0" - "@typescript-eslint/types" "5.32.0" - "@typescript-eslint/typescript-estree" "5.32.0" + "@typescript-eslint/scope-manager" "5.33.0" + "@typescript-eslint/types" "5.33.0" + "@typescript-eslint/typescript-estree" "5.33.0" eslint-scope "^5.1.1" eslint-utils "^3.0.0" @@ -5724,12 +5738,12 @@ "@typescript-eslint/types" "5.31.0" eslint-visitor-keys "^3.3.0" -"@typescript-eslint/visitor-keys@5.32.0": - version "5.32.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.32.0.tgz#b9715d0b11fdb5dd10fd0c42ff13987470525394" - integrity sha512-S54xOHZgfThiZ38/ZGTgB2rqx51CMJ5MCfVT2IplK4Q7hgzGfe0nLzLCcenDnc/cSjP568hdeKfeDcBgqNHD/g== +"@typescript-eslint/visitor-keys@5.33.0": + version "5.33.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.33.0.tgz#fbcbb074e460c11046e067bc3384b5d66b555484" + integrity sha512-/XsqCzD4t+Y9p5wd9HZiptuGKBlaZO5showwqODii5C0nZawxWLF+Q6k5wYHBrQv96h6GYKyqqMHCSTqta8Kiw== dependencies: - "@typescript-eslint/types" "5.32.0" + "@typescript-eslint/types" "5.33.0" eslint-visitor-keys "^3.3.0" "@udacity/types-service-worker-mock@1.2.0": @@ -11206,10 +11220,10 @@ graphql-type-json@0.3.2: resolved "https://registry.yarnpkg.com/graphql-type-json/-/graphql-type-json-0.3.2.tgz#f53a851dbfe07bd1c8157d24150064baab41e115" integrity sha512-J+vjof74oMlCWXSvt0DOf2APEdZOCdubEvGDUAlqH//VBYcOYsGgRW7Xzorr44LvkjiuvecWc8fChxuZZbChtg== -graphql-ws@5.9.1, graphql-ws@^5.4.1, graphql-ws@^5.6.2: - version "5.9.1" - resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.9.1.tgz#9c0fa48ceb695d61d574ed3ab21b426729e87f2d" - integrity sha512-mL/SWGBwIT9Meq0NlfS55yXXTOeWPMbK7bZBEZhFu46bcGk1coTx2Sdtzxdk+9yHWngD+Fk1PZDWaAutQa9tpw== +graphql-ws@5.10.0, graphql-ws@^5.4.1, graphql-ws@^5.6.2: + version "5.10.0" + resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.10.0.tgz#3fb47a4e809e0d2e7c197f1bca754fa9f31b940e" + integrity sha512-ewbPzHQdRZgNCPDH9Yr6xccSeZfk3fmpO/AGGGg4KkM5gc6oAOJQ10Oui1EqprhVOyRbOll9bw2qAkOiOwfTag== graphql@16.5.0, "graphql@>=0.9 <0.14 || ^14.0.2 || ^15.4.0", "graphql@^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.2 || ^15.0.0", graphql@^14.5.3, graphql@^15.3.0: version "16.5.0" @@ -14961,10 +14975,10 @@ mongodb@4.8.1: optionalDependencies: saslprep "^1.0.3" -mongoose@6.5.1: - version "6.5.1" - resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-6.5.1.tgz#bcf28700ce3552fcdd4d6d4078d0127290020928" - integrity sha512-8C0213y279nrSp6Au+WB+l/VczcotMU65jalTJJxU6KYf/Kd8gNW9+B3giWNJOVd8VvKvUQG0suWv/Vngp/83A== +mongoose@6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-6.5.2.tgz#630ae67c4d2576635ba1f859b2840560b27b7775" + integrity sha512-3CFDrSLtK2qjM1pZeZpLTUyqPRkc11Iuh74ZrwS4IwEJ3K2PqGnmyPLw7ex4Kzu37ujIMp3MAuiBlUjfrcb6hw== dependencies: bson "^4.6.5" kareem "2.4.1" @@ -16708,7 +16722,7 @@ postcss-value-parser@^4.0.0, postcss-value-parser@^4.1.0, postcss-value-parser@^ resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== -postcss@8.4.14, postcss@^8.3.5, postcss@^8.4.14, postcss@^8.4.4, postcss@^8.4.7: +postcss@8.4.14: version "8.4.14" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.14.tgz#ee9274d5622b4858c1007a74d76e42e56fd21caf" integrity sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig== @@ -16725,6 +16739,15 @@ postcss@^7.0.35: picocolors "^0.2.1" source-map "^0.6.1" +postcss@^8.3.5, postcss@^8.4.14, postcss@^8.4.16, postcss@^8.4.4, postcss@^8.4.7: + version "8.4.16" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.16.tgz#33a1d675fac39941f5f445db0de4db2b6e01d43c" + integrity sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ== + dependencies: + nanoid "^3.3.4" + picocolors "^1.0.0" + source-map-js "^1.0.2" + postgraphile-core@4.12.3: version "4.12.3" resolved "https://registry.yarnpkg.com/postgraphile-core/-/postgraphile-core-4.12.3.tgz#ded419e0126b45d4d35c9e9e81d097e167c31155" @@ -20019,10 +20042,10 @@ underscore@^1.10.2, underscore@^1.13.1, underscore@^1.9.2: resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.1.tgz#0c1c6bd2df54b6b69f2314066d65b6cde6fcf9d1" integrity sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g== -undici@5.5.1, undici@5.8.0, undici@5.8.1, undici@^5.8.0: - version "5.8.1" - resolved "https://registry.yarnpkg.com/undici/-/undici-5.8.1.tgz#511d43ff6be02f84ec2513ae7f4b07c589319272" - integrity sha512-iDRmWX4Zar/4A/t+1LrKQRm102zw2l9Wgat3LtTlTn8ykvMZmAmpq9tjyHEigx18FsY7IfATvyN3xSw9BDz0eA== +undici@5.5.1, undici@5.8.0, undici@5.8.2, undici@^5.8.0: + version "5.8.2" + resolved "https://registry.yarnpkg.com/undici/-/undici-5.8.2.tgz#071fc8a6a5d24db0ad510ad442f607d9b09d5eec" + integrity sha512-3KLq3pXMS0Y4IELV045fTxqz04Nk9Ms7yfBBHum3yxsTR4XNn+ZCaUbf/mWitgYDAhsplQ0B1G4S5D345lMO3A== unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.0" @@ -20443,13 +20466,13 @@ vfile@^5.0.0: unist-util-stringify-position "^3.0.0" vfile-message "^3.0.0" -vite@3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/vite/-/vite-3.0.4.tgz#c61688d6b97573e96cf5ac25f2d68597b5ce68e8" - integrity sha512-NU304nqnBeOx2MkQnskBQxVsa0pRAH5FphokTGmyy8M3oxbvw7qAXts2GORxs+h/2vKsD+osMhZ7An6yK6F1dA== +vite@3.0.5: + version "3.0.5" + resolved "https://registry.yarnpkg.com/vite/-/vite-3.0.5.tgz#56b8d52e00bbbd5f21d02f0868dc613b3246ecc6" + integrity sha512-bRvrt9Tw8EGW4jj64aYFTnVg134E8hgDxyl/eEHnxiGqYk7/pTPss6CWlurqPOUzqvEoZkZ58Ws+Iu8MB87iMA== dependencies: esbuild "^0.14.47" - postcss "^8.4.14" + postcss "^8.4.16" resolve "^1.22.1" rollup "^2.75.6" optionalDependencies: