diff --git a/.changeset/@graphql-codegen_c-sharp-1387-dependencies.md b/.changeset/@graphql-codegen_c-sharp-1387-dependencies.md new file mode 100644 index 0000000000..2500730758 --- /dev/null +++ b/.changeset/@graphql-codegen_c-sharp-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/c-sharp": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^5.0.4`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `^5.3.1`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_c-sharp-common-1387-dependencies.md b/.changeset/@graphql-codegen_c-sharp-common-1387-dependencies.md new file mode 100644 index 0000000000..899a45b3bf --- /dev/null +++ b/.changeset/@graphql-codegen_c-sharp-common-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/c-sharp-common": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^5.0.4`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `^5.3.1`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_c-sharp-operations-1387-dependencies.md b/.changeset/@graphql-codegen_c-sharp-operations-1387-dependencies.md new file mode 100644 index 0000000000..55349dfa2c --- /dev/null +++ b/.changeset/@graphql-codegen_c-sharp-operations-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/c-sharp-operations": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `5.1.1`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `^5.3.1`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_flutter-freezed-1387-dependencies.md b/.changeset/@graphql-codegen_flutter-freezed-1387-dependencies.md new file mode 100644 index 0000000000..e181f6cb66 --- /dev/null +++ b/.changeset/@graphql-codegen_flutter-freezed-1387-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-codegen/flutter-freezed": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/schema-ast@^5.0.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/schema-ast/v/5.0.1) (from `^2.5.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_hasura-allow-list-1387-dependencies.md b/.changeset/@graphql-codegen_hasura-allow-list-1387-dependencies.md new file mode 100644 index 0000000000..6098f2d6b7 --- /dev/null +++ b/.changeset/@graphql-codegen_hasura-allow-list-1387-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/hasura-allow-list": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_import-types-preset-1387-dependencies.md b/.changeset/@graphql-codegen_import-types-preset-1387-dependencies.md new file mode 100644 index 0000000000..c63aa91da1 --- /dev/null +++ b/.changeset/@graphql-codegen_import-types-preset-1387-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-codegen/import-types-preset": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/add@^6.0.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/add/v/6.0.0) (from `^3.2.1`, in `dependencies`) + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_java-1387-dependencies.md b/.changeset/@graphql-codegen_java-1387-dependencies.md new file mode 100644 index 0000000000..8e0d1b944f --- /dev/null +++ b/.changeset/@graphql-codegen_java-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/java": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_java-apollo-android-1387-dependencies.md b/.changeset/@graphql-codegen_java-apollo-android-1387-dependencies.md new file mode 100644 index 0000000000..844881bcd6 --- /dev/null +++ b/.changeset/@graphql-codegen_java-apollo-android-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/java-apollo-android": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_java-common-1387-dependencies.md b/.changeset/@graphql-codegen_java-common-1387-dependencies.md new file mode 100644 index 0000000000..f07441c709 --- /dev/null +++ b/.changeset/@graphql-codegen_java-common-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/java-common": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_java-resolvers-1387-dependencies.md b/.changeset/@graphql-codegen_java-resolvers-1387-dependencies.md new file mode 100644 index 0000000000..deccbfdb8b --- /dev/null +++ b/.changeset/@graphql-codegen_java-resolvers-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/java-resolvers": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_jsdoc-1387-dependencies.md b/.changeset/@graphql-codegen_jsdoc-1387-dependencies.md new file mode 100644 index 0000000000..78ee0107c8 --- /dev/null +++ b/.changeset/@graphql-codegen_jsdoc-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/jsdoc": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_kotlin-1387-dependencies.md b/.changeset/@graphql-codegen_kotlin-1387-dependencies.md new file mode 100644 index 0000000000..2e6f8c33b7 --- /dev/null +++ b/.changeset/@graphql-codegen_kotlin-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/kotlin": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_named-operations-object-1387-dependencies.md b/.changeset/@graphql-codegen_named-operations-object-1387-dependencies.md new file mode 100644 index 0000000000..dfdf8a0a1e --- /dev/null +++ b/.changeset/@graphql-codegen_named-operations-object-1387-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/named-operations-object": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_near-operation-file-preset-1387-dependencies.md b/.changeset/@graphql-codegen_near-operation-file-preset-1387-dependencies.md new file mode 100644 index 0000000000..3ba14149a0 --- /dev/null +++ b/.changeset/@graphql-codegen_near-operation-file-preset-1387-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-codegen/near-operation-file-preset": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^6.1.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `^6.2.1`, in `dependencies`) + - Updated dependency [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) (from `^10.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-apollo-angular-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-apollo-angular-1387-dependencies.md new file mode 100644 index 0000000000..77190d6576 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-apollo-angular-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-apollo-angular": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-apollo-client-helpers-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-apollo-client-helpers-1387-dependencies.md new file mode 100644 index 0000000000..3da5bf11d5 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-apollo-client-helpers-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-apollo-client-helpers": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-enum-array-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-enum-array-1387-dependencies.md new file mode 100644 index 0000000000..5904f66d64 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-enum-array-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-enum-array": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-generic-sdk-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-generic-sdk-1387-dependencies.md new file mode 100644 index 0000000000..de6f6a4409 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-generic-sdk-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-generic-sdk": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-graphql-apollo-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-graphql-apollo-1387-dependencies.md new file mode 100644 index 0000000000..2cae4ae8bd --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-graphql-apollo-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-graphql-apollo": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `^2.12.1`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-graphql-files-modules-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-graphql-files-modules-1387-dependencies.md new file mode 100644 index 0000000000..780bb1afd2 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-graphql-files-modules-1387-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/typescript-graphql-files-modules": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-graphql-request-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-graphql-request-1387-dependencies.md new file mode 100644 index 0000000000..d1327f05dd --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-graphql-request-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-graphql-request": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-jit-sdk-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-jit-sdk-1387-dependencies.md new file mode 100644 index 0000000000..0836cd7f82 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-jit-sdk-1387-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-codegen/typescript-jit-sdk": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) + - Updated dependency [`@graphql-tools/utils@^8.8.0 || ^10.0.0 || ^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/8.8.0) (from `^8.8.0 || ^10.0.0`, in `peerDependencies`) diff --git a/.changeset/@graphql-codegen_typescript-mongodb-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-mongodb-1387-dependencies.md new file mode 100644 index 0000000000..e23c2d25c8 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-mongodb-1387-dependencies.md @@ -0,0 +1,8 @@ +--- +"@graphql-codegen/typescript-mongodb": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/typescript@^5.0.9` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/5.0.9) (from `^2.8.1`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) + - Updated dependency [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0) (from `^10.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-msw-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-msw-1387-dependencies.md new file mode 100644 index 0000000000..2aa4dc5847 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-msw-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-msw": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-nhost-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-nhost-1387-dependencies.md new file mode 100644 index 0000000000..e07e375747 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-nhost-1387-dependencies.md @@ -0,0 +1,7 @@ +--- +"@graphql-codegen/typescript-nhost": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^4.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/typescript@^5.0.9` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/5.0.9) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `3.1.1`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-oclif-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-oclif-1387-dependencies.md new file mode 100644 index 0000000000..e0d55bdb2d --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-oclif-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-oclif": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-react-apollo-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-react-apollo-1387-dependencies.md new file mode 100644 index 0000000000..79b9438f33 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-react-apollo-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-react-apollo": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-react-offix-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-react-offix-1387-dependencies.md new file mode 100644 index 0000000000..7d9748cc62 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-react-offix-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-react-offix": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-react-query-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-react-query-1387-dependencies.md new file mode 100644 index 0000000000..bc980dca2f --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-react-query-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-react-query": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-rtk-query-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-rtk-query-1387-dependencies.md new file mode 100644 index 0000000000..87696964ab --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-rtk-query-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-rtk-query": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-solid-query-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-solid-query-1387-dependencies.md new file mode 100644 index 0000000000..4f94ca6e5b --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-solid-query-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-solid-query": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-stencil-apollo-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-stencil-apollo-1387-dependencies.md new file mode 100644 index 0000000000..debed742d4 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-stencil-apollo-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-stencil-apollo": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-urql-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-urql-1387-dependencies.md new file mode 100644 index 0000000000..8ffdee61a7 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-urql-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-urql": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-urql-graphcache-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-urql-graphcache-1387-dependencies.md new file mode 100644 index 0000000000..277ed56434 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-urql-graphcache-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-urql-graphcache": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-vue-apollo-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-vue-apollo-1387-dependencies.md new file mode 100644 index 0000000000..e5d0d5418b --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-vue-apollo-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-vue-apollo": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-vue-apollo-smart-ops-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-vue-apollo-smart-ops-1387-dependencies.md new file mode 100644 index 0000000000..cec8e16d7f --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-vue-apollo-smart-ops-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-vue-apollo-smart-ops": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_typescript-vue-urql-1387-dependencies.md b/.changeset/@graphql-codegen_typescript-vue-urql-1387-dependencies.md new file mode 100644 index 0000000000..b2ac9ecfe0 --- /dev/null +++ b/.changeset/@graphql-codegen_typescript-vue-urql-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/typescript-vue-urql": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_urql-introspection-1387-dependencies.md b/.changeset/@graphql-codegen_urql-introspection-1387-dependencies.md new file mode 100644 index 0000000000..66fdf87f68 --- /dev/null +++ b/.changeset/@graphql-codegen_urql-introspection-1387-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/urql-introspection": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) diff --git a/.changeset/@graphql-codegen_urql-svelte-operations-store-1387-dependencies.md b/.changeset/@graphql-codegen_urql-svelte-operations-store-1387-dependencies.md new file mode 100644 index 0000000000..533f9a8e18 --- /dev/null +++ b/.changeset/@graphql-codegen_urql-svelte-operations-store-1387-dependencies.md @@ -0,0 +1,6 @@ +--- +"@graphql-codegen/urql-svelte-operations-store": patch +--- +dependencies updates: + - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.1` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.1) (from `^3.0.0`, in `dependencies`) + - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.4` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.4) (from `2.13.8`, in `dependencies`) diff --git a/.changeset/short-views-raise.md b/.changeset/short-views-raise.md new file mode 100644 index 0000000000..2a315cdaed --- /dev/null +++ b/.changeset/short-views-raise.md @@ -0,0 +1,8 @@ +--- +'@graphql-codegen/typescript-react-apollo': patch +--- + +Update GraphQL Codegen common packages to latest. + +Note1: This is only a patch because this intends to solve security issues. +Note2: This package will be deprecated soon. diff --git a/.changeset/wise-dryers-read.md b/.changeset/wise-dryers-read.md new file mode 100644 index 0000000000..e8497823cd --- /dev/null +++ b/.changeset/wise-dryers-read.md @@ -0,0 +1,42 @@ +--- +'@graphql-codegen/urql-svelte-operations-store': major +'@graphql-codegen/named-operations-object': major +'@graphql-codegen/typescript-apollo-client-helpers': major +'@graphql-codegen/typescript-graphql-files-modules': major +'@graphql-codegen/typescript-vue-apollo-smart-ops': major +'@graphql-codegen/typescript-react-offix': major +'@graphql-codegen/c-sharp-operations': major +'@graphql-codegen/typescript-graphql-request': major +'@graphql-codegen/typescript-urql-graphcache': major +'@graphql-codegen/typescript-apollo-angular': major +'@graphql-codegen/typescript-graphql-apollo': major +'@graphql-codegen/typescript-stencil-apollo': major +'@graphql-codegen/urql-introspection': major +'@graphql-codegen/hasura-allow-list': major +'@graphql-codegen/c-sharp-common': major +'@graphql-codegen/typescript-generic-sdk': major +'@graphql-codegen/typescript-react-query': major +'@graphql-codegen/typescript-solid-query': major +'@graphql-codegen/typescript-enum-array': major +'@graphql-codegen/typescript-vue-apollo': major +'@graphql-codegen/flutter-freezed': major +'@graphql-codegen/typescript-rtk-query': major +'@graphql-codegen/java-apollo-android': major +'@graphql-codegen/typescript-vue-urql': major +'@graphql-codegen/near-operation-file-preset': major +'@graphql-codegen/typescript-jit-sdk': major +'@graphql-codegen/typescript-mongodb': major +'@graphql-codegen/typescript-nhost': major +'@graphql-codegen/typescript-oclif': major +'@graphql-codegen/c-sharp': major +'@graphql-codegen/typescript-urql': major +'@graphql-codegen/java-resolvers': major +'@graphql-codegen/typescript-msw': major +'@graphql-codegen/import-types-preset': major +'@graphql-codegen/java-common': major +'@graphql-codegen/kotlin': major +'@graphql-codegen/jsdoc': major +'@graphql-codegen/java': major +--- + +Update GraphQL Codegen common packages to latest diff --git a/.eslintrc.json b/.eslintrc.json index 52b5f96f07..9eb5ae229a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -40,10 +40,7 @@ }, "overrides": [ { - "files": ["**/tests/**/*.ts", "**/graphql-codegen-testing/**/*.ts", "*.spec.ts"], - "env": { - "jest": true - }, + "files": ["**/tests/**/*.ts", "*.spec.ts"], "rules": { "no-unused-vars": "off", "@typescript-eslint/no-unused-vars": "off", @@ -51,5 +48,5 @@ } } ], - "ignorePatterns": ["dist", "node_modules", "dev-test", "test-files", "flow.js", "jest.project.js"] + "ignorePatterns": ["dist", "node_modules", "dev-test", "test-files", "flow.js"] } diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ea214f6b58..e43b6f0261 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -83,10 +83,10 @@ jobs: strategy: matrix: os: [ubuntu-latest] # remove windows to speed up the tests - node_version: [18, 20, 22] + node_version: [20, 22, 24] graphql_version: [15, 16] include: - - node-version: 18 + - node-version: 20 os: windows-latest graphql_version: 16 steps: @@ -97,16 +97,16 @@ jobs: with: nodeVersion: ${{matrix.node_version}} - name: Use GraphQL v${{matrix.graphql_version}} - run: node ./scripts/match-graphql.js ${{matrix.graphql_version}} + run: node ./scripts/match-graphql.cjs ${{matrix.graphql_version}} - name: Install Dependencies run: yarn - - name: Cache Jest + - name: Cache Vitest uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5 with: - path: .cache/jest - key: ${{runner.os}}-${{matrix.node_version}}-${{matrix.graphql_version}}-jest-${{hashFiles('yarn.lock')}} + path: node_modules/.vite + key: ${{runner.os}}-${{matrix.node_version}}-${{matrix.graphql_version}}-vitest-${{hashFiles('yarn.lock')}} restore-keys: | - ${{runner.os}}-${{matrix.node_version}}-${{matrix.graphql_version}}-jest- + ${{runner.os}}-${{matrix.node_version}}-${{matrix.graphql_version}}-vitest- - name: Build run: yarn build - name: Test diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 36dacdfddf..0e457d29fa 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -4,14 +4,11 @@ on: branches: - main -permissions: - contents: read - id-token: write - pull-requests: write - jobs: dependencies: uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yml@v1 if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }} + permissions: + contents: write # allows modifying changeset files secrets: githubToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/dev-test/githunt/jit-sdk.ts b/dev-test/githunt/jit-sdk.ts index 6353a2c500..d90fc0eb0d 100644 --- a/dev-test/githunt/jit-sdk.ts +++ b/dev-test/githunt/jit-sdk.ts @@ -8,57 +8,63 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -82,16 +88,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -106,12 +112,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -122,19 +128,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -144,24 +150,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/githunt/types.apolloAngular.sdk.ts b/dev-test/githunt/types.apolloAngular.sdk.ts index 804330f830..c6bd9cef6e 100644 --- a/dev-test/githunt/types.apolloAngular.sdk.ts +++ b/dev-test/githunt/types.apolloAngular.sdk.ts @@ -8,57 +8,63 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -82,16 +88,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -106,12 +112,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -122,19 +128,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -144,24 +150,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/githunt/types.apolloAngular.ts b/dev-test/githunt/types.apolloAngular.ts index 4666a555ff..55b80400a1 100644 --- a/dev-test/githunt/types.apolloAngular.ts +++ b/dev-test/githunt/types.apolloAngular.ts @@ -7,57 +7,63 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -81,16 +87,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -105,12 +111,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -121,19 +127,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -143,24 +149,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/githunt/types.react-query.ts b/dev-test/githunt/types.react-query.ts index 0934b0d4cc..fcd5dc4056 100644 --- a/dev-test/githunt/types.react-query.ts +++ b/dev-test/githunt/types.react-query.ts @@ -12,6 +12,12 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; function fetcher( endpoint: string, @@ -39,55 +45,55 @@ function fetcher( } /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -111,16 +117,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -135,12 +141,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -151,19 +157,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -173,24 +179,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ @@ -369,7 +375,8 @@ export type VoteMutation = { } | null; }; -export const CommentsPageCommentFragmentDoc = ` +export const CommentsPageCommentFragmentDoc = new TypedDocumentString( + ` fragment CommentsPageComment on Comment { id postedBy { @@ -379,16 +386,22 @@ export const CommentsPageCommentFragmentDoc = ` createdAt content } - `; -export const VoteButtonsFragmentDoc = ` + `, + { fragmentName: 'CommentsPageComment' }, +); +export const VoteButtonsFragmentDoc = new TypedDocumentString( + ` fragment VoteButtons on Entry { score vote { vote_value } } - `; -export const RepoInfoFragmentDoc = ` + `, + { fragmentName: 'VoteButtons' }, +); +export const RepoInfoFragmentDoc = new TypedDocumentString( + ` fragment RepoInfo on Entry { createdAt repository { @@ -401,8 +414,11 @@ export const RepoInfoFragmentDoc = ` login } } - `; -export const FeedEntryFragmentDoc = ` + `, + { fragmentName: 'RepoInfo' }, +); +export const FeedEntryFragmentDoc = new TypedDocumentString( + ` fragment FeedEntry on Entry { id commentCount @@ -416,9 +432,27 @@ export const FeedEntryFragmentDoc = ` ...VoteButtons ...RepoInfo } - ${VoteButtonsFragmentDoc} -${RepoInfoFragmentDoc}`; -export const OnCommentAddedDocument = ` + fragment RepoInfo on Entry { + createdAt + repository { + description + stargazers_count + open_issues_count + } + postedBy { + html_url + login + } +} +fragment VoteButtons on Entry { + score + vote { + vote_value + } +}`, + { fragmentName: 'FeedEntry' }, +); +export const OnCommentAddedDocument = new TypedDocumentString(` subscription onCommentAdded($repoFullName: String!) { commentAdded(repoFullName: $repoFullName) { id @@ -430,8 +464,8 @@ export const OnCommentAddedDocument = ` content } } - `; -export const CommentDocument = ` + `); +export const CommentDocument = new TypedDocumentString(` query Comment($repoFullName: String!, $limit: Int, $offset: Int) { currentUser { login @@ -459,7 +493,15 @@ export const CommentDocument = ` } } } - ${CommentsPageCommentFragmentDoc}`; + fragment CommentsPageComment on Comment { + id + postedBy { + login + html_url + } + createdAt + content +}`); export const useCommentQuery = ( dataSource: { endpoint: string; fetchParams?: RequestInit }, @@ -496,14 +538,14 @@ export const useInfiniteCommentQuery = ( ); }; -export const CurrentUserForProfileDocument = ` +export const CurrentUserForProfileDocument = new TypedDocumentString(` query CurrentUserForProfile { currentUser { login avatar_url } } - `; + `); export const useCurrentUserForProfileQuery = ( dataSource: { endpoint: string; fetchParams?: RequestInit }, @@ -545,7 +587,7 @@ export const useInfiniteCurrentUserForProfileQuery = < ); }; -export const FeedDocument = ` +export const FeedDocument = new TypedDocumentString(` query Feed($type: FeedType!, $offset: Int, $limit: Int) { currentUser { login @@ -554,7 +596,37 @@ export const FeedDocument = ` ...FeedEntry } } - ${FeedEntryFragmentDoc}`; + fragment FeedEntry on Entry { + id + commentCount + repository { + full_name + html_url + owner { + avatar_url + } + } + ...VoteButtons + ...RepoInfo +} +fragment RepoInfo on Entry { + createdAt + repository { + description + stargazers_count + open_issues_count + } + postedBy { + html_url + login + } +} +fragment VoteButtons on Entry { + score + vote { + vote_value + } +}`); export const useFeedQuery = ( dataSource: { endpoint: string; fetchParams?: RequestInit }, @@ -591,13 +663,13 @@ export const useInfiniteFeedQuery = ( ); }; -export const SubmitRepositoryDocument = ` +export const SubmitRepositoryDocument = new TypedDocumentString(` mutation submitRepository($repoFullName: String!) { submitRepository(repoFullName: $repoFullName) { createdAt } } - `; + `); export const useSubmitRepositoryMutation = ( dataSource: { endpoint: string; fetchParams?: RequestInit }, @@ -621,13 +693,21 @@ export const useSubmitRepositoryMutation = ( dataSource: { endpoint: string; fetchParams?: RequestInit }, @@ -651,7 +731,7 @@ export const useSubmitCommentMutation = ( ); }; -export const VoteDocument = ` +export const VoteDocument = new TypedDocumentString(` mutation vote($repoFullName: String!, $type: VoteType!) { vote(repoFullName: $repoFullName, type: $type) { score @@ -661,7 +741,7 @@ export const VoteDocument = ` } } } - `; + `); export const useVoteMutation = ( dataSource: { endpoint: string; fetchParams?: RequestInit }, diff --git a/dev-test/githunt/types.reactApollo.customSuffix.tsx b/dev-test/githunt/types.reactApollo.customSuffix.tsx index 43fe4a3d79..897ff86e62 100644 --- a/dev-test/githunt/types.reactApollo.customSuffix.tsx +++ b/dev-test/githunt/types.reactApollo.customSuffix.tsx @@ -6,58 +6,64 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -81,16 +87,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -105,12 +111,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -121,19 +127,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -143,24 +149,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/githunt/types.reactApollo.hooks.tsx b/dev-test/githunt/types.reactApollo.hooks.tsx index 04e648fae1..ea560e7fc0 100644 --- a/dev-test/githunt/types.reactApollo.hooks.tsx +++ b/dev-test/githunt/types.reactApollo.hooks.tsx @@ -6,58 +6,64 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -81,16 +87,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -105,12 +111,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -121,19 +127,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -143,24 +149,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/githunt/types.reactApollo.preResolveTypes.tsx b/dev-test/githunt/types.reactApollo.preResolveTypes.tsx index 9877416acf..875de5e69a 100644 --- a/dev-test/githunt/types.reactApollo.preResolveTypes.tsx +++ b/dev-test/githunt/types.reactApollo.preResolveTypes.tsx @@ -6,58 +6,64 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -81,16 +87,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -105,12 +111,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -121,19 +127,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -143,24 +149,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/githunt/types.reactApollo.tsx b/dev-test/githunt/types.reactApollo.tsx index 9877416acf..875de5e69a 100644 --- a/dev-test/githunt/types.reactApollo.tsx +++ b/dev-test/githunt/types.reactApollo.tsx @@ -6,58 +6,64 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -81,16 +87,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -105,12 +111,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -121,19 +127,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -143,24 +149,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/githunt/types.reactApollo.v2.tsx b/dev-test/githunt/types.reactApollo.v2.tsx index 4f0cca3eaf..daf5d5a2ee 100644 --- a/dev-test/githunt/types.reactApollo.v2.tsx +++ b/dev-test/githunt/types.reactApollo.v2.tsx @@ -7,58 +7,64 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -82,16 +88,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -106,12 +112,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -122,19 +128,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -144,24 +150,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/githunt/types.rtk-query.ts b/dev-test/githunt/types.rtk-query.ts index 652c7760f7..788a50f4e3 100644 --- a/dev-test/githunt/types.rtk-query.ts +++ b/dev-test/githunt/types.rtk-query.ts @@ -6,57 +6,63 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -80,16 +86,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -104,12 +110,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -120,19 +126,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -142,24 +148,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ @@ -338,7 +344,8 @@ export type VoteMutation = { } | null; }; -export const CommentsPageCommentFragmentDoc = ` +export const CommentsPageCommentFragmentDoc = new TypedDocumentString( + ` fragment CommentsPageComment on Comment { id postedBy { @@ -348,16 +355,22 @@ export const CommentsPageCommentFragmentDoc = ` createdAt content } - `; -export const VoteButtonsFragmentDoc = ` + `, + { fragmentName: 'CommentsPageComment' }, +); +export const VoteButtonsFragmentDoc = new TypedDocumentString( + ` fragment VoteButtons on Entry { score vote { vote_value } } - `; -export const RepoInfoFragmentDoc = ` + `, + { fragmentName: 'VoteButtons' }, +); +export const RepoInfoFragmentDoc = new TypedDocumentString( + ` fragment RepoInfo on Entry { createdAt repository { @@ -370,8 +383,11 @@ export const RepoInfoFragmentDoc = ` login } } - `; -export const FeedEntryFragmentDoc = ` + `, + { fragmentName: 'RepoInfo' }, +); +export const FeedEntryFragmentDoc = new TypedDocumentString( + ` fragment FeedEntry on Entry { id commentCount @@ -385,9 +401,27 @@ export const FeedEntryFragmentDoc = ` ...VoteButtons ...RepoInfo } - ${VoteButtonsFragmentDoc} -${RepoInfoFragmentDoc}`; -export const OnCommentAddedDocument = ` + fragment RepoInfo on Entry { + createdAt + repository { + description + stargazers_count + open_issues_count + } + postedBy { + html_url + login + } +} +fragment VoteButtons on Entry { + score + vote { + vote_value + } +}`, + { fragmentName: 'FeedEntry' }, +); +export const OnCommentAddedDocument = new TypedDocumentString(` subscription onCommentAdded($repoFullName: String!) { commentAdded(repoFullName: $repoFullName) { id @@ -399,8 +433,8 @@ export const OnCommentAddedDocument = ` content } } - `; -export const CommentDocument = ` + `); +export const CommentDocument = new TypedDocumentString(` query Comment($repoFullName: String!, $limit: Int, $offset: Int) { currentUser { login @@ -428,16 +462,24 @@ export const CommentDocument = ` } } } - ${CommentsPageCommentFragmentDoc}`; -export const CurrentUserForProfileDocument = ` + fragment CommentsPageComment on Comment { + id + postedBy { + login + html_url + } + createdAt + content +}`); +export const CurrentUserForProfileDocument = new TypedDocumentString(` query CurrentUserForProfile { currentUser { login avatar_url } } - `; -export const FeedDocument = ` + `); +export const FeedDocument = new TypedDocumentString(` query Feed($type: FeedType!, $offset: Int, $limit: Int) { currentUser { login @@ -446,22 +488,60 @@ export const FeedDocument = ` ...FeedEntry } } - ${FeedEntryFragmentDoc}`; -export const SubmitRepositoryDocument = ` + fragment FeedEntry on Entry { + id + commentCount + repository { + full_name + html_url + owner { + avatar_url + } + } + ...VoteButtons + ...RepoInfo +} +fragment RepoInfo on Entry { + createdAt + repository { + description + stargazers_count + open_issues_count + } + postedBy { + html_url + login + } +} +fragment VoteButtons on Entry { + score + vote { + vote_value + } +}`); +export const SubmitRepositoryDocument = new TypedDocumentString(` mutation submitRepository($repoFullName: String!) { submitRepository(repoFullName: $repoFullName) { createdAt } } - `; -export const SubmitCommentDocument = ` + `); +export const SubmitCommentDocument = new TypedDocumentString(` mutation submitComment($repoFullName: String!, $commentContent: String!) { submitComment(repoFullName: $repoFullName, commentContent: $commentContent) { ...CommentsPageComment } } - ${CommentsPageCommentFragmentDoc}`; -export const VoteDocument = ` + fragment CommentsPageComment on Comment { + id + postedBy { + login + html_url + } + createdAt + content +}`); +export const VoteDocument = new TypedDocumentString(` mutation vote($repoFullName: String!, $type: VoteType!) { vote(repoFullName: $repoFullName, type: $type) { score @@ -471,7 +551,7 @@ export const VoteDocument = ` } } } - `; + `); const injectedRtkApi = api.injectEndpoints({ overrideExisting: module.hot?.status() === 'apply', diff --git a/dev-test/githunt/types.stencilApollo.tsx b/dev-test/githunt/types.stencilApollo.tsx index 903cd49e1b..f548341558 100644 --- a/dev-test/githunt/types.stencilApollo.tsx +++ b/dev-test/githunt/types.stencilApollo.tsx @@ -7,57 +7,63 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -81,16 +87,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -105,12 +111,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -121,19 +127,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -143,24 +149,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/githunt/types.urql.tsx b/dev-test/githunt/types.urql.tsx index b8bcb51d19..c46b5df511 100644 --- a/dev-test/githunt/types.urql.tsx +++ b/dev-test/githunt/types.urql.tsx @@ -13,58 +13,64 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; export type Omit = Pick>; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -88,16 +94,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -112,12 +118,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -128,19 +134,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -150,24 +156,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/githunt/types.vueApollo.ts b/dev-test/githunt/types.vueApollo.ts index 02dda28f34..0ab41d1ebd 100644 --- a/dev-test/githunt/types.vueApollo.ts +++ b/dev-test/githunt/types.vueApollo.ts @@ -7,58 +7,64 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; export type ReactiveFunction = () => TParam; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -82,16 +88,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -106,12 +112,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -122,19 +128,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -144,24 +150,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/githunt/types.vueApolloSmartOps.ts b/dev-test/githunt/types.vueApolloSmartOps.ts index b3b2d45f9b..bbb8f2ce5d 100644 --- a/dev-test/githunt/types.vueApolloSmartOps.ts +++ b/dev-test/githunt/types.vueApolloSmartOps.ts @@ -11,57 +11,63 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = { __typename?: 'Entry'; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** Comments posted about this repository */ comments: Array>; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who submitted this entry */ postedBy: User; /** Information about the repository from GitHub */ repository: Repository; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** A list of options for the sort order of the feed */ @@ -85,16 +91,16 @@ export type Mutation = { }; export type MutationSubmitCommentArgs = { - commentContent: Scalars['String']; - repoFullName: Scalars['String']; + commentContent: Scalars['String']['input']; + repoFullName: Scalars['String']['input']; }; export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; @@ -109,12 +115,12 @@ export type Query = { }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type QueryFeedArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; type: FeedType; }; @@ -125,19 +131,19 @@ export type QueryFeedArgs = { export type Repository = { __typename?: 'Repository'; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; }; export type Subscription = { @@ -147,24 +153,24 @@ export type Subscription = { }; export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { __typename?: 'User'; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; /** The type of vote to record, when submitting a vote */ diff --git a/dev-test/star-wars/types.refetchFn.tsx b/dev-test/star-wars/types.refetchFn.tsx index 6a7a442daa..e823d1a4ac 100644 --- a/dev-test/star-wars/types.refetchFn.tsx +++ b/dev-test/star-wars/types.refetchFn.tsx @@ -6,14 +6,20 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; /** A character from the Star Wars universe */ @@ -25,22 +31,22 @@ export type Character = { /** The friends of the character exposed as a connection with edges */ friendsConnection: FriendsConnection; /** The ID of the character */ - id: Scalars['ID']; + id: Scalars['ID']['output']; /** The name of the character */ - name: Scalars['String']; + name: Scalars['String']['output']; }; /** A character from the Star Wars universe */ export type CharacterFriendsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; }; /** The input object sent when passing a color */ export type ColorInput = { - blue: Scalars['Int']; - green: Scalars['Int']; - red: Scalars['Int']; + blue: Scalars['Int']['input']; + green: Scalars['Int']['input']; + red: Scalars['Int']['input']; }; /** An autonomous mechanical character in the Star Wars universe */ @@ -53,17 +59,17 @@ export type Droid = Character & { /** The friends of the droid exposed as a connection with edges */ friendsConnection: FriendsConnection; /** The ID of the droid */ - id: Scalars['ID']; + id: Scalars['ID']['output']; /** What others call this droid */ - name: Scalars['String']; + name: Scalars['String']['output']; /** This droid's primary function */ - primaryFunction?: Maybe; + primaryFunction?: Maybe; }; /** An autonomous mechanical character in the Star Wars universe */ export type DroidFriendsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; }; /** The episodes in the Star Wars trilogy */ @@ -86,14 +92,14 @@ export type FriendsConnection = { /** Information for paginating this connection */ pageInfo: PageInfo; /** The total number of friends */ - totalCount?: Maybe; + totalCount?: Maybe; }; /** An edge object for a character's friends */ export type FriendsEdge = { __typename?: 'FriendsEdge'; /** A cursor used for pagination */ - cursor: Scalars['ID']; + cursor: Scalars['ID']['output']; /** The character represented by this friendship edge */ node?: Maybe; }; @@ -108,23 +114,23 @@ export type Human = Character & { /** The friends of the human exposed as a connection with edges */ friendsConnection: FriendsConnection; /** Height in the preferred unit, default is meters */ - height?: Maybe; + height?: Maybe; /** The home planet of the human, or null if unknown */ - homePlanet?: Maybe; + homePlanet?: Maybe; /** The ID of the human */ - id: Scalars['ID']; + id: Scalars['ID']['output']; /** Mass in kilograms, or null if unknown */ - mass?: Maybe; + mass?: Maybe; /** What this human calls themselves */ - name: Scalars['String']; + name: Scalars['String']['output']; /** A list of starships this person has piloted, or an empty list if none */ starships?: Maybe>>; }; /** A humanoid creature from the Star Wars universe */ export type HumanFriendsConnectionArgs = { - after?: InputMaybe; - first?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; }; /** A humanoid creature from the Star Wars universe */ @@ -155,9 +161,9 @@ export type MutationCreateReviewArgs = { /** Information for paginating this connection */ export type PageInfo = { __typename?: 'PageInfo'; - endCursor?: Maybe; - hasNextPage: Scalars['Boolean']; - startCursor?: Maybe; + endCursor?: Maybe; + hasNextPage: Scalars['Boolean']['output']; + startCursor?: Maybe; }; /** The query type, represents all of the entry points into our object graph */ @@ -174,12 +180,12 @@ export type Query = { /** The query type, represents all of the entry points into our object graph */ export type QueryCharacterArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; /** The query type, represents all of the entry points into our object graph */ export type QueryDroidArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; /** The query type, represents all of the entry points into our object graph */ @@ -189,7 +195,7 @@ export type QueryHeroArgs = { /** The query type, represents all of the entry points into our object graph */ export type QueryHumanArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; /** The query type, represents all of the entry points into our object graph */ @@ -199,31 +205,31 @@ export type QueryReviewsArgs = { /** The query type, represents all of the entry points into our object graph */ export type QuerySearchArgs = { - text?: InputMaybe; + text?: InputMaybe; }; /** The query type, represents all of the entry points into our object graph */ export type QueryStarshipArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; /** Represents a review for a movie */ export type Review = { __typename?: 'Review'; /** Comment about the movie */ - commentary?: Maybe; + commentary?: Maybe; /** The number of stars this review gave, 1-5 */ - stars: Scalars['Int']; + stars: Scalars['Int']['output']; }; /** The input object sent when someone is creating a new review */ export type ReviewInput = { /** Comment about the movie, optional */ - commentary?: InputMaybe; + commentary?: InputMaybe; /** Favorite color, optional */ favoriteColor?: InputMaybe; /** 0-5 stars */ - stars: Scalars['Int']; + stars: Scalars['Int']['input']; }; export type SearchResult = Droid | Human | Starship; @@ -231,11 +237,11 @@ export type SearchResult = Droid | Human | Starship; export type Starship = { __typename?: 'Starship'; /** The ID of the starship */ - id: Scalars['ID']; + id: Scalars['ID']['output']; /** Length of the starship, along the longest axis */ - length?: Maybe; + length?: Maybe; /** The name of the starship */ - name: Scalars['String']; + name: Scalars['String']['output']; }; export type StarshipLengthArgs = { diff --git a/dev-test/test-message/types.tsx b/dev-test/test-message/types.tsx index 48d0e75585..af8f448b89 100644 --- a/dev-test/test-message/types.tsx +++ b/dev-test/test-message/types.tsx @@ -6,23 +6,29 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { + [_ in K]?: never; +}; +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; }; export type CreateMessageInput = { - description: Scalars['String']; + description: Scalars['String']['input']; }; export type Message = { __typename?: 'Message'; - id: Scalars['String']; + id: Scalars['String']['output']; }; export type Mutation = { @@ -34,7 +40,7 @@ export type Mutation = { }; export type MutationApproveArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationCreateMessageArgs = { @@ -42,12 +48,12 @@ export type MutationCreateMessageArgs = { }; export type MutationDeclineArgs = { - id: Scalars['ID']; - reason: Scalars['String']; + id: Scalars['ID']['input']; + reason: Scalars['String']['input']; }; export type MutationEscalateArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type Query = { @@ -56,7 +62,7 @@ export type Query = { }; export type QueryMessagesArgs = { - tab: Scalars['String']; + tab: Scalars['String']['input']; }; export type GetMessagesQueryVariables = Exact<{ diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index 604ce06213..0000000000 --- a/jest.config.js +++ /dev/null @@ -1,11 +0,0 @@ -const PROJECTS = false; -const CI = !!process.env.CI; - -module.exports = - !PROJECTS || CI - ? require('./jest.project')({ dirname: __dirname, projectMode: PROJECTS }) - : { - rootDir: __dirname, - projects: ['/packages/**/*/jest.config.js'], - resolver: './node_modules/bob-the-bundler/jest-resolver.cjs', - }; diff --git a/jest.project.js b/jest.project.js deleted file mode 100644 index 3439bcdda3..0000000000 --- a/jest.project.js +++ /dev/null @@ -1,48 +0,0 @@ -const { resolve } = require('path'); -const { pathsToModuleNameMapper } = require('ts-jest'); - -const ROOT_DIR = __dirname; -const TSCONFIG = resolve(ROOT_DIR, 'tsconfig.json'); -const tsconfig = require(TSCONFIG); -const CI = !!process.env.CI; -const GRAPHQL_VERSION = process.env.GRAPHQL_VERSION || '16'; - -const { versionInfo } = require('graphql'); - -module.exports = ({ dirname, projectMode = true }) => { - const pkg = require(resolve(dirname, 'package.json')); - - const testMatch = ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)']; - - if (versionInfo.major >= 16) { - testMatch.push('**/nhost/**'); - } - - return { - ...(CI || !projectMode ? {} : { displayName: pkg.name.replace('@graphql-codegen/', '') }), - transform: { - '^.+\\.tsx?$': 'babel-jest', - '/node_modules/graphql-request/.+\\.js$': 'babel-jest', - }, - transformIgnorePatterns: ['/node_modules/(?!(graphql-request)/)'], - testEnvironment: 'node', - rootDir: dirname, - restoreMocks: true, - reporters: ['default'], - modulePathIgnorePatterns: ['dist', '.bob'], - moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths, { - prefix: `${ROOT_DIR}/`, - }), - cacheDirectory: resolve(ROOT_DIR, `${CI ? '' : 'node_modules/'}.cache/jest`), - setupFiles: [`${ROOT_DIR}/dev-test/setup.js`], - collectCoverage: false, - testTimeout: 20000, - testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)', '!**/nhost/**'], - testPathIgnorePatterns: GRAPHQL_VERSION === '16' ? [] : ['.*v16\+.*'], - resolver: './node_modules/bob-the-bundler/jest-resolver.cjs', - snapshotFormat: { - escapeString: false, - printBasicPrototype: false, - }, - }; -}; diff --git a/package.json b/package.json index 49443aef24..62249494c2 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "prettier": "prettier --write --list-different .", "prettier:check": "prettier --check .", "release": "changeset publish", - "test": "jest --forceExit --no-watchman", + "test": "vitest", "test-and-build": "yarn build && yarn test", "types:check": "tsc --noEmit", "watch-build": "npx tsc-watch --project tsconfig.json --onSuccess \"bob build\"" @@ -38,35 +38,29 @@ "@changesets/changelog-github": "0.6.0", "@changesets/cli": "2.30.0", "@theguild/prettier-config": "3.0.1", - "@types/jest": "30.0.0", "@types/node": "24.12.0", "@typescript-eslint/eslint-plugin": "8.56.1", "@typescript-eslint/parser": "8.56.1", - "babel-jest": "30.2.0", "bob-the-bundler": "7.0.1", "cross-env": "10.1.0", "eslint": "9.39.4", "eslint-plugin-import": "2.32.0", "graphql": "16.13.1", "husky": "9.1.7", - "jest": "30.2.0", + "jest-diff": "30.2.0", "jest-docblock": "30.2.0", - "jest-junit": "16.0.0", "lint-staged": "16.3.2", "patch-package": "8.0.1", "prettier": "3.8.1", "rimraf": "6.1.3", - "ts-jest": "29.4.6", "ts-node": "10.9.2", "tslib": "2.8.1", - "typescript": "5.9.3" + "typescript": "5.9.3", + "vite-tsconfig-paths": "6.1.1", + "vitest": "4.0.18" }, "resolutions": { - "babel-jest": "30.2.0", - "graphql": "16.13.1", - "graphql-language-service-interface": "2.10.2", - "jest-runner": "30.2.0", - "ts-node": "10.9.2" + "graphql": "16.13.1" }, "lint-staged": { "packages/**/src/**/*.{ts,tsx}": [ diff --git a/packages/plugins/c-sharp/c-sharp-common/package.json b/packages/plugins/c-sharp/c-sharp-common/package.json index 5f7c6f7fa1..82f80adf86 100644 --- a/packages/plugins/c-sharp/c-sharp-common/package.json +++ b/packages/plugins/c-sharp/c-sharp-common/package.json @@ -2,7 +2,7 @@ "name": "@graphql-codegen/c-sharp-common", "version": "1.2.0", "type": "module", - "repository": "git@github.com:dotansimha/graphql-code-generator.git", + "repository": "git@github.com:dotansimha/graphql-code-generator-community.git", "license": "MIT", "engines": { "node": ">= 16.0.0" @@ -28,16 +28,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-tag": "2.12.6" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^5.0.4", - "@graphql-codegen/visitor-plugin-common": "^5.3.1", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" @@ -47,9 +46,6 @@ "access": "public" }, "sideEffects": false, - "jest-junit": { - "outputDirectory": "../../../../test-results/c-sharp-common" - }, "typescript": { "definition": "dist/typings/index.d.ts" } diff --git a/packages/plugins/c-sharp/c-sharp-common/vitest.config.ts b/packages/plugins/c-sharp/c-sharp-common/vitest.config.ts new file mode 100644 index 0000000000..bf26bfee9b --- /dev/null +++ b/packages/plugins/c-sharp/c-sharp-common/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'c-sharp-common', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/c-sharp/c-sharp-operations/package.json b/packages/plugins/c-sharp/c-sharp-operations/package.json index 4d1d200158..08e9a4d5b5 100644 --- a/packages/plugins/c-sharp/c-sharp-operations/package.json +++ b/packages/plugins/c-sharp/c-sharp-operations/package.json @@ -3,7 +3,7 @@ "version": "3.2.0", "type": "module", "description": "GraphQL Code Generator plugin for generating CSharp code based on GraphQL operations", - "repository": "git@github.com:dotansimha/graphql-code-generator.git", + "repository": "git@github.com:dotansimha/graphql-code-generator-community.git", "license": "MIT", "engines": { "node": ">= 16.0.0" @@ -29,8 +29,7 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", @@ -38,23 +37,20 @@ }, "dependencies": { "@graphql-codegen/c-sharp-common": "1.2.0", - "@graphql-codegen/plugin-helpers": "5.1.1", - "@graphql-codegen/visitor-plugin-common": "^5.3.1", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", "access": "public" }, "sideEffects": false, - "jest-junit": { - "outputDirectory": "../../../../test-results/c-sharp-operations" - }, "typescript": { "definition": "dist/typings/index.d.ts" } diff --git a/packages/plugins/c-sharp/c-sharp-operations/src/visitor.ts b/packages/plugins/c-sharp/c-sharp-operations/src/visitor.ts index eefbebef66..74c88d0446 100644 --- a/packages/plugins/c-sharp/c-sharp-operations/src/visitor.ts +++ b/packages/plugins/c-sharp/c-sharp-operations/src/visitor.ts @@ -173,12 +173,10 @@ export class CSharpOperationsVisitor extends ClientSideBaseVisitor< const includeNestedFragments = this.config.documentMode === DocumentMode.documentNode || this.config.documentMode === DocumentMode.string || - (this.config.dedupeFragments && node.kind === 'OperationDefinition'); + node.kind === 'OperationDefinition'; const fragmentNames = this._extractFragments(node, includeNestedFragments); const fragments = this._transformFragments(fragmentNames); - const doc = this._prepareDocument( - [print(node), this._includeFragments(fragments, node.kind)].join('\n'), - ); + const doc = this._prepareDocument([print(node), this._includeFragments(fragments)].join('\n')); return doc.replace(/"/g, '""'); } diff --git a/packages/plugins/c-sharp/c-sharp-operations/test/c-sharp-operations.spec.ts b/packages/plugins/c-sharp/c-sharp-operations/test/c-sharp-operations.spec.ts index 264b4d6e51..c06e1b14c0 100644 --- a/packages/plugins/c-sharp/c-sharp-operations/test/c-sharp-operations.spec.ts +++ b/packages/plugins/c-sharp/c-sharp-operations/test/c-sharp-operations.spec.ts @@ -2,7 +2,6 @@ import { getJsonAttributeSourceConfiguration } from '@graphql-codegen/c-sharp-co import { Types } from '@graphql-codegen/plugin-helpers'; import '@graphql-codegen/testing'; import { buildSchema, parse } from 'graphql'; -import each from 'jest-each'; import { CSharpOperationsRawPluginConfig } from '../src/config.js'; import { plugin } from '../src/index.js'; @@ -48,25 +47,25 @@ describe('C# Operations', () => { expect(result.content).toContain('namespace MyCompany.MyGeneratedGql {'); }); - each(['Newtonsoft.Json', 'System.Text.Json']).it( - `Should include configured '%s' using directives`, - async source => { - const schema = buildSchema(/* GraphQL */ ` - enum ns { - dummy - } - `); - const config: CSharpOperationsRawPluginConfig = { - jsonAttributesSource: source, - }; - const result = (await plugin(schema, [], config, { - outputFile: '', - })) as Types.ComplexPluginOutput; - const jsonConfig = getJsonAttributeSourceConfiguration(source); - - expect(result.content).toContain(`using ${jsonConfig.namespace};`); - }, - ); + it.each([ + 'Newtonsoft.Json', + 'System.Text.Json', + ])(`Should include configured '%s' using directives`, async source => { + const schema = buildSchema(/* GraphQL */ ` + enum ns { + dummy + } + `); + const config: CSharpOperationsRawPluginConfig = { + jsonAttributesSource: source, + }; + const result = (await plugin(schema, [], config, { + outputFile: '', + })) as Types.ComplexPluginOutput; + const jsonConfig = getJsonAttributeSourceConfiguration(source); + + expect(result.content).toContain(`using ${jsonConfig.namespace};`); + }); }); describe('Query', () => { @@ -829,35 +828,35 @@ describe('C# Operations', () => { `); }); - each(['Newtonsoft.Json', 'System.Text.Json']).it( - `Should generate scalar response class using '%s' source`, - async source => { - const schema = buildSchema(/* GraphQL */ ` - type Subscription { - you: Int! - } - `); - const operation = parse(/* GraphQL */ ` - subscription onNotifyYou { - you - } - `); - const jsonConfig = getJsonAttributeSourceConfiguration(source); - - const result = (await plugin( - schema, - [{ location: '', document: operation }], - { typesafeOperation: true, jsonAttributesSource: source }, - { outputFile: '' }, - )) as Types.ComplexPluginOutput; - expect(result.content).toBeSimilarStringTo(` + it.each([ + 'Newtonsoft.Json', + 'System.Text.Json', + ])(`Should generate scalar response class using '%s' source`, async source => { + const schema = buildSchema(/* GraphQL */ ` + type Subscription { + you: Int! + } + `); + const operation = parse(/* GraphQL */ ` + subscription onNotifyYou { + you + } + `); + const jsonConfig = getJsonAttributeSourceConfiguration(source); + + const result = (await plugin( + schema, + [{ location: '', document: operation }], + { typesafeOperation: true, jsonAttributesSource: source }, + { outputFile: '' }, + )) as Types.ComplexPluginOutput; + expect(result.content).toBeSimilarStringTo(` public class Response { [${jsonConfig.propertyAttribute}("you")] public int you { get; set; } } `); - }, - ); + }); it('Should generate nested response class', async () => { const schema = buildSchema(/* GraphQL */ ` type Subscription { @@ -1431,39 +1430,40 @@ describe('C# Operations', () => { }); describe('MemberNamingConfig', () => { - each(['System.Text.Json', 'Newtonsoft.Json']).it( - 'Should generate enums with pascal case values for %s', - async source => { - const schema = buildSchema(/* GraphQL */ ` - type Query { - myQuery: MyEnum! - } - enum MyEnum { - Value1 - value2 - anotherValue - LastValue - SHOUTY_SNAKE_VALUE - } - `); - const operation = parse(/* GraphQL */ ` - query GetMyQuery { - myQuery - } - `); - const jsonConfig = getJsonAttributeSourceConfiguration(source); - - const result = (await plugin( - schema, - [{ location: '', document: operation }], - { - typesafeOperation: true, - memberNameConvention: 'pascalCase', - jsonAttributesSource: source, - }, - { outputFile: '' }, - )) as Types.ComplexPluginOutput; - expect(result.content).toBeSimilarStringTo(` + it.each([ + 'System.Text.Json', + 'Newtonsoft.Json', + ])('Should generate enums with pascal case values for %s', async source => { + const schema = buildSchema(/* GraphQL */ ` + type Query { + myQuery: MyEnum! + } + enum MyEnum { + Value1 + value2 + anotherValue + LastValue + SHOUTY_SNAKE_VALUE + } + `); + const operation = parse(/* GraphQL */ ` + query GetMyQuery { + myQuery + } + `); + const jsonConfig = getJsonAttributeSourceConfiguration(source); + + const result = (await plugin( + schema, + [{ location: '', document: operation }], + { + typesafeOperation: true, + memberNameConvention: 'pascalCase', + jsonAttributesSource: source, + }, + { outputFile: '' }, + )) as Types.ComplexPluginOutput; + expect(result.content).toBeSimilarStringTo(` ${jsonConfig.enumConfiguration.decorator} public enum MyEnum { ${jsonConfig.enumConfiguration.enumMemberAttribute('Value1')} @@ -1478,8 +1478,7 @@ describe('C# Operations', () => { ShoutySnakeValue } `); - }, - ); + }); it('Should generate input classes with pascal case property names', async () => { const schema = buildSchema(/* GraphQL */ ` diff --git a/packages/plugins/c-sharp/c-sharp-operations/vitest.config.ts b/packages/plugins/c-sharp/c-sharp-operations/vitest.config.ts new file mode 100644 index 0000000000..3841a04835 --- /dev/null +++ b/packages/plugins/c-sharp/c-sharp-operations/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'c-sharp-operations', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/c-sharp/c-sharp/package.json b/packages/plugins/c-sharp/c-sharp/package.json index 758b9c4b12..be930239dc 100644 --- a/packages/plugins/c-sharp/c-sharp/package.json +++ b/packages/plugins/c-sharp/c-sharp/package.json @@ -3,7 +3,7 @@ "version": "5.1.2", "type": "module", "description": "GraphQL Code Generator plugin for generating CSharp code based on a GraphQL schema", - "repository": "git@github.com:dotansimha/graphql-code-generator.git", + "repository": "git@github.com:dotansimha/graphql-code-generator-community.git", "license": "MIT", "engines": { "node": ">= 16.0.0" @@ -29,31 +29,27 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { "@graphql-codegen/c-sharp-common": "1.2.0", - "@graphql-codegen/plugin-helpers": "^5.0.4", - "@graphql-codegen/visitor-plugin-common": "^5.3.1", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "change-case-all": "1.0.15", "tslib": "^2.8.1", "unixify": "^1.0.0" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", "access": "public" }, "sideEffects": false, - "jest-junit": { - "outputDirectory": "../../../../test-results/c-sharp" - }, "typescript": { "definition": "dist/typings/index.d.ts" } diff --git a/packages/plugins/c-sharp/c-sharp/test/c-sharp.spec.ts b/packages/plugins/c-sharp/c-sharp/test/c-sharp.spec.ts index 0acbbe9ad9..8aecf25974 100644 --- a/packages/plugins/c-sharp/c-sharp/test/c-sharp.spec.ts +++ b/packages/plugins/c-sharp/c-sharp/test/c-sharp.spec.ts @@ -1,7 +1,6 @@ -import { getJsonAttributeSourceConfiguration } from '@graphql-codegen/c-sharp-common'; import '@graphql-codegen/testing'; import { buildSchema } from 'graphql'; -import each from 'jest-each'; +import { getJsonAttributeSourceConfiguration } from '@graphql-codegen/c-sharp-common'; import { CSharpResolversPluginRawConfig } from '../src/config.js'; import { plugin } from '../src/index.js'; @@ -30,23 +29,23 @@ describe('C#', () => { expect(result).toContain('using Newtonsoft.Json;'); }); - each(['Newtonsoft.Json', 'System.Text.Json']).it( - `Should include configured '%s' using directives`, - async source => { - const schema = buildSchema(/* GraphQL */ ` - enum ns { - dummy - } - `); - const config: CSharpResolversPluginRawConfig = { - jsonAttributesSource: source, - }; - const result = await plugin(schema, [], config, { outputFile: '' }); - const jsonConfig = getJsonAttributeSourceConfiguration(source); + it.each([ + 'Newtonsoft.Json', + 'System.Text.Json', + ])(`Should include configured '%s' using directives`, async source => { + const schema = buildSchema(/* GraphQL */ ` + enum ns { + dummy + } + `); + const config: CSharpResolversPluginRawConfig = { + jsonAttributesSource: source, + }; + const result = await plugin(schema, [], config, { outputFile: '' }); + const jsonConfig = getJsonAttributeSourceConfiguration(source); - expect(result).toContain(`using ${jsonConfig.namespace};`); - }, - ); + expect(result).toContain(`using ${jsonConfig.namespace};`); + }); }); describe('Namespaces', () => { @@ -430,30 +429,30 @@ describe('C#', () => { expect(result).toContain('public class @public {'); }); - each(['Newtonsoft.Json', 'System.Text.Json']).it( - `Should generate properties for types using '%s' source`, - async source => { - const schema = buildSchema(/* GraphQL */ ` - type User { - id: Int - email: String - } - `); - const config: CSharpResolversPluginRawConfig = { - jsonAttributesSource: source, - namingConvention: 'change-case-all#pascalCase', - }; - const result = await plugin(schema, [], config, { outputFile: '' }); - const jsonConfig = getJsonAttributeSourceConfiguration(source); + it.each([ + 'Newtonsoft.Json', + 'System.Text.Json', + ])(`Should generate properties for types using '%s' source`, async source => { + const schema = buildSchema(/* GraphQL */ ` + type User { + id: Int + email: String + } + `); + const config: CSharpResolversPluginRawConfig = { + jsonAttributesSource: source, + namingConvention: 'change-case-all#pascalCase', + }; + const result = await plugin(schema, [], config, { outputFile: '' }); + const jsonConfig = getJsonAttributeSourceConfiguration(source); - expect(result).toBeSimilarStringTo(` + expect(result).toBeSimilarStringTo(` [${jsonConfig.propertyAttribute}("id")] public int? id { get; set; } [${jsonConfig.propertyAttribute}("email")] public string email { get; set; } `); - }, - ); + }); it(`Should generate properties for types without JSON attributes`, async () => { const schema = buildSchema(/* GraphQL */ ` @@ -607,7 +606,10 @@ describe('C#', () => { describe('GraphQL Value Types', () => { describe('Scalar', () => { - each(['Newtonsoft.Json', 'System.Text.Json']).it( + it.each([ + 'Newtonsoft.Json', + 'System.Text.Json', + ])( `Should generate properties for mandatory scalar types using '%s' source`, async source => { const schema = buildSchema(/* GraphQL */ ` diff --git a/packages/plugins/c-sharp/c-sharp/vitest.config.ts b/packages/plugins/c-sharp/c-sharp/vitest.config.ts new file mode 100644 index 0000000000..eb8a8f40de --- /dev/null +++ b/packages/plugins/c-sharp/c-sharp/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'c-sharp', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/dart/flutter-freezed/package.json b/packages/plugins/dart/flutter-freezed/package.json index cc690e0e7b..f239a074d2 100644 --- a/packages/plugins/dart/flutter-freezed/package.json +++ b/packages/plugins/dart/flutter-freezed/package.json @@ -38,16 +38,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/schema-ast": "^2.5.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/schema-ast": "^5.0.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" diff --git a/packages/plugins/dart/flutter-freezed/tests/pattern.spec.ts b/packages/plugins/dart/flutter-freezed/tests/pattern.spec.ts index b6b74f02ac..ab18a7e1ab 100644 --- a/packages/plugins/dart/flutter-freezed/tests/pattern.spec.ts +++ b/packages/plugins/dart/flutter-freezed/tests/pattern.spec.ts @@ -885,7 +885,7 @@ describe('Configuring specific fields for all Graphql Types:', () => { const pattern = FieldNamePattern.forFieldNamesOfAllTypeNames([id, name, friends]); describe('Pattern.forFieldNamesOfAllTypeNames:', () => { - describe('builds the expected pattern for the list of FieldNames:', () => { + it('builds the expected pattern for the list of FieldNames:', () => { expect(pattern.value).toBe(expectedPattern); }); }); @@ -988,7 +988,7 @@ describe('Configuring all fields for all Graphql Types:', () => { const pattern = FieldNamePattern.forAllFieldNamesOfAllTypeNames(); describe('Pattern.forAllFieldNamesOfAllTypeNames:', () => { - describe('builds the expected pattern:', () => { + it('builds the expected pattern:', () => { expect(pattern.value).toBe(expectedPattern); }); }); @@ -1072,7 +1072,7 @@ describe('Configuring all fields except those specified in the exclusion list of ]); describe('Pattern.forAllFieldNamesExcludeFieldNamesOfAllTypeNames:', () => { - describe('builds the expected pattern:', () => { + it('builds the expected pattern:', () => { expect(pattern.value).toBe(expectedPattern); }); }); @@ -1181,7 +1181,7 @@ describe('Configuring specific fields of all GraphQL Types except those specifie ); describe('Pattern.forFieldNamesOfAllTypeNamesExcludeTypeNames:', () => { - describe('builds the expected pattern for the list of FieldNames:', () => { + it('builds the expected pattern for the list of FieldNames:', () => { expect(pattern.value).toBe(expectedPattern); }); }); @@ -1306,7 +1306,7 @@ describe('Configuring all fields of all GraphQL Types except those specified in const pattern = FieldNamePattern.forAllFieldNamesOfAllTypeNamesExcludeTypeNames([Droid, Human]); describe('Pattern.forAllFieldNamesExcludeFieldNamesOfAllTypeNamesExcludeTypeNames:', () => { - describe('builds the expected pattern for the list of FieldNames:', () => { + it('builds the expected pattern for the list of FieldNames:', () => { expect(pattern.value).toBe(expectedPattern); }); }); @@ -1411,7 +1411,7 @@ describe('Configuring all fields except those specified in the exclusion list of ); describe('Pattern.forAllFieldNamesExcludeFieldNamesOfAllTypeNamesExcludeTypeNames:', () => { - describe('builds the expected pattern for the list of FieldNames:', () => { + it('builds the expected pattern for the list of FieldNames:', () => { expect(pattern.value).toBe(expectedPattern); }); }); diff --git a/packages/plugins/dart/flutter-freezed/vitest.config.ts b/packages/plugins/dart/flutter-freezed/vitest.config.ts new file mode 100644 index 0000000000..df3aa92200 --- /dev/null +++ b/packages/plugins/dart/flutter-freezed/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'flutter-freezed', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/flow/flow/jest.config.js b/packages/plugins/flow/flow/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/flow/flow/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/flow/flow/package.json b/packages/plugins/flow/flow/package.json index 50d4856b6a..11bc644737 100644 --- a/packages/plugins/flow/flow/package.json +++ b/packages/plugins/flow/flow/package.json @@ -33,8 +33,7 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" @@ -46,7 +45,7 @@ "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/flow/operations/jest.config.js b/packages/plugins/flow/operations/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/flow/operations/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/flow/operations/package.json b/packages/plugins/flow/operations/package.json index e93b436516..cdc834bf51 100644 --- a/packages/plugins/flow/operations/package.json +++ b/packages/plugins/flow/operations/package.json @@ -33,8 +33,7 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" @@ -47,7 +46,7 @@ "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/flow/resolvers/jest.config.js b/packages/plugins/flow/resolvers/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/flow/resolvers/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/flow/resolvers/package.json b/packages/plugins/flow/resolvers/package.json index 92d68d79a6..f48e5db793 100644 --- a/packages/plugins/flow/resolvers/package.json +++ b/packages/plugins/flow/resolvers/package.json @@ -33,8 +33,7 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" @@ -48,7 +47,7 @@ "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/flow/resolvers/tests/mapping.spec.ts b/packages/plugins/flow/resolvers/tests/mapping.spec.ts index ec870a361c..38c6781d96 100644 --- a/packages/plugins/flow/resolvers/tests/mapping.spec.ts +++ b/packages/plugins/flow/resolvers/tests/mapping.spec.ts @@ -125,7 +125,7 @@ describe('ResolversTypes', () => { }); it('should warn about unused mappers by default', async () => { - const spy = jest.spyOn(console, 'warn').mockImplementation(); + const spy = vi.spyOn(console, 'warn').mockImplementation(() => {}); const testSchema = buildSchema(/* GraphQL */ ` type Query { comments: [Comment!]! @@ -162,7 +162,7 @@ describe('ResolversTypes', () => { }); it('should be able not to warn about unused mappers', async () => { - const spy = jest.spyOn(console, 'warn').mockImplementation(); + const spy = vi.spyOn(console, 'warn').mockImplementation(() => {}); const testSchema = buildSchema(/* GraphQL */ ` type Query { comments: [Comment!]! @@ -364,7 +364,7 @@ describe('ResolversTypes', () => { }); it('Should generate the correct resolvers when used with mappers with interfaces', async () => { - const spy = jest.spyOn(console, 'warn').mockImplementation(); + const spy = vi.spyOn(console, 'warn').mockImplementation(() => {}); const result = (await plugin( resolversTestingSchema, [], diff --git a/packages/plugins/java/apollo-android/jest.config.js b/packages/plugins/java/apollo-android/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/java/apollo-android/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/java/apollo-android/package.json b/packages/plugins/java/apollo-android/package.json index 42744b230e..d63f7bbace 100644 --- a/packages/plugins/java/apollo-android/package.json +++ b/packages/plugins/java/apollo-android/package.json @@ -33,23 +33,22 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { "@graphql-codegen/java-common": "^3.0.1", - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "pluralize": "^8.0.0", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3", + "@graphql-codegen/testing": "4.0.2", "@types/pluralize": "0.0.33" }, "publishConfig": { diff --git a/packages/plugins/java/apollo-android/src/base-java-visitor.ts b/packages/plugins/java/apollo-android/src/base-java-visitor.ts index 62867144c2..c4165729bc 100644 --- a/packages/plugins/java/apollo-android/src/base-java-visitor.ts +++ b/packages/plugins/java/apollo-android/src/base-java-visitor.ts @@ -109,7 +109,7 @@ export class BaseJavaVisitor extends BaseVis let typeToUse = schemaType.name; if (isScalarType(schemaType)) { - const scalar = this.scalars[schemaType.name] || 'Object'; + const scalar = this.scalars[schemaType.name].output || 'Object'; if (Imports[scalar]) { this._imports.add(Imports[scalar]); diff --git a/packages/plugins/java/apollo-android/src/custom-type-class.ts b/packages/plugins/java/apollo-android/src/custom-type-class.ts index 6f5861b0a7..259f0c6322 100644 --- a/packages/plugins/java/apollo-android/src/custom-type-class.ts +++ b/packages/plugins/java/apollo-android/src/custom-type-class.ts @@ -42,7 +42,7 @@ export class CustomTypeClassVisitor extends BaseJavaVisitor { .map(t => allTypes[t] as GraphQLScalarType) .map(scalarType => { const uppercaseName = scalarType.name.toUpperCase(); - const javaType = this.extract(this.scalars[scalarType.name] || 'String'); + const javaType = this.extract(this.scalars[scalarType.name].output || 'String'); if (javaType.importFrom) { this._imports.add(javaType.importFrom); diff --git a/packages/plugins/java/apollo-android/tests/__snapshots__/operations.spec.ts.snap b/packages/plugins/java/apollo-android/tests/__snapshots__/operations.spec.ts.snap index ddb965041c..d387d45425 100644 --- a/packages/plugins/java/apollo-android/tests/__snapshots__/operations.spec.ts.snap +++ b/packages/plugins/java/apollo-android/tests/__snapshots__/operations.spec.ts.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Operations Visitor Should handle Query correctly 1`] = ` +exports[`Operations Visitor > Should handle Query correctly 1`] = ` "package app.test.generated.graphql; import com.apollographql.apollo.api.Query; @@ -477,7 +477,7 @@ public final class ListProductsQuery implements Query Should handle Query correctly with fragments 1`] = ` "package fragment; import com.apollographql.apollo.api.Query; diff --git a/packages/plugins/java/apollo-android/vitest.config.ts b/packages/plugins/java/apollo-android/vitest.config.ts new file mode 100644 index 0000000000..170c3efe4f --- /dev/null +++ b/packages/plugins/java/apollo-android/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'java-apollo-android', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/java/common/jest.config.js b/packages/plugins/java/common/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/java/common/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/java/common/package.json b/packages/plugins/java/common/package.json index 84f70bb8de..563c48ccde 100644 --- a/packages/plugins/java/common/package.json +++ b/packages/plugins/java/common/package.json @@ -39,8 +39,8 @@ "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "min-indent": "1.0.1", "tslib": "^2.8.1", diff --git a/packages/plugins/java/common/src/scalars.ts b/packages/plugins/java/common/src/scalars.ts index 4340361ee6..9eb76dc197 100644 --- a/packages/plugins/java/common/src/scalars.ts +++ b/packages/plugins/java/common/src/scalars.ts @@ -1,7 +1,22 @@ export const JAVA_SCALARS = { - ID: 'Object', - String: 'String', - Boolean: 'Boolean', - Int: 'Integer', - Float: 'Double', + ID: { + input: 'Object', + output: 'Object', + }, + String: { + input: 'String', + output: 'String', + }, + Boolean: { + input: 'Boolean', + output: 'Boolean', + }, + Int: { + input: 'Integer', + output: 'Integer', + }, + Float: { + input: 'Double', + output: 'Double', + }, }; diff --git a/packages/plugins/java/java/jest.config.js b/packages/plugins/java/java/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/java/java/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/java/java/package.json b/packages/plugins/java/java/package.json index 856e4a15a8..72d51f3f4c 100644 --- a/packages/plugins/java/java/package.json +++ b/packages/plugins/java/java/package.json @@ -33,20 +33,19 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { "@graphql-codegen/java-common": "^3.0.1", - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/java/java/src/visitor.ts b/packages/plugins/java/java/src/visitor.ts index 2fb80a6072..bd41943b31 100644 --- a/packages/plugins/java/java/src/visitor.ts +++ b/packages/plugins/java/java/src/visitor.ts @@ -159,8 +159,8 @@ export class JavaResolversVisitor extends BaseVisitor< if (isScalarType(schemaType)) { if (this.scalars[schemaType.name]) { result = { - baseType: this.scalars[schemaType.name], - typeName: this.scalars[schemaType.name], + baseType: this.scalars[schemaType.name].input, + typeName: this.scalars[schemaType.name].input, isScalar: true, isEnum: false, isArray, diff --git a/packages/plugins/java/java/vitest.config.ts b/packages/plugins/java/java/vitest.config.ts new file mode 100644 index 0000000000..d6c5dc2ea6 --- /dev/null +++ b/packages/plugins/java/java/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'java', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/java/kotlin/jest.config.js b/packages/plugins/java/kotlin/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/java/kotlin/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/java/kotlin/package.json b/packages/plugins/java/kotlin/package.json index 69da46339e..60ed02f097 100644 --- a/packages/plugins/java/kotlin/package.json +++ b/packages/plugins/java/kotlin/package.json @@ -33,20 +33,19 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { "@graphql-codegen/java-common": "^3.0.1", - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/java/kotlin/src/visitor.ts b/packages/plugins/java/kotlin/src/visitor.ts index 70c37f72a2..ec0b2328c5 100644 --- a/packages/plugins/java/kotlin/src/visitor.ts +++ b/packages/plugins/java/kotlin/src/visitor.ts @@ -28,11 +28,26 @@ import { import { KotlinResolversPluginRawConfig } from './config.js'; export const KOTLIN_SCALARS = { - ID: 'Any', - String: 'String', - Boolean: 'Boolean', - Int: 'Int', - Float: 'Float', + ID: { + input: 'Any', + output: 'Any', + }, + String: { + input: 'String', + output: 'String', + }, + Boolean: { + input: 'Boolean', + output: 'Boolean', + }, + Int: { + input: 'Int', + output: 'Int', + }, + Float: { + input: 'Float', + output: 'Float', + }, }; export interface KotlinResolverParsedConfig extends ParsedConfig { @@ -105,7 +120,7 @@ export class KotlinResolversVisitor extends BaseVisitor< return `${comment}enum class ${enumName}(val label: String) { ${enumValues} - + companion object { ${this.config.omitJvmStatic ? '' : '@JvmStatic'} fun valueOfLabel(label: String): ${enumName}? { @@ -139,8 +154,8 @@ ${enumValues} if (isScalarType(schemaType)) { if (this.config.scalars[schemaType.name]) { result = { - baseType: this.scalars[schemaType.name], - typeName: this.scalars[schemaType.name], + baseType: this.scalars[schemaType.name].input, + typeName: this.scalars[schemaType.name].input, isScalar: true, isArray, nullable, diff --git a/packages/plugins/java/kotlin/vitest.config.ts b/packages/plugins/java/kotlin/vitest.config.ts new file mode 100644 index 0000000000..97618d1663 --- /dev/null +++ b/packages/plugins/java/kotlin/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'java-kotlin', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/java/resolvers/jest.config.js b/packages/plugins/java/resolvers/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/java/resolvers/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/java/resolvers/package.json b/packages/plugins/java/resolvers/package.json index 4f83f76bc4..6066eab40e 100644 --- a/packages/plugins/java/resolvers/package.json +++ b/packages/plugins/java/resolvers/package.json @@ -33,20 +33,19 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { "@graphql-codegen/java-common": "^3.0.1", - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/java/resolvers/src/visitor.ts b/packages/plugins/java/resolvers/src/visitor.ts index d698cee43b..64a94c45b8 100644 --- a/packages/plugins/java/resolvers/src/visitor.ts +++ b/packages/plugins/java/resolvers/src/visitor.ts @@ -75,8 +75,8 @@ export class JavaResolversVisitor extends BaseVisitor< } protected getTypeToUse(type: NamedTypeNode): string { - if (this.scalars[type.name.value]) { - return this.scalars[type.name.value]; + if (this.scalars[type.name.value]?.output) { + return this.scalars[type.name.value].output; } if (this.config.mappers[type.name.value]) { return this.config.mappers[type.name.value].type; diff --git a/packages/plugins/java/resolvers/vitest.config.ts b/packages/plugins/java/resolvers/vitest.config.ts new file mode 100644 index 0000000000..b2a893719f --- /dev/null +++ b/packages/plugins/java/resolvers/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'java-resolvers', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/other/hasura-allow-list/jest.config.js b/packages/plugins/other/hasura-allow-list/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/other/hasura-allow-list/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/other/hasura-allow-list/package.json b/packages/plugins/other/hasura-allow-list/package.json index 37a54c4b8e..812459f11a 100644 --- a/packages/plugins/other/hasura-allow-list/package.json +++ b/packages/plugins/other/hasura-allow-list/package.json @@ -39,7 +39,7 @@ "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", + "@graphql-codegen/plugin-helpers": "^6.1.1", "tslib": "^2.8.1", "yaml": "^1.10.2" }, diff --git a/packages/plugins/other/hasura-allow-list/vitest.config.ts b/packages/plugins/other/hasura-allow-list/vitest.config.ts new file mode 100644 index 0000000000..b209ab6f2c --- /dev/null +++ b/packages/plugins/other/hasura-allow-list/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'hasura-allow-list', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/other/jsdoc/package.json b/packages/plugins/other/jsdoc/package.json index 9f39c40194..09b598d6a8 100644 --- a/packages/plugins/other/jsdoc/package.json +++ b/packages/plugins/other/jsdoc/package.json @@ -33,19 +33,18 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/other/jsdoc/src/index.ts b/packages/plugins/other/jsdoc/src/index.ts index e8b9ad5067..d88b1212d9 100644 --- a/packages/plugins/other/jsdoc/src/index.ts +++ b/packages/plugins/other/jsdoc/src/index.ts @@ -11,11 +11,11 @@ import { getCachedDocumentNodeFromSchema, PluginFunction } from '@graphql-codege import { DEFAULT_SCALARS, RawDocumentsConfig } from '@graphql-codegen/visitor-plugin-common'; const transformScalar = (scalar: string) => { - if (DEFAULT_SCALARS[scalar] === undefined) { + if (DEFAULT_SCALARS[scalar]?.output === undefined) { return scalar; } - return DEFAULT_SCALARS[scalar]; + return DEFAULT_SCALARS[scalar].output; }; const createDocBlock = (lines: Array) => { diff --git a/packages/plugins/other/jsdoc/tsconfig.json b/packages/plugins/other/jsdoc/tsconfig.json index 9da465c3d0..fce9568923 100644 --- a/packages/plugins/other/jsdoc/tsconfig.json +++ b/packages/plugins/other/jsdoc/tsconfig.json @@ -5,7 +5,6 @@ "module": "esnext", "target": "es2018", "lib": ["es6", "esnext", "es2015", "dom"], - "suppressImplicitAnyIndexErrors": true, "moduleResolution": "node", "emitDecoratorMetadata": true, "sourceMap": true, diff --git a/packages/plugins/other/jsdoc/vitest.config.ts b/packages/plugins/other/jsdoc/vitest.config.ts new file mode 100644 index 0000000000..7ef38440f1 --- /dev/null +++ b/packages/plugins/other/jsdoc/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'jsdoc', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/other/urql-introspection/jest.config.js b/packages/plugins/other/urql-introspection/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/other/urql-introspection/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/other/urql-introspection/package.json b/packages/plugins/other/urql-introspection/package.json index 84943fbe38..a492c55816 100644 --- a/packages/plugins/other/urql-introspection/package.json +++ b/packages/plugins/other/urql-introspection/package.json @@ -33,19 +33,18 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", + "@graphql-codegen/plugin-helpers": "^6.1.1", "@urql/introspection": "^0.3.2", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/other/urql-introspection/vitest.config.ts b/packages/plugins/other/urql-introspection/vitest.config.ts new file mode 100644 index 0000000000..22edcdeb68 --- /dev/null +++ b/packages/plugins/other/urql-introspection/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'urql-introspection', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/apollo-angular/jest.config.js b/packages/plugins/typescript/apollo-angular/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/apollo-angular/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/apollo-angular/package.json b/packages/plugins/typescript/apollo-angular/package.json index 9e045fce5d..ee1ab6e121 100644 --- a/packages/plugins/typescript/apollo-angular/package.json +++ b/packages/plugins/typescript/apollo-angular/package.json @@ -33,15 +33,14 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" diff --git a/packages/plugins/typescript/apollo-angular/tests/apollo-angular.spec.ts b/packages/plugins/typescript/apollo-angular/tests/apollo-angular.spec.ts index 581e3d7808..5149c61875 100644 --- a/packages/plugins/typescript/apollo-angular/tests/apollo-angular.spec.ts +++ b/packages/plugins/typescript/apollo-angular/tests/apollo-angular.spec.ts @@ -40,24 +40,6 @@ describe('Apollo Angular', () => { }; describe('Imports', () => { - it('should import DocumentNode when using noGraphQLTag', async () => { - const docs = [{ location: '', document: basicDoc }]; - const content = (await plugin( - schema, - docs, - { - noGraphQLTag: true, - }, - { - outputFile: 'graphql.tsx', - }, - )) as Types.ComplexPluginOutput; - - expect(content.prepend).toContain(`import { DocumentNode } from 'graphql';`); - expect(content.prepend).not.toContain(`import gql from 'graphql-tag';`); - await validateTypeScript(content, schema, docs, {}); - }); - it(`should use gql import from gqlImport config option`, async () => { const docs = [{ location: '', document: basicDoc }]; const content = (await plugin( @@ -236,7 +218,7 @@ describe('Apollo Angular', () => { }); it('should output warning if documentMode = external and importDocumentNodeExternallyFrom is not set', async () => { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, @@ -256,7 +238,7 @@ describe('Apollo Angular', () => { }); it('output warning if importOperationTypesFrom is set to something other than "Operations"', async () => { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, @@ -277,7 +259,7 @@ describe('Apollo Angular', () => { }); it('output warning if importOperationTypesFrom is set and documentMode is not "external"', async () => { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, @@ -297,7 +279,7 @@ describe('Apollo Angular', () => { }); it('output warning if importOperationTypesFrom is set and importDocumentNodeExternallyFrom is not', async () => { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, diff --git a/packages/plugins/typescript/apollo-angular/vitest.config.ts b/packages/plugins/typescript/apollo-angular/vitest.config.ts new file mode 100644 index 0000000000..7158300220 --- /dev/null +++ b/packages/plugins/typescript/apollo-angular/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-apollo-angular', + include: ['**/*.spec.ts'], + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/apollo-angular/vitest.setup.ts b/packages/plugins/typescript/apollo-angular/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/apollo-angular/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/plugins/typescript/apollo-client-helpers/jest.config.js b/packages/plugins/typescript/apollo-client-helpers/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/apollo-client-helpers/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/apollo-client-helpers/package.json b/packages/plugins/typescript/apollo-client-helpers/package.json index e3376dd8cf..41624c3580 100644 --- a/packages/plugins/typescript/apollo-client-helpers/package.json +++ b/packages/plugins/typescript/apollo-client-helpers/package.json @@ -33,15 +33,14 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" diff --git a/packages/plugins/typescript/apollo-client-helpers/tests/__snapshots__/apollo-client-helpers.spec.ts.snap b/packages/plugins/typescript/apollo-client-helpers/tests/__snapshots__/apollo-client-helpers.spec.ts.snap index 53f7925bc1..a8f508a7f1 100644 --- a/packages/plugins/typescript/apollo-client-helpers/tests/__snapshots__/apollo-client-helpers.spec.ts.snap +++ b/packages/plugins/typescript/apollo-client-helpers/tests/__snapshots__/apollo-client-helpers.spec.ts.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`apollo-client-helpers Should output typePolicies object correctly 1`] = ` +exports[`apollo-client-helpers > Should output typePolicies object correctly 1`] = ` "import { FieldPolicy, FieldReadFunction, TypePolicies, TypePolicy } from '@apollo/client/cache'; export type QueryKeySpecifier = ('user' | QueryKeySpecifier)[]; export type QueryFieldPolicy = { @@ -24,7 +24,7 @@ export type StrictTypedTypePolicies = { export type TypedTypePolicies = StrictTypedTypePolicies & TypePolicies;" `; -exports[`apollo-client-helpers Should output typePolicies object with requireKeyFields: true 1`] = ` +exports[`apollo-client-helpers > Should output typePolicies object with requireKeyFields: true 1`] = ` "import { FieldPolicy, FieldReadFunction, TypePolicies, TypePolicy } from '@apollo/client/cache'; export type QueryKeySpecifier = ('user' | QueryKeySpecifier)[]; export type QueryFieldPolicy = { @@ -48,7 +48,7 @@ export type StrictTypedTypePolicies = { export type TypedTypePolicies = StrictTypedTypePolicies & TypePolicies;" `; -exports[`apollo-client-helpers Should output typePolicies object with requirePoliciesForAllTypes: true 1`] = ` +exports[`apollo-client-helpers > Should output typePolicies object with requirePoliciesForAllTypes: true 1`] = ` "import { FieldPolicy, FieldReadFunction, TypePolicies, TypePolicy } from '@apollo/client/cache'; export type QueryKeySpecifier = ('user' | QueryKeySpecifier)[]; export type QueryFieldPolicy = { diff --git a/packages/plugins/typescript/apollo-client-helpers/vitest.config.ts b/packages/plugins/typescript/apollo-client-helpers/vitest.config.ts new file mode 100644 index 0000000000..811b0e865f --- /dev/null +++ b/packages/plugins/typescript/apollo-client-helpers/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-apollo-client-helpers', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/enum-array/jest.config.js b/packages/plugins/typescript/enum-array/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/enum-array/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/enum-array/package.json b/packages/plugins/typescript/enum-array/package.json index 572649d949..a04c323efc 100644 --- a/packages/plugins/typescript/enum-array/package.json +++ b/packages/plugins/typescript/enum-array/package.json @@ -33,19 +33,18 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/typescript/enum-array/vitest.config.ts b/packages/plugins/typescript/enum-array/vitest.config.ts new file mode 100644 index 0000000000..7dd15efe8a --- /dev/null +++ b/packages/plugins/typescript/enum-array/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-enum-array', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/generic-sdk/jest.config.js b/packages/plugins/typescript/generic-sdk/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/generic-sdk/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/generic-sdk/package.json b/packages/plugins/typescript/generic-sdk/package.json index be57c41d6c..6cce5da477 100644 --- a/packages/plugins/typescript/generic-sdk/package.json +++ b/packages/plugins/typescript/generic-sdk/package.json @@ -33,16 +33,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "tslib": "^2.8.1" }, diff --git a/packages/plugins/typescript/generic-sdk/tests/__snapshots__/generic-sdk.spec.ts.snap b/packages/plugins/typescript/generic-sdk/tests/__snapshots__/generic-sdk.spec.ts.snap index c6bcc53cee..cfedc13886 100644 --- a/packages/plugins/typescript/generic-sdk/tests/__snapshots__/generic-sdk.spec.ts.snap +++ b/packages/plugins/typescript/generic-sdk/tests/__snapshots__/generic-sdk.spec.ts.snap @@ -1,20 +1,22 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`generic-sdk sdk Should generate a correct wrap method 1`] = ` +exports[`generic-sdk > sdk > Should generate a correct wrap method 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { DocumentNode } from 'graphql'; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -30,13 +32,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -57,17 +59,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -75,8 +77,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -86,17 +88,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -105,32 +107,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -145,19 +147,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -175,7 +177,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -273,21 +275,23 @@ async function test() { }" `; -exports[`generic-sdk sdk Should generate a correct wrap method when usingObservableFrom is not set 1`] = ` +exports[`generic-sdk > sdk > Should generate a correct wrap method when usingObservableFrom is not set 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { DocumentNode } from 'graphql'; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -303,13 +307,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -330,17 +334,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -348,8 +352,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -359,17 +363,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -378,32 +382,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -418,19 +422,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -448,7 +452,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -512,22 +516,24 @@ export type Sdk = ReturnType; " `; -exports[`generic-sdk sdk Should generate a correct wrap method when usingObservableFrom is set 1`] = ` +exports[`generic-sdk > sdk > Should generate a correct wrap method when usingObservableFrom is set 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import Observable from 'zen-observable'; import { DocumentNode } from 'graphql'; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -543,13 +549,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -570,17 +576,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -588,8 +594,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -599,17 +605,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -618,32 +624,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -658,19 +664,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -688,7 +694,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -743,19 +749,21 @@ export function getSdk(requester: Requester) { export type Sdk = ReturnType;" `; -exports[`generic-sdk sdk Should generate a correct wrap method with documentMode=string 1`] = ` +exports[`generic-sdk > sdk > Should generate a correct wrap method with documentMode=string 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -771,13 +779,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -798,17 +806,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -816,8 +824,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -827,17 +835,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -846,32 +854,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -886,19 +894,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -916,7 +924,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -944,7 +952,7 @@ export type Feed4QueryVariables = Exact<{ export type Feed4Query = { __typename?: 'Query', feed?: Array<{ __typename?: 'Entry', id: number } | null> | null }; -export const FeedDocument = \` +export const FeedDocument = new TypedDocumentString(\` query feed { feed { id @@ -956,28 +964,28 @@ export const FeedDocument = \` } } } - \`; -export const Feed2Document = \` + \`); +export const Feed2Document = new TypedDocumentString(\` query feed2($v: String!) { feed { id } } - \`; -export const Feed3Document = \` + \`); +export const Feed3Document = new TypedDocumentString(\` query feed3($v: String) { feed { id } } - \`; -export const Feed4Document = \` + \`); +export const Feed4Document = new TypedDocumentString(\` query feed4($v: String! = "TEST") { feed { id } } - \`; + \`); export type Requester = (doc: string, vars?: V, options?: C) => Promise | AsyncIterable export function getSdk(requester: Requester) { return { @@ -1014,21 +1022,23 @@ async function test() { }" `; -exports[`generic-sdk sdk Should support rawRequest 1`] = ` +exports[`generic-sdk > sdk > Should support rawRequest 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { DocumentNode, ExecutionResult } from 'graphql'; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -1044,13 +1054,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -1071,17 +1081,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -1089,8 +1099,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -1100,17 +1110,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -1119,32 +1129,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -1159,19 +1169,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -1189,7 +1199,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; diff --git a/packages/plugins/typescript/generic-sdk/tests/__snapshots__/generic-sdk.v16+.spec.ts.snap b/packages/plugins/typescript/generic-sdk/tests/__snapshots__/generic-sdk.v16+.spec.ts.snap index 26e1aad42d..d4031f0bdb 100644 --- a/packages/plugins/typescript/generic-sdk/tests/__snapshots__/generic-sdk.v16+.spec.ts.snap +++ b/packages/plugins/typescript/generic-sdk/tests/__snapshots__/generic-sdk.v16+.spec.ts.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`generic-sdk - GraphQL v16+ generates operation description correctly 1`] = ` +exports[`generic-sdk - GraphQL v16+ > generates operation description correctly 1`] = ` { "content": " export const FeedDocument = gql\` diff --git a/packages/plugins/typescript/generic-sdk/vitest.config.ts b/packages/plugins/typescript/generic-sdk/vitest.config.ts new file mode 100644 index 0000000000..4288dbbf5b --- /dev/null +++ b/packages/plugins/typescript/generic-sdk/vitest.config.ts @@ -0,0 +1,17 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +const include = ['**/*.spec.ts']; +if (process.env.GRAPHQL_VERSION === '15') { + include.push('!**/*.v16+.spec.ts'); +} + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-generic-sdk', + include, + }, + }), +); diff --git a/packages/plugins/typescript/graphql-apollo/jest.config.js b/packages/plugins/typescript/graphql-apollo/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/graphql-apollo/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/graphql-apollo/package.json b/packages/plugins/typescript/graphql-apollo/package.json index 09283560f2..89bec77461 100644 --- a/packages/plugins/typescript/graphql-apollo/package.json +++ b/packages/plugins/typescript/graphql-apollo/package.json @@ -33,25 +33,24 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "^2.12.1", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" }, "devDependencies": { "@apollo/client": "3.14.0", - "@graphql-codegen/core": "2.6.8", - "@graphql-codegen/testing": "1.18.3", - "@graphql-codegen/typescript-operations": "4.6.1", + "@graphql-codegen/core": "5.0.1", + "@graphql-codegen/testing": "4.0.2", + "@graphql-codegen/typescript-operations": "5.0.9", "@graphql-tools/schema": "10.0.31", "cross-fetch": "3.2.0", "react": "19.2.4" diff --git a/packages/plugins/typescript/graphql-apollo/tests/__snapshots__/graphql-apollo.spec.ts.snap b/packages/plugins/typescript/graphql-apollo/tests/__snapshots__/graphql-apollo.spec.ts.snap index 3b2d8b2f60..3e5574a37d 100644 --- a/packages/plugins/typescript/graphql-apollo/tests/__snapshots__/graphql-apollo.spec.ts.snap +++ b/packages/plugins/typescript/graphql-apollo/tests/__snapshots__/graphql-apollo.spec.ts.snap @@ -1,20 +1,22 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`apollo-client sdk Should generate Sdk correctly 1`] = ` +exports[`apollo-client > sdk > Should generate Sdk correctly 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { ApolloClient, QueryOptions, SubscriptionOptions, MutationOptions } from '@apollo/client'; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -30,13 +32,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -57,17 +59,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -75,8 +77,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -86,17 +88,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -105,32 +107,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -145,19 +147,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -175,7 +177,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -306,21 +308,23 @@ async function test() { }" `; -exports[`apollo-client sdk Should support useTypeImports 1`] = ` +exports[`apollo-client > sdk > Should support useTypeImports 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import type { ApolloClient, QueryOptions, SubscriptionOptions, MutationOptions } from '@apollo/client'; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -336,13 +340,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -363,17 +367,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -381,8 +385,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -392,17 +396,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -411,32 +415,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -451,19 +455,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -481,7 +485,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; diff --git a/packages/plugins/typescript/graphql-apollo/vitest.config.ts b/packages/plugins/typescript/graphql-apollo/vitest.config.ts new file mode 100644 index 0000000000..ccc443e34e --- /dev/null +++ b/packages/plugins/typescript/graphql-apollo/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-graphql-apollo', + include: ['**/*.spec.ts'], + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/graphql-apollo/vitest.setup.ts b/packages/plugins/typescript/graphql-apollo/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/graphql-apollo/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/plugins/typescript/graphql-files-modules/jest.config.js b/packages/plugins/typescript/graphql-files-modules/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/graphql-files-modules/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/graphql-files-modules/package.json b/packages/plugins/typescript/graphql-files-modules/package.json index 9d8186f939..2742cff469 100644 --- a/packages/plugins/typescript/graphql-files-modules/package.json +++ b/packages/plugins/typescript/graphql-files-modules/package.json @@ -33,14 +33,13 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", + "@graphql-codegen/plugin-helpers": "^6.1.1", "tslib": "^2.8.1" }, "publishConfig": { diff --git a/packages/plugins/typescript/graphql-files-modules/vitest.config.ts b/packages/plugins/typescript/graphql-files-modules/vitest.config.ts new file mode 100644 index 0000000000..f089931a8e --- /dev/null +++ b/packages/plugins/typescript/graphql-files-modules/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-graphql-files-modules', + include: ['**/*.spec.ts'], + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/graphql-files-modules/vitest.setup.ts b/packages/plugins/typescript/graphql-files-modules/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/graphql-files-modules/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/plugins/typescript/graphql-request/jest.config.js b/packages/plugins/typescript/graphql-request/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/graphql-request/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/graphql-request/package.json b/packages/plugins/typescript/graphql-request/package.json index 8e20303be6..d46e50de23 100644 --- a/packages/plugins/typescript/graphql-request/package.json +++ b/packages/plugins/typescript/graphql-request/package.json @@ -33,8 +33,7 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", @@ -42,13 +41,13 @@ "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3", + "@graphql-codegen/testing": "4.0.2", "@graphql-tools/schema": "10.0.31", "@whatwg-node/fetch": "0.10.13", "graphql-request": "7.2.0" diff --git a/packages/plugins/typescript/graphql-request/tests/__snapshots__/graphql-request.spec.ts.snap b/packages/plugins/typescript/graphql-request/tests/__snapshots__/graphql-request.spec.ts.snap index a6105913b1..6cbd721693 100644 --- a/packages/plugins/typescript/graphql-request/tests/__snapshots__/graphql-request.spec.ts.snap +++ b/packages/plugins/typescript/graphql-request/tests/__snapshots__/graphql-request.spec.ts.snap @@ -1,20 +1,22 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`graphql-request sdk Should allow passing wrapper arg to generated getSdk 1`] = ` +exports[`graphql-request > sdk > Should allow passing wrapper arg to generated getSdk 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { GraphQLClient, RequestOptions } from 'graphql-request'; type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -30,13 +32,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -57,17 +59,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -75,8 +77,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -86,17 +88,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -105,32 +107,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -145,19 +147,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -175,7 +177,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -203,7 +205,7 @@ export type Feed4QueryVariables = Exact<{ export type Feed4Query = { __typename?: 'Query', feed?: Array<{ __typename?: 'Entry', id: number } | null> | null }; -export const FeedDocument = \` +export const FeedDocument = new TypedDocumentString(\` query feed { feed { id @@ -215,28 +217,28 @@ export const FeedDocument = \` } } } - \`; -export const Feed2Document = \` + \`); +export const Feed2Document = new TypedDocumentString(\` query feed2($v: String!) { feed { id } } - \`; -export const Feed3Document = \` + \`); +export const Feed3Document = new TypedDocumentString(\` query feed3($v: String) { feed { id } } - \`; -export const Feed4Document = \` + \`); +export const Feed4Document = new TypedDocumentString(\` query feed4($v: String! = "TEST") { feed { id } } - \`; + \`); export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string, operationType?: string, variables?: any) => Promise; @@ -285,22 +287,24 @@ async function test() { }" `; -exports[`graphql-request sdk Should generate a correct wrap method 1`] = ` +exports[`graphql-request > sdk > Should generate a correct wrap method 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { GraphQLClient, RequestOptions } from 'graphql-request'; type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -316,13 +320,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -343,17 +347,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -361,8 +365,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -372,17 +376,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -391,32 +395,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -431,19 +435,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -461,7 +465,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -564,21 +568,23 @@ async function test() { }" `; -exports[`graphql-request sdk Should generate a correct wrap method with documentMode=string 1`] = ` +exports[`graphql-request > sdk > Should generate a correct wrap method with documentMode=string 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { GraphQLClient, RequestOptions } from 'graphql-request'; type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -594,13 +600,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -621,17 +627,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -639,8 +645,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -650,17 +656,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -669,32 +675,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -709,19 +715,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -739,7 +745,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -767,7 +773,7 @@ export type Feed4QueryVariables = Exact<{ export type Feed4Query = { __typename?: 'Query', feed?: Array<{ __typename?: 'Entry', id: number } | null> | null }; -export const FeedDocument = \` +export const FeedDocument = new TypedDocumentString(\` query feed { feed { id @@ -779,28 +785,28 @@ export const FeedDocument = \` } } } - \`; -export const Feed2Document = \` + \`); +export const Feed2Document = new TypedDocumentString(\` query feed2($v: String!) { feed { id } } - \`; -export const Feed3Document = \` + \`); +export const Feed3Document = new TypedDocumentString(\` query feed3($v: String) { feed { id } } - \`; -export const Feed4Document = \` + \`); +export const Feed4Document = new TypedDocumentString(\` query feed4($v: String! = "TEST") { feed { id } } - \`; + \`); export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string, operationType?: string, variables?: any) => Promise; @@ -842,23 +848,25 @@ async function test() { }" `; -exports[`graphql-request sdk Should not import print as type when supporting useTypeImports and rawRequest and documentMode = "documentNode" 1`] = ` +exports[`graphql-request > sdk > Should not import print as type when supporting useTypeImports and rawRequest and documentMode = "documentNode" 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import type { GraphQLClient, RequestOptions } from 'graphql-request'; import { GraphQLError, print } from 'graphql' type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -874,13 +882,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -901,17 +909,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -919,8 +927,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -930,17 +938,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -949,32 +957,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -989,19 +997,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -1019,7 +1027,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -1126,22 +1134,24 @@ async function test() { }" `; -exports[`graphql-request sdk Should only import GraphQLError when rawRequest is true and documentMode = "string" 1`] = ` +exports[`graphql-request > sdk > Should only import GraphQLError when rawRequest is true and documentMode = "string" 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { GraphQLClient, RequestOptions } from 'graphql-request'; import { GraphQLError } from 'graphql' type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -1157,13 +1167,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -1184,17 +1194,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -1202,8 +1212,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -1213,17 +1223,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -1232,32 +1242,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -1272,19 +1282,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -1302,7 +1312,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -1330,7 +1340,7 @@ export type Feed4QueryVariables = Exact<{ export type Feed4Query = { __typename?: 'Query', feed?: Array<{ __typename?: 'Entry', id: number } | null> | null }; -export const FeedDocument = \` +export const FeedDocument = new TypedDocumentString(\` query feed { feed { id @@ -1342,28 +1352,28 @@ export const FeedDocument = \` } } } - \`; -export const Feed2Document = \` + \`); +export const Feed2Document = new TypedDocumentString(\` query feed2($v: String!) { feed { id } } - \`; -export const Feed3Document = \` + \`); +export const Feed3Document = new TypedDocumentString(\` query feed3($v: String) { feed { id } } - \`; -export const Feed4Document = \` + \`); +export const Feed4Document = new TypedDocumentString(\` query feed4($v: String! = "TEST") { feed { id } } - \`; + \`); export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string, operationType?: string, variables?: any) => Promise; @@ -1406,22 +1416,24 @@ async function test() { }" `; -exports[`graphql-request sdk Should support emitLegacyCommonJSImports: false by emitting imports with extensions 1`] = ` +exports[`graphql-request > sdk > Should support emitLegacyCommonJSImports: false by emitting imports with extensions 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { GraphQLClient, RequestOptions } from 'graphql-request'; type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -1437,13 +1449,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -1464,17 +1476,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -1482,8 +1494,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -1493,17 +1505,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -1512,32 +1524,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -1552,19 +1564,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -1582,7 +1594,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -1686,23 +1698,25 @@ async function test() { }" `; -exports[`graphql-request sdk Should support extensionType when rawRequest is true and documentMode = "DocumentNode" 1`] = ` +exports[`graphql-request > sdk > Should support extensionType when rawRequest is true and documentMode = "DocumentNode" 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { GraphQLClient, RequestOptions } from 'graphql-request'; import { GraphQLError, print } from 'graphql' type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -1718,13 +1732,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -1745,17 +1759,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -1763,8 +1777,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -1774,17 +1788,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -1793,32 +1807,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -1833,19 +1847,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -1863,7 +1877,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -1970,23 +1984,25 @@ async function test() { }" `; -exports[`graphql-request sdk Should support rawRequest when documentMode = "documentNode" 1`] = ` +exports[`graphql-request > sdk > Should support rawRequest when documentMode = "documentNode" 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { GraphQLClient, RequestOptions } from 'graphql-request'; import { GraphQLError, print } from 'graphql' type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -2002,13 +2018,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -2029,17 +2045,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -2047,8 +2063,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -2058,17 +2074,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -2077,32 +2093,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -2117,19 +2133,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -2147,7 +2163,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -2254,22 +2270,24 @@ async function test() { }" `; -exports[`graphql-request sdk Should support useTypeImports 1`] = ` +exports[`graphql-request > sdk > Should support useTypeImports 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import type { GraphQLClient, RequestOptions } from 'graphql-request'; type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -2285,13 +2303,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -2312,17 +2330,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -2330,8 +2348,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -2341,17 +2359,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -2360,32 +2378,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -2400,19 +2418,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -2430,7 +2448,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -2534,22 +2552,24 @@ async function test() { }" `; -exports[`graphql-request sdk extensionType should be irrelevant when rawRequest is false 1`] = ` +exports[`graphql-request > sdk > extensionType should be irrelevant when rawRequest is false 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { GraphQLClient, RequestOptions } from 'graphql-request'; type GraphQLClientRequestHeaders = RequestOptions['requestHeaders']; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -2565,13 +2585,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -2592,17 +2612,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -2610,8 +2630,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -2621,17 +2641,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -2640,32 +2660,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -2680,19 +2700,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -2710,7 +2730,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; diff --git a/packages/plugins/typescript/graphql-request/tests/__snapshots__/graphql-request.v16+.spec.ts.snap b/packages/plugins/typescript/graphql-request/tests/__snapshots__/graphql-request.v16+.spec.ts.snap index b9cfefa40d..b5d134cc88 100644 --- a/packages/plugins/typescript/graphql-request/tests/__snapshots__/graphql-request.v16+.spec.ts.snap +++ b/packages/plugins/typescript/graphql-request/tests/__snapshots__/graphql-request.v16+.spec.ts.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`graphql-request - GraphQL v16+ generates operation description correctly 1`] = ` +exports[`graphql-request - GraphQL v16+ > generates operation description correctly 1`] = ` { "content": " export const FeedDocument = gql\` diff --git a/packages/plugins/typescript/graphql-request/tests/graphql-request.spec.ts b/packages/plugins/typescript/graphql-request/tests/graphql-request.spec.ts index 6634d8fa56..694f9aa21d 100644 --- a/packages/plugins/typescript/graphql-request/tests/graphql-request.spec.ts +++ b/packages/plugins/typescript/graphql-request/tests/graphql-request.spec.ts @@ -384,7 +384,7 @@ async function test() { } `); - const warnSpy = jest.spyOn(console, 'warn'); + const warnSpy = vi.spyOn(console, 'warn'); const docs = [{ location: 'file.graphlq', document: doc }]; const result = (await plugin(schema, docs, {}, {})) as Types.ComplexPluginOutput; expect(result.content).not.toContain('feed'); diff --git a/packages/plugins/typescript/graphql-request/tests/integration.spec.ts b/packages/plugins/typescript/graphql-request/tests/integration.spec.ts index 8f9d36b1ed..13c7030e25 100644 --- a/packages/plugins/typescript/graphql-request/tests/integration.spec.ts +++ b/packages/plugins/typescript/graphql-request/tests/integration.spec.ts @@ -64,7 +64,7 @@ describe('GraphQL Request Integration', () => { host: 'http://localhost:4000', path: '/graphql', }); - const { runExampleQuery } = require('./test-files/run-example-query'); + const { runExampleQuery } = await import('./test-files/run-example-query'); const queryResult = await runExampleQuery(2, 3); expect(queryResult?.add).toBe(5); mockServer.done(); diff --git a/packages/plugins/typescript/graphql-request/vitest.config.ts b/packages/plugins/typescript/graphql-request/vitest.config.ts new file mode 100644 index 0000000000..98f6d01d8a --- /dev/null +++ b/packages/plugins/typescript/graphql-request/vitest.config.ts @@ -0,0 +1,18 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +const include = ['**/*.spec.ts']; +if (process.env.GRAPHQL_VERSION === '15') { + include.push('!**/*.v16+.spec.ts'); +} + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-graphql-request', + include, + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/graphql-request/vitest.setup.ts b/packages/plugins/typescript/graphql-request/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/graphql-request/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/plugins/typescript/jit-sdk/jest.config.js b/packages/plugins/typescript/jit-sdk/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/jit-sdk/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/jit-sdk/package.json b/packages/plugins/typescript/jit-sdk/package.json index 8dc47163ca..1b3b1301fd 100644 --- a/packages/plugins/typescript/jit-sdk/package.json +++ b/packages/plugins/typescript/jit-sdk/package.json @@ -33,23 +33,22 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { - "@graphql-tools/utils": "^8.8.0 || ^10.0.0", + "@graphql-tools/utils": "^8.8.0 || ^10.0.0 || ^11.0.0", "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-jit": "^0.6.0 || ^0.7.0 || ^0.8.0", "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-tools/utils": "10.11.0", + "@graphql-tools/utils": "11.0.0", "graphql-jit": "0.8.7" }, "publishConfig": { diff --git a/packages/plugins/typescript/jit-sdk/tests/__snapshots__/jit-sdk.spec.ts.snap b/packages/plugins/typescript/jit-sdk/tests/__snapshots__/jit-sdk.spec.ts.snap index 35b5069906..a8cd53b80b 100644 --- a/packages/plugins/typescript/jit-sdk/tests/__snapshots__/jit-sdk.spec.ts.snap +++ b/packages/plugins/typescript/jit-sdk/tests/__snapshots__/jit-sdk.spec.ts.snap @@ -1,22 +1,24 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`jit-sdk sdk Should generate a correct wrap method 1`] = ` +exports[`jit-sdk > sdk > Should generate a correct wrap method 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { GraphQLSchema, ExecutionResult } from 'graphql'; import { compileQuery, isCompiledQuery, CompilerOptions } from 'graphql-jit'; import { AggregateError, isAsyncIterable, mapAsyncIterator } from '@graphql-tools/utils'; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -32,13 +34,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -59,17 +61,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -77,8 +79,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -88,17 +90,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -107,32 +109,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -147,19 +149,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -177,7 +179,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -524,23 +526,25 @@ type Subscription { }" `; -exports[`jit-sdk sdk Should generate a correct wrap method in case of Subscription 1`] = ` +exports[`jit-sdk > sdk > Should generate a correct wrap method in case of Subscription 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { GraphQLSchema, ExecutionResult } from 'graphql'; import { compileQuery, isCompiledQuery, CompilerOptions } from 'graphql-jit'; import { AggregateError, isAsyncIterable, mapAsyncIterator } from '@graphql-tools/utils'; import gql from 'graphql-tag'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -556,13 +560,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -583,17 +587,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -601,8 +605,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -612,17 +616,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -631,32 +635,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -671,19 +675,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -701,7 +705,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -785,23 +789,25 @@ export function getSdk;" `; -exports[`jit-sdk sdk Should generate a correct wrap method with documentMode=string 1`] = ` +exports[`jit-sdk > sdk > Should generate a correct wrap method with documentMode=string 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { GraphQLSchema, ExecutionResult } from 'graphql'; import { parse } from 'graphql'; import { compileQuery, isCompiledQuery, CompilerOptions } from 'graphql-jit'; import { AggregateError, isAsyncIterable, mapAsyncIterator } from '@graphql-tools/utils'; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -817,13 +823,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -844,17 +850,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -862,8 +868,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -873,17 +879,17 @@ export type EntryCommentsArgs = { export type Repository = { __typename?: 'Repository'; /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -892,32 +898,32 @@ export type Repository = { export type User = { __typename?: 'User'; /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { __typename?: 'Comment'; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { __typename?: 'Vote'; - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -932,19 +938,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -962,7 +968,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type FeedQueryVariables = Exact<{ [key: string]: never; }>; @@ -990,7 +996,7 @@ export type Feed4QueryVariables = Exact<{ export type Feed4Query = { __typename?: 'Query', feed?: Array<{ __typename?: 'Entry', id: number } | null> | null }; -export const FeedDocument = \` +export const FeedDocument = new TypedDocumentString(\` query feed { feed { id @@ -1002,28 +1008,28 @@ export const FeedDocument = \` } } } - \`; -export const Feed2Document = \` + \`); +export const Feed2Document = new TypedDocumentString(\` query feed2($v: String!) { feed { id } } - \`; -export const Feed3Document = \` + \`); +export const Feed3Document = new TypedDocumentString(\` query feed3($v: String) { feed { id } } - \`; -export const Feed4Document = \` + \`); +export const Feed4Document = new TypedDocumentString(\` query feed4($v: String! = "TEST") { feed { id } } - \`; + \`); function handleExecutionResult(result: ExecutionResult, operationName: string) { if (result.errors) { const originalErrors = result.errors.map(error => error.originalError|| error); diff --git a/packages/plugins/typescript/jit-sdk/tests/__snapshots__/jit-sdk.v16+.spec.ts.snap b/packages/plugins/typescript/jit-sdk/tests/__snapshots__/jit-sdk.v16+.spec.ts.snap index 15b97f9449..223d32e612 100644 --- a/packages/plugins/typescript/jit-sdk/tests/__snapshots__/jit-sdk.v16+.spec.ts.snap +++ b/packages/plugins/typescript/jit-sdk/tests/__snapshots__/jit-sdk.v16+.spec.ts.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`jit-sdk - GraphQL 16+ generates operation description correctly 1`] = ` +exports[`jit-sdk - GraphQL 16+ > generates operation description correctly 1`] = ` { "content": " export const FeedDocument = gql\` diff --git a/packages/plugins/typescript/jit-sdk/vitest.config.ts b/packages/plugins/typescript/jit-sdk/vitest.config.ts new file mode 100644 index 0000000000..a62dd2e881 --- /dev/null +++ b/packages/plugins/typescript/jit-sdk/vitest.config.ts @@ -0,0 +1,17 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +const include = ['**/*.spec.ts']; +if (process.env.GRAPHQL_VERSION === '15') { + include.push('!**/*.v16+.spec.ts'); +} + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-jit-sdk', + include, + }, + }), +); diff --git a/packages/plugins/typescript/mongodb/jest.config.js b/packages/plugins/typescript/mongodb/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/mongodb/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/mongodb/package.json b/packages/plugins/typescript/mongodb/package.json index 2d984efe04..e376d53766 100644 --- a/packages/plugins/typescript/mongodb/package.json +++ b/packages/plugins/typescript/mongodb/package.json @@ -33,24 +33,23 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/typescript": "^2.8.1", - "@graphql-codegen/visitor-plugin-common": "2.13.8", - "@graphql-tools/utils": "^10.0.0", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/typescript": "^5.0.9", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", + "@graphql-tools/utils": "^11.0.0", "auto-bind": "~4.0.0", "lodash": "~4.17.0", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3", + "@graphql-codegen/testing": "4.0.2", "@types/lodash": "4.17.24" }, "publishConfig": { diff --git a/packages/plugins/typescript/mongodb/src/visitor.ts b/packages/plugins/typescript/mongodb/src/visitor.ts index 880df908ff..624dbd9a64 100644 --- a/packages/plugins/typescript/mongodb/src/visitor.ts +++ b/packages/plugins/typescript/mongodb/src/visitor.ts @@ -201,12 +201,12 @@ export class TsMongoVisitor extends BaseVisitor< let type: string = null; if (this.scalars[coreType.name.value]) { - type = this.scalars[coreType.name.value]; + type = this.scalars[coreType.name.value].output; } else { const schemaType = this._schema.getType(coreType.name.value); if (isEnumType(schemaType) && this.config.enumsAsString) { - type = this.scalars.String; + type = this.scalars.String.output; } else { type = coreType.name.value; } @@ -290,7 +290,7 @@ export class TsMongoVisitor extends BaseVisitor< 'additionalFields', ); const fields = this._buildFieldsTree(node.fields); - fields.addField(discriminatorField, this.scalars.String); + fields.addField(discriminatorField, this.scalars.String.output); this._addAdditionalFields(fields, additionalFields); return new DeclarationBlock(this._declarationBlockConfig) @@ -343,7 +343,7 @@ export class TsMongoVisitor extends BaseVisitor< 'additionalFields', ); const fields = new FieldsTree(); - fields.addField(discriminatorField, this.scalars.String); + fields.addField(discriminatorField, this.scalars.String.output); this._addAdditionalFields(fields, additionalFields); return new DeclarationBlock(this._declarationBlockConfig) diff --git a/packages/plugins/typescript/mongodb/tests/typescript-mongo.spec.ts b/packages/plugins/typescript/mongodb/tests/typescript-mongo.spec.ts index efc5b2f650..8af6f76d85 100644 --- a/packages/plugins/typescript/mongodb/tests/typescript-mongo.spec.ts +++ b/packages/plugins/typescript/mongodb/tests/typescript-mongo.spec.ts @@ -2,7 +2,7 @@ import { buildSchema, GraphQLSchema, print } from 'graphql'; import { mergeOutputs, Types } from '@graphql-codegen/plugin-helpers'; import { validateTs } from '@graphql-codegen/testing'; import { plugin as tsPlugin } from '@graphql-codegen/typescript'; -import { addToSchema, plugin } from './../src/index.js'; +import { addToSchema, plugin } from '../src/index.js'; describe('TypeScript Mongo', () => { const validate = async (content: Types.PluginOutput, schema: GraphQLSchema, config: any) => { diff --git a/packages/plugins/typescript/mongodb/vitest.config.ts b/packages/plugins/typescript/mongodb/vitest.config.ts new file mode 100644 index 0000000000..09052a5c30 --- /dev/null +++ b/packages/plugins/typescript/mongodb/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-mongodb', + include: ['**/*.spec.ts'], + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/mongodb/vitest.setup.ts b/packages/plugins/typescript/mongodb/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/mongodb/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/plugins/typescript/msw/jest.config.js b/packages/plugins/typescript/msw/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/msw/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/msw/package.json b/packages/plugins/typescript/msw/package.json index b89ee11500..95da20efd0 100644 --- a/packages/plugins/typescript/msw/package.json +++ b/packages/plugins/typescript/msw/package.json @@ -33,16 +33,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "msw": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" diff --git a/packages/plugins/typescript/msw/tests/__snapshots__/msw.spec.ts.snap b/packages/plugins/typescript/msw/tests/__snapshots__/msw.spec.ts.snap index a00cbb3c1a..87b1d7853e 100644 --- a/packages/plugins/typescript/msw/tests/__snapshots__/msw.spec.ts.snap +++ b/packages/plugins/typescript/msw/tests/__snapshots__/msw.spec.ts.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`msw Should generate JSDoc documentation with variables and selection from the operations themselves: content with variables and selection JSDoc documentation 1`] = ` +exports[`msw > Should generate JSDoc documentation with variables and selection from the operations themselves > content with variables and selection JSDoc documentation 1`] = ` " /** * @param resolver A function that accepts [resolver arguments](https://mswjs.io/docs/api/graphql#resolver-argument) and must always return the instruction on what to do with the intercepted request. ([see more](https://mswjs.io/docs/concepts/response-resolver#resolver-instructions)) @@ -48,7 +48,7 @@ export const mockUpdateUserMutation = (resolver: GraphQLResponseResolver Should generate a link with an endpoint when passed a link variable > content with a link/endpoint 1`] = ` "const api = graphql.link('http://localhost:3000/graphql') /** @@ -95,7 +95,7 @@ export const mockUpdateUserMutationApi = (resolver: GraphQLResponseResolver Should generate handlerNames without suffix when withSuffix is false > content without link name suffix 1`] = ` "const api = graphql.link('http://localhost:3000/graphql') /** @@ -142,7 +142,7 @@ export const mockUpdateUserMutation = (resolver: GraphQLResponseResolver Should generate mocks based on queries and mutations > content 1`] = ` " /** * @param resolver A function that accepts [resolver arguments](https://mswjs.io/docs/api/graphql#resolver-argument) and must always return the instruction on what to do with the intercepted request. ([see more](https://mswjs.io/docs/concepts/response-resolver#resolver-instructions)) @@ -188,13 +188,13 @@ export const mockUpdateUserMutation = (resolver: GraphQLResponseResolver Should generate mocks based on queries and mutations > imports 1`] = ` [ "import { graphql, type GraphQLResponseResolver, type RequestHandlerOptions } from 'msw'", ] `; -exports[`msw Should use the "importOperationTypesFrom" setting: content with types configured via importOperationTypesFrom 1`] = ` +exports[`msw > Should use the "importOperationTypesFrom" setting > content with types configured via importOperationTypesFrom 1`] = ` " /** * @param resolver A function that accepts [resolver arguments](https://mswjs.io/docs/api/graphql#resolver-argument) and must always return the instruction on what to do with the intercepted request. ([see more](https://mswjs.io/docs/concepts/response-resolver#resolver-instructions)) diff --git a/packages/plugins/typescript/msw/vitest.config.ts b/packages/plugins/typescript/msw/vitest.config.ts new file mode 100644 index 0000000000..1140e57079 --- /dev/null +++ b/packages/plugins/typescript/msw/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-msw', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/named-operations-object/jest.config.js b/packages/plugins/typescript/named-operations-object/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/named-operations-object/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/named-operations-object/package.json b/packages/plugins/typescript/named-operations-object/package.json index b84c68cc02..868ef522b7 100644 --- a/packages/plugins/typescript/named-operations-object/package.json +++ b/packages/plugins/typescript/named-operations-object/package.json @@ -33,20 +33,19 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", + "@graphql-codegen/plugin-helpers": "^6.1.1", "change-case-all": "1.0.15", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/typescript/named-operations-object/vitest.config.ts b/packages/plugins/typescript/named-operations-object/vitest.config.ts new file mode 100644 index 0000000000..803f83c727 --- /dev/null +++ b/packages/plugins/typescript/named-operations-object/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-named-operations-object', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/nest/jest.config.js b/packages/plugins/typescript/nest/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/nest/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/nest/package.json b/packages/plugins/typescript/nest/package.json index 82288b1ddf..f64a0055e1 100644 --- a/packages/plugins/typescript/nest/package.json +++ b/packages/plugins/typescript/nest/package.json @@ -33,8 +33,7 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" @@ -47,7 +46,7 @@ "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/typescript/nest/vitest.config.ts b/packages/plugins/typescript/nest/vitest.config.ts new file mode 100644 index 0000000000..28a1c2170f --- /dev/null +++ b/packages/plugins/typescript/nest/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-nest', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/nhost/jest.config.js b/packages/plugins/typescript/nhost/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/nhost/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/nhost/package.json b/packages/plugins/typescript/nhost/package.json index f89adb3ba1..507908dd10 100644 --- a/packages/plugins/typescript/nhost/package.json +++ b/packages/plugins/typescript/nhost/package.json @@ -33,16 +33,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^4.0.0", - "@graphql-codegen/typescript": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "3.1.1", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/typescript": "^5.0.9", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "@urql/introspection": "^1.0.0", "tslib": "^2.8.1" }, diff --git a/packages/plugins/typescript/nhost/tests/__snapshots__/nhost.spec.ts.snap b/packages/plugins/typescript/nhost/tests/__snapshots__/nhost.spec.ts.snap deleted file mode 100644 index ec256844cd..0000000000 --- a/packages/plugins/typescript/nhost/tests/__snapshots__/nhost.spec.ts.snap +++ /dev/null @@ -1,733 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`TypeScript Nhost Plugin should generate the nhost-compatible schema 1`] = ` -{ - "content": "/** All built-in and custom scalars, mapped to their actual values */ -export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - DateTime: any; -}; - -export type InputType = { - t?: InputMaybe; -}; - -export type User = { - __typename?: 'User'; - id: Scalars['ID']; - username: Scalars['String']; - email: Scalars['String']; - profile?: Maybe; - role?: Maybe; -}; - -export type Profile = { - __typename?: 'Profile'; - age?: Maybe; - firstName: Scalars['String']; -}; - -export type Mutation = { - __typename?: 'Mutation'; - test?: Maybe; - login?: Maybe; -}; - - -export type Mutation_LoginArgs = { - username: Scalars['String']; - password: Scalars['String']; -}; - -export type Subscription = { - __typename?: 'Subscription'; - userCreated?: Maybe; -}; - -export type Notifiction = { - id: Scalars['ID']; - createdAt: Scalars['String']; -}; - -export type TextNotification = Notifiction & { - __typename?: 'TextNotification'; - id: Scalars['ID']; - text: Scalars['String']; - createdAt: Scalars['String']; -}; - -export type ImageNotification = Notifiction & { - __typename?: 'ImageNotification'; - id: Scalars['ID']; - imageUrl: Scalars['String']; - metadata: ImageMetadata; - createdAt: Scalars['String']; -}; - -export type ImageMetadata = { - __typename?: 'ImageMetadata'; - createdBy: Scalars['String']; -}; - -export type Role = - | 'USER' - | 'ADMIN'; - -export type MyUnion = User | Profile; - -export type AnyNotification = TextNotification | ImageNotification; - -export type SearchResult = TextNotification | ImageNotification | User; - -export type Query = { - __typename?: 'Query'; - me?: Maybe; - unionTest?: Maybe; - notifications: Array; - mixedNotifications: Array; - search: Array; - dummy?: Maybe; - dummyNonNull: Scalars['String']; - dummyArray?: Maybe>>; - dummyNonNullArray: Array>; - dummyNonNullArrayWithValues: Array; - dummyWithType?: Maybe; -}; - - -export type Query_SearchArgs = { - term: Scalars['String']; -}; - - -export default { - introspection: { - "__schema": { - "queryType": { - "name": "Query", - "kind": "OBJECT" - }, - "mutationType": { - "name": "Mutation", - "kind": "OBJECT" - }, - "subscriptionType": { - "name": "Subscription", - "kind": "OBJECT" - }, - "types": [ - { - "kind": "SCALAR", - "name": "DateTime" - }, - { - "kind": "INPUT_OBJECT", - "name": "InputType", - "inputFields": [ - { - "name": "t", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - ] - }, - { - "kind": "SCALAR", - "name": "String" - }, - { - "kind": "OBJECT", - "name": "User", - "fields": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "args": [] - }, - { - "name": "username", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - }, - { - "name": "email", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - }, - { - "name": "profile", - "type": { - "kind": "OBJECT", - "name": "Profile", - "ofType": null - }, - "args": [] - }, - { - "name": "role", - "type": { - "kind": "ENUM", - "name": "Role", - "ofType": null - }, - "args": [] - } - ], - "interfaces": [] - }, - { - "kind": "SCALAR", - "name": "ID" - }, - { - "kind": "OBJECT", - "name": "Profile", - "fields": [ - { - "name": "age", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "args": [] - }, - { - "name": "firstName", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - } - ], - "interfaces": [] - }, - { - "kind": "SCALAR", - "name": "Int" - }, - { - "kind": "OBJECT", - "name": "Mutation", - "fields": [ - { - "name": "test", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "args": [] - }, - { - "name": "login", - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "args": [ - { - "name": "username", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - { - "name": "password", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ] - } - ], - "interfaces": [] - }, - { - "kind": "OBJECT", - "name": "Subscription", - "fields": [ - { - "name": "userCreated", - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "args": [] - } - ], - "interfaces": [] - }, - { - "kind": "INTERFACE", - "name": "Notifiction", - "fields": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "args": [] - }, - { - "name": "createdAt", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - } - ], - "interfaces": [], - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "TextNotification" - }, - { - "kind": "OBJECT", - "name": "ImageNotification" - } - ] - }, - { - "kind": "OBJECT", - "name": "TextNotification", - "fields": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "args": [] - }, - { - "name": "text", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - }, - { - "name": "createdAt", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - } - ], - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Notifiction" - } - ] - }, - { - "kind": "OBJECT", - "name": "ImageNotification", - "fields": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "args": [] - }, - { - "name": "imageUrl", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - }, - { - "name": "metadata", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "ImageMetadata", - "ofType": null - } - }, - "args": [] - }, - { - "name": "createdAt", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - } - ], - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Notifiction" - } - ] - }, - { - "kind": "OBJECT", - "name": "ImageMetadata", - "fields": [ - { - "name": "createdBy", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - } - ], - "interfaces": [] - }, - { - "kind": "ENUM", - "name": "Role", - "enumValues": [ - { - "name": "USER" - }, - { - "name": "ADMIN" - } - ] - }, - { - "kind": "UNION", - "name": "MyUnion", - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "User" - }, - { - "kind": "OBJECT", - "name": "Profile" - } - ] - }, - { - "kind": "UNION", - "name": "AnyNotification", - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "TextNotification" - }, - { - "kind": "OBJECT", - "name": "ImageNotification" - } - ] - }, - { - "kind": "UNION", - "name": "SearchResult", - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "TextNotification" - }, - { - "kind": "OBJECT", - "name": "ImageNotification" - }, - { - "kind": "OBJECT", - "name": "User" - } - ] - }, - { - "kind": "OBJECT", - "name": "Query", - "fields": [ - { - "name": "me", - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "args": [] - }, - { - "name": "unionTest", - "type": { - "kind": "UNION", - "name": "MyUnion", - "ofType": null - }, - "args": [] - }, - { - "name": "notifications", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "INTERFACE", - "name": "Notifiction", - "ofType": null - } - } - } - }, - "args": [] - }, - { - "name": "mixedNotifications", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "UNION", - "name": "AnyNotification", - "ofType": null - } - } - } - }, - "args": [] - }, - { - "name": "search", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "UNION", - "name": "SearchResult", - "ofType": null - } - } - } - }, - "args": [ - { - "name": "term", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - ] - }, - { - "name": "dummy", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "args": [] - }, - { - "name": "dummyNonNull", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - }, - { - "name": "dummyArray", - "type": { - "kind": "LIST", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "args": [] - }, - { - "name": "dummyNonNullArray", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "args": [] - }, - { - "name": "dummyNonNullArrayWithValues", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "args": [] - }, - { - "name": "dummyWithType", - "type": { - "kind": "OBJECT", - "name": "Profile", - "ofType": null - }, - "args": [] - } - ], - "interfaces": [] - }, - { - "kind": "SCALAR", - "name": "Boolean" - } - ], - "directives": [] - } - } as const, - types: {} as { - Scalars: Scalars, - InputType: InputType, - User: User, - Profile: Profile, - Mutation: Mutation, - Mutation_LoginArgs: Mutation_LoginArgs, - Subscription: Subscription, - Notifiction: Notifiction, - TextNotification: TextNotification, - ImageNotification: ImageNotification, - ImageMetadata: ImageMetadata, - MyUnion: MyUnion, - AnyNotification: AnyNotification, - SearchResult: SearchResult, - Query: Query, - Query_SearchArgs: Query_SearchArgs - } -}", - "prepend": [ - "export type Maybe = T | null;", - "export type InputMaybe = Maybe;", - "export type Exact = { [K in keyof T]: T[K] };", - "export type MakeOptional = Omit & { [SubKey in K]?: Maybe };", - "export type MakeMaybe = Omit & { [SubKey in K]: Maybe };", - ], -} -`; diff --git a/packages/plugins/typescript/nhost/tests/nhost.spec.ts b/packages/plugins/typescript/nhost/tests/nhost.spec.ts deleted file mode 100644 index 7a95efe475..0000000000 --- a/packages/plugins/typescript/nhost/tests/nhost.spec.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { buildSchema } from 'graphql'; -import { plugin } from '../src/index.js'; - -describe('TypeScript Nhost Plugin', () => { - const schema = buildSchema(/* GraphQL */ ` - scalar DateTime - - input InputType { - t: String - } - - type User { - id: ID! - username: String! - email: String! - profile: Profile - role: Role - } - - type Profile { - age: Int - firstName: String! - } - - type Mutation { - test: String - login(username: String!, password: String!): User - } - - type Subscription { - userCreated: User - } - - interface Notifiction { - id: ID! - createdAt: String! - } - - type TextNotification implements Notifiction { - id: ID! - text: String! - createdAt: String! - } - - type ImageNotification implements Notifiction { - id: ID! - imageUrl: String! - metadata: ImageMetadata! - createdAt: String! - } - - type ImageMetadata { - createdBy: String! - } - - enum Role { - USER - ADMIN - } - - union MyUnion = User | Profile - - union AnyNotification = TextNotification | ImageNotification - union SearchResult = TextNotification | ImageNotification | User - - type Query { - me: User - unionTest: MyUnion - notifications: [Notifiction!]! - mixedNotifications: [AnyNotification!]! - search(term: String!): [SearchResult!]! - dummy: String - dummyNonNull: String! - dummyArray: [String] - dummyNonNullArray: [String]! - dummyNonNullArrayWithValues: [String!]! - dummyWithType: Profile - } - - schema { - query: Query - mutation: Mutation - subscription: Subscription - } - `); - - it('should generate the nhost-compatible schema', async () => { - const result = await plugin(schema, [], {}, { outputFile: '' }); - expect(result).toMatchSnapshot(); - }); -}); diff --git a/packages/plugins/typescript/nhost/tests/nhost.v15.spec.ts b/packages/plugins/typescript/nhost/tests/nhost.v15.spec.ts new file mode 100644 index 0000000000..5596f430d0 --- /dev/null +++ b/packages/plugins/typescript/nhost/tests/nhost.v15.spec.ts @@ -0,0 +1,820 @@ +import { buildSchema } from 'graphql'; +import { plugin } from '../src/index.js'; + +describe('TypeScript Nhost Plugin', () => { + const schema = buildSchema(/* GraphQL */ ` + scalar DateTime + + input InputType { + t: String + } + + type User { + id: ID! + username: String! + email: String! + profile: Profile + role: Role + } + + type Profile { + age: Int + firstName: String! + } + + type Mutation { + test: String + login(username: String!, password: String!): User + } + + type Subscription { + userCreated: User + } + + interface Notifiction { + id: ID! + createdAt: String! + } + + type TextNotification implements Notifiction { + id: ID! + text: String! + createdAt: String! + } + + type ImageNotification implements Notifiction { + id: ID! + imageUrl: String! + metadata: ImageMetadata! + createdAt: String! + } + + type ImageMetadata { + createdBy: String! + } + + enum Role { + USER + ADMIN + } + + union MyUnion = User | Profile + + union AnyNotification = TextNotification | ImageNotification + union SearchResult = TextNotification | ImageNotification | User + + type Query { + me: User + unionTest: MyUnion + notifications: [Notifiction!]! + mixedNotifications: [AnyNotification!]! + search(term: String!): [SearchResult!]! + dummy: String + dummyNonNull: String! + dummyArray: [String] + dummyNonNullArray: [String]! + dummyNonNullArrayWithValues: [String!]! + dummyWithType: Profile + } + + schema { + query: Query + mutation: Mutation + subscription: Subscription + } + `); + + it('should generate the nhost-compatible schema', async () => { + const result = await plugin(schema, [], {}, { outputFile: '' }); + expect(result).toMatchInlineSnapshot(` + { + "content": "/** All built-in and custom scalars, mapped to their actual values */ + export type Scalars = { + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } + DateTime: { input: any; output: any; } + }; + + export type InputType = { + t?: InputMaybe; + }; + + export type User = { + __typename?: 'User'; + id: Scalars['ID']['output']; + username: Scalars['String']['output']; + email: Scalars['String']['output']; + profile?: Maybe; + role?: Maybe; + }; + + export type Profile = { + __typename?: 'Profile'; + age?: Maybe; + firstName: Scalars['String']['output']; + }; + + export type Mutation = { + __typename?: 'Mutation'; + test?: Maybe; + login?: Maybe; + }; + + + export type Mutation_LoginArgs = { + username: Scalars['String']['input']; + password: Scalars['String']['input']; + }; + + export type Subscription = { + __typename?: 'Subscription'; + userCreated?: Maybe; + }; + + export type Notifiction = { + id: Scalars['ID']['output']; + createdAt: Scalars['String']['output']; + }; + + export type TextNotification = Notifiction & { + __typename?: 'TextNotification'; + id: Scalars['ID']['output']; + text: Scalars['String']['output']; + createdAt: Scalars['String']['output']; + }; + + export type ImageNotification = Notifiction & { + __typename?: 'ImageNotification'; + id: Scalars['ID']['output']; + imageUrl: Scalars['String']['output']; + metadata: ImageMetadata; + createdAt: Scalars['String']['output']; + }; + + export type ImageMetadata = { + __typename?: 'ImageMetadata'; + createdBy: Scalars['String']['output']; + }; + + export type Role = + | 'USER' + | 'ADMIN'; + + export type MyUnion = User | Profile; + + export type AnyNotification = TextNotification | ImageNotification; + + export type SearchResult = TextNotification | ImageNotification | User; + + export type Query = { + __typename?: 'Query'; + me?: Maybe; + unionTest?: Maybe; + notifications: Array; + mixedNotifications: Array; + search: Array; + dummy?: Maybe; + dummyNonNull: Scalars['String']['output']; + dummyArray?: Maybe>>; + dummyNonNullArray: Array>; + dummyNonNullArrayWithValues: Array; + dummyWithType?: Maybe; + }; + + + export type Query_SearchArgs = { + term: Scalars['String']['input']; + }; + + + export default { + introspection: { + "__schema": { + "queryType": { + "name": "Query" + }, + "mutationType": { + "name": "Mutation" + }, + "subscriptionType": { + "name": "Subscription" + }, + "types": [ + { + "kind": "SCALAR", + "name": "DateTime" + }, + { + "kind": "INPUT_OBJECT", + "name": "InputType", + "inputFields": [ + { + "name": "t", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ] + }, + { + "kind": "SCALAR", + "name": "String" + }, + { + "kind": "OBJECT", + "name": "User", + "fields": [ + { + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "args": [] + }, + { + "name": "username", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "email", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "profile", + "type": { + "kind": "OBJECT", + "name": "Profile", + "ofType": null + }, + "args": [] + }, + { + "name": "role", + "type": { + "kind": "ENUM", + "name": "Role", + "ofType": null + }, + "args": [] + } + ], + "interfaces": [] + }, + { + "kind": "SCALAR", + "name": "ID" + }, + { + "kind": "OBJECT", + "name": "Profile", + "fields": [ + { + "name": "age", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "args": [] + }, + { + "name": "firstName", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + } + ], + "interfaces": [] + }, + { + "kind": "SCALAR", + "name": "Int" + }, + { + "kind": "OBJECT", + "name": "Mutation", + "fields": [ + { + "name": "test", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "args": [] + }, + { + "name": "login", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "args": [ + { + "name": "username", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "name": "password", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ] + } + ], + "interfaces": [] + }, + { + "kind": "OBJECT", + "name": "Subscription", + "fields": [ + { + "name": "userCreated", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "args": [] + } + ], + "interfaces": [] + }, + { + "kind": "INTERFACE", + "name": "Notifiction", + "fields": [ + { + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "args": [] + }, + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + } + ], + "interfaces": [], + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "TextNotification" + }, + { + "kind": "OBJECT", + "name": "ImageNotification" + } + ] + }, + { + "kind": "OBJECT", + "name": "TextNotification", + "fields": [ + { + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "args": [] + }, + { + "name": "text", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + } + ], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Notifiction" + } + ] + }, + { + "kind": "OBJECT", + "name": "ImageNotification", + "fields": [ + { + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "args": [] + }, + { + "name": "imageUrl", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "metadata", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "ImageMetadata", + "ofType": null + } + }, + "args": [] + }, + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + } + ], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Notifiction" + } + ] + }, + { + "kind": "OBJECT", + "name": "ImageMetadata", + "fields": [ + { + "name": "createdBy", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + } + ], + "interfaces": [] + }, + { + "kind": "ENUM", + "name": "Role", + "enumValues": [ + { + "name": "USER" + }, + { + "name": "ADMIN" + } + ] + }, + { + "kind": "UNION", + "name": "MyUnion", + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "User" + }, + { + "kind": "OBJECT", + "name": "Profile" + } + ] + }, + { + "kind": "UNION", + "name": "AnyNotification", + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "TextNotification" + }, + { + "kind": "OBJECT", + "name": "ImageNotification" + } + ] + }, + { + "kind": "UNION", + "name": "SearchResult", + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "TextNotification" + }, + { + "kind": "OBJECT", + "name": "ImageNotification" + }, + { + "kind": "OBJECT", + "name": "User" + } + ] + }, + { + "kind": "OBJECT", + "name": "Query", + "fields": [ + { + "name": "me", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "args": [] + }, + { + "name": "unionTest", + "type": { + "kind": "UNION", + "name": "MyUnion", + "ofType": null + }, + "args": [] + }, + { + "name": "notifications", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "INTERFACE", + "name": "Notifiction", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "mixedNotifications", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "UNION", + "name": "AnyNotification", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "search", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "UNION", + "name": "SearchResult", + "ofType": null + } + } + } + }, + "args": [ + { + "name": "term", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ] + }, + { + "name": "dummy", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "args": [] + }, + { + "name": "dummyNonNull", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "dummyArray", + "type": { + "kind": "LIST", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "dummyNonNullArray", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "args": [] + }, + { + "name": "dummyNonNullArrayWithValues", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "dummyWithType", + "type": { + "kind": "OBJECT", + "name": "Profile", + "ofType": null + }, + "args": [] + } + ], + "interfaces": [] + }, + { + "kind": "SCALAR", + "name": "Boolean" + } + ], + "directives": [] + } + } as const, + types: {} as { + Scalars: Scalars, + InputType: InputType, + User: User, + Profile: Profile, + Mutation: Mutation, + Mutation_LoginArgs: Mutation_LoginArgs, + Subscription: Subscription, + Notifiction: Notifiction, + TextNotification: TextNotification, + ImageNotification: ImageNotification, + ImageMetadata: ImageMetadata, + MyUnion: MyUnion, + AnyNotification: AnyNotification, + SearchResult: SearchResult, + Query: Query, + Query_SearchArgs: Query_SearchArgs + } + }", + "prepend": [ + "export type Maybe = T | null;", + "export type InputMaybe = Maybe;", + "export type Exact = { [K in keyof T]: T[K] };", + "export type MakeOptional = Omit & { [SubKey in K]?: Maybe };", + "export type MakeMaybe = Omit & { [SubKey in K]: Maybe };", + "export type MakeEmpty = { [_ in K]?: never };", + "export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };", + ], + } + `); + }); +}); diff --git a/packages/plugins/typescript/nhost/tests/nhost.v16+.spec.ts b/packages/plugins/typescript/nhost/tests/nhost.v16+.spec.ts new file mode 100644 index 0000000000..8fb96f6877 --- /dev/null +++ b/packages/plugins/typescript/nhost/tests/nhost.v16+.spec.ts @@ -0,0 +1,823 @@ +import { buildSchema } from 'graphql'; +import { plugin } from '../src/index.js'; + +describe('TypeScript Nhost Plugin', () => { + const schema = buildSchema(/* GraphQL */ ` + scalar DateTime + + input InputType { + t: String + } + + type User { + id: ID! + username: String! + email: String! + profile: Profile + role: Role + } + + type Profile { + age: Int + firstName: String! + } + + type Mutation { + test: String + login(username: String!, password: String!): User + } + + type Subscription { + userCreated: User + } + + interface Notifiction { + id: ID! + createdAt: String! + } + + type TextNotification implements Notifiction { + id: ID! + text: String! + createdAt: String! + } + + type ImageNotification implements Notifiction { + id: ID! + imageUrl: String! + metadata: ImageMetadata! + createdAt: String! + } + + type ImageMetadata { + createdBy: String! + } + + enum Role { + USER + ADMIN + } + + union MyUnion = User | Profile + + union AnyNotification = TextNotification | ImageNotification + union SearchResult = TextNotification | ImageNotification | User + + type Query { + me: User + unionTest: MyUnion + notifications: [Notifiction!]! + mixedNotifications: [AnyNotification!]! + search(term: String!): [SearchResult!]! + dummy: String + dummyNonNull: String! + dummyArray: [String] + dummyNonNullArray: [String]! + dummyNonNullArrayWithValues: [String!]! + dummyWithType: Profile + } + + schema { + query: Query + mutation: Mutation + subscription: Subscription + } + `); + + it('should generate the nhost-compatible schema', async () => { + const result = await plugin(schema, [], {}, { outputFile: '' }); + expect(result).toMatchInlineSnapshot(` + { + "content": "/** All built-in and custom scalars, mapped to their actual values */ + export type Scalars = { + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } + DateTime: { input: any; output: any; } + }; + + export type InputType = { + t?: InputMaybe; + }; + + export type User = { + __typename?: 'User'; + id: Scalars['ID']['output']; + username: Scalars['String']['output']; + email: Scalars['String']['output']; + profile?: Maybe; + role?: Maybe; + }; + + export type Profile = { + __typename?: 'Profile'; + age?: Maybe; + firstName: Scalars['String']['output']; + }; + + export type Mutation = { + __typename?: 'Mutation'; + test?: Maybe; + login?: Maybe; + }; + + + export type Mutation_LoginArgs = { + username: Scalars['String']['input']; + password: Scalars['String']['input']; + }; + + export type Subscription = { + __typename?: 'Subscription'; + userCreated?: Maybe; + }; + + export type Notifiction = { + id: Scalars['ID']['output']; + createdAt: Scalars['String']['output']; + }; + + export type TextNotification = Notifiction & { + __typename?: 'TextNotification'; + id: Scalars['ID']['output']; + text: Scalars['String']['output']; + createdAt: Scalars['String']['output']; + }; + + export type ImageNotification = Notifiction & { + __typename?: 'ImageNotification'; + id: Scalars['ID']['output']; + imageUrl: Scalars['String']['output']; + metadata: ImageMetadata; + createdAt: Scalars['String']['output']; + }; + + export type ImageMetadata = { + __typename?: 'ImageMetadata'; + createdBy: Scalars['String']['output']; + }; + + export type Role = + | 'USER' + | 'ADMIN'; + + export type MyUnion = User | Profile; + + export type AnyNotification = TextNotification | ImageNotification; + + export type SearchResult = TextNotification | ImageNotification | User; + + export type Query = { + __typename?: 'Query'; + me?: Maybe; + unionTest?: Maybe; + notifications: Array; + mixedNotifications: Array; + search: Array; + dummy?: Maybe; + dummyNonNull: Scalars['String']['output']; + dummyArray?: Maybe>>; + dummyNonNullArray: Array>; + dummyNonNullArrayWithValues: Array; + dummyWithType?: Maybe; + }; + + + export type Query_SearchArgs = { + term: Scalars['String']['input']; + }; + + + export default { + introspection: { + "__schema": { + "queryType": { + "name": "Query", + "kind": "OBJECT" + }, + "mutationType": { + "name": "Mutation", + "kind": "OBJECT" + }, + "subscriptionType": { + "name": "Subscription", + "kind": "OBJECT" + }, + "types": [ + { + "kind": "SCALAR", + "name": "DateTime" + }, + { + "kind": "INPUT_OBJECT", + "name": "InputType", + "inputFields": [ + { + "name": "t", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ] + }, + { + "kind": "SCALAR", + "name": "String" + }, + { + "kind": "OBJECT", + "name": "User", + "fields": [ + { + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "args": [] + }, + { + "name": "username", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "email", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "profile", + "type": { + "kind": "OBJECT", + "name": "Profile", + "ofType": null + }, + "args": [] + }, + { + "name": "role", + "type": { + "kind": "ENUM", + "name": "Role", + "ofType": null + }, + "args": [] + } + ], + "interfaces": [] + }, + { + "kind": "SCALAR", + "name": "ID" + }, + { + "kind": "OBJECT", + "name": "Profile", + "fields": [ + { + "name": "age", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "args": [] + }, + { + "name": "firstName", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + } + ], + "interfaces": [] + }, + { + "kind": "SCALAR", + "name": "Int" + }, + { + "kind": "OBJECT", + "name": "Mutation", + "fields": [ + { + "name": "test", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "args": [] + }, + { + "name": "login", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "args": [ + { + "name": "username", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "name": "password", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ] + } + ], + "interfaces": [] + }, + { + "kind": "OBJECT", + "name": "Subscription", + "fields": [ + { + "name": "userCreated", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "args": [] + } + ], + "interfaces": [] + }, + { + "kind": "INTERFACE", + "name": "Notifiction", + "fields": [ + { + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "args": [] + }, + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + } + ], + "interfaces": [], + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "TextNotification" + }, + { + "kind": "OBJECT", + "name": "ImageNotification" + } + ] + }, + { + "kind": "OBJECT", + "name": "TextNotification", + "fields": [ + { + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "args": [] + }, + { + "name": "text", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + } + ], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Notifiction" + } + ] + }, + { + "kind": "OBJECT", + "name": "ImageNotification", + "fields": [ + { + "name": "id", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "args": [] + }, + { + "name": "imageUrl", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "metadata", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "ImageMetadata", + "ofType": null + } + }, + "args": [] + }, + { + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + } + ], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Notifiction" + } + ] + }, + { + "kind": "OBJECT", + "name": "ImageMetadata", + "fields": [ + { + "name": "createdBy", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + } + ], + "interfaces": [] + }, + { + "kind": "ENUM", + "name": "Role", + "enumValues": [ + { + "name": "USER" + }, + { + "name": "ADMIN" + } + ] + }, + { + "kind": "UNION", + "name": "MyUnion", + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "User" + }, + { + "kind": "OBJECT", + "name": "Profile" + } + ] + }, + { + "kind": "UNION", + "name": "AnyNotification", + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "TextNotification" + }, + { + "kind": "OBJECT", + "name": "ImageNotification" + } + ] + }, + { + "kind": "UNION", + "name": "SearchResult", + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "TextNotification" + }, + { + "kind": "OBJECT", + "name": "ImageNotification" + }, + { + "kind": "OBJECT", + "name": "User" + } + ] + }, + { + "kind": "OBJECT", + "name": "Query", + "fields": [ + { + "name": "me", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "args": [] + }, + { + "name": "unionTest", + "type": { + "kind": "UNION", + "name": "MyUnion", + "ofType": null + }, + "args": [] + }, + { + "name": "notifications", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "INTERFACE", + "name": "Notifiction", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "mixedNotifications", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "UNION", + "name": "AnyNotification", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "search", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "UNION", + "name": "SearchResult", + "ofType": null + } + } + } + }, + "args": [ + { + "name": "term", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ] + }, + { + "name": "dummy", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "args": [] + }, + { + "name": "dummyNonNull", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "dummyArray", + "type": { + "kind": "LIST", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "args": [] + }, + { + "name": "dummyNonNullArray", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "args": [] + }, + { + "name": "dummyNonNullArrayWithValues", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "args": [] + }, + { + "name": "dummyWithType", + "type": { + "kind": "OBJECT", + "name": "Profile", + "ofType": null + }, + "args": [] + } + ], + "interfaces": [] + }, + { + "kind": "SCALAR", + "name": "Boolean" + } + ], + "directives": [] + } + } as const, + types: {} as { + Scalars: Scalars, + InputType: InputType, + User: User, + Profile: Profile, + Mutation: Mutation, + Mutation_LoginArgs: Mutation_LoginArgs, + Subscription: Subscription, + Notifiction: Notifiction, + TextNotification: TextNotification, + ImageNotification: ImageNotification, + ImageMetadata: ImageMetadata, + MyUnion: MyUnion, + AnyNotification: AnyNotification, + SearchResult: SearchResult, + Query: Query, + Query_SearchArgs: Query_SearchArgs + } + }", + "prepend": [ + "export type Maybe = T | null;", + "export type InputMaybe = Maybe;", + "export type Exact = { [K in keyof T]: T[K] };", + "export type MakeOptional = Omit & { [SubKey in K]?: Maybe };", + "export type MakeMaybe = Omit & { [SubKey in K]: Maybe };", + "export type MakeEmpty = { [_ in K]?: never };", + "export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };", + ], + } + `); + }); +}); diff --git a/packages/plugins/typescript/nhost/vitest.config.ts b/packages/plugins/typescript/nhost/vitest.config.ts new file mode 100644 index 0000000000..565438949c --- /dev/null +++ b/packages/plugins/typescript/nhost/vitest.config.ts @@ -0,0 +1,17 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +let include = ['**/*.v16+.spec.ts']; +if (process.env.GRAPHQL_VERSION === '15') { + include = ['**/*.v15.spec.ts']; +} + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-nhost', + include, + }, + }), +); diff --git a/packages/plugins/typescript/oclif/jest.config.js b/packages/plugins/typescript/oclif/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/oclif/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/oclif/package.json b/packages/plugins/typescript/oclif/package.json index 3e0d89d5bc..f16a6407b6 100644 --- a/packages/plugins/typescript/oclif/package.json +++ b/packages/plugins/typescript/oclif/package.json @@ -34,16 +34,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "tslib": "^2.8.1" }, diff --git a/packages/plugins/typescript/oclif/tests/__snapshots__/oclif.spec.ts.snap b/packages/plugins/typescript/oclif/tests/__snapshots__/oclif.spec.ts.snap index f5915e4aa6..8f68e746e0 100644 --- a/packages/plugins/typescript/oclif/tests/__snapshots__/oclif.spec.ts.snap +++ b/packages/plugins/typescript/oclif/tests/__snapshots__/oclif.spec.ts.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`oclif cli builds from a mutation with string and enum type 1`] = ` +exports[`oclif > cli > builds from a mutation with string and enum type 1`] = ` " const VoteDocument = \` mutation Vote($name: String!, $type: VoteType!) { @@ -32,7 +32,7 @@ export default class Vote extends Command { " `; -exports[`oclif cli builds from a read query with integer parameters 1`] = ` +exports[`oclif > cli > builds from a read query with integer parameters 1`] = ` " const GetFeedDocument = \` query GetFeed($type: FeedType!, $offset: Int!, $limit: Int!) { @@ -69,7 +69,7 @@ export default class GetFeed extends Command { " `; -exports[`oclif cli builds from a read query with single enum parameter 1`] = ` +exports[`oclif > cli > builds from a read query with single enum parameter 1`] = ` " const GetFeedDocument = \` query GetFeed($type: FeedType!) { @@ -98,7 +98,7 @@ export default class GetFeed extends Command { " `; -exports[`oclif cli builds from a read query with single string parameter 1`] = ` +exports[`oclif > cli > builds from a read query with single string parameter 1`] = ` " const GetEntryDocument = \` query GetEntry($name: String!) { @@ -128,7 +128,7 @@ export default class GetEntry extends Command { " `; -exports[`oclif cli reads metadata from the @oclif directive 1`] = ` +exports[`oclif > cli > reads metadata from the @oclif directive 1`] = ` " const GetCurrentUserDocument = \` query GetCurrentUser { diff --git a/packages/plugins/typescript/oclif/vitest.config.ts b/packages/plugins/typescript/oclif/vitest.config.ts new file mode 100644 index 0000000000..8bf45e432b --- /dev/null +++ b/packages/plugins/typescript/oclif/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-oclif', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/react-apollo-offix/jest.config.js b/packages/plugins/typescript/react-apollo-offix/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/react-apollo-offix/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/react-apollo-offix/package.json b/packages/plugins/typescript/react-apollo-offix/package.json index e28a091e08..41fbf7cfd5 100644 --- a/packages/plugins/typescript/react-apollo-offix/package.json +++ b/packages/plugins/typescript/react-apollo-offix/package.json @@ -40,8 +40,8 @@ "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15" }, diff --git a/packages/plugins/typescript/react-apollo/jest.config.js b/packages/plugins/typescript/react-apollo/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/react-apollo/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/react-apollo/package.json b/packages/plugins/typescript/react-apollo/package.json index 55b679a122..767e88c845 100644 --- a/packages/plugins/typescript/react-apollo/package.json +++ b/packages/plugins/typescript/react-apollo/package.json @@ -33,21 +33,20 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js --forceExit" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3", + "@graphql-codegen/testing": "4.0.2", "graphql-tag": "^2.12.6" }, "publishConfig": { diff --git a/packages/plugins/typescript/react-apollo/src/visitor.ts b/packages/plugins/typescript/react-apollo/src/visitor.ts index 38b5359dc8..a47fc4a228 100644 --- a/packages/plugins/typescript/react-apollo/src/visitor.ts +++ b/packages/plugins/typescript/react-apollo/src/visitor.ts @@ -631,7 +631,7 @@ export function use${suspenseOperationName}(baseOptions?: ${this.getApolloReactH suffix: operationTypeSuffix + this._parsedConfig.operationResultSuffix, }); - const IDType = this.scalars.ID ?? 'string'; + const IDType = this.scalars.ID.output ?? 'string'; const hook = `export function use${fragmentName}(identifiers: F) { return ${this.getApolloReactHooksIdentifier()}.use${operationType}<${operationResultType}>({ diff --git a/packages/plugins/typescript/react-apollo/tests/__snapshots__/react-apollo.spec.ts.snap b/packages/plugins/typescript/react-apollo/tests/__snapshots__/react-apollo.spec.ts.snap index fe577d65dc..d2d61823bd 100644 --- a/packages/plugins/typescript/react-apollo/tests/__snapshots__/react-apollo.spec.ts.snap +++ b/packages/plugins/typescript/react-apollo/tests/__snapshots__/react-apollo.spec.ts.snap @@ -1,21 +1,23 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`React Apollo Issues Issue #2742 - Incorrect import prefix 1`] = ` +exports[`React Apollo > Issues > Issue #2742 - Incorrect import prefix 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -30,13 +32,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -56,17 +58,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -74,8 +76,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -84,17 +86,17 @@ export type EntryCommentsArgs = { */ export type Repository = { /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -102,30 +104,30 @@ export type Repository = { /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -139,19 +141,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -168,7 +170,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type Get_SomethingQueryVariables = Exact<{ [key: string]: never; }>; @@ -203,22 +205,24 @@ export type Get_SomethingSuspenseQueryHookResult = ReturnType;" `; -exports[`React Apollo Issues Issue #2826 - Incorrect prefix 1`] = ` +exports[`React Apollo > Issues > Issue #2826 - Incorrect prefix 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type GQLQuery = { @@ -233,13 +237,13 @@ export type GQLQuery = { export type GQLQueryFeedArgs = { type: GQLFeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type GQLQueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -259,17 +263,17 @@ export type GQLEntry = { /** The GitHub user who submitted this entry */ postedBy: GQLUser; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: GQLVote; }; @@ -277,8 +281,8 @@ export type GQLEntry = { /** Information about a GitHub repository submitted to GitHunt */ export type GQLEntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -287,17 +291,17 @@ export type GQLEntryCommentsArgs = { */ export type GQLRepository = { /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -305,30 +309,30 @@ export type GQLRepository = { /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type GQLUser = { /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type GQLComment = { /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: GQLUser; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type GQLVote = { - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type GQLMutation = { @@ -342,19 +346,19 @@ export type GQLMutation = { export type GQLMutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type GQLMutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: GQLVoteType; }; export type GQLMutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -371,7 +375,7 @@ export type GQLSubscription = { export type GQLSubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type GQLGet_SomethingQueryVariables = Exact<{ [key: string]: never; }>; @@ -406,22 +410,24 @@ export type Get_SomethingSuspenseQueryHookResult = ReturnType;" `; -exports[`React Apollo Issues PR #2725 - transformUnderscore: true causes invalid output 1`] = ` +exports[`React Apollo > Issues > PR #2725 - transformUnderscore: true causes invalid output 1`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -436,13 +442,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -462,17 +468,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -480,8 +486,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -490,17 +496,17 @@ export type EntryCommentsArgs = { */ export type Repository = { /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -508,30 +514,30 @@ export type Repository = { /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -545,19 +551,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -574,7 +580,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type GetSomethingQueryVariables = Exact<{ [key: string]: never; }>; @@ -609,22 +615,24 @@ export type GetSomethingSuspenseQueryHookResult = ReturnType;" `; -exports[`React Apollo Issues PR #2725 - transformUnderscore: true causes invalid output 2`] = ` +exports[`React Apollo > Issues > PR #2725 - transformUnderscore: true causes invalid output 2`] = ` "export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } }; export type Query = { @@ -639,13 +647,13 @@ export type Query = { export type QueryFeedArgs = { type: FeedType; - offset?: InputMaybe; - limit?: InputMaybe; + offset?: InputMaybe; + limit?: InputMaybe; }; export type QueryEntryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; /** A list of options for the sort order of the feed */ @@ -665,17 +673,17 @@ export type Entry = { /** The GitHub user who submitted this entry */ postedBy: User; /** A timestamp of when the entry was submitted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The score of this repository, upvotes - downvotes */ - score: Scalars['Int']; + score: Scalars['Int']['output']; /** The hot score of this repository */ - hotScore: Scalars['Float']; + hotScore: Scalars['Float']['output']; /** Comments posted about this repository */ comments: Array>; /** The number of comments posted about this repository */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** XXX to be changed */ vote: Vote; }; @@ -683,8 +691,8 @@ export type Entry = { /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; }; /** @@ -693,17 +701,17 @@ export type EntryCommentsArgs = { */ export type Repository = { /** Just the name of the repository, e.g. GitHunt-API */ - name: Scalars['String']; + name: Scalars['String']['output']; /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ - full_name: Scalars['String']; + full_name: Scalars['String']['output']; /** The description of the repository */ - description?: Maybe; + description?: Maybe; /** The link to the repository on GitHub */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; /** The number of people who have starred this repository on GitHub */ - stargazers_count: Scalars['Int']; + stargazers_count: Scalars['Int']['output']; /** The number of open issues on this repository on GitHub */ - open_issues_count?: Maybe; + open_issues_count?: Maybe; /** The owner of this repository on GitHub, e.g. apollostack */ owner?: Maybe; }; @@ -711,30 +719,30 @@ export type Repository = { /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = { /** The name of the user, e.g. apollostack */ - login: Scalars['String']; + login: Scalars['String']['output']; /** The URL to a directly embeddable image for this user's avatar */ - avatar_url: Scalars['String']; + avatar_url: Scalars['String']['output']; /** The URL of this user's GitHub page */ - html_url: Scalars['String']; + html_url: Scalars['String']['output']; }; /** A comment about an entry, submitted by a user */ export type Comment = { /** The SQL ID of this entry */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** The GitHub user who posted the comment */ postedBy: User; /** A timestamp of when the comment was posted */ - createdAt: Scalars['Float']; + createdAt: Scalars['Float']['output']; /** The text of the comment */ - content: Scalars['String']; + content: Scalars['String']['output']; /** The repository which this comment is about */ - repoName: Scalars['String']; + repoName: Scalars['String']['output']; }; /** XXX to be removed */ export type Vote = { - vote_value: Scalars['Int']; + vote_value: Scalars['Int']['output']; }; export type Mutation = { @@ -748,19 +756,19 @@ export type Mutation = { export type MutationSubmitRepositoryArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type MutationVoteArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; type: VoteType; }; export type MutationSubmitCommentArgs = { - repoFullName: Scalars['String']; - commentContent: Scalars['String']; + repoFullName: Scalars['String']['input']; + commentContent: Scalars['String']['input']; }; /** The type of vote to record, when submitting a vote */ @@ -777,7 +785,7 @@ export type Subscription = { export type SubscriptionCommentAddedArgs = { - repoFullName: Scalars['String']; + repoFullName: Scalars['String']['input']; }; export type GetSomethingQueryVariables = Exact<{ [key: string]: never; }>; @@ -812,7 +820,7 @@ export type GetSomethingSuspenseQueryHookResult = ReturnType;" `; -exports[`React Apollo documentMode and importDocumentNodeExternallyFrom should generate definitions Document variable when documentMode is "documentNode" and nested fragments 1`] = ` +exports[`React Apollo > documentMode and importDocumentNodeExternallyFrom > should generate definitions Document variable when documentMode is "documentNode" and nested fragments 1`] = ` "export const CFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"C"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"greeting"}}]}}]} as unknown as DocumentNode; export const BFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"B"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"C"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"greeting"}}]}}]} as unknown as DocumentNode; export const AFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"A"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"B"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"C"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"greeting"}}]}}]} as unknown as DocumentNode; diff --git a/packages/plugins/typescript/react-apollo/tests/__snapshots__/react-apollo.v16+.spec.ts.snap b/packages/plugins/typescript/react-apollo/tests/__snapshots__/react-apollo.v16+.spec.ts.snap index 83ee46acbe..45a92948af 100644 --- a/packages/plugins/typescript/react-apollo/tests/__snapshots__/react-apollo.v16+.spec.ts.snap +++ b/packages/plugins/typescript/react-apollo/tests/__snapshots__/react-apollo.v16+.spec.ts.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`React Apollo - GraphQL v16+ generates operation description correctly 1`] = ` +exports[`React Apollo - GraphQL v16+ > generates operation description correctly 1`] = ` { "content": " export const TestDocument = gql\` diff --git a/packages/plugins/typescript/react-apollo/tests/react-apollo.spec.ts b/packages/plugins/typescript/react-apollo/tests/react-apollo.spec.ts index b482f11cd9..2e6283a925 100644 --- a/packages/plugins/typescript/react-apollo/tests/react-apollo.spec.ts +++ b/packages/plugins/typescript/react-apollo/tests/react-apollo.spec.ts @@ -10,9 +10,9 @@ import { ReactApolloRawPluginConfig } from '../src/config.js'; import { plugin } from '../src/index.js'; describe('React Apollo', () => { - let spyConsoleError: jest.SpyInstance; + let spyConsoleError; beforeEach(() => { - spyConsoleError = jest.spyOn(console, 'warn'); + spyConsoleError = vi.spyOn(console, 'warn'); spyConsoleError.mockImplementation(); }); @@ -365,48 +365,6 @@ describe('React Apollo', () => { expect(output).toMatchSnapshot(); }); - it('Issue #2080 - noGraphQLTag does not work with fragments correctly', async () => { - const docs = [ - { - location: '', - document: parse(/* GraphQL */ ` - query test { - feed { - id - commentCount - repository { - ...RepositoryFields - } - } - } - - fragment RepositoryFields on Repository { - full_name - html_url - owner { - avatar_url - } - } - `), - }, - ]; - const content = (await plugin( - schema, - docs, - { - noGraphQLTag: true, - }, - { - outputFile: 'graphql.tsx', - }, - )) as Types.ComplexPluginOutput; - expect( - content.content.split( - '{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RepositoryFields"}', - ).length, - ).toBe(3); - }); - it('#6001 - Should not use TypesSuffix on function names', async () => { const docs = [ { @@ -482,24 +440,6 @@ describe('React Apollo', () => { await validateTypeScript(content, schema, docs, {}); }); - it('should import DocumentNode when using noGraphQLTag', async () => { - const docs = [{ location: '', document: basicDoc }]; - const content = (await plugin( - schema, - docs, - { - noGraphQLTag: true, - }, - { - outputFile: 'graphql.tsx', - }, - )) as Types.ComplexPluginOutput; - - expect(content.prepend).toContain(`import { DocumentNode } from 'graphql';`); - expect(content.prepend).not.toContain(`import gql from 'graphql-tag';`); - await validateTypeScript(content, schema, docs, {}); - }); - it(`should use gql import from gqlImport config option`, async () => { const docs = [{ location: '', document: basicDoc }]; const content = (await plugin( @@ -935,30 +875,6 @@ query MyFeed { await validateTypeScript(content, schema, docs, {}); }); - it('should generate Document variable with noGraphQlTag', async () => { - const docs = [{ location: '', document: basicDoc }]; - const content = (await plugin( - schema, - docs, - { - noGraphQLTag: true, - }, - { - outputFile: 'graphql.tsx', - }, - )) as Types.ComplexPluginOutput; - - expect(content.content).toBeSimilarStringTo( - `[{"kind":"Field","name":{"kind":"Name","value":"avatar_url"}}]}}]}}]}}]}}]} as unknown as DocumentNode;`, - ); - - // For issue #1599 - make sure there are not `loc` properties - expect(content.content).not.toContain(`loc":`); - expect(content.content).not.toContain(`loc':`); - - await validateTypeScript(content, schema, docs, {}); - }); - it('should generate correct Document variable with escaped values', async () => { const docs = [ { diff --git a/packages/plugins/typescript/react-apollo/vitest.config.ts b/packages/plugins/typescript/react-apollo/vitest.config.ts new file mode 100644 index 0000000000..15022ddaae --- /dev/null +++ b/packages/plugins/typescript/react-apollo/vitest.config.ts @@ -0,0 +1,18 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +const include = ['**/*.spec.ts']; +if (process.env.GRAPHQL_VERSION === '15') { + include.push('!**/*.v16+.spec.ts'); +} + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-react-apollo', + include, + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/react-apollo/vitest.setup.ts b/packages/plugins/typescript/react-apollo/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/react-apollo/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/plugins/typescript/react-query/jest.config.js b/packages/plugins/typescript/react-query/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/react-query/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/react-query/package.json b/packages/plugins/typescript/react-query/package.json index 69a7c6afeb..e210b39cba 100644 --- a/packages/plugins/typescript/react-query/package.json +++ b/packages/plugins/typescript/react-query/package.json @@ -33,15 +33,14 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js --forceExit" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" diff --git a/packages/plugins/typescript/react-query/src/config.ts b/packages/plugins/typescript/react-query/src/config.ts index 2d546233b8..95ce5bb075 100644 --- a/packages/plugins/typescript/react-query/src/config.ts +++ b/packages/plugins/typescript/react-query/src/config.ts @@ -120,8 +120,6 @@ export interface ReactQueryRawPluginConfig extends Omit< RawClientSideBasePluginConfig, - | 'documentMode' - | 'noGraphQLTag' | 'gqlImport' | 'documentNodeImport' | 'noExport' diff --git a/packages/plugins/typescript/react-query/tests/__snapshots__/react-query.spec.ts.snap b/packages/plugins/typescript/react-query/tests/__snapshots__/react-query.spec.ts.snap index 7eb3ff8be3..cf4c20d997 100644 --- a/packages/plugins/typescript/react-query/tests/__snapshots__/react-query.spec.ts.snap +++ b/packages/plugins/typescript/react-query/tests/__snapshots__/react-query.spec.ts.snap @@ -1,9 +1,9 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`React-Query exposeQueryKeys: true Should generate getKey for each query 1`] = ` +exports[`React-Query > exposeQueryKeys: true > Should generate getKey for each query 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -17,7 +17,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TestQuery, @@ -36,13 +36,13 @@ export const useTestQuery = < useTestQuery.getKey = (variables?: TestQueryVariables) => variables === undefined ? ['test'] : ['test', variables]; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -60,10 +60,10 @@ export const useTestMutation = < " `; -exports[`React-Query exposeQueryKeys: true, addInfiniteQuery: true Should generate getKey for each query - also infinite queries 1`] = ` +exports[`React-Query > exposeQueryKeys: true, addInfiniteQuery: true > Should generate getKey for each query - also infinite queries 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -77,7 +77,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TestQuery, @@ -113,13 +113,13 @@ export const useInfiniteTestQuery = < useInfiniteTestQuery.getKey = (variables?: TestQueryVariables) => variables === undefined ? ['test.infinite'] : ['test.infinite', variables]; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -137,10 +137,10 @@ export const useTestMutation = < " `; -exports[`React-Query exposeQueryRootKeys: true Should generate rootKey for each query 1`] = ` +exports[`React-Query > exposeQueryRootKeys: true > Should generate rootKey for each query 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -154,7 +154,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TestQuery, @@ -173,13 +173,13 @@ export const useTestQuery = < useTestQuery.rootKey = 'test'; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -197,10 +197,10 @@ export const useTestMutation = < " `; -exports[`React-Query exposeQueryRootKeys: true, addInfiniteQuery: true Should generate rootKey for each query - also infinite queries 1`] = ` +exports[`React-Query > exposeQueryRootKeys: true, addInfiniteQuery: true > Should generate rootKey for each query - also infinite queries 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -214,7 +214,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TestQuery, @@ -250,13 +250,13 @@ export const useInfiniteTestQuery = < useInfiniteTestQuery.rootKey = 'test.infinite'; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -274,10 +274,10 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: custom-mapper Should generate mutation correctly with lazy variables: content 1`] = ` +exports[`React-Query > fetcher: custom-mapper > Should generate mutation correctly with lazy variables > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -291,7 +291,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TTestQuery, @@ -321,13 +321,13 @@ export const useInfiniteTestQuery = < options )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -342,17 +342,17 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: custom-mapper Should generate mutation correctly with lazy variables: prepend 1`] = ` +exports[`React-Query > fetcher: custom-mapper > Should generate mutation correctly with lazy variables > prepend 1`] = ` [ "import { useQuery, useInfiniteQuery, useMutation, UseQueryOptions, UseInfiniteQueryOptions, UseMutationOptions } from 'react-query';", "import { useCustomFetcher } from './my-file';", ] `; -exports[`React-Query fetcher: custom-mapper Should generate query correctly with external mapper: content 1`] = ` +exports[`React-Query > fetcher: custom-mapper > Should generate query correctly with external mapper > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -366,7 +366,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TTestQuery, @@ -396,13 +396,13 @@ export const useInfiniteTestQuery = < options )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -417,17 +417,17 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: custom-mapper Should generate query correctly with external mapper: prepend 1`] = ` +exports[`React-Query > fetcher: custom-mapper > Should generate query correctly with external mapper > prepend 1`] = ` [ "import { useQuery, useInfiniteQuery, useMutation, UseQueryOptions, UseInfiniteQueryOptions, UseMutationOptions } from 'react-query';", "import { myCustomFetcher } from './my-file';", ] `; -exports[`React-Query fetcher: custom-mapper Should generate query correctly with internal mapper: content 1`] = ` +exports[`React-Query > fetcher: custom-mapper > Should generate query correctly with internal mapper > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -441,7 +441,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TTestQuery, @@ -457,13 +457,13 @@ export const useTestQuery = < options )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -478,17 +478,17 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: custom-mapper Should generate query correctly with internal mapper: prepend 1`] = ` +exports[`React-Query > fetcher: custom-mapper > Should generate query correctly with internal mapper > prepend 1`] = ` [ "import { useQuery, useMutation, UseQueryOptions, UseMutationOptions } from 'react-query';", null, ] `; -exports[`React-Query fetcher: fetch Should generate query and mutation correctly: content 1`] = ` +exports[`React-Query > fetcher: fetch > Should generate query and mutation correctly > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -502,7 +502,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TTestQuery, @@ -519,13 +519,13 @@ export const useTestQuery = < options )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -543,7 +543,7 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: fetch Should generate query and mutation correctly: prepend 1`] = ` +exports[`React-Query > fetcher: fetch > Should generate query and mutation correctly > prepend 1`] = ` [ "import { useQuery, useMutation, UseQueryOptions, UseMutationOptions } from 'react-query';", " @@ -569,10 +569,10 @@ function fetcher(endpoint: string, requestInit: RequestInit, ] `; -exports[`React-Query fetcher: graphql-request Should generate query correctly with client: content 1`] = ` +exports[`React-Query > fetcher: graphql-request > Should generate query correctly with client > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -586,7 +586,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TTestQuery, @@ -620,13 +620,13 @@ export const useInfiniteTestQuery = < options )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -645,7 +645,7 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: graphql-request Should generate query correctly with client: prepend 1`] = ` +exports[`React-Query > fetcher: graphql-request > Should generate query correctly with client > prepend 1`] = ` [ "import { GraphQLClient } from 'graphql-request';", "import { RequestInit } from 'graphql-request/dist/types.dom';", @@ -661,10 +661,10 @@ function fetcher(client: Graph ] `; -exports[`React-Query fetcher: graphql-request with clientImportPath Should generate query correctly with client: content 1`] = ` +exports[`React-Query > fetcher: graphql-request with clientImportPath > Should generate query correctly with client > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -678,7 +678,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TTestQuery, @@ -695,13 +695,13 @@ export const useTestQuery = < options )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -719,7 +719,7 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: graphql-request with clientImportPath Should generate query correctly with client: prepend 1`] = ` +exports[`React-Query > fetcher: graphql-request with clientImportPath > Should generate query correctly with client > prepend 1`] = ` [ "import { client as graphqlClient } from 'client.ts';", "import { GraphQLClient } from 'graphql-request';", @@ -736,10 +736,10 @@ function fetcher(query: string ] `; -exports[`React-Query fetcher: hardcoded-fetch Should generate query correctly with fetch config and fetchParams object: content 1`] = ` +exports[`React-Query > fetcher: hardcoded-fetch > Should generate query correctly with fetch config > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -753,7 +753,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TTestQuery, @@ -769,13 +769,13 @@ export const useTestQuery = < options )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -790,7 +790,7 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: hardcoded-fetch Should generate query correctly with fetch config and fetchParams object: prepend 1`] = ` +exports[`React-Query > fetcher: hardcoded-fetch > Should generate query correctly with fetch config > prepend 1`] = ` [ "import { useQuery, useMutation, UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';", " @@ -816,10 +816,10 @@ function fetcher(query: string, variables?: TVariables) { ] `; -exports[`React-Query fetcher: hardcoded-fetch Should generate query correctly with fetch config: content 1`] = ` +exports[`React-Query > fetcher: hardcoded-fetch > Should generate query correctly with fetch config and fetchParams object > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -833,7 +833,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TTestQuery, @@ -849,13 +849,13 @@ export const useTestQuery = < options )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -870,7 +870,7 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: hardcoded-fetch Should generate query correctly with fetch config: prepend 1`] = ` +exports[`React-Query > fetcher: hardcoded-fetch > Should generate query correctly with fetch config and fetchParams object > prepend 1`] = ` [ "import { useQuery, useMutation, UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';", " @@ -896,10 +896,10 @@ function fetcher(query: string, variables?: TVariables) { ] `; -exports[`React-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint from env var: content 1`] = ` +exports[`React-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -913,7 +913,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TTestQuery, @@ -929,13 +929,27 @@ export const useTestQuery = < options )}; -export const TestDocument = \` +export const useInfiniteTestQuery = < + TData = TTestQuery, + TError = unknown + >( + variables?: TTestQueryVariables, + options?: UseInfiniteQueryOptions + ) => { + + return useInfiniteQuery( + variables === undefined ? ['test.infinite'] : ['test.infinite', variables], + (metaData) => fetcher(TestDocument, {...variables, ...(metaData.pageParam ?? {})})(), + options + )}; + +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -950,13 +964,13 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint from env var: prepend 1`] = ` +exports[`React-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint > prepend 1`] = ` [ - "import { useQuery, useMutation, UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';", + "import { useQuery, useInfiniteQuery, useMutation, UseQueryOptions, UseInfiniteQueryOptions, UseMutationOptions } from 'react-query';", " function fetcher(query: string, variables?: TVariables) { return async (): Promise => { - const res = await fetch(process.env.ENDPOINT_URL as string, { + const res = await fetch("http://localhost:3000/graphql", { method: "POST", body: JSON.stringify({ query, variables }), }); @@ -975,10 +989,10 @@ function fetcher(query: string, variables?: TVariables) { ] `; -exports[`React-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint from just identifier: content 1`] = ` +exports[`React-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint from env var > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -992,7 +1006,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TTestQuery, @@ -1008,13 +1022,13 @@ export const useTestQuery = < options )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -1029,13 +1043,13 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint from just identifier: prepend 1`] = ` +exports[`React-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint from env var > prepend 1`] = ` [ "import { useQuery, useMutation, UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';", " function fetcher(query: string, variables?: TVariables) { return async (): Promise => { - const res = await fetch(myEndpoint as string, { + const res = await fetch(process.env.ENDPOINT_URL as string, { method: "POST", body: JSON.stringify({ query, variables }), }); @@ -1054,10 +1068,10 @@ function fetcher(query: string, variables?: TVariables) { ] `; -exports[`React-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint: content 1`] = ` +exports[`React-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint from just identifier > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -1071,7 +1085,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TTestQuery, @@ -1087,27 +1101,13 @@ export const useTestQuery = < options )}; -export const useInfiniteTestQuery = < - TData = TTestQuery, - TError = unknown - >( - variables?: TTestQueryVariables, - options?: UseInfiniteQueryOptions - ) => { - - return useInfiniteQuery( - variables === undefined ? ['test.infinite'] : ['test.infinite', variables], - (metaData) => fetcher(TestDocument, {...variables, ...(metaData.pageParam ?? {})})(), - options - )}; - -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -1122,13 +1122,13 @@ export const useTestMutation = < " `; -exports[`React-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint: prepend 1`] = ` +exports[`React-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint from just identifier > prepend 1`] = ` [ - "import { useQuery, useInfiniteQuery, useMutation, UseQueryOptions, UseInfiniteQueryOptions, UseMutationOptions } from 'react-query';", + "import { useQuery, useMutation, UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';", " function fetcher(query: string, variables?: TVariables) { return async (): Promise => { - const res = await fetch("http://localhost:3000/graphql", { + const res = await fetch(myEndpoint as string, { method: "POST", body: JSON.stringify({ query, variables }), }); @@ -1147,7 +1147,7 @@ function fetcher(query: string, variables?: TVariables) { ] `; -exports[`React-Query reactQueryImportFrom: custom-path Should import react-query from custom path: prepend 1`] = ` +exports[`React-Query > reactQueryImportFrom: custom-path > Should import react-query from custom path > prepend 1`] = ` [ "import { useQuery, useMutation, UseQueryOptions, UseMutationOptions } from 'custom-react-query';", " @@ -1173,10 +1173,10 @@ function fetcher(endpoint: string, requestInit: RequestInit, ] `; -exports[`React-Query support import-type preset in v4: content 1`] = ` +exports[`React-Query > support import-type preset in v4 > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -1190,7 +1190,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = Types.TestQuery, @@ -1207,13 +1207,13 @@ export const useTestQuery = < options )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -1231,10 +1231,10 @@ export const useTestMutation = < " `; -exports[`React-Query support import-type preset in v5: content 1`] = ` +exports[`React-Query > support import-type preset in v5 > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -1248,7 +1248,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = Types.TestQuery, @@ -1267,13 +1267,13 @@ export const useTestQuery = < } )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -1293,10 +1293,10 @@ export const useTestMutation = < " `; -exports[`React-Query support v4 syntax: content 1`] = ` +exports[`React-Query > support v4 syntax > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -1310,7 +1310,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TestQuery, @@ -1342,13 +1342,13 @@ export const useInfiniteTestQuery = < options )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -1366,7 +1366,7 @@ export const useTestMutation = < " `; -exports[`React-Query support v4 syntax: prepend 1`] = ` +exports[`React-Query > support v4 syntax > prepend 1`] = ` [ "import { useQuery, useInfiniteQuery, useMutation, type UseQueryOptions, type UseInfiniteQueryOptions, type UseMutationOptions } from '@tanstack/react-query';", " @@ -1392,10 +1392,10 @@ function fetcher(endpoint: string, requestInit: RequestInit, ] `; -exports[`React-Query support v5 syntax: content 1`] = ` +exports[`React-Query > support v5 syntax > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -1409,7 +1409,7 @@ export const TestDocument = \` } } } - \`; + \`); export const useTestQuery = < TData = TestQuery, @@ -1485,13 +1485,13 @@ export const useSuspenseInfiniteTestQuery = < })() )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const useTestMutation = < TError = unknown, @@ -1511,7 +1511,7 @@ export const useTestMutation = < " `; -exports[`React-Query support v5 syntax: prepend 1`] = ` +exports[`React-Query > support v5 syntax > prepend 1`] = ` [ "import { useQuery, useSuspenseQuery, useInfiniteQuery, useSuspenseInfiniteQuery, useMutation, UseQueryOptions, UseSuspenseQueryOptions, UseInfiniteQueryOptions, InfiniteData, UseSuspenseInfiniteQueryOptions, UseMutationOptions } from '@tanstack/react-query';", " diff --git a/packages/plugins/typescript/react-query/tests/react-query.spec.ts b/packages/plugins/typescript/react-query/tests/react-query.spec.ts index 1346c24acd..dc8991aaae 100644 --- a/packages/plugins/typescript/react-query/tests/react-query.spec.ts +++ b/packages/plugins/typescript/react-query/tests/react-query.spec.ts @@ -1,4 +1,4 @@ -import { buildClientSchema, buildSchema, GraphQLSchema, parse } from 'graphql'; +import { buildClientSchema, GraphQLSchema, parse } from 'graphql'; import { mergeOutputs, Types } from '@graphql-codegen/plugin-helpers'; import { validateTs } from '@graphql-codegen/testing'; import { plugin as tsPlugin } from '@graphql-codegen/typescript'; @@ -74,57 +74,6 @@ describe('React-Query', () => { await validateTypeScript(mergeOutputs(out), schema, docs, config); }); - it('Duplicated nested fragments are removed', async () => { - const schema = buildSchema(/* GraphQL */ ` - schema { - query: Query - } - - type Query { - user(id: ID!): User - } - - type User { - id: ID! - name: String! - } - `); - - const ast = parse(/* GraphQL */ ` - query foo { - user1: user(id: 1) { - ...userWithEmail - } - user2: user(id: 2) { - ...userWithName - } - } - - fragment userBase on User { - id - } - - fragment userWithEmail on User { - ...userBase - email - } - - fragment userWithName on User { - ...userBase - name - } - `); - - const res = (await plugin( - schema, - [{ location: '', document: ast }], - { dedupeFragments: true }, - { outputFile: '' }, - )) as Types.ComplexPluginOutput; - - expect((res.content.match(/\{UserBaseFragmentDoc\}/g) || []).length).toBe(1); - }); - const schema = buildClientSchema(require('../../../../../dev-test/githunt/schema.json')); const basicDoc = parse(/* GraphQL */ ` query test { diff --git a/packages/plugins/typescript/react-query/vitest.config.ts b/packages/plugins/typescript/react-query/vitest.config.ts new file mode 100644 index 0000000000..84f2bd189d --- /dev/null +++ b/packages/plugins/typescript/react-query/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-react-query', + include: ['**/*.spec.ts'], + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/react-query/vitest.setup.ts b/packages/plugins/typescript/react-query/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/react-query/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/plugins/typescript/rtk-query/package.json b/packages/plugins/typescript/rtk-query/package.json index 5e20cde079..c274cd9d96 100644 --- a/packages/plugins/typescript/rtk-query/package.json +++ b/packages/plugins/typescript/rtk-query/package.json @@ -33,8 +33,7 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js --forceExit" + "lint": "eslint **/*.ts" }, "peerDependencies": { "@reduxjs/toolkit": "^1.6.0 || ^2.0.0", @@ -48,8 +47,8 @@ } }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" diff --git a/packages/plugins/typescript/rtk-query/tests/__snapshots__/rtk-query.spec.ts.snap b/packages/plugins/typescript/rtk-query/tests/__snapshots__/rtk-query.spec.ts.snap index a313cbc191..1d1e68291e 100644 --- a/packages/plugins/typescript/rtk-query/tests/__snapshots__/rtk-query.spec.ts.snap +++ b/packages/plugins/typescript/rtk-query/tests/__snapshots__/rtk-query.spec.ts.snap @@ -1,20 +1,20 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`RTK Query For fragment 1`] = ` -"export const VoteButtonsFragmentDoc = \` +exports[`RTK Query > For fragment 1`] = ` +"export const VoteButtonsFragmentDoc = new TypedDocumentString(\` fragment VoteButtons on Entry { score vote { vote_value } } - \`; + \`, {"fragmentName":"VoteButtons"}); " `; -exports[`RTK Query With addTransformResponse 1`] = ` +exports[`RTK Query > With addTransformResponse 1`] = ` " -export const CommentDocument = \` +export const CommentDocument = new TypedDocumentString(\` query Comment($repoFullName: String!, $limit: Int, $offset: Int) { currentUser { login @@ -42,8 +42,8 @@ export const CommentDocument = \` } } } - \${CommentsPageCommentFragmentDoc}\`; -export const FeedDocument = \` + \`); +export const FeedDocument = new TypedDocumentString(\` query Feed($type: FeedType!, $offset: Int, $limit: Int) { currentUser { login @@ -52,14 +52,14 @@ export const FeedDocument = \` ...FeedEntry } } - \${FeedEntryFragmentDoc}\`; -export const SubmitRepositoryDocument = \` + \`); +export const SubmitRepositoryDocument = new TypedDocumentString(\` mutation submitRepository($repoFullName: String!) { submitRepository(repoFullName: $repoFullName) { createdAt } } - \`; + \`); const injectedRtkApi = api.injectEndpoints({ endpoints: (build) => ({ @@ -84,9 +84,9 @@ export { injectedRtkApi as api }; " `; -exports[`RTK Query With hooks 1`] = ` +exports[`RTK Query > With hooks 1`] = ` " -export const CommentDocument = \` +export const CommentDocument = new TypedDocumentString(\` query Comment($repoFullName: String!, $limit: Int, $offset: Int) { currentUser { login @@ -114,8 +114,8 @@ export const CommentDocument = \` } } } - \${CommentsPageCommentFragmentDoc}\`; -export const FeedDocument = \` + \`); +export const FeedDocument = new TypedDocumentString(\` query Feed($type: FeedType!, $offset: Int, $limit: Int) { currentUser { login @@ -124,14 +124,14 @@ export const FeedDocument = \` ...FeedEntry } } - \${FeedEntryFragmentDoc}\`; -export const SubmitRepositoryDocument = \` + \`); +export const SubmitRepositoryDocument = new TypedDocumentString(\` mutation submitRepository($repoFullName: String!) { submitRepository(repoFullName: $repoFullName) { createdAt } } - \`; + \`); const injectedRtkApi = api.injectEndpoints({ endpoints: (build) => ({ @@ -153,9 +153,9 @@ export const { useCommentQuery, useLazyCommentQuery, useFeedQuery, useLazyFeedQu " `; -exports[`RTK Query With importBaseApiAlternateName 1`] = ` +exports[`RTK Query > With importBaseApiAlternateName 1`] = ` " -export const CommentDocument = \` +export const CommentDocument = new TypedDocumentString(\` query Comment($repoFullName: String!, $limit: Int, $offset: Int) { currentUser { login @@ -183,8 +183,8 @@ export const CommentDocument = \` } } } - \${CommentsPageCommentFragmentDoc}\`; -export const FeedDocument = \` + \`); +export const FeedDocument = new TypedDocumentString(\` query Feed($type: FeedType!, $offset: Int, $limit: Int) { currentUser { login @@ -193,14 +193,14 @@ export const FeedDocument = \` ...FeedEntry } } - \${FeedEntryFragmentDoc}\`; -export const SubmitRepositoryDocument = \` + \`); +export const SubmitRepositoryDocument = new TypedDocumentString(\` mutation submitRepository($repoFullName: String!) { submitRepository(repoFullName: $repoFullName) { createdAt } } - \`; + \`); const injectedRtkApi = alternateApiName.injectEndpoints({ endpoints: (build) => ({ @@ -222,9 +222,9 @@ export { injectedRtkApi as api }; " `; -exports[`RTK Query With overrideExisting 1`] = ` +exports[`RTK Query > With overrideExisting 1`] = ` " -export const CommentDocument = \` +export const CommentDocument = new TypedDocumentString(\` query Comment($repoFullName: String!, $limit: Int, $offset: Int) { currentUser { login @@ -252,8 +252,8 @@ export const CommentDocument = \` } } } - \${CommentsPageCommentFragmentDoc}\`; -export const FeedDocument = \` + \`); +export const FeedDocument = new TypedDocumentString(\` query Feed($type: FeedType!, $offset: Int, $limit: Int) { currentUser { login @@ -262,14 +262,14 @@ export const FeedDocument = \` ...FeedEntry } } - \${FeedEntryFragmentDoc}\`; -export const SubmitRepositoryDocument = \` + \`); +export const SubmitRepositoryDocument = new TypedDocumentString(\` mutation submitRepository($repoFullName: String!) { submitRepository(repoFullName: $repoFullName) { createdAt } } - \`; + \`); const injectedRtkApi = api.injectEndpoints({ overrideExisting: module.hot?.status() === "apply", @@ -292,9 +292,9 @@ export { injectedRtkApi as api }; " `; -exports[`RTK Query Without hooks 1`] = ` +exports[`RTK Query > Without hooks 1`] = ` " -export const CommentDocument = \` +export const CommentDocument = new TypedDocumentString(\` query Comment($repoFullName: String!, $limit: Int, $offset: Int) { currentUser { login @@ -322,8 +322,8 @@ export const CommentDocument = \` } } } - \${CommentsPageCommentFragmentDoc}\`; -export const FeedDocument = \` + \`); +export const FeedDocument = new TypedDocumentString(\` query Feed($type: FeedType!, $offset: Int, $limit: Int) { currentUser { login @@ -332,14 +332,14 @@ export const FeedDocument = \` ...FeedEntry } } - \${FeedEntryFragmentDoc}\`; -export const SubmitRepositoryDocument = \` + \`); +export const SubmitRepositoryDocument = new TypedDocumentString(\` mutation submitRepository($repoFullName: String!) { submitRepository(repoFullName: $repoFullName) { createdAt } } - \`; + \`); const injectedRtkApi = api.injectEndpoints({ endpoints: (build) => ({ diff --git a/packages/plugins/typescript/rtk-query/tests/rtk-query.spec.ts b/packages/plugins/typescript/rtk-query/tests/rtk-query.spec.ts index e37d315a6c..17f0ee127b 100644 --- a/packages/plugins/typescript/rtk-query/tests/rtk-query.spec.ts +++ b/packages/plugins/typescript/rtk-query/tests/rtk-query.spec.ts @@ -7,9 +7,9 @@ import { plugin } from '../src/index.js'; const githunt = resolve(__dirname, '../../../../../dev-test/githunt/'); describe('RTK Query', () => { - let spyConsoleError: jest.SpyInstance; + let spyConsoleError; beforeEach(() => { - spyConsoleError = jest.spyOn(console, 'warn'); + spyConsoleError = vi.spyOn(console, 'warn'); spyConsoleError.mockImplementation(); }); diff --git a/packages/plugins/typescript/rtk-query/vitest.config.ts b/packages/plugins/typescript/rtk-query/vitest.config.ts new file mode 100644 index 0000000000..4424e24e6b --- /dev/null +++ b/packages/plugins/typescript/rtk-query/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-rtk-query', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/solid-query/jest.config.js b/packages/plugins/typescript/solid-query/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/solid-query/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/solid-query/package.json b/packages/plugins/typescript/solid-query/package.json index 46b98ae659..82e999ee22 100644 --- a/packages/plugins/typescript/solid-query/package.json +++ b/packages/plugins/typescript/solid-query/package.json @@ -33,15 +33,14 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js --forceExit" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" diff --git a/packages/plugins/typescript/solid-query/src/config.ts b/packages/plugins/typescript/solid-query/src/config.ts index b3b549ae5d..f0815a2a15 100644 --- a/packages/plugins/typescript/solid-query/src/config.ts +++ b/packages/plugins/typescript/solid-query/src/config.ts @@ -107,8 +107,6 @@ export interface SolidQueryRawPluginConfig extends Omit< RawClientSideBasePluginConfig, - | 'documentMode' - | 'noGraphQLTag' | 'gqlImport' | 'documentNodeImport' | 'noExport' diff --git a/packages/plugins/typescript/solid-query/tests/__snapshots__/solid-query.spec.ts.snap b/packages/plugins/typescript/solid-query/tests/__snapshots__/solid-query.spec.ts.snap index d5b0af59a5..d2cfe97d98 100644 --- a/packages/plugins/typescript/solid-query/tests/__snapshots__/solid-query.spec.ts.snap +++ b/packages/plugins/typescript/solid-query/tests/__snapshots__/solid-query.spec.ts.snap @@ -1,9 +1,9 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Solid-Query exposeQueryKeys: true Should generate getKey for each query 1`] = ` +exports[`Solid-Query > exposeQueryKeys: true > Should generate getKey for each query 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -17,7 +17,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TestQuery, @@ -38,13 +38,13 @@ export const createTestQuery = < createTestQuery.getKey = (variables?: TestQueryVariables) => variables === undefined ? ['test'] : ['test', variables]; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -64,10 +64,10 @@ export const createTestMutation = < " `; -exports[`Solid-Query exposeQueryKeys: true, addInfiniteQuery: true Should generate getKey for each query - also infinite queries 1`] = ` +exports[`Solid-Query > exposeQueryKeys: true, addInfiniteQuery: true > Should generate getKey for each query - also infinite queries 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -81,7 +81,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TestQuery, @@ -124,13 +124,13 @@ export const createInfiniteTestQuery = < createInfiniteTestQuery.getKey = (variables?: TestQueryVariables) => variables === undefined ? ['test.infinite'] : ['test.infinite', variables]; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -150,10 +150,10 @@ export const createTestMutation = < " `; -exports[`Solid-Query exposeQueryRootKeys: true Should generate rootKey for each query 1`] = ` +exports[`Solid-Query > exposeQueryRootKeys: true > Should generate rootKey for each query 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -167,7 +167,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TestQuery, @@ -188,13 +188,13 @@ export const createTestQuery = < createTestQuery.rootKey = 'test'; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -214,10 +214,10 @@ export const createTestMutation = < " `; -exports[`Solid-Query exposeQueryRootKeys: true, addInfiniteQuery: true Should generate rootKey for each query - also infinite queries 1`] = ` +exports[`Solid-Query > exposeQueryRootKeys: true, addInfiniteQuery: true > Should generate rootKey for each query - also infinite queries 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -231,7 +231,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TestQuery, @@ -274,13 +274,13 @@ export const createInfiniteTestQuery = < createInfiniteTestQuery.rootKey = 'test.infinite'; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -300,10 +300,10 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: custom-mapper Should generate mutation correctly with lazy variables: content 1`] = ` +exports[`Solid-Query > fetcher: custom-mapper > Should generate mutation correctly with lazy variables > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -317,7 +317,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TTestQuery, @@ -354,13 +354,13 @@ export const createInfiniteTestQuery = < }))() )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -377,17 +377,17 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: custom-mapper Should generate mutation correctly with lazy variables: prepend 1`] = ` +exports[`Solid-Query > fetcher: custom-mapper > Should generate mutation correctly with lazy variables > prepend 1`] = ` [ "import { createQuery, createInfiniteQuery, createMutation, CreateQueryOptions, CreateInfiniteQueryOptions, InfiniteData, CreateMutationOptions } from '@tanstack/solid-query';", "import { useCustomFetcher } from './my-file';", ] `; -exports[`Solid-Query fetcher: custom-mapper Should generate query correctly with external mapper: content 1`] = ` +exports[`Solid-Query > fetcher: custom-mapper > Should generate query correctly with external mapper > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -401,7 +401,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TTestQuery, @@ -438,13 +438,13 @@ export const createInfiniteTestQuery = < }))() )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -461,17 +461,17 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: custom-mapper Should generate query correctly with external mapper: prepend 1`] = ` +exports[`Solid-Query > fetcher: custom-mapper > Should generate query correctly with external mapper > prepend 1`] = ` [ "import { createQuery, createInfiniteQuery, createMutation, CreateQueryOptions, CreateInfiniteQueryOptions, InfiniteData, CreateMutationOptions } from '@tanstack/solid-query';", "import { myCustomFetcher } from './my-file';", ] `; -exports[`Solid-Query fetcher: custom-mapper Should generate query correctly with internal mapper: content 1`] = ` +exports[`Solid-Query > fetcher: custom-mapper > Should generate query correctly with internal mapper > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -485,7 +485,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TTestQuery, @@ -503,13 +503,13 @@ export const createTestQuery = < }) )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -526,17 +526,17 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: custom-mapper Should generate query correctly with internal mapper: prepend 1`] = ` +exports[`Solid-Query > fetcher: custom-mapper > Should generate query correctly with internal mapper > prepend 1`] = ` [ "import { createQuery, createMutation, CreateQueryOptions, CreateMutationOptions } from '@tanstack/solid-query';", null, ] `; -exports[`Solid-Query fetcher: fetch Should generate query and mutation correctly: content 1`] = ` +exports[`Solid-Query > fetcher: fetch > Should generate query and mutation correctly > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -550,7 +550,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TTestQuery, @@ -569,13 +569,13 @@ export const createTestQuery = < }) )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -595,7 +595,7 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: fetch Should generate query and mutation correctly: prepend 1`] = ` +exports[`Solid-Query > fetcher: fetch > Should generate query and mutation correctly > prepend 1`] = ` [ "import { createQuery, createMutation, CreateQueryOptions, CreateMutationOptions } from '@tanstack/solid-query';", " @@ -621,10 +621,10 @@ function fetcher(endpoint: string, requestInit: RequestInit, ] `; -exports[`Solid-Query fetcher: graphql-request Should generate query correctly with client: content 1`] = ` +exports[`Solid-Query > fetcher: graphql-request > Should generate query correctly with client > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -638,7 +638,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TTestQuery, @@ -679,13 +679,13 @@ export const createInfiniteTestQuery = < }))() )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -706,7 +706,7 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: graphql-request Should generate query correctly with client: prepend 1`] = ` +exports[`Solid-Query > fetcher: graphql-request > Should generate query correctly with client > prepend 1`] = ` [ "import { GraphQLClient } from 'graphql-request';", "import { RequestInit } from 'graphql-request/dist/types.dom';", @@ -722,10 +722,10 @@ function fetcher(client: Graph ] `; -exports[`Solid-Query fetcher: graphql-request with clientImportPath Should generate query correctly with client: content 1`] = ` +exports[`Solid-Query > fetcher: graphql-request with clientImportPath > Should generate query correctly with client > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -739,7 +739,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TTestQuery, @@ -758,13 +758,13 @@ export const createTestQuery = < }) )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -784,7 +784,7 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: graphql-request with clientImportPath Should generate query correctly with client: prepend 1`] = ` +exports[`Solid-Query > fetcher: graphql-request with clientImportPath > Should generate query correctly with client > prepend 1`] = ` [ "import { client as graphqlClient } from 'client.ts';", "import { GraphQLClient } from 'graphql-request';", @@ -801,10 +801,10 @@ function fetcher(query: string ] `; -exports[`Solid-Query fetcher: hardcoded-fetch Should generate query correctly with fetch config and fetchParams object: content 1`] = ` +exports[`Solid-Query > fetcher: hardcoded-fetch > Should generate query correctly with fetch config > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -818,7 +818,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TTestQuery, @@ -836,13 +836,13 @@ export const createTestQuery = < }) )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -859,7 +859,7 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: hardcoded-fetch Should generate query correctly with fetch config and fetchParams object: prepend 1`] = ` +exports[`Solid-Query > fetcher: hardcoded-fetch > Should generate query correctly with fetch config > prepend 1`] = ` [ "import { createQuery, createMutation, CreateQueryOptions, CreateMutationOptions } from '@tanstack/solid-query';", " @@ -885,10 +885,10 @@ function fetcher(query: string, variables?: TVariables) { ] `; -exports[`Solid-Query fetcher: hardcoded-fetch Should generate query correctly with fetch config: content 1`] = ` +exports[`Solid-Query > fetcher: hardcoded-fetch > Should generate query correctly with fetch config and fetchParams object > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -902,7 +902,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TTestQuery, @@ -920,13 +920,13 @@ export const createTestQuery = < }) )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -943,7 +943,7 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: hardcoded-fetch Should generate query correctly with fetch config: prepend 1`] = ` +exports[`Solid-Query > fetcher: hardcoded-fetch > Should generate query correctly with fetch config and fetchParams object > prepend 1`] = ` [ "import { createQuery, createMutation, CreateQueryOptions, CreateMutationOptions } from '@tanstack/solid-query';", " @@ -969,10 +969,10 @@ function fetcher(query: string, variables?: TVariables) { ] `; -exports[`Solid-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint from env var: content 1`] = ` +exports[`Solid-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -986,7 +986,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TTestQuery, @@ -1004,13 +1004,32 @@ export const createTestQuery = < }) )}; -export const TestDocument = \` +export const createInfiniteTestQuery = < + TData = InfiniteData, + TError = unknown + >( + variables: TTestQueryVariables, + options: Omit, 'queryKey'> & { queryKey?: CreateInfiniteQueryOptions['queryKey'] } + ) => { + + return createInfiniteQuery( + (() => { + const { queryKey: optionsQueryKey, ...restOptions } = options; + return () => ({ + queryKey: optionsQueryKey ?? variables === undefined ? ['test.infinite'] : ['test.infinite', variables], + queryFn: (metaData) => fetcher(TestDocument, {...variables, ...(metaData.pageParam ?? {})})(), + ...restOptions + } + }))() + )}; + +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -1027,13 +1046,13 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint from env var: prepend 1`] = ` +exports[`Solid-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint > prepend 1`] = ` [ - "import { createQuery, createMutation, CreateQueryOptions, CreateMutationOptions } from '@tanstack/solid-query';", + "import { createQuery, createInfiniteQuery, createMutation, CreateQueryOptions, CreateInfiniteQueryOptions, InfiniteData, CreateMutationOptions } from '@tanstack/solid-query';", " function fetcher(query: string, variables?: TVariables) { return async (): Promise => { - const res = await fetch(process.env.ENDPOINT_URL as string, { + const res = await fetch("http://localhost:3000/graphql", { method: "POST", body: JSON.stringify({ query, variables }), }); @@ -1052,10 +1071,10 @@ function fetcher(query: string, variables?: TVariables) { ] `; -exports[`Solid-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint from just identifier: content 1`] = ` +exports[`Solid-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint from env var > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -1069,7 +1088,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TTestQuery, @@ -1087,13 +1106,13 @@ export const createTestQuery = < }) )}; -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -1110,13 +1129,13 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint from just identifier: prepend 1`] = ` +exports[`Solid-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint from env var > prepend 1`] = ` [ "import { createQuery, createMutation, CreateQueryOptions, CreateMutationOptions } from '@tanstack/solid-query';", " function fetcher(query: string, variables?: TVariables) { return async (): Promise => { - const res = await fetch(myEndpoint as string, { + const res = await fetch(process.env.ENDPOINT_URL as string, { method: "POST", body: JSON.stringify({ query, variables }), }); @@ -1135,10 +1154,10 @@ function fetcher(query: string, variables?: TVariables) { ] `; -exports[`Solid-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint: content 1`] = ` +exports[`Solid-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint from just identifier > content 1`] = ` " -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` query test { feed { id @@ -1152,7 +1171,7 @@ export const TestDocument = \` } } } - \`; + \`); export const createTestQuery = < TData = TTestQuery, @@ -1170,32 +1189,13 @@ export const createTestQuery = < }) )}; -export const createInfiniteTestQuery = < - TData = InfiniteData, - TError = unknown - >( - variables: TTestQueryVariables, - options: Omit, 'queryKey'> & { queryKey?: CreateInfiniteQueryOptions['queryKey'] } - ) => { - - return createInfiniteQuery( - (() => { - const { queryKey: optionsQueryKey, ...restOptions } = options; - return () => ({ - queryKey: optionsQueryKey ?? variables === undefined ? ['test.infinite'] : ['test.infinite', variables], - queryFn: (metaData) => fetcher(TestDocument, {...variables, ...(metaData.pageParam ?? {})})(), - ...restOptions - } - }))() - )}; - -export const TestDocument = \` +export const TestDocument = new TypedDocumentString(\` mutation test($name: String) { submitRepository(repoFullName: $name) { id } } - \`; + \`); export const createTestMutation = < TError = unknown, @@ -1212,13 +1212,13 @@ export const createTestMutation = < " `; -exports[`Solid-Query fetcher: hardcoded-fetch Should generate query correctly with hardcoded endpoint: prepend 1`] = ` +exports[`Solid-Query > fetcher: hardcoded-fetch > Should generate query correctly with hardcoded endpoint from just identifier > prepend 1`] = ` [ - "import { createQuery, createInfiniteQuery, createMutation, CreateQueryOptions, CreateInfiniteQueryOptions, InfiniteData, CreateMutationOptions } from '@tanstack/solid-query';", + "import { createQuery, createMutation, CreateQueryOptions, CreateMutationOptions } from '@tanstack/solid-query';", " function fetcher(query: string, variables?: TVariables) { return async (): Promise => { - const res = await fetch("http://localhost:3000/graphql", { + const res = await fetch(myEndpoint as string, { method: "POST", body: JSON.stringify({ query, variables }), }); @@ -1237,7 +1237,7 @@ function fetcher(query: string, variables?: TVariables) { ] `; -exports[`Solid-Query solidQueryImportFrom: custom-path Should import solid-query from custom path: prepend 1`] = ` +exports[`Solid-Query > solidQueryImportFrom: custom-path > Should import solid-query from custom path > prepend 1`] = ` [ "import { createQuery, createMutation, CreateQueryOptions, CreateMutationOptions } from 'custom-solid-query';", " diff --git a/packages/plugins/typescript/solid-query/tests/solid-query.spec.ts b/packages/plugins/typescript/solid-query/tests/solid-query.spec.ts index 07b0515d3a..582714eddb 100644 --- a/packages/plugins/typescript/solid-query/tests/solid-query.spec.ts +++ b/packages/plugins/typescript/solid-query/tests/solid-query.spec.ts @@ -1,4 +1,4 @@ -import { buildClientSchema, buildSchema, GraphQLSchema, parse } from 'graphql'; +import { buildClientSchema, GraphQLSchema, parse } from 'graphql'; import { mergeOutputs, Types } from '@graphql-codegen/plugin-helpers'; import { validateTs } from '@graphql-codegen/testing'; import { plugin as tsPlugin } from '@graphql-codegen/typescript'; @@ -22,57 +22,6 @@ const validateTypeScript = async ( }; describe('Solid-Query', () => { - it('Duplicated nested fragments are removed', async () => { - const schema = buildSchema(/* GraphQL */ ` - schema { - query: Query - } - - type Query { - user(id: ID!): User - } - - type User { - id: ID! - name: String! - } - `); - - const ast = parse(/* GraphQL */ ` - query foo { - user1: user(id: 1) { - ...userWithEmail - } - user2: user(id: 2) { - ...userWithName - } - } - - fragment userBase on User { - id - } - - fragment userWithEmail on User { - ...userBase - email - } - - fragment userWithName on User { - ...userBase - name - } - `); - - const res = (await plugin( - schema, - [{ location: '', document: ast }], - { dedupeFragments: true }, - { outputFile: '' }, - )) as Types.ComplexPluginOutput; - - expect((res.content.match(/\{UserBaseFragmentDoc\}/g) || []).length).toBe(1); - }); - const schema = buildClientSchema(require('../../../../../dev-test/githunt/schema.json')); const basicDoc = parse(/* GraphQL */ ` query test { diff --git a/packages/plugins/typescript/solid-query/vitest.config.ts b/packages/plugins/typescript/solid-query/vitest.config.ts new file mode 100644 index 0000000000..7b3cc7f588 --- /dev/null +++ b/packages/plugins/typescript/solid-query/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-solid-query', + include: ['**/*.spec.ts'], + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/solid-query/vitest.setup.ts b/packages/plugins/typescript/solid-query/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/solid-query/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/plugins/typescript/stencil-apollo/jest.config.js b/packages/plugins/typescript/stencil-apollo/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/stencil-apollo/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/stencil-apollo/package.json b/packages/plugins/typescript/stencil-apollo/package.json index ef7bef800c..a3dbf9608c 100644 --- a/packages/plugins/typescript/stencil-apollo/package.json +++ b/packages/plugins/typescript/stencil-apollo/package.json @@ -33,8 +33,7 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", @@ -42,14 +41,14 @@ "stencil-apollo": "^0.1.3" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/typescript/stencil-apollo/vitest.config.ts b/packages/plugins/typescript/stencil-apollo/vitest.config.ts new file mode 100644 index 0000000000..ace2aa5145 --- /dev/null +++ b/packages/plugins/typescript/stencil-apollo/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-stencil-apollo', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/type-graphql/jest.config.js b/packages/plugins/typescript/type-graphql/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/type-graphql/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/type-graphql/package.json b/packages/plugins/typescript/type-graphql/package.json index fc857df0a1..a5ee7d67d2 100644 --- a/packages/plugins/typescript/type-graphql/package.json +++ b/packages/plugins/typescript/type-graphql/package.json @@ -33,8 +33,7 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" @@ -47,7 +46,7 @@ "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/typescript/type-graphql/vitest.config.ts b/packages/plugins/typescript/type-graphql/vitest.config.ts new file mode 100644 index 0000000000..30c8738b1f --- /dev/null +++ b/packages/plugins/typescript/type-graphql/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-type-graphql', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/urql-graphcache/jest.config.js b/packages/plugins/typescript/urql-graphcache/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/urql-graphcache/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/urql-graphcache/package.json b/packages/plugins/typescript/urql-graphcache/package.json index 6e7dc4ad09..a36d5e68cc 100644 --- a/packages/plugins/typescript/urql-graphcache/package.json +++ b/packages/plugins/typescript/urql-graphcache/package.json @@ -33,8 +33,7 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "@urql/exchange-graphcache": "^5.2.0 || ^6.0.0 || ^7.0.0", @@ -42,14 +41,14 @@ "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/testing": "1.18.3" + "@graphql-codegen/testing": "4.0.2" }, "publishConfig": { "directory": "dist", diff --git a/packages/plugins/typescript/urql-graphcache/tests/__snapshots__/urql.spec.ts.snap b/packages/plugins/typescript/urql-graphcache/tests/__snapshots__/urql.spec.ts.snap index f02e4ec9e9..bd45fa1091 100644 --- a/packages/plugins/typescript/urql-graphcache/tests/__snapshots__/urql.spec.ts.snap +++ b/packages/plugins/typescript/urql-graphcache/tests/__snapshots__/urql.spec.ts.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`urql graphcache Should correctly name GraphCacheResolvers & GraphCacheOptimisticUpdaters with nonstandard mutationType names 1`] = ` +exports[`urql graphcache > Should correctly name GraphCacheResolvers & GraphCacheOptimisticUpdaters with nonstandard mutationType names 1`] = ` "import { cacheExchange } from '@urql/exchange-graphcache'; import { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache'; @@ -48,7 +48,7 @@ export type GraphCacheConfig = Parameters[0] & { };" `; -exports[`urql graphcache Should correctly output GraphCacheOptimisticUpdaters when there are no mutations 1`] = ` +exports[`urql graphcache > Should correctly output GraphCacheOptimisticUpdaters when there are no mutations 1`] = ` "import { cacheExchange } from '@urql/exchange-graphcache'; import { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache'; @@ -92,7 +92,7 @@ export type GraphCacheConfig = Parameters[0] & { };" `; -exports[`urql graphcache Should output the cache-generic correctly (with interfaces) 1`] = ` +exports[`urql graphcache > Should output the cache-generic correctly (with interfaces) 1`] = ` "import { cacheExchange } from '@urql/exchange-graphcache'; import { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache'; @@ -164,7 +164,7 @@ export type GraphCacheConfig = Parameters[0] & { };" `; -exports[`urql graphcache Should output the cache-generic correctly (with typesPrefix and typesSuffix) 1`] = ` +exports[`urql graphcache > Should output the cache-generic correctly (with typesPrefix and typesSuffix) 1`] = ` "import { cacheExchange } from '@urql/exchange-graphcache'; import { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache'; @@ -235,7 +235,7 @@ export type GraphCacheConfig = Parameters[0] & { };" `; -exports[`urql graphcache Should output the cache-generic correctly (with unions) 1`] = ` +exports[`urql graphcache > Should output the cache-generic correctly (with unions) 1`] = ` "import { cacheExchange } from '@urql/exchange-graphcache'; import { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache'; @@ -294,7 +294,7 @@ export type GraphCacheConfig = Parameters[0] & { };" `; -exports[`urql graphcache Should output the cache-generic correctly 1`] = ` +exports[`urql graphcache > Should output the cache-generic correctly 1`] = ` "import { cacheExchange } from '@urql/exchange-graphcache'; import { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache'; diff --git a/packages/plugins/typescript/urql-graphcache/vitest.config.ts b/packages/plugins/typescript/urql-graphcache/vitest.config.ts new file mode 100644 index 0000000000..2cc71acd4d --- /dev/null +++ b/packages/plugins/typescript/urql-graphcache/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-urql-graphcache', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/urql-svelte-operations-store/jest.config.js b/packages/plugins/typescript/urql-svelte-operations-store/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/urql-svelte-operations-store/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/urql-svelte-operations-store/package.json b/packages/plugins/typescript/urql-svelte-operations-store/package.json index 22300eb727..0846a0c00a 100644 --- a/packages/plugins/typescript/urql-svelte-operations-store/package.json +++ b/packages/plugins/typescript/urql-svelte-operations-store/package.json @@ -33,16 +33,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" diff --git a/packages/plugins/typescript/urql-svelte-operations-store/vitest.config.ts b/packages/plugins/typescript/urql-svelte-operations-store/vitest.config.ts new file mode 100644 index 0000000000..6eb122ec0f --- /dev/null +++ b/packages/plugins/typescript/urql-svelte-operations-store/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-urql-svelte-operations-store', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/plugins/typescript/urql/jest.config.js b/packages/plugins/typescript/urql/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/urql/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/urql/package.json b/packages/plugins/typescript/urql/package.json index b6c4875c87..fc545a4114 100644 --- a/packages/plugins/typescript/urql/package.json +++ b/packages/plugins/typescript/urql/package.json @@ -33,16 +33,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "tslib": "^2.8.1" }, diff --git a/packages/plugins/typescript/urql/tests/__snapshots__/urql.spec.ts.snap b/packages/plugins/typescript/urql/tests/__snapshots__/urql.spec.ts.snap index 1ea92d237d..cd67f5f929 100644 --- a/packages/plugins/typescript/urql/tests/__snapshots__/urql.spec.ts.snap +++ b/packages/plugins/typescript/urql/tests/__snapshots__/urql.spec.ts.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`urql Hooks Should generate subscription hooks with optional arguments 1`] = ` +exports[`urql > Hooks > Should generate subscription hooks with optional arguments 1`] = ` "import gql from 'graphql-tag'; import * as Urql from 'urql'; export type Omit = Pick>; @@ -18,7 +18,7 @@ export function useListenToCommentsSubscription Hooks > Should generate subscription hooks with required arguments 1`] = ` "import gql from 'graphql-tag'; import * as Urql from 'urql'; export type Omit = Pick>; @@ -36,7 +36,7 @@ export function useListenToCommentsSubscription Hooks > should allow importing operations and documents from another file 1`] = ` "import * as Operations from '@myproject/generated'; import * as Urql from 'urql'; export type Omit = Pick>; diff --git a/packages/plugins/typescript/urql/tests/urql.spec.ts b/packages/plugins/typescript/urql/tests/urql.spec.ts index ba00957d65..310cf8b1a1 100644 --- a/packages/plugins/typescript/urql/tests/urql.spec.ts +++ b/packages/plugins/typescript/urql/tests/urql.spec.ts @@ -8,9 +8,9 @@ import { DocumentMode } from '@graphql-codegen/visitor-plugin-common'; import { plugin } from '../src/index.js'; describe('urql', () => { - let spyConsoleError: jest.SpyInstance; + let spyConsoleError; beforeEach(() => { - spyConsoleError = jest.spyOn(console, 'warn'); + spyConsoleError = vi.spyOn(console, 'warn'); spyConsoleError.mockImplementation(); }); @@ -69,24 +69,6 @@ describe('urql', () => { await validateTypeScript(content, schema, docs, {}); }); - it('should import DocumentNode when using noGraphQLTag', async () => { - const docs = [{ location: '', document: basicDoc }]; - const content = (await plugin( - schema, - docs, - { - noGraphQLTag: true, - }, - { - outputFile: 'graphql.tsx', - }, - )) as Types.ComplexPluginOutput; - - expect(content.prepend).toContain(`import { DocumentNode } from 'graphql';`); - expect(content.prepend).not.toContain(`import gql from 'graphql-tag';`); - await validateTypeScript(content, schema, docs, {}); - }); - it(`should use gql import from gqlImport config option`, async () => { const docs = [{ location: '', document: basicDoc }]; const content = (await plugin( @@ -336,30 +318,6 @@ query MyFeed { await validateTypeScript(content, schema, docs, {}); }); - it('should generate Document variable with noGraphQlTag', async () => { - const docs = [{ location: '', document: basicDoc }]; - const content = (await plugin( - schema, - docs, - { - noGraphQLTag: true, - }, - { - outputFile: 'graphql.tsx', - }, - )) as Types.ComplexPluginOutput; - - expect(content.content).toBeSimilarStringTo( - `[{"kind":"Field","name":{"kind":"Name","value":"avatar_url"}}]}}]}}]}}]}}]} as unknown as DocumentNode;`, - ); - - // For issue #1599 - make sure there are not `loc` properties - expect(content.content).not.toContain(`loc":`); - expect(content.content).not.toContain(`loc':`); - - await validateTypeScript(content, schema, docs, {}); - }); - it('should not generate Component by default', async () => { const docs = [{ location: '', document: basicDoc }]; const content = (await plugin( @@ -746,7 +704,7 @@ export function useDefaultValueArgQuery(options?: Omit { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, @@ -766,7 +724,7 @@ export function useDefaultValueArgQuery(options?: Omit { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, @@ -787,7 +745,7 @@ export function useDefaultValueArgQuery(options?: Omit { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, @@ -807,7 +765,7 @@ export function useDefaultValueArgQuery(options?: Omit { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, diff --git a/packages/plugins/typescript/urql/vitest.config.ts b/packages/plugins/typescript/urql/vitest.config.ts new file mode 100644 index 0000000000..cc2a349e6d --- /dev/null +++ b/packages/plugins/typescript/urql/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-urql', + include: ['**/*.spec.ts'], + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/urql/vitest.setup.ts b/packages/plugins/typescript/urql/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/urql/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/plugins/typescript/vue-apollo-smart-ops/jest.config.js b/packages/plugins/typescript/vue-apollo-smart-ops/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/vue-apollo-smart-ops/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/vue-apollo-smart-ops/package.json b/packages/plugins/typescript/vue-apollo-smart-ops/package.json index c25cfd0f00..f07f793929 100644 --- a/packages/plugins/typescript/vue-apollo-smart-ops/package.json +++ b/packages/plugins/typescript/vue-apollo-smart-ops/package.json @@ -33,16 +33,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js --forceExit" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" diff --git a/packages/plugins/typescript/vue-apollo-smart-ops/tests/vue-apollo-smart-ops.spec.ts b/packages/plugins/typescript/vue-apollo-smart-ops/tests/vue-apollo-smart-ops.spec.ts index 1a485f24bc..3c7a8b768d 100644 --- a/packages/plugins/typescript/vue-apollo-smart-ops/tests/vue-apollo-smart-ops.spec.ts +++ b/packages/plugins/typescript/vue-apollo-smart-ops/tests/vue-apollo-smart-ops.spec.ts @@ -10,9 +10,9 @@ import { VueApolloSmartOpsRawPluginConfig } from '../src/config.js'; import { plugin } from '../src/index.js'; describe('Vue Apollo Operations', () => { - let spyConsoleError: jest.SpyInstance; + let spyConsoleError; beforeEach(() => { - spyConsoleError = jest.spyOn(console, 'warn'); + spyConsoleError = vi.spyOn(console, 'warn'); spyConsoleError.mockImplementation(); }); @@ -178,24 +178,6 @@ describe('Vue Apollo Operations', () => { await validateTypeScript(content, schema, docs, {}); }); - it('should import DocumentNode when using noGraphQLTag', async () => { - const docs = [{ location: '', document: basicDoc }]; - const content = (await plugin( - schema, - docs, - { - noGraphQLTag: true, - }, - { - outputFile: 'graphql.ts', - }, - )) as Types.ComplexPluginOutput; - - expect(content.prepend).toContain(`import { DocumentNode } from 'graphql';`); - expect(content.prepend).not.toContain(`import gql from 'graphql-tag';`); - await validateTypeScript(content, schema, docs, {}); - }); - it(`should use gql import from gqlImport config option`, async () => { const docs = [{ location: '', document: basicDoc }]; const content = (await plugin( diff --git a/packages/plugins/typescript/vue-apollo-smart-ops/vitest.config.ts b/packages/plugins/typescript/vue-apollo-smart-ops/vitest.config.ts new file mode 100644 index 0000000000..7b094dcda9 --- /dev/null +++ b/packages/plugins/typescript/vue-apollo-smart-ops/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-vue-apollo-smart-ops', + include: ['**/*.spec.ts'], + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/vue-apollo-smart-ops/vitest.setup.ts b/packages/plugins/typescript/vue-apollo-smart-ops/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/vue-apollo-smart-ops/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/plugins/typescript/vue-apollo/jest.config.js b/packages/plugins/typescript/vue-apollo/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/vue-apollo/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/vue-apollo/package.json b/packages/plugins/typescript/vue-apollo/package.json index 881a2cf10a..77964ca0c3 100644 --- a/packages/plugins/typescript/vue-apollo/package.json +++ b/packages/plugins/typescript/vue-apollo/package.json @@ -33,16 +33,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js --forceExit" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" diff --git a/packages/plugins/typescript/vue-apollo/tests/vue-apollo.spec.ts b/packages/plugins/typescript/vue-apollo/tests/vue-apollo.spec.ts index 274d8264d1..8b083e7d40 100644 --- a/packages/plugins/typescript/vue-apollo/tests/vue-apollo.spec.ts +++ b/packages/plugins/typescript/vue-apollo/tests/vue-apollo.spec.ts @@ -10,9 +10,9 @@ import { VueApolloRawPluginConfig } from '../src/config.js'; import { plugin } from '../src/index.js'; describe('Vue Apollo', () => { - let spyConsoleError: jest.SpyInstance; + let spyConsoleError; beforeEach(() => { - spyConsoleError = jest.spyOn(console, 'warn'); + spyConsoleError = vi.spyOn(console, 'warn'); spyConsoleError.mockImplementation(); }); @@ -135,24 +135,6 @@ describe('Vue Apollo', () => { await validateTypeScript(content, schema, docs, {}); }); - it('should import DocumentNode when using noGraphQLTag', async () => { - const docs = [{ location: '', document: basicDoc }]; - const content = (await plugin( - schema, - docs, - { - noGraphQLTag: true, - }, - { - outputFile: 'graphql.ts', - }, - )) as Types.ComplexPluginOutput; - - expect(content.prepend).toContain(`import { DocumentNode } from 'graphql';`); - expect(content.prepend).not.toContain(`import gql from 'graphql-tag';`); - await validateTypeScript(content, schema, docs, {}); - }); - it(`should use gql import from gqlImport config option`, async () => { const docs = [{ location: '', document: basicDoc }]; const content = (await plugin( diff --git a/packages/plugins/typescript/vue-apollo/vitest.config.ts b/packages/plugins/typescript/vue-apollo/vitest.config.ts new file mode 100644 index 0000000000..14711dc3b1 --- /dev/null +++ b/packages/plugins/typescript/vue-apollo/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-vue-apollo', + include: ['**/*.spec.ts'], + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/vue-apollo/vitest.setup.ts b/packages/plugins/typescript/vue-apollo/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/vue-apollo/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/plugins/typescript/vue-urql/jest.config.js b/packages/plugins/typescript/vue-urql/jest.config.js deleted file mode 100644 index 54863375ca..0000000000 --- a/packages/plugins/typescript/vue-urql/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../../jest.project')({ dirname: __dirname }); diff --git a/packages/plugins/typescript/vue-urql/package.json b/packages/plugins/typescript/vue-urql/package.json index ec21b843ca..0b811cd17c 100644 --- a/packages/plugins/typescript/vue-urql/package.json +++ b/packages/plugins/typescript/vue-urql/package.json @@ -33,16 +33,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "graphql-tag": "^2.0.0" }, "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "^2.8.1" diff --git a/packages/plugins/typescript/vue-urql/tests/__snapshots__/urql.spec.ts.snap b/packages/plugins/typescript/vue-urql/tests/__snapshots__/urql.spec.ts.snap index 35ad233017..12d7bbae60 100644 --- a/packages/plugins/typescript/vue-urql/tests/__snapshots__/urql.spec.ts.snap +++ b/packages/plugins/typescript/vue-urql/tests/__snapshots__/urql.spec.ts.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`urql Composition Should generate subscription hooks 1`] = ` +exports[`urql > Composition > Should generate subscription hooks 1`] = ` "import gql from 'graphql-tag'; import * as Urql from '@urql/vue'; export type Omit = Pick>; @@ -18,7 +18,7 @@ export function useListenToCommentsSubscription Composition > should allow importing operations and documents from another file 1`] = ` "import * as Operations from '@myproject/generated'; import * as Urql from '@urql/vue'; export type Omit = Pick>; diff --git a/packages/plugins/typescript/vue-urql/tests/urql.spec.ts b/packages/plugins/typescript/vue-urql/tests/urql.spec.ts index 35ba34d1aa..5b968c2c03 100644 --- a/packages/plugins/typescript/vue-urql/tests/urql.spec.ts +++ b/packages/plugins/typescript/vue-urql/tests/urql.spec.ts @@ -8,9 +8,9 @@ import { DocumentMode } from '@graphql-codegen/visitor-plugin-common'; import { plugin } from '../src/index.js'; describe('urql', () => { - let spyConsoleError: jest.SpyInstance; + let spyConsoleError; beforeEach(() => { - spyConsoleError = jest.spyOn(console, 'warn'); + spyConsoleError = vi.spyOn(console, 'warn'); spyConsoleError.mockImplementation(); }); @@ -51,7 +51,7 @@ describe('urql', () => { describe('Config', () => { it('should output warning if documentMode = external and importDocumentNodeExternallyFrom is not set', async () => { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, @@ -71,7 +71,7 @@ describe('urql', () => { }); it('output warning if importOperationTypesFrom is set to something other than "Operations"', async () => { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, @@ -92,7 +92,7 @@ describe('urql', () => { }); it('output warning if importOperationTypesFrom is set and documentMode is not "external"', async () => { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, @@ -112,7 +112,7 @@ describe('urql', () => { }); it('output warning if importOperationTypesFrom is set and importDocumentNodeExternallyFrom is not', async () => { - jest.spyOn(console, 'warn'); + vi.spyOn(console, 'warn'); const docs = [{ location: '', document: basicDoc }]; await plugin( schema, @@ -152,24 +152,6 @@ describe('urql', () => { await validateTypeScript(content, schema, docs, {}); }); - it('should import DocumentNode when using noGraphQLTag', async () => { - const docs = [{ location: '', document: basicDoc }]; - const content = (await plugin( - schema, - docs, - { - noGraphQLTag: true, - }, - { - outputFile: 'graphql.ts', - }, - )) as Types.ComplexPluginOutput; - - expect(content.prepend).toContain(`import { DocumentNode } from 'graphql';`); - expect(content.prepend).not.toContain(`import gql from 'graphql-tag';`); - await validateTypeScript(content, schema, docs, {}); - }); - it(`should use gql import from gqlImport config option`, async () => { const docs = [{ location: '', document: basicDoc }]; const content = (await plugin( @@ -419,30 +401,6 @@ query MyFeed { await validateTypeScript(content, schema, docs, {}); }); - it('should generate Document variable with noGraphQlTag', async () => { - const docs = [{ location: '', document: basicDoc }]; - const content = (await plugin( - schema, - docs, - { - noGraphQLTag: true, - }, - { - outputFile: 'graphql.ts', - }, - )) as Types.ComplexPluginOutput; - - expect(content.content).toBeSimilarStringTo( - `[{"kind":"Field","name":{"kind":"Name","value":"avatar_url"}}]}}]}}]}}]}}]} as unknown as DocumentNode;`, - ); - - // For issue #1599 - make sure there are not `loc` properties - expect(content.content).not.toContain(`loc":`); - expect(content.content).not.toContain(`loc':`); - - await validateTypeScript(content, schema, docs, {}); - }); - it('Should generate composition functions for query and mutation', async () => { const documents = parse(/* GraphQL */ ` query feed { diff --git a/packages/plugins/typescript/vue-urql/vitest.config.ts b/packages/plugins/typescript/vue-urql/vitest.config.ts new file mode 100644 index 0000000000..1efaad7b94 --- /dev/null +++ b/packages/plugins/typescript/vue-urql/vitest.config.ts @@ -0,0 +1,13 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'typescript-vue-urql', + include: ['**/*.spec.ts'], + setupFiles: './vitest.setup.ts', + }, + }), +); diff --git a/packages/plugins/typescript/vue-urql/vitest.setup.ts b/packages/plugins/typescript/vue-urql/vitest.setup.ts new file mode 100644 index 0000000000..6b5e8b1971 --- /dev/null +++ b/packages/plugins/typescript/vue-urql/vitest.setup.ts @@ -0,0 +1,5 @@ +import { createRequire } from 'node:module'; + +// Inject it into the global scope so dependencies can see it +// This is a hack since `@graphql-codegen/testing`'s `validateTs` was written for CJS +globalThis.require = createRequire(import.meta.url); diff --git a/packages/presets/import-types/jest.config.js b/packages/presets/import-types/jest.config.js deleted file mode 100644 index 7191c6796d..0000000000 --- a/packages/presets/import-types/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../jest.project')({ dirname: __dirname }); diff --git a/packages/presets/import-types/package.json b/packages/presets/import-types/package.json index be65eaee40..c789fbec67 100644 --- a/packages/presets/import-types/package.json +++ b/packages/presets/import-types/package.json @@ -33,16 +33,15 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@graphql-codegen/add": "^3.2.1", - "@graphql-codegen/plugin-helpers": "^3.0.0", - "@graphql-codegen/visitor-plugin-common": "2.13.8", + "@graphql-codegen/add": "^6.0.0", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", "tslib": "^2.8.1" }, "publishConfig": { diff --git a/packages/presets/import-types/vitest.config.ts b/packages/presets/import-types/vitest.config.ts new file mode 100644 index 0000000000..04d0341c22 --- /dev/null +++ b/packages/presets/import-types/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'import-types-preset', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/packages/presets/near-operation-file/jest.config.js b/packages/presets/near-operation-file/jest.config.js deleted file mode 100644 index 7191c6796d..0000000000 --- a/packages/presets/near-operation-file/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../jest.project')({ dirname: __dirname }); diff --git a/packages/presets/near-operation-file/package.json b/packages/presets/near-operation-file/package.json index acb8bc5563..3a75c5bff1 100644 --- a/packages/presets/near-operation-file/package.json +++ b/packages/presets/near-operation-file/package.json @@ -33,22 +33,21 @@ }, "typings": "dist/typings/index.d.ts", "scripts": { - "lint": "eslint **/*.ts", - "test": "jest --no-watchman --config ../../../jest.config.js" + "lint": "eslint **/*.ts" }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { "@graphql-codegen/add": "^6.0.0", - "@graphql-codegen/plugin-helpers": "^6.1.0", - "@graphql-codegen/visitor-plugin-common": "^6.2.1", - "@graphql-tools/utils": "^10.0.0", + "@graphql-codegen/plugin-helpers": "^6.1.1", + "@graphql-codegen/visitor-plugin-common": "^6.2.4", + "@graphql-tools/utils": "^11.0.0", "parse-filepath": "^1.0.2", "tslib": "^2.8.1" }, "devDependencies": { - "@graphql-codegen/cli": "2.16.5", + "@graphql-codegen/cli": "6.1.3", "@types/parse-filepath": "1.0.2" }, "publishConfig": { diff --git a/packages/presets/near-operation-file/tests/near-operation-file.spec.ts b/packages/presets/near-operation-file/tests/near-operation-file.spec.ts index eabd1bb5b5..2d03e2843f 100644 --- a/packages/presets/near-operation-file/tests/near-operation-file.spec.ts +++ b/packages/presets/near-operation-file/tests/near-operation-file.spec.ts @@ -383,7 +383,7 @@ describe('near-operation-file preset', () => { }); it('#6439 - generating code only for the last query inside a file', async () => { - const result = await executeCodegen({ + const { result } = await executeCodegen({ schema: [ /* GraphQL */ ` type Query { @@ -427,7 +427,7 @@ describe('near-operation-file preset', () => { }); it('#6520 - self-importing fragment', async () => { - const result = await executeCodegen({ + const { result } = await executeCodegen({ schema: [ /* GraphQL */ ` type Query { @@ -457,7 +457,7 @@ describe('near-operation-file preset', () => { }); it('#6546 - duplicate fragment imports', async () => { - const result = await executeCodegen({ + const { result } = await executeCodegen({ schema: [ /* GraphQL */ ` type Query { @@ -556,7 +556,7 @@ describe('near-operation-file preset', () => { }); it('#7798 - importing type definitions of dependent fragments when `inlineFragmentType` is `mask`', async () => { - const result = await executeCodegen({ + const { result } = await executeCodegen({ schema: [ /* GraphQL */ ` type User { @@ -593,7 +593,7 @@ describe('near-operation-file preset', () => { }); it('#406 - duplicate fragment imports', async () => { - const result = await executeCodegen({ + const { result } = await executeCodegen({ schema: [ /* GraphQL */ ` type Query { @@ -1192,7 +1192,7 @@ describe('near-operation-file preset', () => { }); it('Should allow external fragments to be imported from packages with function', async () => { - const spy = jest.fn(); + const spy = vi.fn(); await executePreset({ baseOutputDir: './src/', config: {}, @@ -1301,184 +1301,8 @@ describe('near-operation-file preset', () => { ); }); - it('Should import relevant fragments on dedupeFragments', async () => { - const testSchema = parse(/* GraphQL */ ` - schema { - query: Query - } - - type Query { - animals: [Animal!]! - } - - type Group { - id: ID! - name: String! - } - type Animal { - id: ID! - name: String! - group: Group - } - `); - - const operations = [ - { - location: '/operations/document.graphql', - document: parse(/* GraphQL */ ` - #import "./fragments/MyAnimalFragment.graphql" - - query Test { - animals { - ...MyAnimalFragment - } - } - `), - }, - { - location: '/operations/fragments/AnotherGroupFragment.graphql', - document: parse(/* GraphQL */ ` - fragment AnotherGroupFragment on Group { - id - } - `), - }, - { - location: '/operations/fragments/MyAnimalFragment.graphql', - document: parse(/* GraphQL */ ` - #import "./MyGroupFragment.graphql" - - fragment MyAnimalFragment on Animal { - name - group { - ...MyGroupFragment - } - } - `), - }, - { - location: '/operations/fragments/MyGroupFragment.graphql', - document: parse(/* GraphQL */ ` - #import "./AnotherGroupFragment.graphql" - - fragment MyGroupFragment on Group { - ...AnotherGroupFragment - name - } - `), - }, - ]; - - const result = await executePreset({ - baseOutputDir: './src/', - config: { - skipTypename: true, - dedupeFragments: true, - exportFragmentSpreadSubTypes: true, - }, - presetConfig: { - extension: '.ts', - baseTypesPath: '../types', - }, - schema: testSchema, - schemaAst: buildASTSchema(testSchema), - documents: operations, - plugins: [{ typescript: {} }, { 'typescript-operations': {} }, { 'typed-document-node': {} }], - pluginMap: { - typescript: {} as any, - 'typescript-operations': {} as any, - 'typed-document-node': {} as any, - }, - }); - - expect(getFragmentImportsFromResult(result)).toContain( - `import { MyGroupFragmentFragmentDoc, MyGroupFragmentFragment } from './fragments/MyGroupFragment';`, - ); - - expect(getFragmentImportsFromResult(result)).toContain( - `import { AnotherGroupFragmentFragmentDoc, AnotherGroupFragmentFragment } from './fragments/AnotherGroupFragment';`, - ); - }); - - it('Should import relevant nested fragments on dedupeFragments', async () => { - const schema = parse(/* GraphQL */ ` - type Address { - city: String - } - - type Author { - address: Address - } - - type Book { - author: Author - } - - type Query { - book: Book - } - `); - - const operations = [ - { - location: '/author.graphql', - document: parse(/* GraphQL */ ` - fragment Address on Address { - city - } - - fragment Author on Author { - address { - ...Address - } - } - `), - }, - { - location: '/book.graphql', - document: parse(/* GraphQL */ ` - fragment Book on Book { - author { - ...Author - } - } - - query Book { - book { - ...Book - } - } - `), - }, - ]; - - const result = await executePreset({ - baseOutputDir: './src/', - config: { - dedupeFragments: true, - }, - presetConfig: { - extension: '.ts', - baseTypesPath: './types', - }, - schema, - schemaAst: buildASTSchema(schema), - documents: operations, - plugins: [{ typescript: {} }, { 'typescript-operations': {} }, { 'typed-document-node': {} }], - pluginMap: { - typescript: {} as any, - 'typescript-operations': {} as any, - 'typed-document-node': {} as any, - }, - }); - - expect(getFragmentImportsFromResult(result, 1)).toContain( - `import { AuthorFragmentDoc, AuthorFragment, AddressFragmentDoc, AddressFragment } from './author';`, - ); - }); - it('#1112 - should import only interface types that are in use', async () => { - const result = await executeCodegen({ + const { result } = await executeCodegen({ schema: [ /* GraphQL */ ` type Query { @@ -1526,23 +1350,37 @@ describe('near-operation-file preset', () => { generatedDoc.filename.match(/issue-1112-operation/), ).content; - expect(interfaceContent).toContain( - "export type AnimalFragment_Cat = { __typename?: 'Cat', name: string };", - ); - expect(interfaceContent).toContain( - "export type AnimalFragment_Dog = { __typename?: 'Dog', name: string };", - ); - expect(interfaceContent).toContain( - 'export type AnimalFragment = AnimalFragment_Cat | AnimalFragment_Dog;', - ); + expect(interfaceContent).toMatchInlineSnapshot(` + "import * as Types from '../../../../../out1.ts/types'; - expect(operationContent).toContain( - "import { AnimalFragment_Cat } from './issue-1112-interface.generated'", - ); + export type AnimalFragment_Cat = { __typename?: 'Cat', name: string }; + + export type AnimalFragment_Dog = { __typename?: 'Dog', name: string }; + + export type AnimalFragment = + | AnimalFragment_Cat + | AnimalFragment_Dog + ; + " + `); + + expect(operationContent).toMatchInlineSnapshot(` + "import * as Types from '../../../../../out1.ts/types'; + + import { AnimalFragment_Cat } from './issue-1112-interface.generated'; + export type CatsQueryVariables = Types.Exact<{ [key: string]: never; }>; + + + export type CatsQuery = { __typename?: 'Query', cats: Array<( + { __typename?: 'Cat' } + & AnimalFragment_Cat + )> }; + " + `); }); it('generates correctly without baseTypesPath for standalone typescript-operations', async () => { - const result = await executeCodegen({ + const { result } = await executeCodegen({ schema: /* GraphQL */ ` type Query { user: User diff --git a/packages/presets/near-operation-file/vitest.config.ts b/packages/presets/near-operation-file/vitest.config.ts new file mode 100644 index 0000000000..a6716f6662 --- /dev/null +++ b/packages/presets/near-operation-file/vitest.config.ts @@ -0,0 +1,12 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import { sharedConfig } from '../../../vitest.config.js'; + +export default mergeConfig( + sharedConfig, + defineProject({ + test: { + name: 'near-operation-file-preset', + include: ['**/*.spec.ts'], + }, + }), +); diff --git a/scripts/match-graphql.js b/scripts/match-graphql.cjs old mode 100644 new mode 100755 similarity index 100% rename from scripts/match-graphql.js rename to scripts/match-graphql.cjs diff --git a/tsconfig.json b/tsconfig.json index 02fcf70cdf..8b4c141a48 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -89,5 +89,19 @@ } }, "include": ["packages"], - "exclude": ["**/tests/test-files", "**/tests/test-documents", "**/dist", "**/temp"] + "exclude": [ + "**/dist", + "**/temp", + "**/vitest.config.ts", + "**/vitest.setup.ts", + "**/*.spec.ts", + "**/tests/**/*.ts", + "**/tests/test-files", + "**/tests/test-documents" + ], + "references": [ + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/tsconfig.spec.json b/tsconfig.spec.json new file mode 100644 index 0000000000..0a0af7f320 --- /dev/null +++ b/tsconfig.spec.json @@ -0,0 +1,16 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": ".", + "composite": true, + "types": ["vitest/globals"] + }, + "exclude": [], + "include": [ + "**/vitest.config.ts", + "**/vitest.setup.ts", + "**/*.spec.ts", + "**/tests/**/*.ts", + "**/tests/test-files" + ] +} diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000000..9b3e07d3eb --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,20 @@ +import tsconfigPaths from 'vite-tsconfig-paths'; +import { defineConfig } from 'vitest/config'; + +export const sharedConfig = defineConfig({ + plugins: [tsconfigPaths() as any], + resolve: { + alias: { + graphql: 'graphql/index.js', + }, + }, + test: { + globals: true, + }, +}); + +export default defineConfig({ + test: { + projects: ['packages/**/vitest.config.ts'], + }, +}); diff --git a/yarn.lock b/yarn.lock index 354f6d678d..6580f9e567 100644 --- a/yarn.lock +++ b/yarn.lock @@ -53,14 +53,7 @@ immutable "^5.1.5" invariant "^2.2.4" -"@ardatan/sync-fetch@^0.0.1": - version "0.0.1" - resolved "https://registry.yarnpkg.com/@ardatan/sync-fetch/-/sync-fetch-0.0.1.tgz#3385d3feedceb60a896518a1db857ec1e945348f" - integrity sha512-xhlTqH0m31mnsG0tIP4ETgfSB6gXDaYYsUWTrlUV93fFQPI9dd8hE0Ot6MHLCtqgB32hwJAC3YZMWlXZw7AleA== - dependencies: - node-fetch "^2.6.1" - -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.27.1", "@babel/code-frame@^7.28.6", "@babel/code-frame@^7.29.0": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.28.6", "@babel/code-frame@^7.29.0": version "7.29.0" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.29.0.tgz#7cd7a59f15b3cc0dcd803038f7792712a7d0b15c" integrity sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw== @@ -74,7 +67,7 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.29.0.tgz#00d03e8c0ac24dd9be942c5370990cbe1f17d88d" integrity sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg== -"@babel/core@7.29.0", "@babel/core@^7.14.0", "@babel/core@^7.23.9", "@babel/core@^7.27.4": +"@babel/core@7.29.0", "@babel/core@^7.14.0", "@babel/core@^7.26.10": version "7.29.0" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.29.0.tgz#5286ad785df7f79d656e88ce86e650d16ca5f322" integrity sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA== @@ -95,7 +88,7 @@ json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.14.0", "@babel/generator@^7.18.13", "@babel/generator@^7.26.2", "@babel/generator@^7.27.5", "@babel/generator@^7.29.0": +"@babel/generator@^7.14.0", "@babel/generator@^7.18.13", "@babel/generator@^7.26.2", "@babel/generator@^7.29.0": version "7.29.1" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.29.1.tgz#d09876290111abbb00ef962a7b83a5307fba0d50" integrity sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw== @@ -194,7 +187,7 @@ dependencies: "@babel/types" "^7.27.1" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.20.2", "@babel/helper-plugin-utils@^7.27.1", "@babel/helper-plugin-utils@^7.28.6", "@babel/helper-plugin-utils@^7.8.0": +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.20.2", "@babel/helper-plugin-utils@^7.27.1", "@babel/helper-plugin-utils@^7.28.6", "@babel/helper-plugin-utils@^7.8.0": version "7.28.6" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz#6f13ea251b68c8532e985fd532f28741a8af9ac8" integrity sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug== @@ -257,7 +250,7 @@ "@babel/template" "^7.28.6" "@babel/types" "^7.28.6" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.0", "@babel/parser@^7.16.8", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.26.2", "@babel/parser@^7.28.6", "@babel/parser@^7.29.0": +"@babel/parser@^7.14.0", "@babel/parser@^7.26.10", "@babel/parser@^7.26.2", "@babel/parser@^7.28.6", "@babel/parser@^7.29.0": version "7.29.0" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.29.0.tgz#669ef345add7d057e92b7ed15f0bac07611831b6" integrity sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww== @@ -327,34 +320,13 @@ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz#7844f9289546efa9febac2de4cfe358a050bd703" integrity sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w== -"@babel/plugin-syntax-async-generators@^7.8.4": - version "7.8.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" - integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-bigint@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" - integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-class-properties@^7.0.0", "@babel/plugin-syntax-class-properties@^7.12.13": +"@babel/plugin-syntax-class-properties@^7.0.0": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== dependencies: "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-syntax-class-static-block@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406" - integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - "@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.27.1": version "7.28.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.28.6.tgz#447559a225e66c4cd477a3ffb1a74d8c1fe25a62" @@ -362,34 +334,20 @@ dependencies: "@babel/helper-plugin-utils" "^7.28.6" -"@babel/plugin-syntax-import-assertions@^7.20.0", "@babel/plugin-syntax-import-assertions@^7.28.6": +"@babel/plugin-syntax-import-assertions@^7.26.0", "@babel/plugin-syntax-import-assertions@^7.28.6": version "7.28.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.28.6.tgz#ae9bc1923a6ba527b70104dd2191b0cd872c8507" integrity sha512-pSJUpFHdx9z5nqTSirOCMtYVP2wFgoWhP0p3g8ONK/4IHhLIBd0B9NYqAvIUAhq+OkhO4VM1tENCt0cjlsNShw== dependencies: "@babel/helper-plugin-utils" "^7.28.6" -"@babel/plugin-syntax-import-attributes@^7.24.7", "@babel/plugin-syntax-import-attributes@^7.28.6": +"@babel/plugin-syntax-import-attributes@^7.28.6": version "7.28.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz#b71d5914665f60124e133696f17cd7669062c503" integrity sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw== dependencies: "@babel/helper-plugin-utils" "^7.28.6" -"@babel/plugin-syntax-import-meta@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" - integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-json-strings@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" - integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - "@babel/plugin-syntax-jsx@^7.0.0", "@babel/plugin-syntax-jsx@^7.27.1", "@babel/plugin-syntax-jsx@^7.28.6": version "7.28.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz#f8ca28bbd84883b5fea0e447c635b81ba73997ee" @@ -397,27 +355,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.28.6" -"@babel/plugin-syntax-logical-assignment-operators@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" - integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" - integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-numeric-separator@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" - integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - "@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" @@ -425,35 +362,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-optional-catch-binding@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" - integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-optional-chaining@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" - integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-private-property-in-object@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" - integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - -"@babel/plugin-syntax-top-level-await@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" - integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - -"@babel/plugin-syntax-typescript@^7.27.1", "@babel/plugin-syntax-typescript@^7.28.6": +"@babel/plugin-syntax-typescript@^7.28.6": version "7.28.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz#c7b2ddf1d0a811145b1de800d1abd146af92e3a2" integrity sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A== @@ -1003,7 +912,7 @@ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.28.6.tgz#d267a43cb1836dc4d182cce93ae75ba954ef6d2b" integrity sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA== -"@babel/template@^7.18.10", "@babel/template@^7.28.6": +"@babel/template@^7.18.10", "@babel/template@^7.20.7", "@babel/template@^7.28.6": version "7.28.6" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.28.6.tgz#0e7e56ecedb78aeef66ce7972b082fce76a23e57" integrity sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ== @@ -1012,7 +921,7 @@ "@babel/parser" "^7.28.6" "@babel/types" "^7.28.6" -"@babel/traverse@^7.14.0", "@babel/traverse@^7.16.8", "@babel/traverse@^7.25.9", "@babel/traverse@^7.27.1", "@babel/traverse@^7.28.5", "@babel/traverse@^7.28.6", "@babel/traverse@^7.29.0": +"@babel/traverse@^7.14.0", "@babel/traverse@^7.25.9", "@babel/traverse@^7.26.10", "@babel/traverse@^7.27.1", "@babel/traverse@^7.28.5", "@babel/traverse@^7.28.6", "@babel/traverse@^7.29.0": version "7.29.0" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.29.0.tgz#f323d05001440253eead3c9c858adbe00b90310a" integrity sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA== @@ -1025,7 +934,7 @@ "@babel/types" "^7.29.0" debug "^4.3.1" -"@babel/types@^7.0.0", "@babel/types@^7.16.8", "@babel/types@^7.18.13", "@babel/types@^7.20.7", "@babel/types@^7.26.0", "@babel/types@^7.27.1", "@babel/types@^7.27.3", "@babel/types@^7.28.2", "@babel/types@^7.28.5", "@babel/types@^7.28.6", "@babel/types@^7.29.0", "@babel/types@^7.4.4": +"@babel/types@^7.0.0", "@babel/types@^7.18.13", "@babel/types@^7.26.0", "@babel/types@^7.26.10", "@babel/types@^7.27.1", "@babel/types@^7.27.3", "@babel/types@^7.28.5", "@babel/types@^7.28.6", "@babel/types@^7.29.0", "@babel/types@^7.4.4": version "7.29.0" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.29.0.tgz#9f5b1e838c446e72cf3cd4b918152b8c605e37c7" integrity sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A== @@ -1033,11 +942,6 @@ "@babel/helper-string-parser" "^7.27.1" "@babel/helper-validator-identifier" "^7.28.5" -"@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== - "@changesets/apply-release-plan@^7.1.0": version "7.1.0" resolved "https://registry.yarnpkg.com/@changesets/apply-release-plan/-/apply-release-plan-7.1.0.tgz#2bed6c4b755b1836810b564c243ea9e8eb411c4b" @@ -1257,33 +1161,167 @@ dependencies: "@jridgewell/trace-mapping" "0.3.9" -"@emnapi/core@^1.4.3": - version "1.8.1" - resolved "https://registry.yarnpkg.com/@emnapi/core/-/core-1.8.1.tgz#fd9efe721a616288345ffee17a1f26ac5dd01349" - integrity sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg== +"@envelop/core@^5.4.0": + version "5.5.1" + resolved "https://registry.yarnpkg.com/@envelop/core/-/core-5.5.1.tgz#ca30c927b3a7d7f118d36111e17b355eedae9ff4" + integrity sha512-3DQg8sFskDo386TkL5j12jyRAdip/8yzK3x7YGbZBgobZ4aKXrvDU0GppU0SnmrpQnNaiTUsxBs9LKkwQ/eyvw== dependencies: - "@emnapi/wasi-threads" "1.1.0" - tslib "^2.4.0" + "@envelop/instrumentation" "^1.0.0" + "@envelop/types" "^5.2.1" + "@whatwg-node/promise-helpers" "^1.2.4" + tslib "^2.5.0" -"@emnapi/runtime@^1.4.3": - version "1.8.1" - resolved "https://registry.yarnpkg.com/@emnapi/runtime/-/runtime-1.8.1.tgz#550fa7e3c0d49c5fb175a116e8cd70614f9a22a5" - integrity sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg== +"@envelop/instrumentation@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@envelop/instrumentation/-/instrumentation-1.0.0.tgz#43268392e065d8ba975cacbdf4fc297dfe3e11e5" + integrity sha512-cxgkB66RQB95H3X27jlnxCRNTmPuSTgmBAq6/4n2Dtv4hsk4yz8FadA1ggmd0uZzvKqWD6CR+WFgTjhDqg7eyw== dependencies: - tslib "^2.4.0" + "@whatwg-node/promise-helpers" "^1.2.1" + tslib "^2.5.0" -"@emnapi/wasi-threads@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@emnapi/wasi-threads/-/wasi-threads-1.1.0.tgz#60b2102fddc9ccb78607e4a3cf8403ea69be41bf" - integrity sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ== +"@envelop/types@^5.2.1": + version "5.2.1" + resolved "https://registry.yarnpkg.com/@envelop/types/-/types-5.2.1.tgz#6bc9713f2aea56d7de3ea39e8bb70035c0475b36" + integrity sha512-CsFmA3u3c2QoLDTfEpGr4t25fjMU31nyvse7IzWTvb0ZycuPjMjb0fjlheh+PbhBYb9YLugnT2uY6Mwcg1o+Zg== dependencies: - tslib "^2.4.0" + "@whatwg-node/promise-helpers" "^1.0.0" + tslib "^2.5.0" "@epic-web/invariant@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@epic-web/invariant/-/invariant-1.0.0.tgz#1073e5dee6dd540410784990eb73e4acd25c9813" integrity sha512-lrTPqgvfFQtR/eY/qkIzp98OGdNJu0m5ji3q/nJI8v3SXkRKEnWiOxMmbvcSoAIzv/cGiuvRy57k4suKQSAdwA== +"@esbuild/aix-ppc64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz#815b39267f9bffd3407ea6c376ac32946e24f8d2" + integrity sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg== + +"@esbuild/android-arm64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz#19b882408829ad8e12b10aff2840711b2da361e8" + integrity sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg== + +"@esbuild/android-arm@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.27.3.tgz#90be58de27915efa27b767fcbdb37a4470627d7b" + integrity sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA== + +"@esbuild/android-x64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.27.3.tgz#d7dcc976f16e01a9aaa2f9b938fbec7389f895ac" + integrity sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ== + +"@esbuild/darwin-arm64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz#9f6cac72b3a8532298a6a4493ed639a8988e8abd" + integrity sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg== + +"@esbuild/darwin-x64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz#ac61d645faa37fd650340f1866b0812e1fb14d6a" + integrity sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg== + +"@esbuild/freebsd-arm64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz#b8625689d73cf1830fe58c39051acdc12474ea1b" + integrity sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w== + +"@esbuild/freebsd-x64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz#07be7dd3c9d42fe0eccd2ab9f9ded780bc53bead" + integrity sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA== + +"@esbuild/linux-arm64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz#bf31918fe5c798586460d2b3d6c46ed2c01ca0b6" + integrity sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg== + +"@esbuild/linux-arm@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz#28493ee46abec1dc3f500223cd9f8d2df08f9d11" + integrity sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw== + +"@esbuild/linux-ia32@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz#750752a8b30b43647402561eea764d0a41d0ee29" + integrity sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg== + +"@esbuild/linux-loong64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz#a5a92813a04e71198c50f05adfaf18fc1e95b9ed" + integrity sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA== + +"@esbuild/linux-mips64el@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz#deb45d7fd2d2161eadf1fbc593637ed766d50bb1" + integrity sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw== + +"@esbuild/linux-ppc64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz#6f39ae0b8c4d3d2d61a65b26df79f6e12a1c3d78" + integrity sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA== + +"@esbuild/linux-riscv64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz#4c5c19c3916612ec8e3915187030b9df0b955c1d" + integrity sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ== + +"@esbuild/linux-s390x@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz#9ed17b3198fa08ad5ccaa9e74f6c0aff7ad0156d" + integrity sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw== + +"@esbuild/linux-x64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz#12383dcbf71b7cf6513e58b4b08d95a710bf52a5" + integrity sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA== + +"@esbuild/netbsd-arm64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz#dd0cb2fa543205fcd931df44f4786bfcce6df7d7" + integrity sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA== + +"@esbuild/netbsd-x64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz#028ad1807a8e03e155153b2d025b506c3787354b" + integrity sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA== + +"@esbuild/openbsd-arm64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz#e3c16ff3490c9b59b969fffca87f350ffc0e2af5" + integrity sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw== + +"@esbuild/openbsd-x64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz#c5a4693fcb03d1cbecbf8b422422468dfc0d2a8b" + integrity sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ== + +"@esbuild/openharmony-arm64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz#082082444f12db564a0775a41e1991c0e125055e" + integrity sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g== + +"@esbuild/sunos-x64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz#5ab036c53f929e8405c4e96e865a424160a1b537" + integrity sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA== + +"@esbuild/win32-arm64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz#38de700ef4b960a0045370c171794526e589862e" + integrity sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA== + +"@esbuild/win32-ia32@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz#451b93dc03ec5d4f38619e6cd64d9f9eff06f55c" + integrity sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q== + +"@esbuild/win32-x64@0.27.3": + version "0.27.3" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz#0eaf705c941a218a43dba8e09f1df1d6cd2f1f17" + integrity sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA== + "@eslint-community/eslint-utils@^4.8.0", "@eslint-community/eslint-utils@^4.9.1": version "4.9.1" resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz#4e90af67bc51ddee6cdef5284edf572ec376b595" @@ -1364,14 +1402,6 @@ dependencies: fast-deep-equal "^3.1.3" -"@graphql-codegen/add@^3.2.1": - version "3.2.3" - resolved "https://registry.yarnpkg.com/@graphql-codegen/add/-/add-3.2.3.tgz#f1ecee085987e7c21841edc4b1fd48877c663e1a" - integrity sha512-sQOnWpMko4JLeykwyjFTxnhqjd/3NOG2OyMuvK76Wnnwh8DRrNf2VEs2kmSvLl7MndMlOj7Kh5U154dVcvhmKQ== - dependencies: - "@graphql-codegen/plugin-helpers" "^3.1.1" - tslib "~2.4.0" - "@graphql-codegen/add@^6.0.0": version "6.0.0" resolved "https://registry.yarnpkg.com/@graphql-codegen/add/-/add-6.0.0.tgz#d195051d7c4bd6d3955a92361cc9eec7784bb541" @@ -1380,70 +1410,87 @@ "@graphql-codegen/plugin-helpers" "^6.0.0" tslib "~2.6.0" -"@graphql-codegen/cli@2.16.5": - version "2.16.5" - resolved "https://registry.yarnpkg.com/@graphql-codegen/cli/-/cli-2.16.5.tgz#b3b5eeec357af01c1cb72f6a4ea96e52bd49e662" - integrity sha512-XYPIp+q7fB0xAGSAoRykiTe4oY80VU+z+dw5nuv4mLY0+pv7+pa2C6Nwhdw7a65lXOhFviBApWCCZeqd54SMnA== +"@graphql-codegen/cli@6.1.3": + version "6.1.3" + resolved "https://registry.yarnpkg.com/@graphql-codegen/cli/-/cli-6.1.3.tgz#673256f490849c332436aeafdefcdeb10fd3ba88" + integrity sha512-fkPJiOEjHndK5hWH1O1vq8+Y0c2zYYzS79Mz/wVpcv9koz5hnkB0UsdXVtK2UYorh2gLvQfNr7NByX1TUmPibg== dependencies: "@babel/generator" "^7.18.13" "@babel/template" "^7.18.10" "@babel/types" "^7.18.13" - "@graphql-codegen/core" "^2.6.8" - "@graphql-codegen/plugin-helpers" "^3.1.2" - "@graphql-tools/apollo-engine-loader" "^7.3.6" - "@graphql-tools/code-file-loader" "^7.3.13" - "@graphql-tools/git-loader" "^7.2.13" - "@graphql-tools/github-loader" "^7.3.20" - "@graphql-tools/graphql-file-loader" "^7.5.0" - "@graphql-tools/json-file-loader" "^7.4.1" - "@graphql-tools/load" "^7.8.0" - "@graphql-tools/prisma-loader" "^7.2.49" - "@graphql-tools/url-loader" "^7.13.2" - "@graphql-tools/utils" "^9.0.0" - "@whatwg-node/fetch" "^0.6.0" + "@graphql-codegen/client-preset" "^5.2.4" + "@graphql-codegen/core" "^5.0.1" + "@graphql-codegen/plugin-helpers" "^6.1.1" + "@graphql-tools/apollo-engine-loader" "^8.0.28" + "@graphql-tools/code-file-loader" "^8.1.28" + "@graphql-tools/git-loader" "^8.0.32" + "@graphql-tools/github-loader" "^9.0.6" + "@graphql-tools/graphql-file-loader" "^8.1.11" + "@graphql-tools/json-file-loader" "^8.0.26" + "@graphql-tools/load" "^8.1.8" + "@graphql-tools/url-loader" "^9.0.6" + "@graphql-tools/utils" "^11.0.0" + "@inquirer/prompts" "^7.8.2" + "@whatwg-node/fetch" "^0.10.0" chalk "^4.1.0" - chokidar "^3.5.2" - cosmiconfig "^7.0.0" - cosmiconfig-typescript-loader "^4.3.0" - debounce "^1.2.0" + cosmiconfig "^9.0.0" + debounce "^2.0.0" detect-indent "^6.0.0" - graphql-config "^4.4.0" - inquirer "^8.0.0" + graphql-config "^5.1.6" is-glob "^4.0.1" + jiti "^2.3.0" json-to-pretty-yaml "^1.2.2" - listr2 "^4.0.5" + listr2 "^9.0.0" log-symbols "^4.0.0" + micromatch "^4.0.5" shell-quote "^1.7.3" string-env-interpolation "^1.0.1" ts-log "^2.2.3" - ts-node "^10.9.1" tslib "^2.4.0" - yaml "^1.10.0" + yaml "^2.3.1" yargs "^17.0.0" -"@graphql-codegen/core@2.6.8", "@graphql-codegen/core@^2.6.8": - version "2.6.8" - resolved "https://registry.yarnpkg.com/@graphql-codegen/core/-/core-2.6.8.tgz#00c4011e3619ddbc6af5e41b2f254d6f6759556e" - integrity sha512-JKllNIipPrheRgl+/Hm/xuWMw9++xNQ12XJR/OHHgFopOg4zmN3TdlRSyYcv/K90hCFkkIwhlHFUQTfKrm8rxQ== +"@graphql-codegen/client-preset@^5.2.4": + version "5.2.4" + resolved "https://registry.yarnpkg.com/@graphql-codegen/client-preset/-/client-preset-5.2.4.tgz#f5096cfd19d8726a6282ec07640c7e5411196755" + integrity sha512-k4f9CoepkVznXRReCHBVnG/FeQVQgIOhgtkaJ6I9FcQRzUkrm9ASmQjOdNdMlZt0DHTU4nbVxIBGZW7gk1RavA== dependencies: - "@graphql-codegen/plugin-helpers" "^3.1.1" - "@graphql-tools/schema" "^9.0.0" - "@graphql-tools/utils" "^9.1.1" - tslib "~2.4.0" + "@babel/helper-plugin-utils" "^7.20.2" + "@babel/template" "^7.20.7" + "@graphql-codegen/add" "^6.0.0" + "@graphql-codegen/gql-tag-operations" "5.1.4" + "@graphql-codegen/plugin-helpers" "^6.1.1" + "@graphql-codegen/typed-document-node" "^6.1.7" + "@graphql-codegen/typescript" "^5.0.9" + "@graphql-codegen/typescript-operations" "^5.0.9" + "@graphql-codegen/visitor-plugin-common" "^6.2.4" + "@graphql-tools/documents" "^1.0.0" + "@graphql-tools/utils" "^11.0.0" + "@graphql-typed-document-node/core" "3.2.0" + tslib "~2.6.0" -"@graphql-codegen/plugin-helpers@5.1.1", "@graphql-codegen/plugin-helpers@^5.0.3", "@graphql-codegen/plugin-helpers@^5.0.4", "@graphql-codegen/plugin-helpers@^5.1.0": - version "5.1.1" - resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-5.1.1.tgz#b7c744c8826367c3002c346112de3cd1b0f99b16" - integrity sha512-28GHODK2HY1NhdyRcPP3sCz0Kqxyfiz7boIZ8qIxFYmpLYnlDgiYok5fhFLVSZihyOpCs4Fa37gVHf/Q4I2FEg== +"@graphql-codegen/core@5.0.1", "@graphql-codegen/core@^5.0.1": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@graphql-codegen/core/-/core-5.0.1.tgz#0b34d222e30a2dd97b42c2ffbec4087800a883dc" + integrity sha512-eQD7aXpKkKvaydMv5Bu0FnKCPnNMAhZ3vZW+K4Rl9IAC2w5PDv9lJhs3YTWM9W58zNOZpGQGT2F0ekS3QNIiKw== dependencies: - "@graphql-tools/utils" "^10.0.0" - change-case-all "1.0.15" - common-tags "1.8.2" - import-from "4.0.0" - lodash "~4.17.0" + "@graphql-codegen/plugin-helpers" "^6.1.1" + "@graphql-tools/schema" "^10.0.0" + "@graphql-tools/utils" "^11.0.0" tslib "~2.6.0" -"@graphql-codegen/plugin-helpers@^3.0.0", "@graphql-codegen/plugin-helpers@^3.1.1", "@graphql-codegen/plugin-helpers@^3.1.2": +"@graphql-codegen/gql-tag-operations@5.1.4": + version "5.1.4" + resolved "https://registry.yarnpkg.com/@graphql-codegen/gql-tag-operations/-/gql-tag-operations-5.1.4.tgz#4714f2475868b43015420aba05a9dc04868a7d5e" + integrity sha512-tDj/0a1U7rDH3PQgLeA+PlgBNb593MIJ43oAOKMRgJPwIQ9T7p2oqBRLxwfFZFTDLwnwsGZ7xIKqIcGgyAIj5Q== + dependencies: + "@graphql-codegen/plugin-helpers" "^6.1.1" + "@graphql-codegen/visitor-plugin-common" "^6.2.4" + "@graphql-tools/utils" "^11.0.0" + auto-bind "~4.0.0" + tslib "~2.6.0" + +"@graphql-codegen/plugin-helpers@^3.0.0", "@graphql-codegen/plugin-helpers@^3.1.2": version "3.1.2" resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz#69a2e91178f478ea6849846ade0a59a844d34389" integrity sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg== @@ -1455,19 +1502,7 @@ lodash "~4.17.0" tslib "~2.4.0" -"@graphql-codegen/plugin-helpers@^4.0.0", "@graphql-codegen/plugin-helpers@^4.1.0", "@graphql-codegen/plugin-helpers@^4.2.0": - version "4.2.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-4.2.0.tgz#8324914d0f99162a223cfa01796cdd6be972d2ae" - integrity sha512-THFTCfg+46PXlXobYJ/OoCX6pzjI+9woQqCjdyKtgoI0tn3Xq2HUUCiidndxUpEYVrXb5pRiRXb7b/ZbMQqD0A== - dependencies: - "@graphql-tools/utils" "^9.0.0" - change-case-all "1.0.15" - common-tags "1.8.2" - import-from "4.0.0" - lodash "~4.17.0" - tslib "~2.5.0" - -"@graphql-codegen/plugin-helpers@^6.0.0", "@graphql-codegen/plugin-helpers@^6.1.0", "@graphql-codegen/plugin-helpers@^6.1.1": +"@graphql-codegen/plugin-helpers@^6.0.0", "@graphql-codegen/plugin-helpers@^6.1.1": version "6.1.1" resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-6.1.1.tgz#06a8516d9da2c6d30e6b060652713b9139579032" integrity sha512-ipWZHA4ZG8PUdZWx87rvL6LCoIZVhrovVl+448FuxnKIGdzyLmL3+FJc/x96jsQZqKKrUcId9oEgssyh6p15eg== @@ -1479,7 +1514,7 @@ lodash "~4.17.0" tslib "~2.6.0" -"@graphql-codegen/schema-ast@^2.5.0", "@graphql-codegen/schema-ast@^2.6.1": +"@graphql-codegen/schema-ast@^2.6.1": version "2.6.1" resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-2.6.1.tgz#8ba1b38827c034b51ecd3ce88622c2ae6cd3fe1a" integrity sha512-5TNW3b1IHJjCh07D2yQNGDQzUpUl2AD+GVe1Dzjqyx/d2Fn0TPMxLsHsKPS4Plg4saO8FK/QO70wLsP7fdbQ1w== @@ -1488,44 +1523,46 @@ "@graphql-tools/utils" "^9.0.0" tslib "~2.4.0" -"@graphql-codegen/schema-ast@^3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-3.0.1.tgz#37b458bb57b95715a9eb4259341c856dae2a461d" - integrity sha512-rTKTi4XiW4QFZnrEqetpiYEWVsOFNoiR/v3rY9mFSttXFbIwNXPme32EspTiGWmEEdHY8UuTDtZN3vEcs/31zw== - dependencies: - "@graphql-codegen/plugin-helpers" "^4.1.0" - "@graphql-tools/utils" "^9.0.0" - tslib "~2.5.0" - -"@graphql-codegen/schema-ast@^4.0.2": - version "4.1.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-4.1.0.tgz#a1e71f99346495b9272161a9ed07756e82648726" - integrity sha512-kZVn0z+th9SvqxfKYgztA6PM7mhnSZaj4fiuBWvMTqA+QqQ9BBed6Pz41KuD/jr0gJtnlr2A4++/0VlpVbCTmQ== +"@graphql-codegen/schema-ast@^5.0.1": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-5.0.1.tgz#01034d85460179f552ac495853539eb318d93732" + integrity sha512-svLffXddnXxq1qFXQqqh+zYrxdiMnIKm+CXCUv0MYhLh0R4L5vpnaTzIUCk3icHNNXhKRm2uBD70+K8VY0xiCg== dependencies: - "@graphql-codegen/plugin-helpers" "^5.0.3" - "@graphql-tools/utils" "^10.0.0" + "@graphql-codegen/plugin-helpers" "^6.1.1" + "@graphql-tools/utils" "^11.0.0" tslib "~2.6.0" -"@graphql-codegen/testing@1.18.3": - version "1.18.3" - resolved "https://registry.yarnpkg.com/@graphql-codegen/testing/-/testing-1.18.3.tgz#35ffe200c13c29aa93f41cb62b043552b860c72a" - integrity sha512-ULw2TiADFokbM4ccecLtAf/tBoYOUKfoNPHelE7IE3Ci8gH9GGLLJzkiylz6u06WxHFl6h5njvo8c4gT1XcgTQ== +"@graphql-codegen/testing@4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/testing/-/testing-4.0.2.tgz#d62a5e00391d081bbd4b4726f32cda80d084a99c" + integrity sha512-JOi9WlV4b4mek4HYLPOnPVUYJ7Vy1Z34n2AHYMkzQyvVzYITIrRCMOfOAq860IepjX9lhwxhGncoVd5oe+/e8A== dependencies: - "@graphql-codegen/plugin-helpers" "^3.1.1" + "@graphql-codegen/plugin-helpers" "^6.0.0" common-tags "^1.8.0" graphql-helix "1.13.0" lz-string "^1.4.4" - nock "13.3.0" - tslib "~2.4.0" + nock "^14.0.0" + tslib "~2.6.0" + +"@graphql-codegen/typed-document-node@^6.1.7": + version "6.1.7" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typed-document-node/-/typed-document-node-6.1.7.tgz#cdb3bbc6a5c430d16fd23be60ce2734cfb73a901" + integrity sha512-VLL9hB+YPigc/W2QYCkSNMZrkKv42nTchb9mJ0h5VY98YmW/zWb6NeYM80iHSpk8ZvHsuUT5geA53/s1phO2NQ== + dependencies: + "@graphql-codegen/plugin-helpers" "^6.1.1" + "@graphql-codegen/visitor-plugin-common" "^6.2.4" + auto-bind "~4.0.0" + change-case-all "1.0.15" + tslib "~2.6.0" -"@graphql-codegen/typescript-operations@4.6.1": - version "4.6.1" - resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-4.6.1.tgz#763eda28c77fddee2b9ae9bd7baad050cffff0a5" - integrity sha512-k92laxhih7s0WZ8j5WMIbgKwhe64C0As6x+PdcvgZFMudDJ7rPJ/hFqJ9DCRxNjXoHmSjnr6VUuQZq4lT1RzCA== +"@graphql-codegen/typescript-operations@5.0.9", "@graphql-codegen/typescript-operations@^5.0.9": + version "5.0.9" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-5.0.9.tgz#95388b2c80434118d5dd102ef5eff7f0de4ca29c" + integrity sha512-jJFdJKMS5Cqisb5QMi7xXHPsJH9yHBMYOxBc8laFkFjHk/AOqJK90qCKbO9lwwTMPZUDe6N/HslmA0ax4J0zsg== dependencies: - "@graphql-codegen/plugin-helpers" "^5.1.0" - "@graphql-codegen/typescript" "^4.1.6" - "@graphql-codegen/visitor-plugin-common" "5.8.0" + "@graphql-codegen/plugin-helpers" "^6.1.1" + "@graphql-codegen/typescript" "^5.0.9" + "@graphql-codegen/visitor-plugin-common" "^6.2.4" auto-bind "~4.0.0" tslib "~2.6.0" @@ -1540,29 +1577,18 @@ auto-bind "~4.0.0" tslib "~2.4.0" -"@graphql-codegen/typescript@^3.0.0": - version "3.0.4" - resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-3.0.4.tgz#e12dc106a2722ebc7d18556980ccf47fa9d0805f" - integrity sha512-x4O47447DZrWNtE/l5CU9QzzW4m1RbmCEdijlA3s2flG/y1Ckqdemob4CWfilSm5/tZ3w1junVDY616RDTSvZw== - dependencies: - "@graphql-codegen/plugin-helpers" "^4.2.0" - "@graphql-codegen/schema-ast" "^3.0.1" - "@graphql-codegen/visitor-plugin-common" "3.1.1" - auto-bind "~4.0.0" - tslib "~2.5.0" - -"@graphql-codegen/typescript@^4.1.6": - version "4.1.6" - resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-4.1.6.tgz#f3481ccc1656e96892d629671fb2cff5dabc458b" - integrity sha512-vpw3sfwf9A7S+kIUjyFxuvrywGxd4lmwmyYnnDVjVE4kSQ6Td3DpqaPTy8aNQ6O96vFoi/bxbZS2BW49PwSUUA== +"@graphql-codegen/typescript@^5.0.9": + version "5.0.9" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-5.0.9.tgz#967c3fdd11c79f7adbd612c994367f3b38272435" + integrity sha512-YlIZ4nqdFdzr5vxuNtQtZnnMYuZ5cLYB2HaGhGI2zvqHxCmkBjIRpu/5sfccawKy23wetV+aoWvoNqxGKIryig== dependencies: - "@graphql-codegen/plugin-helpers" "^5.1.0" - "@graphql-codegen/schema-ast" "^4.0.2" - "@graphql-codegen/visitor-plugin-common" "5.8.0" + "@graphql-codegen/plugin-helpers" "^6.1.1" + "@graphql-codegen/schema-ast" "^5.0.1" + "@graphql-codegen/visitor-plugin-common" "^6.2.4" auto-bind "~4.0.0" tslib "~2.6.0" -"@graphql-codegen/visitor-plugin-common@2.13.8", "@graphql-codegen/visitor-plugin-common@^2.12.1": +"@graphql-codegen/visitor-plugin-common@2.13.8": version "2.13.8" resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.8.tgz#09bc6317b227e5a278f394f4cef0d6c2d1910597" integrity sha512-IQWu99YV4wt8hGxIbBQPtqRuaWZhkQRG2IZKbMoSvh0vGeWb3dB0n0hSgKaOOxDY+tljtOf9MTcUYvJslQucMQ== @@ -1578,39 +1604,7 @@ parse-filepath "^1.0.2" tslib "~2.4.0" -"@graphql-codegen/visitor-plugin-common@3.1.1": - version "3.1.1" - resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-3.1.1.tgz#50c2aa3c537a805ce68d2f115d0a9811b151428c" - integrity sha512-uAfp+zu/009R3HUAuTK2AamR1bxIltM6rrYYI6EXSmkM3rFtFsLTuJhjUDj98HcUCszJZrADppz8KKLGRUVlNg== - dependencies: - "@graphql-codegen/plugin-helpers" "^4.2.0" - "@graphql-tools/optimize" "^1.3.0" - "@graphql-tools/relay-operation-optimizer" "^6.5.0" - "@graphql-tools/utils" "^9.0.0" - auto-bind "~4.0.0" - change-case-all "1.0.15" - dependency-graph "^0.11.0" - graphql-tag "^2.11.0" - parse-filepath "^1.0.2" - tslib "~2.5.0" - -"@graphql-codegen/visitor-plugin-common@5.8.0", "@graphql-codegen/visitor-plugin-common@^5.3.1": - version "5.8.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-5.8.0.tgz#1b796453eb96d8e6ad5d4d3acff304e4672781a0" - integrity sha512-lC1E1Kmuzi3WZUlYlqB4fP6+CvbKH9J+haU1iWmgsBx5/sO2ROeXJG4Dmt8gP03bI2BwjiwV5WxCEMlyeuzLnA== - dependencies: - "@graphql-codegen/plugin-helpers" "^5.1.0" - "@graphql-tools/optimize" "^2.0.0" - "@graphql-tools/relay-operation-optimizer" "^7.0.0" - "@graphql-tools/utils" "^10.0.0" - auto-bind "~4.0.0" - change-case-all "1.0.15" - dependency-graph "^0.11.0" - graphql-tag "^2.11.0" - parse-filepath "^1.0.2" - tslib "~2.6.0" - -"@graphql-codegen/visitor-plugin-common@^6.2.1": +"@graphql-codegen/visitor-plugin-common@^6.2.4": version "6.2.4" resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-6.2.4.tgz#73906f34e8baaaadf5bfe5fefece4d86f835aebc" integrity sha512-iwiVCc7Mv8/XAa3K35AdFQ9chJSDv/gYEnBeQFF/Sq/W8EyJoHypOGOTTLk7OSrWO4xea65ggv0e7fGt7rPJjQ== @@ -1626,185 +1620,202 @@ parse-filepath "^1.0.2" tslib "~2.6.0" -"@graphql-tools/apollo-engine-loader@^7.3.6": - version "7.3.26" - resolved "https://registry.yarnpkg.com/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-7.3.26.tgz#91e54460d5579933e42a2010b8688c3459c245d8" - integrity sha512-h1vfhdJFjnCYn9b5EY1Z91JTF0KB3hHVJNQIsiUV2mpQXZdeOXQoaWeYEKaiI5R6kwBw5PP9B0fv3jfUIG8LyQ== +"@graphql-hive/signal@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@graphql-hive/signal/-/signal-2.0.0.tgz#205805328b118e1ae556417ed364257234800464" + integrity sha512-Pz8wB3K0iU6ae9S1fWfsmJX24CcGeTo6hE7T44ucmV/ALKRj+bxClmqrYcDT7v3f0d12Rh4FAXBb6gon+WkDpQ== + +"@graphql-tools/apollo-engine-loader@^8.0.28": + version "8.0.28" + resolved "https://registry.yarnpkg.com/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-8.0.28.tgz#b69334ea21540faee316f0026a53b3889dd90a01" + integrity sha512-MzgDrUuoxp6dZeo54zLBL3cEJKJtM3N/2RqK0rbPxPq5X2z6TUA7EGg8vIFTUkt5xelAsUrm8/4ai41ZDdxOng== dependencies: - "@ardatan/sync-fetch" "^0.0.1" - "@graphql-tools/utils" "^9.2.1" - "@whatwg-node/fetch" "^0.8.0" + "@graphql-tools/utils" "^11.0.0" + "@whatwg-node/fetch" "^0.10.13" + sync-fetch "0.6.0" tslib "^2.4.0" -"@graphql-tools/batch-execute@^8.5.22": - version "8.5.22" - resolved "https://registry.yarnpkg.com/@graphql-tools/batch-execute/-/batch-execute-8.5.22.tgz#a742aa9d138fe794e786d8fb6429665dc7df5455" - integrity sha512-hcV1JaY6NJQFQEwCKrYhpfLK8frSXDbtNMoTur98u10Cmecy1zrqNKSqhEyGetpgHxaJRqszGzKeI3RuroDN6A== +"@graphql-tools/batch-execute@^10.0.5": + version "10.0.5" + resolved "https://registry.yarnpkg.com/@graphql-tools/batch-execute/-/batch-execute-10.0.5.tgz#0ad010fb6a415ebf1c4386f041e7b46299c5d416" + integrity sha512-dL13tXkfGvAzLq2XfzTKAy9logIcltKYRuPketxdh3Ok3U6PN1HKMCHfrE9cmtAsxD96/8Hlghz5AtM+LRv/ig== dependencies: - "@graphql-tools/utils" "^9.2.1" - dataloader "^2.2.2" - tslib "^2.4.0" - value-or-promise "^1.0.12" + "@graphql-tools/utils" "^11.0.0" + "@whatwg-node/promise-helpers" "^1.3.2" + dataloader "^2.2.3" + tslib "^2.8.1" -"@graphql-tools/code-file-loader@^7.3.13": - version "7.3.23" - resolved "https://registry.yarnpkg.com/@graphql-tools/code-file-loader/-/code-file-loader-7.3.23.tgz#33793f9a1f8e74981f8ae6ec4ab7061f9713db15" - integrity sha512-8Wt1rTtyTEs0p47uzsPJ1vAtfAx0jmxPifiNdmo9EOCuUPyQGEbMaik/YkqZ7QUFIEYEQu+Vgfo8tElwOPtx5Q== +"@graphql-tools/code-file-loader@^8.1.28": + version "8.1.28" + resolved "https://registry.yarnpkg.com/@graphql-tools/code-file-loader/-/code-file-loader-8.1.28.tgz#c90655d86210d7ad8489f452867754b49c89f57a" + integrity sha512-BL3Ft/PFlXDE5nNuqA36hYci7Cx+8bDrPDc8X3VSpZy9iKFBY+oQ+IwqnEHCkt8OSp2n2V0gqTg4u3fcQP1Kwg== dependencies: - "@graphql-tools/graphql-tag-pluck" "7.5.2" - "@graphql-tools/utils" "^9.2.1" + "@graphql-tools/graphql-tag-pluck" "8.3.27" + "@graphql-tools/utils" "^11.0.0" globby "^11.0.3" tslib "^2.4.0" unixify "^1.0.0" -"@graphql-tools/delegate@^9.0.31": - version "9.0.35" - resolved "https://registry.yarnpkg.com/@graphql-tools/delegate/-/delegate-9.0.35.tgz#94683f4bcec63520b4a6c8b2abf2e2e9324ea4f1" - integrity sha512-jwPu8NJbzRRMqi4Vp/5QX1vIUeUPpWmlQpOkXQD2r1X45YsVceyUUBnktCrlJlDB4jPRVy7JQGwmYo3KFiOBMA== +"@graphql-tools/delegate@^12.0.8": + version "12.0.8" + resolved "https://registry.yarnpkg.com/@graphql-tools/delegate/-/delegate-12.0.8.tgz#db139e4d6aa6ac8ba1a5c3232b115f568e0f6adf" + integrity sha512-yltGepWaJ9KsBY3QREJrZUKadhaiT4mO4ZO42hF/vfD2fIIOKZjn99qCSZBJ0YpVbLctPrgWrgDs3WgAl13fsA== dependencies: - "@graphql-tools/batch-execute" "^8.5.22" - "@graphql-tools/executor" "^0.0.20" - "@graphql-tools/schema" "^9.0.19" - "@graphql-tools/utils" "^9.2.1" - dataloader "^2.2.2" - tslib "^2.5.0" - value-or-promise "^1.0.12" + "@graphql-tools/batch-execute" "^10.0.5" + "@graphql-tools/executor" "^1.4.13" + "@graphql-tools/schema" "^10.0.29" + "@graphql-tools/utils" "^11.0.0" + "@repeaterjs/repeater" "^3.0.6" + "@whatwg-node/promise-helpers" "^1.3.2" + dataloader "^2.2.3" + tslib "^2.8.1" -"@graphql-tools/executor-graphql-ws@^0.0.14": - version "0.0.14" - resolved "https://registry.yarnpkg.com/@graphql-tools/executor-graphql-ws/-/executor-graphql-ws-0.0.14.tgz#e0f53fc4cfc8a06cc461b2bc1edb4bb9a8e837ed" - integrity sha512-P2nlkAsPZKLIXImFhj0YTtny5NQVGSsKnhi7PzXiaHSXc6KkzqbWZHKvikD4PObanqg+7IO58rKFpGXP7eeO+w== +"@graphql-tools/documents@^1.0.0": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/documents/-/documents-1.0.1.tgz#ae19cd5667d22c23b331d3a1429443ed7130faee" + integrity sha512-aweoMH15wNJ8g7b2r4C4WRuJxZ0ca8HtNO54rkye/3duxTkW4fGBEutCx03jCIr5+a1l+4vFJNP859QnAVBVCA== dependencies: - "@graphql-tools/utils" "^9.2.1" - "@repeaterjs/repeater" "3.0.4" - "@types/ws" "^8.0.0" - graphql-ws "5.12.1" - isomorphic-ws "5.0.0" + lodash.sortby "^4.7.0" tslib "^2.4.0" - ws "8.13.0" -"@graphql-tools/executor-http@^0.1.7", "@graphql-tools/executor-http@^0.1.9": - version "0.1.10" - resolved "https://registry.yarnpkg.com/@graphql-tools/executor-http/-/executor-http-0.1.10.tgz#faf48e18e62a925796c9653c2f50cf2095bc8e6f" - integrity sha512-hnAfbKv0/lb9s31LhWzawQ5hghBfHS+gYWtqxME6Rl0Aufq9GltiiLBcl7OVVOnkLF0KhwgbYP1mB5VKmgTGpg== +"@graphql-tools/executor-common@^1.0.6": + version "1.0.6" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-common/-/executor-common-1.0.6.tgz#01f0e11a90c031afe3608b2435e3bfd37ada2692" + integrity sha512-23/K5C+LSlHDI0mj2SwCJ33RcELCcyDUgABm1Z8St7u/4Z5+95i925H/NAjUyggRjiaY8vYtNiMOPE49aPX1sg== dependencies: - "@graphql-tools/utils" "^9.2.1" + "@envelop/core" "^5.4.0" + "@graphql-tools/utils" "^11.0.0" + +"@graphql-tools/executor-graphql-ws@^3.1.2": + version "3.1.4" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-graphql-ws/-/executor-graphql-ws-3.1.4.tgz#16aa62ab17f622a530ac45c81aa1ff84a2896aac" + integrity sha512-wCQfWYLwg1JZmQ7rGaFy74AQyVFxpeqz19WWIGRgANiYlm+T0K3Hs6POgi0+nL3HvwxJIxhUlaRLFvkqm1zxSA== + dependencies: + "@graphql-tools/executor-common" "^1.0.6" + "@graphql-tools/utils" "^11.0.0" + "@whatwg-node/disposablestack" "^0.0.6" + graphql-ws "^6.0.6" + isows "^1.0.7" + tslib "^2.8.1" + ws "^8.18.3" + +"@graphql-tools/executor-http@^3.0.6": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-http/-/executor-http-3.1.0.tgz#571d47c46d88235ade7245130935c07c2594392b" + integrity sha512-DTaNU1rT2sxffwQlt+Aw68cHQWfGkjsaRk1D8nvG+DcCR8RNQo0d9qYt7pXIcfXYcQLb/OkABcGSuCfkopvHJg== + dependencies: + "@graphql-hive/signal" "^2.0.0" + "@graphql-tools/executor-common" "^1.0.6" + "@graphql-tools/utils" "^11.0.0" "@repeaterjs/repeater" "^3.0.4" - "@whatwg-node/fetch" "^0.8.1" - dset "^3.1.2" - extract-files "^11.0.0" - meros "^1.2.1" - tslib "^2.4.0" - value-or-promise "^1.0.12" + "@whatwg-node/disposablestack" "^0.0.6" + "@whatwg-node/fetch" "^0.10.13" + "@whatwg-node/promise-helpers" "^1.3.2" + meros "^1.3.2" + tslib "^2.8.1" -"@graphql-tools/executor-legacy-ws@^0.0.11": - version "0.0.11" - resolved "https://registry.yarnpkg.com/@graphql-tools/executor-legacy-ws/-/executor-legacy-ws-0.0.11.tgz#a1e12be8279e92a363a23d4105461a34cd9e389e" - integrity sha512-4ai+NnxlNfvIQ4c70hWFvOZlSUN8lt7yc+ZsrwtNFbFPH/EroIzFMapAxM9zwyv9bH38AdO3TQxZ5zNxgBdvUw== +"@graphql-tools/executor-legacy-ws@^1.1.25": + version "1.1.25" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-legacy-ws/-/executor-legacy-ws-1.1.25.tgz#235c334443a4dba79ceff9c20b0a03e766743d4c" + integrity sha512-6uf4AEXO0QMxJ7AWKVPqEZXgYBJaiz5vf29X0boG8QtcqWy8mqkXKWLND2Swdx0SbEx0efoGFcjuKufUcB0ASQ== dependencies: - "@graphql-tools/utils" "^9.2.1" + "@graphql-tools/utils" "^11.0.0" "@types/ws" "^8.0.0" - isomorphic-ws "5.0.0" + isomorphic-ws "^5.0.0" tslib "^2.4.0" - ws "8.13.0" + ws "^8.19.0" -"@graphql-tools/executor@^0.0.20": - version "0.0.20" - resolved "https://registry.yarnpkg.com/@graphql-tools/executor/-/executor-0.0.20.tgz#d51d159696e839522dd49d936636af251670e425" - integrity sha512-GdvNc4vszmfeGvUqlcaH1FjBoguvMYzxAfT6tDd4/LgwymepHhinqLNA5otqwVLW+JETcDaK7xGENzFomuE6TA== +"@graphql-tools/executor@^1.4.13": + version "1.5.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor/-/executor-1.5.1.tgz#2171473cc7cd0b7ca468c21d767eec9ac9df00fe" + integrity sha512-n94Qcu875Mji9GQ52n5UbgOTxlgvFJicBPYD+FRks9HKIQpdNPjkkrKZUYNG51XKa+bf03rxNflm4+wXhoHHrA== dependencies: - "@graphql-tools/utils" "^9.2.1" - "@graphql-typed-document-node/core" "3.2.0" + "@graphql-tools/utils" "^11.0.0" + "@graphql-typed-document-node/core" "^3.2.0" "@repeaterjs/repeater" "^3.0.4" + "@whatwg-node/disposablestack" "^0.0.6" + "@whatwg-node/promise-helpers" "^1.0.0" tslib "^2.4.0" - value-or-promise "^1.0.12" -"@graphql-tools/git-loader@^7.2.13": - version "7.3.0" - resolved "https://registry.yarnpkg.com/@graphql-tools/git-loader/-/git-loader-7.3.0.tgz#ca10c17d4f58c4592432d9d2ac1c2b393aebad16" - integrity sha512-gcGAK+u16eHkwsMYqqghZbmDquh8QaO24Scsxq+cVR+vx1ekRlsEiXvu+yXVDbZdcJ6PBIbeLcQbEu+xhDLmvQ== +"@graphql-tools/git-loader@^8.0.32": + version "8.0.32" + resolved "https://registry.yarnpkg.com/@graphql-tools/git-loader/-/git-loader-8.0.32.tgz#b72f8830aacf26a10044c39c3a3e512d8f23e8c2" + integrity sha512-H5HTp2vevv0rRMEnCJBVmVF8md3LpJI1C1+d6OtzvmuONJ8mOX2mkf9rtoqwiztynVegaDUekvMFsc9k5iE2WA== dependencies: - "@graphql-tools/graphql-tag-pluck" "7.5.2" - "@graphql-tools/utils" "^9.2.1" + "@graphql-tools/graphql-tag-pluck" "8.3.27" + "@graphql-tools/utils" "^11.0.0" is-glob "4.0.3" - micromatch "^4.0.4" + micromatch "^4.0.8" tslib "^2.4.0" unixify "^1.0.0" -"@graphql-tools/github-loader@^7.3.20": - version "7.3.28" - resolved "https://registry.yarnpkg.com/@graphql-tools/github-loader/-/github-loader-7.3.28.tgz#a7166b136e8442bd8b3ab943ad3b66c84bcabfcf" - integrity sha512-OK92Lf9pmxPQvjUNv05b3tnVhw0JRfPqOf15jZjyQ8BfdEUrJoP32b4dRQQem/wyRL24KY4wOfArJNqzpsbwCA== +"@graphql-tools/github-loader@^9.0.6": + version "9.0.6" + resolved "https://registry.yarnpkg.com/@graphql-tools/github-loader/-/github-loader-9.0.6.tgz#75353e71c431cae3ac04751b804b5122c1704556" + integrity sha512-hhlt2MMkRcvDva/qyzqFddXzaMmRnriJ0Ts+/LcNeYnB8hcEqRMpF9RCsHYjo1mFRaiu8i4PSIpXyyFu3To7Ow== dependencies: - "@ardatan/sync-fetch" "^0.0.1" - "@graphql-tools/executor-http" "^0.1.9" - "@graphql-tools/graphql-tag-pluck" "^7.4.6" - "@graphql-tools/utils" "^9.2.1" - "@whatwg-node/fetch" "^0.8.0" + "@graphql-tools/executor-http" "^3.0.6" + "@graphql-tools/graphql-tag-pluck" "^8.3.27" + "@graphql-tools/utils" "^11.0.0" + "@whatwg-node/fetch" "^0.10.13" + "@whatwg-node/promise-helpers" "^1.0.0" + sync-fetch "0.6.0" tslib "^2.4.0" - value-or-promise "^1.0.12" -"@graphql-tools/graphql-file-loader@^7.3.7", "@graphql-tools/graphql-file-loader@^7.5.0": - version "7.5.17" - resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-file-loader/-/graphql-file-loader-7.5.17.tgz#7c281617ea3ab4db4d42a2bdb49850f2b937f0f9" - integrity sha512-hVwwxPf41zOYgm4gdaZILCYnKB9Zap7Ys9OhY1hbwuAuC4MMNY9GpUjoTU3CQc3zUiPoYStyRtUGkHSJZ3HxBw== +"@graphql-tools/graphql-file-loader@^8.0.0", "@graphql-tools/graphql-file-loader@^8.1.11": + version "8.1.12" + resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-file-loader/-/graphql-file-loader-8.1.12.tgz#9a0f3f4a27bfd849a90d5b2297f64f60e54a949c" + integrity sha512-Nma7gBgJoUbqXWTmdHjouo36tjzewA8MptVcHoH7widzkciaUVzBhriHzqICFB/dVxig//g9MX8s1XawZo7UAg== dependencies: - "@graphql-tools/import" "6.7.18" - "@graphql-tools/utils" "^9.2.1" + "@graphql-tools/import" "^7.1.12" + "@graphql-tools/utils" "^11.0.0" globby "^11.0.3" tslib "^2.4.0" unixify "^1.0.0" -"@graphql-tools/graphql-tag-pluck@7.5.2", "@graphql-tools/graphql-tag-pluck@^7.4.6": - version "7.5.2" - resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-7.5.2.tgz#502f1e066e19d832ebdeba5f571d7636dc27572d" - integrity sha512-RW+H8FqOOLQw0BPXaahYepVSRjuOHw+7IL8Opaa5G5uYGOBxoXR7DceyQ7BcpMgktAOOmpDNQ2WtcboChOJSRA== +"@graphql-tools/graphql-tag-pluck@8.3.27", "@graphql-tools/graphql-tag-pluck@^8.3.27": + version "8.3.27" + resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-8.3.27.tgz#5f138347addfa3df5c169be69dbe41c902c6227f" + integrity sha512-CJ0WVXhGYsfFngpRrAAcjRHyxSDHx4dEz2W15bkwvt9he/AWhuyXm07wuGcoLrl0q0iQp1BiRjU7D8SxWZo3JQ== dependencies: - "@babel/parser" "^7.16.8" - "@babel/plugin-syntax-import-assertions" "^7.20.0" - "@babel/traverse" "^7.16.8" - "@babel/types" "^7.16.8" - "@graphql-tools/utils" "^9.2.1" + "@babel/core" "^7.26.10" + "@babel/parser" "^7.26.10" + "@babel/plugin-syntax-import-assertions" "^7.26.0" + "@babel/traverse" "^7.26.10" + "@babel/types" "^7.26.10" + "@graphql-tools/utils" "^11.0.0" tslib "^2.4.0" -"@graphql-tools/import@6.7.18": - version "6.7.18" - resolved "https://registry.yarnpkg.com/@graphql-tools/import/-/import-6.7.18.tgz#ad092d8a4546bb6ffc3e871e499eec7ac368680b" - integrity sha512-XQDdyZTp+FYmT7as3xRWH/x8dx0QZA2WZqfMF5EWb36a0PiH7WwlRQYIdyYXj8YCLpiWkeBXgBRHmMnwEYR8iQ== +"@graphql-tools/import@^7.1.12": + version "7.1.12" + resolved "https://registry.yarnpkg.com/@graphql-tools/import/-/import-7.1.12.tgz#a6b04c0c53b58cccb132950913e55b1f31f0f30a" + integrity sha512-QSsdPsdJ7yCgQ5XODyKYpC7NlB9R1Koi0R3418PT7GiRm+9O8gYXSs/23dumcOnpiLrnf4qR2aytBn1+JOAhnA== dependencies: - "@graphql-tools/utils" "^9.2.1" + "@graphql-tools/utils" "^11.0.0" resolve-from "5.0.0" tslib "^2.4.0" -"@graphql-tools/json-file-loader@^7.3.7", "@graphql-tools/json-file-loader@^7.4.1": - version "7.4.18" - resolved "https://registry.yarnpkg.com/@graphql-tools/json-file-loader/-/json-file-loader-7.4.18.tgz#d78ae40979bde51cfc59717757354afc9e35fba2" - integrity sha512-AJ1b6Y1wiVgkwsxT5dELXhIVUPs/u3VZ8/0/oOtpcoyO/vAeM5rOvvWegzicOOnQw8G45fgBRMkkRfeuwVt6+w== +"@graphql-tools/json-file-loader@^8.0.0", "@graphql-tools/json-file-loader@^8.0.26": + version "8.0.26" + resolved "https://registry.yarnpkg.com/@graphql-tools/json-file-loader/-/json-file-loader-8.0.26.tgz#82ff8afbecb77082625c7ee76384da7aed0f70ce" + integrity sha512-kwy9IFi5QtXXTLBgWkvA1RqsZeJDn0CxsTbhNlziCzmga9fNo7qtZ18k9FYIq3EIoQQlok+b7W7yeyJATA2xhw== dependencies: - "@graphql-tools/utils" "^9.2.1" + "@graphql-tools/utils" "^11.0.0" globby "^11.0.3" tslib "^2.4.0" unixify "^1.0.0" -"@graphql-tools/load@^7.5.5", "@graphql-tools/load@^7.8.0": - version "7.8.14" - resolved "https://registry.yarnpkg.com/@graphql-tools/load/-/load-7.8.14.tgz#f2356f9a5f658a42e33934ae036e4b2cadf2d1e9" - integrity sha512-ASQvP+snHMYm+FhIaLxxFgVdRaM0vrN9wW2BKInQpktwWTXVyk+yP5nQUCEGmn0RTdlPKrffBaigxepkEAJPrg== +"@graphql-tools/load@^8.1.0", "@graphql-tools/load@^8.1.8": + version "8.1.8" + resolved "https://registry.yarnpkg.com/@graphql-tools/load/-/load-8.1.8.tgz#977fdf0005078283942e0e4a028ff97c78dd6f0b" + integrity sha512-gxO662b64qZSToK3N6XUxWG5E6HOUjlg5jEnmGvD4bMtGJ0HwEe/BaVZbBQemCfLkxYjwRIBiVfOY9o0JyjZJg== dependencies: - "@graphql-tools/schema" "^9.0.18" - "@graphql-tools/utils" "^9.2.1" + "@graphql-tools/schema" "^10.0.31" + "@graphql-tools/utils" "^11.0.0" p-limit "3.1.0" tslib "^2.4.0" -"@graphql-tools/merge@^8.2.6", "@graphql-tools/merge@^8.4.1": - version "8.4.2" - resolved "https://registry.yarnpkg.com/@graphql-tools/merge/-/merge-8.4.2.tgz#95778bbe26b635e8d2f60ce9856b388f11fe8288" - integrity sha512-XbrHAaj8yDuINph+sAfuq3QCZ/tKblrTLOpirK0+CAgNlZUCHs0Fa+xtMUURgwCVThLle1AF7svJCxFizygLsw== - dependencies: - "@graphql-tools/utils" "^9.2.1" - tslib "^2.4.0" - -"@graphql-tools/merge@^9.1.7": +"@graphql-tools/merge@^9.0.0", "@graphql-tools/merge@^9.1.7": version "9.1.7" resolved "https://registry.yarnpkg.com/@graphql-tools/merge/-/merge-9.1.7.tgz#8040553c19aeadf6df41060b811e9c5df8716be1" integrity sha512-Y5E1vTbTabvcXbkakdFUt4zUIzB1fyaEnVmIWN0l0GMed2gdD01TpZWLUm4RNAxpturvolrb24oGLQrBbPLSoQ== @@ -1826,30 +1837,6 @@ dependencies: tslib "^2.4.0" -"@graphql-tools/prisma-loader@^7.2.49": - version "7.2.72" - resolved "https://registry.yarnpkg.com/@graphql-tools/prisma-loader/-/prisma-loader-7.2.72.tgz#6304fc23600458396f3ede713d8e2371df7850e3" - integrity sha512-0a7uV7Fky6yDqd0tI9+XMuvgIo6GAqiVzzzFV4OSLry4AwiQlI3igYseBV7ZVOGhedOTqj/URxjpiv07hRcwag== - dependencies: - "@graphql-tools/url-loader" "^7.17.18" - "@graphql-tools/utils" "^9.2.1" - "@types/js-yaml" "^4.0.0" - "@types/json-stable-stringify" "^1.0.32" - "@whatwg-node/fetch" "^0.8.2" - chalk "^4.1.0" - debug "^4.3.1" - dotenv "^16.0.0" - graphql-request "^6.0.0" - http-proxy-agent "^6.0.0" - https-proxy-agent "^6.0.0" - jose "^4.11.4" - js-yaml "^4.0.0" - json-stable-stringify "^1.0.1" - lodash "^4.17.20" - scuid "^1.1.0" - tslib "^2.4.0" - yaml-ast-parser "^0.0.43" - "@graphql-tools/relay-operation-optimizer@^6.5.0": version "6.5.18" resolved "https://registry.yarnpkg.com/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-6.5.18.tgz#a1b74a8e0a5d0c795b8a4d19629b654cf66aa5ab" @@ -1859,7 +1846,7 @@ "@graphql-tools/utils" "^9.2.1" tslib "^2.4.0" -"@graphql-tools/relay-operation-optimizer@^7.0.0", "@graphql-tools/relay-operation-optimizer@^7.1.1": +"@graphql-tools/relay-operation-optimizer@^7.1.1": version "7.1.1" resolved "https://registry.yarnpkg.com/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-7.1.1.tgz#5294ffc075dcdf0c2ffcd1f02339374cefba51b8" integrity sha512-va+ZieMlz6Fj18xUbwyQkZ34PsnzIdPT6Ccy1BNOQw1iclQwk52HejLMZeE/4fH+4cu80Q2HXi5+FjCKpmnJCg== @@ -1868,7 +1855,7 @@ "@graphql-tools/utils" "^11.0.0" tslib "^2.4.0" -"@graphql-tools/schema@10.0.31": +"@graphql-tools/schema@10.0.31", "@graphql-tools/schema@^10.0.0", "@graphql-tools/schema@^10.0.29", "@graphql-tools/schema@^10.0.31": version "10.0.31" resolved "https://registry.yarnpkg.com/@graphql-tools/schema/-/schema-10.0.31.tgz#dea275db4d7423f293826cff2aa11e7b3027ddce" integrity sha512-ZewRgWhXef6weZ0WiP7/MV47HXiuFbFpiDUVLQl6mgXsWSsGELKFxQsyUCBos60Qqy1JEFAIu3Ns6GGYjGkqkQ== @@ -1877,56 +1864,45 @@ "@graphql-tools/utils" "^11.0.0" tslib "^2.4.0" -"@graphql-tools/schema@^9.0.0", "@graphql-tools/schema@^9.0.18", "@graphql-tools/schema@^9.0.19": - version "9.0.19" - resolved "https://registry.yarnpkg.com/@graphql-tools/schema/-/schema-9.0.19.tgz#c4ad373b5e1b8a0cf365163435b7d236ebdd06e7" - integrity sha512-oBRPoNBtCkk0zbUsyP4GaIzCt8C0aCI4ycIRUL67KK5pOHljKLBBtGT+Jr6hkzA74C8Gco8bpZPe7aWFjiaK2w== +"@graphql-tools/url-loader@^9.0.0", "@graphql-tools/url-loader@^9.0.6": + version "9.0.6" + resolved "https://registry.yarnpkg.com/@graphql-tools/url-loader/-/url-loader-9.0.6.tgz#281ad72428170a08167423071e2ee9a06d910f49" + integrity sha512-QdJI3f7ANDMYfYazRgJzzybznjOrQAOuDXweC9xmKgPZoTqNxEAsatiy69zcpTf6092taJLyrqRH6R7xUTzf4A== dependencies: - "@graphql-tools/merge" "^8.4.1" - "@graphql-tools/utils" "^9.2.1" - tslib "^2.4.0" - value-or-promise "^1.0.12" - -"@graphql-tools/url-loader@^7.13.2", "@graphql-tools/url-loader@^7.17.18", "@graphql-tools/url-loader@^7.9.7": - version "7.17.18" - resolved "https://registry.yarnpkg.com/@graphql-tools/url-loader/-/url-loader-7.17.18.tgz#3e253594d23483e4c0dd3a4c3dd2ad5cd0141192" - integrity sha512-ear0CiyTj04jCVAxi7TvgbnGDIN2HgqzXzwsfcqiVg9cvjT40NcMlZ2P1lZDgqMkZ9oyLTV8Bw6j+SyG6A+xPw== - dependencies: - "@ardatan/sync-fetch" "^0.0.1" - "@graphql-tools/delegate" "^9.0.31" - "@graphql-tools/executor-graphql-ws" "^0.0.14" - "@graphql-tools/executor-http" "^0.1.7" - "@graphql-tools/executor-legacy-ws" "^0.0.11" - "@graphql-tools/utils" "^9.2.1" - "@graphql-tools/wrap" "^9.4.2" + "@graphql-tools/executor-graphql-ws" "^3.1.2" + "@graphql-tools/executor-http" "^3.0.6" + "@graphql-tools/executor-legacy-ws" "^1.1.25" + "@graphql-tools/utils" "^11.0.0" + "@graphql-tools/wrap" "^11.1.1" "@types/ws" "^8.0.0" - "@whatwg-node/fetch" "^0.8.0" + "@whatwg-node/fetch" "^0.10.13" + "@whatwg-node/promise-helpers" "^1.0.0" isomorphic-ws "^5.0.0" + sync-fetch "0.6.0" tslib "^2.4.0" - value-or-promise "^1.0.11" - ws "^8.12.0" + ws "^8.19.0" -"@graphql-tools/utils@10.11.0", "@graphql-tools/utils@^10.0.0": - version "10.11.0" - resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-10.11.0.tgz#2513dca9ca25bab5a2651da2d66c37b1e2616bdf" - integrity sha512-iBFR9GXIs0gCD+yc3hoNswViL1O5josI33dUqiNStFI/MHLCEPduasceAcazRH77YONKNiviHBV8f7OgcT4o2Q== +"@graphql-tools/utils@11.0.0", "@graphql-tools/utils@^11.0.0": + version "11.0.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-11.0.0.tgz#f54a09372e96c32416fcbd0eb8e9e0f1338900bd" + integrity sha512-bM1HeZdXA2C3LSIeLOnH/bcqSgbQgKEDrjxODjqi3y58xai2TkNrtYcQSoWzGbt9VMN1dORGjR7Vem8SPnUFQA== dependencies: "@graphql-typed-document-node/core" "^3.1.1" "@whatwg-node/promise-helpers" "^1.0.0" cross-inspect "1.0.1" tslib "^2.4.0" -"@graphql-tools/utils@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-11.0.0.tgz#f54a09372e96c32416fcbd0eb8e9e0f1338900bd" - integrity sha512-bM1HeZdXA2C3LSIeLOnH/bcqSgbQgKEDrjxODjqi3y58xai2TkNrtYcQSoWzGbt9VMN1dORGjR7Vem8SPnUFQA== +"@graphql-tools/utils@^10.0.0": + version "10.11.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-10.11.0.tgz#2513dca9ca25bab5a2651da2d66c37b1e2616bdf" + integrity sha512-iBFR9GXIs0gCD+yc3hoNswViL1O5josI33dUqiNStFI/MHLCEPduasceAcazRH77YONKNiviHBV8f7OgcT4o2Q== dependencies: "@graphql-typed-document-node/core" "^3.1.1" "@whatwg-node/promise-helpers" "^1.0.0" cross-inspect "1.0.1" tslib "^2.4.0" -"@graphql-tools/utils@^9.0.0", "@graphql-tools/utils@^9.1.1", "@graphql-tools/utils@^9.2.1": +"@graphql-tools/utils@^9.0.0", "@graphql-tools/utils@^9.2.1": version "9.2.1" resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-9.2.1.tgz#1b3df0ef166cfa3eae706e3518b17d5922721c57" integrity sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A== @@ -1934,16 +1910,16 @@ "@graphql-typed-document-node/core" "^3.1.1" tslib "^2.4.0" -"@graphql-tools/wrap@^9.4.2": - version "9.4.2" - resolved "https://registry.yarnpkg.com/@graphql-tools/wrap/-/wrap-9.4.2.tgz#30835587c4c73be1780908a7cb077d8013aa2703" - integrity sha512-DFcd9r51lmcEKn0JW43CWkkI2D6T9XI1juW/Yo86i04v43O9w2/k4/nx2XTJv4Yv+iXwUw7Ok81PGltwGJSDSA== +"@graphql-tools/wrap@^11.1.1": + version "11.1.8" + resolved "https://registry.yarnpkg.com/@graphql-tools/wrap/-/wrap-11.1.8.tgz#4276c78a73ee68287a505ac7375019c6cc9fdc0b" + integrity sha512-VnU7K6IDvj7kM9Viz6oAQNc6lV380u7oOG1hYau5pzHB+h1VrTYg/jHXNtWrXwB88lhCgGHjrQCJJt4wz4QdQQ== dependencies: - "@graphql-tools/delegate" "^9.0.31" - "@graphql-tools/schema" "^9.0.18" - "@graphql-tools/utils" "^9.2.1" - tslib "^2.4.0" - value-or-promise "^1.0.12" + "@graphql-tools/delegate" "^12.0.8" + "@graphql-tools/schema" "^10.0.29" + "@graphql-tools/utils" "^11.0.0" + "@whatwg-node/promise-helpers" "^1.3.2" + tslib "^2.8.1" "@graphql-typed-document-node/core@3.2.0", "@graphql-typed-document-node/core@^3.1.1", "@graphql-typed-document-node/core@^3.2.0": version "3.2.0" @@ -1984,7 +1960,63 @@ "@babel/types" "^7.26.0" semver "^7.5.2" -"@inquirer/external-editor@^1.0.0", "@inquirer/external-editor@^1.0.2": +"@inquirer/ansi@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@inquirer/ansi/-/ansi-1.0.2.tgz#674a4c4d81ad460695cb2a1fc69d78cd187f337e" + integrity sha512-S8qNSZiYzFd0wAcyG5AXCvUHC5Sr7xpZ9wZ2py9XR88jUz8wooStVx5M6dRzczbBWjic9NP7+rY0Xi7qqK/aMQ== + +"@inquirer/checkbox@^4.3.2": + version "4.3.2" + resolved "https://registry.yarnpkg.com/@inquirer/checkbox/-/checkbox-4.3.2.tgz#e1483e6519d6ffef97281a54d2a5baa0d81b3f3b" + integrity sha512-VXukHf0RR1doGe6Sm4F0Em7SWYLTHSsbGfJdS9Ja2bX5/D5uwVOEjr07cncLROdBvmnvCATYEWlHqYmXv2IlQA== + dependencies: + "@inquirer/ansi" "^1.0.2" + "@inquirer/core" "^10.3.2" + "@inquirer/figures" "^1.0.15" + "@inquirer/type" "^3.0.10" + yoctocolors-cjs "^2.1.3" + +"@inquirer/confirm@^5.1.21": + version "5.1.21" + resolved "https://registry.yarnpkg.com/@inquirer/confirm/-/confirm-5.1.21.tgz#610c4acd7797d94890a6e2dde2c98eb1e891dd12" + integrity sha512-KR8edRkIsUayMXV+o3Gv+q4jlhENF9nMYUZs9PA2HzrXeHI8M5uDag70U7RJn9yyiMZSbtF5/UexBtAVtZGSbQ== + dependencies: + "@inquirer/core" "^10.3.2" + "@inquirer/type" "^3.0.10" + +"@inquirer/core@^10.3.2": + version "10.3.2" + resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-10.3.2.tgz#535979ff3ff4fe1e7cc4f83e2320504c743b7e20" + integrity sha512-43RTuEbfP8MbKzedNqBrlhhNKVwoK//vUFNW3Q3vZ88BLcrs4kYpGg+B2mm5p2K/HfygoCxuKwJJiv8PbGmE0A== + dependencies: + "@inquirer/ansi" "^1.0.2" + "@inquirer/figures" "^1.0.15" + "@inquirer/type" "^3.0.10" + cli-width "^4.1.0" + mute-stream "^2.0.0" + signal-exit "^4.1.0" + wrap-ansi "^6.2.0" + yoctocolors-cjs "^2.1.3" + +"@inquirer/editor@^4.2.23": + version "4.2.23" + resolved "https://registry.yarnpkg.com/@inquirer/editor/-/editor-4.2.23.tgz#fe046a3bfdae931262de98c1052437d794322e0b" + integrity sha512-aLSROkEwirotxZ1pBaP8tugXRFCxW94gwrQLxXfrZsKkfjOYC1aRvAZuhpJOb5cu4IBTJdsCigUlf2iCOu4ZDQ== + dependencies: + "@inquirer/core" "^10.3.2" + "@inquirer/external-editor" "^1.0.3" + "@inquirer/type" "^3.0.10" + +"@inquirer/expand@^4.0.23": + version "4.0.23" + resolved "https://registry.yarnpkg.com/@inquirer/expand/-/expand-4.0.23.tgz#a38b5f32226d75717c370bdfed792313b92bdc05" + integrity sha512-nRzdOyFYnpeYTTR2qFwEVmIWypzdAx/sIkCMeTNTcflFOovfqUk+HcFhQQVBftAh9gmGrpFj6QcGEqrDMDOiew== + dependencies: + "@inquirer/core" "^10.3.2" + "@inquirer/type" "^3.0.10" + yoctocolors-cjs "^2.1.3" + +"@inquirer/external-editor@^1.0.2", "@inquirer/external-editor@^1.0.3": version "1.0.3" resolved "https://registry.yarnpkg.com/@inquirer/external-editor/-/external-editor-1.0.3.tgz#c23988291ee676290fdab3fd306e64010a6d13b8" integrity sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA== @@ -1992,174 +2024,97 @@ chardet "^2.1.1" iconv-lite "^0.7.0" -"@isaacs/cliui@^8.0.2": - version "8.0.2" - resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" - integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA== - dependencies: - string-width "^5.1.2" - string-width-cjs "npm:string-width@^4.2.0" - strip-ansi "^7.0.1" - strip-ansi-cjs "npm:strip-ansi@^6.0.1" - wrap-ansi "^8.1.0" - wrap-ansi-cjs "npm:wrap-ansi@^7.0.0" +"@inquirer/figures@^1.0.15": + version "1.0.15" + resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.15.tgz#dbb49ed80df11df74268023b496ac5d9acd22b3a" + integrity sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g== -"@istanbuljs/load-nyc-config@^1.0.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" - integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== +"@inquirer/input@^4.3.1": + version "4.3.1" + resolved "https://registry.yarnpkg.com/@inquirer/input/-/input-4.3.1.tgz#778683b4c4c4d95d05d4b05c4a854964b73565b4" + integrity sha512-kN0pAM4yPrLjJ1XJBjDxyfDduXOuQHrBB8aLDMueuwUGn+vNpF7Gq7TvyVxx8u4SHlFFj4trmj+a2cbpG4Jn1g== + dependencies: + "@inquirer/core" "^10.3.2" + "@inquirer/type" "^3.0.10" + +"@inquirer/number@^3.0.23": + version "3.0.23" + resolved "https://registry.yarnpkg.com/@inquirer/number/-/number-3.0.23.tgz#3fdec2540d642093fd7526818fd8d4bdc7335094" + integrity sha512-5Smv0OK7K0KUzUfYUXDXQc9jrf8OHo4ktlEayFlelCjwMXz0299Y8OrI+lj7i4gCBY15UObk76q0QtxjzFcFcg== + dependencies: + "@inquirer/core" "^10.3.2" + "@inquirer/type" "^3.0.10" + +"@inquirer/password@^4.0.23": + version "4.0.23" + resolved "https://registry.yarnpkg.com/@inquirer/password/-/password-4.0.23.tgz#b9f5187c8c92fd7aa9eceb9d8f2ead0d7e7b000d" + integrity sha512-zREJHjhT5vJBMZX/IUbyI9zVtVfOLiTO66MrF/3GFZYZ7T4YILW5MSkEYHceSii/KtRk+4i3RE7E1CUXA2jHcA== + dependencies: + "@inquirer/ansi" "^1.0.2" + "@inquirer/core" "^10.3.2" + "@inquirer/type" "^3.0.10" + +"@inquirer/prompts@^7.8.2": + version "7.10.1" + resolved "https://registry.yarnpkg.com/@inquirer/prompts/-/prompts-7.10.1.tgz#e1436c0484cf04c22548c74e2cd239e989d5f847" + integrity sha512-Dx/y9bCQcXLI5ooQ5KyvA4FTgeo2jYj/7plWfV5Ak5wDPKQZgudKez2ixyfz7tKXzcJciTxqLeK7R9HItwiByg== + dependencies: + "@inquirer/checkbox" "^4.3.2" + "@inquirer/confirm" "^5.1.21" + "@inquirer/editor" "^4.2.23" + "@inquirer/expand" "^4.0.23" + "@inquirer/input" "^4.3.1" + "@inquirer/number" "^3.0.23" + "@inquirer/password" "^4.0.23" + "@inquirer/rawlist" "^4.1.11" + "@inquirer/search" "^3.2.2" + "@inquirer/select" "^4.4.2" + +"@inquirer/rawlist@^4.1.11": + version "4.1.11" + resolved "https://registry.yarnpkg.com/@inquirer/rawlist/-/rawlist-4.1.11.tgz#313c8c3ffccb7d41e990c606465726b4a898a033" + integrity sha512-+LLQB8XGr3I5LZN/GuAHo+GpDJegQwuPARLChlMICNdwW7OwV2izlCSCxN6cqpL0sMXmbKbFcItJgdQq5EBXTw== + dependencies: + "@inquirer/core" "^10.3.2" + "@inquirer/type" "^3.0.10" + yoctocolors-cjs "^2.1.3" + +"@inquirer/search@^3.2.2": + version "3.2.2" + resolved "https://registry.yarnpkg.com/@inquirer/search/-/search-3.2.2.tgz#4cc6fd574dcd434e4399badc37c742c3fd534ac8" + integrity sha512-p2bvRfENXCZdWF/U2BXvnSI9h+tuA8iNqtUKb9UWbmLYCRQxd8WkvwWvYn+3NgYaNwdUkHytJMGG4MMLucI1kA== dependencies: - camelcase "^5.3.1" - find-up "^4.1.0" - get-package-type "^0.1.0" - js-yaml "^3.13.1" - resolve-from "^5.0.0" - -"@istanbuljs/schema@^0.1.2", "@istanbuljs/schema@^0.1.3": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" - integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== + "@inquirer/core" "^10.3.2" + "@inquirer/figures" "^1.0.15" + "@inquirer/type" "^3.0.10" + yoctocolors-cjs "^2.1.3" -"@jest/console@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-30.2.0.tgz#c52fcd5b58fdd2e8eb66b2fd8ae56f2f64d05b28" - integrity sha512-+O1ifRjkvYIkBqASKWgLxrpEhQAAE7hY77ALLUufSk5717KfOShg6IbqLmdsLMPdUiFvA2kTs0R7YZy+l0IzZQ== +"@inquirer/select@^4.4.2": + version "4.4.2" + resolved "https://registry.yarnpkg.com/@inquirer/select/-/select-4.4.2.tgz#2ac8fca960913f18f1d1b35323ed8fcd27d89323" + integrity sha512-l4xMuJo55MAe+N7Qr4rX90vypFwCajSakx59qe/tMaC1aEHWLyw68wF4o0A4SLAY4E0nd+Vt+EyskeDIqu1M6w== dependencies: - "@jest/types" "30.2.0" - "@types/node" "*" - chalk "^4.1.2" - jest-message-util "30.2.0" - jest-util "30.2.0" - slash "^3.0.0" + "@inquirer/ansi" "^1.0.2" + "@inquirer/core" "^10.3.2" + "@inquirer/figures" "^1.0.15" + "@inquirer/type" "^3.0.10" + yoctocolors-cjs "^2.1.3" -"@jest/core@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-30.2.0.tgz#813d59faa5abd5510964a8b3a7b17cc77b775275" - integrity sha512-03W6IhuhjqTlpzh/ojut/pDB2LPRygyWX8ExpgHtQA8H/3K7+1vKmcINx5UzeOX1se6YEsBsOHQ1CRzf3fOwTQ== - dependencies: - "@jest/console" "30.2.0" - "@jest/pattern" "30.0.1" - "@jest/reporters" "30.2.0" - "@jest/test-result" "30.2.0" - "@jest/transform" "30.2.0" - "@jest/types" "30.2.0" - "@types/node" "*" - ansi-escapes "^4.3.2" - chalk "^4.1.2" - ci-info "^4.2.0" - exit-x "^0.2.2" - graceful-fs "^4.2.11" - jest-changed-files "30.2.0" - jest-config "30.2.0" - jest-haste-map "30.2.0" - jest-message-util "30.2.0" - jest-regex-util "30.0.1" - jest-resolve "30.2.0" - jest-resolve-dependencies "30.2.0" - jest-runner "30.2.0" - jest-runtime "30.2.0" - jest-snapshot "30.2.0" - jest-util "30.2.0" - jest-validate "30.2.0" - jest-watcher "30.2.0" - micromatch "^4.0.8" - pretty-format "30.2.0" - slash "^3.0.0" +"@inquirer/type@^3.0.10": + version "3.0.10" + resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.10.tgz#11ed564ec78432a200ea2601a212d24af8150d50" + integrity sha512-BvziSRxfz5Ov8ch0z/n3oijRSEcEsHnhggm4xFZe93DHcUCTlutlq9Ox4SVENAfcRD22UQq7T/atg9Wr3k09eA== "@jest/diff-sequences@30.0.1": version "30.0.1" resolved "https://registry.yarnpkg.com/@jest/diff-sequences/-/diff-sequences-30.0.1.tgz#0ededeae4d071f5c8ffe3678d15f3a1be09156be" integrity sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw== -"@jest/environment@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-30.2.0.tgz#1e673cdb8b93ded707cf6631b8353011460831fa" - integrity sha512-/QPTL7OBJQ5ac09UDRa3EQes4gt1FTEG/8jZ/4v5IVzx+Cv7dLxlVIvfvSVRiiX2drWyXeBjkMSR8hvOWSog5g== - dependencies: - "@jest/fake-timers" "30.2.0" - "@jest/types" "30.2.0" - "@types/node" "*" - jest-mock "30.2.0" - -"@jest/expect-utils@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-30.2.0.tgz#4f95413d4748454fdb17404bf1141827d15e6011" - integrity sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA== - dependencies: - "@jest/get-type" "30.1.0" - -"@jest/expect@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/expect/-/expect-30.2.0.tgz#9a5968499bb8add2bbb09136f69f7df5ddbf3185" - integrity sha512-V9yxQK5erfzx99Sf+7LbhBwNWEZ9eZay8qQ9+JSC0TrMR1pMDHLMY+BnVPacWU6Jamrh252/IKo4F1Xn/zfiqA== - dependencies: - expect "30.2.0" - jest-snapshot "30.2.0" - -"@jest/fake-timers@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-30.2.0.tgz#0941ddc28a339b9819542495b5408622dc9e94ec" - integrity sha512-HI3tRLjRxAbBy0VO8dqqm7Hb2mIa8d5bg/NJkyQcOk7V118ObQML8RC5luTF/Zsg4474a+gDvhce7eTnP4GhYw== - dependencies: - "@jest/types" "30.2.0" - "@sinonjs/fake-timers" "^13.0.0" - "@types/node" "*" - jest-message-util "30.2.0" - jest-mock "30.2.0" - jest-util "30.2.0" - "@jest/get-type@30.1.0": version "30.1.0" resolved "https://registry.yarnpkg.com/@jest/get-type/-/get-type-30.1.0.tgz#4fcb4dc2ebcf0811be1c04fd1cb79c2dba431cbc" integrity sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA== -"@jest/globals@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-30.2.0.tgz#2f4b696d5862664b89c4ee2e49ae24d2bb7e0988" - integrity sha512-b63wmnKPaK+6ZZfpYhz9K61oybvbI1aMcIs80++JI1O1rR1vaxHUCNqo3ITu6NU0d4V34yZFoHMn/uoKr/Rwfw== - dependencies: - "@jest/environment" "30.2.0" - "@jest/expect" "30.2.0" - "@jest/types" "30.2.0" - jest-mock "30.2.0" - -"@jest/pattern@30.0.1": - version "30.0.1" - resolved "https://registry.yarnpkg.com/@jest/pattern/-/pattern-30.0.1.tgz#d5304147f49a052900b4b853dedb111d080e199f" - integrity sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA== - dependencies: - "@types/node" "*" - jest-regex-util "30.0.1" - -"@jest/reporters@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-30.2.0.tgz#a36b28fcbaf0c4595250b108e6f20e363348fd91" - integrity sha512-DRyW6baWPqKMa9CzeiBjHwjd8XeAyco2Vt8XbcLFjiwCOEKOvy82GJ8QQnJE9ofsxCMPjH4MfH8fCWIHHDKpAQ== - dependencies: - "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "30.2.0" - "@jest/test-result" "30.2.0" - "@jest/transform" "30.2.0" - "@jest/types" "30.2.0" - "@jridgewell/trace-mapping" "^0.3.25" - "@types/node" "*" - chalk "^4.1.2" - collect-v8-coverage "^1.0.2" - exit-x "^0.2.2" - glob "^10.3.10" - graceful-fs "^4.2.11" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-instrument "^6.0.0" - istanbul-lib-report "^3.0.0" - istanbul-lib-source-maps "^5.0.0" - istanbul-reports "^3.1.3" - jest-message-util "30.2.0" - jest-util "30.2.0" - jest-worker "30.2.0" - slash "^3.0.0" - string-length "^4.0.2" - v8-to-istanbul "^9.0.1" - "@jest/schemas@30.0.5": version "30.0.5" resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-30.0.5.tgz#7bdf69fc5a368a5abdb49fd91036c55225846473" @@ -2167,79 +2122,6 @@ dependencies: "@sinclair/typebox" "^0.34.0" -"@jest/snapshot-utils@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/snapshot-utils/-/snapshot-utils-30.2.0.tgz#387858eb90c2f98f67bff327435a532ac5309fbe" - integrity sha512-0aVxM3RH6DaiLcjj/b0KrIBZhSX1373Xci4l3cW5xiUWPctZ59zQ7jj4rqcJQ/Z8JuN/4wX3FpJSa3RssVvCug== - dependencies: - "@jest/types" "30.2.0" - chalk "^4.1.2" - graceful-fs "^4.2.11" - natural-compare "^1.4.0" - -"@jest/source-map@30.0.1": - version "30.0.1" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-30.0.1.tgz#305ebec50468f13e658b3d5c26f85107a5620aaa" - integrity sha512-MIRWMUUR3sdbP36oyNyhbThLHyJ2eEDClPCiHVbrYAe5g3CHRArIVpBw7cdSB5fr+ofSfIb2Tnsw8iEHL0PYQg== - dependencies: - "@jridgewell/trace-mapping" "^0.3.25" - callsites "^3.1.0" - graceful-fs "^4.2.11" - -"@jest/test-result@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-30.2.0.tgz#9c0124377fb7996cdffb86eda3dbc56eacab363d" - integrity sha512-RF+Z+0CCHkARz5HT9mcQCBulb1wgCP3FBvl9VFokMX27acKphwyQsNuWH3c+ojd1LeWBLoTYoxF0zm6S/66mjg== - dependencies: - "@jest/console" "30.2.0" - "@jest/types" "30.2.0" - "@types/istanbul-lib-coverage" "^2.0.6" - collect-v8-coverage "^1.0.2" - -"@jest/test-sequencer@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-30.2.0.tgz#bf0066bc72e176d58f5dfa7f212b6e7eee44f221" - integrity sha512-wXKgU/lk8fKXMu/l5Hog1R61bL4q5GCdT6OJvdAFz1P+QrpoFuLU68eoKuVc4RbrTtNnTL5FByhWdLgOPSph+Q== - dependencies: - "@jest/test-result" "30.2.0" - graceful-fs "^4.2.11" - jest-haste-map "30.2.0" - slash "^3.0.0" - -"@jest/transform@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-30.2.0.tgz#54bef1a4510dcbd58d5d4de4fe2980a63077ef2a" - integrity sha512-XsauDV82o5qXbhalKxD7p4TZYYdwcaEXC77PPD2HixEFF+6YGppjrAAQurTl2ECWcEomHBMMNS9AH3kcCFx8jA== - dependencies: - "@babel/core" "^7.27.4" - "@jest/types" "30.2.0" - "@jridgewell/trace-mapping" "^0.3.25" - babel-plugin-istanbul "^7.0.1" - chalk "^4.1.2" - convert-source-map "^2.0.0" - fast-json-stable-stringify "^2.1.0" - graceful-fs "^4.2.11" - jest-haste-map "30.2.0" - jest-regex-util "30.0.1" - jest-util "30.2.0" - micromatch "^4.0.8" - pirates "^4.0.7" - slash "^3.0.0" - write-file-atomic "^5.0.1" - -"@jest/types@30.2.0": - version "30.2.0" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-30.2.0.tgz#1c678a7924b8f59eafd4c77d56b6d0ba976d62b8" - integrity sha512-H9xg1/sfVvyfU7o3zMfBEjQ1gcsdeTMgqHoYdN79tuLqfTtuu7WckRA1R5whDwOzxaZAeMKTYWqP+WCAi0CHsg== - dependencies: - "@jest/pattern" "30.0.1" - "@jest/schemas" "30.0.5" - "@types/istanbul-lib-coverage" "^2.0.6" - "@types/istanbul-reports" "^3.0.4" - "@types/node" "*" - "@types/yargs" "^17.0.33" - chalk "^4.1.2" - "@jridgewell/gen-mapping@^0.3.12", "@jridgewell/gen-mapping@^0.3.5": version "0.3.13" resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz#6342a19f44347518c93e43b1ac69deb3c4656a1f" @@ -2261,7 +2143,7 @@ resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== -"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0": +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0", "@jridgewell/sourcemap-codec@^1.5.5": version "1.5.5" resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz#6912b00d2c631c0d15ce1a7ab57cd657f2a8f8ba" integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== @@ -2274,7 +2156,7 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" -"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.23", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25", "@jridgewell/trace-mapping@^0.3.28": +"@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.28": version "0.3.31" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz#db15d6781c931f3a251a3dac39501c98a6082fd0" integrity sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== @@ -2304,14 +2186,17 @@ globby "^11.0.0" read-yaml-file "^1.1.0" -"@napi-rs/wasm-runtime@^0.2.11": - version "0.2.12" - resolved "https://registry.yarnpkg.com/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.12.tgz#3e78a8b96e6c33a6c517e1894efbd5385a7cb6f2" - integrity sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ== +"@mswjs/interceptors@^0.41.0": + version "0.41.3" + resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.41.3.tgz#d766dc1a168aa315a6a0b2d0f2e0cf1b74f23c82" + integrity sha512-cXu86tF4VQVfwz8W1SPbhoRyHJkti6mjH/XJIxp40jhO4j2k1m4KYrEykxqWPkFF3vrK4rgQppBh//AwyGSXPA== dependencies: - "@emnapi/core" "^1.4.3" - "@emnapi/runtime" "^1.4.3" - "@tybys/wasm-util" "^0.10.0" + "@open-draft/deferred-promise" "^2.2.0" + "@open-draft/logger" "^0.3.0" + "@open-draft/until" "^2.0.0" + is-node-process "^1.2.0" + outvariant "^1.4.3" + strict-event-emitter "^0.5.1" "@nodelib/fs.scandir@2.1.5": version "2.1.5" @@ -2399,42 +2284,23 @@ chalk "^4.1.0" tslib "^2.6.2" -"@peculiar/asn1-schema@^2.3.13", "@peculiar/asn1-schema@^2.3.8": - version "2.6.0" - resolved "https://registry.yarnpkg.com/@peculiar/asn1-schema/-/asn1-schema-2.6.0.tgz#0dca1601d5b0fed2a72fed7a5f1d0d7dbe3a6f82" - integrity sha512-xNLYLBFTBKkCzEZIw842BxytQQATQv+lDTCEMZ8C196iJcJJMBUZxrhSTxLaohMyKK8QlzRNTRkUmanucnDSqg== - dependencies: - asn1js "^3.0.6" - pvtsutils "^1.3.6" - tslib "^2.8.1" - -"@peculiar/json-schema@^1.1.12": - version "1.1.12" - resolved "https://registry.yarnpkg.com/@peculiar/json-schema/-/json-schema-1.1.12.tgz#fe61e85259e3b5ba5ad566cb62ca75b3d3cd5339" - integrity sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w== - dependencies: - tslib "^2.0.0" +"@open-draft/deferred-promise@^2.2.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@open-draft/deferred-promise/-/deferred-promise-2.2.0.tgz#4a822d10f6f0e316be4d67b4d4f8c9a124b073bd" + integrity sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA== -"@peculiar/webcrypto@^1.4.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@peculiar/webcrypto/-/webcrypto-1.5.0.tgz#9e57174c02c1291051c553600347e12b81469e10" - integrity sha512-BRs5XUAwiyCDQMsVA9IDvDa7UBR9gAvPHgugOeGng3YN6vJ9JYonyDc0lNczErgtCWtucjR5N7VtaonboD/ezg== +"@open-draft/logger@^0.3.0": + version "0.3.0" + resolved "https://registry.yarnpkg.com/@open-draft/logger/-/logger-0.3.0.tgz#2b3ab1242b360aa0adb28b85f5d7da1c133a0954" + integrity sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ== dependencies: - "@peculiar/asn1-schema" "^2.3.8" - "@peculiar/json-schema" "^1.1.12" - pvtsutils "^1.3.5" - tslib "^2.6.2" - webcrypto-core "^1.8.0" + is-node-process "^1.2.0" + outvariant "^1.4.0" -"@pkgjs/parseargs@^0.11.0": - version "0.11.0" - resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" - integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== - -"@pkgr/core@^0.2.9": - version "0.2.9" - resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.2.9.tgz#d229a7b7f9dac167a156992ef23c7f023653f53b" - integrity sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA== +"@open-draft/until@^2.0.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@open-draft/until/-/until-2.1.0.tgz#0acf32f470af2ceaf47f095cdecd40d68666efda" + integrity sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg== "@reduxjs/toolkit@2.11.2": version "2.11.2" @@ -2448,10 +2314,135 @@ redux-thunk "^3.1.0" reselect "^5.1.0" -"@repeaterjs/repeater@3.0.4", "@repeaterjs/repeater@^3.0.4": - version "3.0.4" - resolved "https://registry.yarnpkg.com/@repeaterjs/repeater/-/repeater-3.0.4.tgz#a04d63f4d1bf5540a41b01a921c9a7fddc3bd1ca" - integrity sha512-AW8PKd6iX3vAZ0vA43nOUOnbq/X5ihgU+mSXXqunMkeQADGiqw/PY0JNeYtD5sr0PAy51YPgAPbDoeapv9r8WA== +"@repeaterjs/repeater@^3.0.4", "@repeaterjs/repeater@^3.0.6": + version "3.0.6" + resolved "https://registry.yarnpkg.com/@repeaterjs/repeater/-/repeater-3.0.6.tgz#be23df0143ceec3c69f8b6c2517971a5578fdaa2" + integrity sha512-Javneu5lsuhwNCryN+pXH93VPQ8g0dBX7wItHFgYiwQmzE1sVdg5tWHiOgHywzL2W21XQopa7IwIEnNbmeUJYA== + +"@rollup/rollup-android-arm-eabi@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz#a6742c74c7d9d6d604ef8a48f99326b4ecda3d82" + integrity sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg== + +"@rollup/rollup-android-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz#97247be098de4df0c11971089fd2edf80a5da8cf" + integrity sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q== + +"@rollup/rollup-darwin-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz#674852cf14cf11b8056e0b1a2f4e872b523576cf" + integrity sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg== + +"@rollup/rollup-darwin-x64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz#36dfd7ed0aaf4d9d89d9ef983af72632455b0246" + integrity sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w== + +"@rollup/rollup-freebsd-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz#2f87c2074b4220260fdb52a9996246edfc633c22" + integrity sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA== + +"@rollup/rollup-freebsd-x64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz#9b5a26522a38a95dc06616d1939d4d9a76937803" + integrity sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg== + +"@rollup/rollup-linux-arm-gnueabihf@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz#86aa4859385a8734235b5e40a48e52d770758c3a" + integrity sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw== + +"@rollup/rollup-linux-arm-musleabihf@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz#cbe70e56e6ece8dac83eb773b624fc9e5a460976" + integrity sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA== + +"@rollup/rollup-linux-arm64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz#d14992a2e653bc3263d284bc6579b7a2890e1c45" + integrity sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA== + +"@rollup/rollup-linux-arm64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz#2fdd1ddc434ea90aeaa0851d2044789b4d07f6da" + integrity sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA== + +"@rollup/rollup-linux-loong64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz#8a181e6f89f969f21666a743cd411416c80099e7" + integrity sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg== + +"@rollup/rollup-linux-loong64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz#904125af2babc395f8061daa27b5af1f4e3f2f78" + integrity sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q== + +"@rollup/rollup-linux-ppc64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz#a57970ac6864c9a3447411a658224bdcf948be22" + integrity sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA== + +"@rollup/rollup-linux-ppc64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz#bb84de5b26870567a4267666e08891e80bb56a63" + integrity sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA== + +"@rollup/rollup-linux-riscv64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz#72d00d2c7fb375ce3564e759db33f17a35bffab9" + integrity sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg== + +"@rollup/rollup-linux-riscv64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz#4c166ef58e718f9245bd31873384ba15a5c1a883" + integrity sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg== + +"@rollup/rollup-linux-s390x-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz#bb5025cde9a61db478c2ca7215808ad3bce73a09" + integrity sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w== + +"@rollup/rollup-linux-x64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz#9b66b1f9cd95c6624c788f021c756269ffed1552" + integrity sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg== + +"@rollup/rollup-linux-x64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz#b007ca255dc7166017d57d7d2451963f0bd23fd9" + integrity sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg== + +"@rollup/rollup-openbsd-x64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz#e8b357b2d1aa2c8d76a98f5f0d889eabe93f4ef9" + integrity sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ== + +"@rollup/rollup-openharmony-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz#96c2e3f4aacd3d921981329831ff8dde492204dc" + integrity sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA== + +"@rollup/rollup-win32-arm64-msvc@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz#2d865149d706d938df8b4b8f117e69a77646d581" + integrity sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A== + +"@rollup/rollup-win32-ia32-msvc@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz#abe1593be0fa92325e9971c8da429c5e05b92c36" + integrity sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA== + +"@rollup/rollup-win32-x64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz#c4af3e9518c9a5cd4b1c163dc81d0ad4d82e7eab" + integrity sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA== + +"@rollup/rollup-win32-x64-msvc@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz#4584a8a87b29188a4c1fe987a9fcf701e256d86c" + integrity sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA== "@rtk-query/graphql-request-base-query@2.3.1": version "2.3.1" @@ -2470,20 +2461,6 @@ resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.34.48.tgz#75b0ead87e59e1adbd6dccdc42bad4fddee73b59" integrity sha512-kKJTNuK3AQOrgjjotVxMrCn1sUJwM76wMszfq1kdU4uYVJjvEWuFQ6HgvLt4Xz3fSmZlTOxJ/Ie13KnIcWQXFA== -"@sinonjs/commons@^3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-3.0.1.tgz#1029357e44ca901a615585f6d27738dbc89084cd" - integrity sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ== - dependencies: - type-detect "4.0.8" - -"@sinonjs/fake-timers@^13.0.0": - version "13.0.5" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-13.0.5.tgz#36b9dbc21ad5546486ea9173d6bea063eb1717d5" - integrity sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw== - dependencies: - "@sinonjs/commons" "^3.0.1" - "@standard-schema/spec@^1.0.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@standard-schema/spec/-/spec-1.1.0.tgz#a79b55dbaf8604812f52d140b2c9ab41bc150bb8" @@ -2523,100 +2500,29 @@ resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== -"@tybys/wasm-util@^0.10.0": - version "0.10.1" - resolved "https://registry.yarnpkg.com/@tybys/wasm-util/-/wasm-util-0.10.1.tgz#ecddd3205cf1e2d5274649ff0eedd2991ed7f414" - integrity sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg== +"@types/chai@^5.2.2": + version "5.2.3" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-5.2.3.tgz#8e9cd9e1c3581fa6b341a5aed5588eb285be0b4a" + integrity sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA== dependencies: - tslib "^2.4.0" + "@types/deep-eql" "*" + assertion-error "^2.0.1" -"@types/babel__core@^7.20.5": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.5.tgz#3df15f27ba85319caa07ba08d0721889bb39c017" - integrity sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA== - dependencies: - "@babel/parser" "^7.20.7" - "@babel/types" "^7.20.7" - "@types/babel__generator" "*" - "@types/babel__template" "*" - "@types/babel__traverse" "*" - -"@types/babel__generator@*": - version "7.27.0" - resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.27.0.tgz#b5819294c51179957afaec341442f9341e4108a9" - integrity sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg== - dependencies: - "@babel/types" "^7.0.0" - -"@types/babel__template@*": - version "7.4.4" - resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.4.tgz#5672513701c1b2199bc6dad636a9d7491586766f" - integrity sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A== - dependencies: - "@babel/parser" "^7.1.0" - "@babel/types" "^7.0.0" - -"@types/babel__traverse@*": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.28.0.tgz#07d713d6cce0d265c9849db0cbe62d3f61f36f74" - integrity sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q== - dependencies: - "@babel/types" "^7.28.2" +"@types/deep-eql@*": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@types/deep-eql/-/deep-eql-4.0.2.tgz#334311971d3a07121e7eb91b684a605e7eea9cbd" + integrity sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw== -"@types/estree@^1.0.6": +"@types/estree@1.0.8", "@types/estree@^1.0.0", "@types/estree@^1.0.6": version "1.0.8" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.8.tgz#958b91c991b1867ced318bedea0e215ee050726e" integrity sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w== -"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.1", "@types/istanbul-lib-coverage@^2.0.6": - version "2.0.6" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz#7739c232a1fee9b4d3ce8985f314c0c6d33549d7" - integrity sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w== - -"@types/istanbul-lib-report@*": - version "3.0.3" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz#53047614ae72e19fc0401d872de3ae2b4ce350bf" - integrity sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA== - dependencies: - "@types/istanbul-lib-coverage" "*" - -"@types/istanbul-reports@^3.0.4": - version "3.0.4" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz#0f03e3d2f670fbdac586e34b433783070cc16f54" - integrity sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ== - dependencies: - "@types/istanbul-lib-report" "*" - -"@types/jest@30.0.0": - version "30.0.0" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-30.0.0.tgz#5e85ae568006712e4ad66f25433e9bdac8801f1d" - integrity sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA== - dependencies: - expect "^30.0.0" - pretty-format "^30.0.0" - -"@types/js-yaml@^4.0.0": - version "4.0.9" - resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-4.0.9.tgz#cd82382c4f902fed9691a2ed79ec68c5898af4c2" - integrity sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg== - -"@types/json-schema@7.0.9": - version "7.0.9" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d" - integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ== - "@types/json-schema@^7.0.15": version "7.0.15" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== -"@types/json-stable-stringify@^1.0.32": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@types/json-stable-stringify/-/json-stable-stringify-1.2.0.tgz#fda9291c45a8ec79ed195883fb2bb09f0aa95854" - integrity sha512-PEHY3ohqolHqAzDyB1+31tFaAMnoLN7x/JgdcGmNZ2uvtEJ6rlFCUYNQc0Xe754xxCYLNGZbLUGydSE6tS4S9A== - dependencies: - json-stable-stringify "*" - "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" @@ -2627,7 +2533,14 @@ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.24.tgz#4ae334fc62c0e915ca8ed8e35dcc6d4eeb29215f" integrity sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ== -"@types/node@*", "@types/node@24.12.0": +"@types/node@*": + version "25.3.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-25.3.5.tgz#beccb5915561f7a9970ace547ad44d6cdbf39b46" + integrity sha512-oX8xrhvpiyRCQkG1MFchB09f+cXftgIXb3a7UUa4Y3wpmZPw5tyZGTLWhlESOLq1Rq6oDlc8npVU2/9xiCuXMA== + dependencies: + undici-types "~7.18.0" + +"@types/node@24.12.0": version "24.12.0" resolved "https://registry.yarnpkg.com/@types/node/-/node-24.12.0.tgz#6222e028210e5322e4f4f6767f8d88e5ea3b33d2" integrity sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ== @@ -2644,21 +2557,11 @@ resolved "https://registry.yarnpkg.com/@types/parse-filepath/-/parse-filepath-1.0.2.tgz#417f313bbb10526e7adb06e037e53040fb4d7f93" integrity sha512-CcyaQuvlpejsJR57RWxUR++E7zTKvbDDotZyiKaJsZdlbV8JfHgRYj4aZszEGKVLhiX0pbD8QeAuzEFUol4mRA== -"@types/parse-json@^4.0.0": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.2.tgz#5950e50960793055845e956c427fc2b0d70c5239" - integrity sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw== - "@types/pluralize@0.0.33": version "0.0.33" resolved "https://registry.yarnpkg.com/@types/pluralize/-/pluralize-0.0.33.tgz#8ad9018368c584d268667dd9acd5b3b806e8c82a" integrity sha512-JOqsl+ZoCpP4e8TDke9W79FDcSgPAR0l6pixx2JHkhnRjvShyYiAYw2LVsnA7K08Y6DeOnaU6ujmENO4os/cYg== -"@types/stack-utils@^2.0.3": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8" - integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw== - "@types/ws@^8.0.0": version "8.18.1" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.18.1.tgz#48464e4bf2ddfd17db13d845467f6070ffea4aa9" @@ -2666,18 +2569,6 @@ dependencies: "@types/node" "*" -"@types/yargs-parser@*": - version "21.0.3" - resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15" - integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ== - -"@types/yargs@^17.0.33": - version "17.0.35" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.35.tgz#07013e46aa4d7d7d50a49e15604c1c5340d4eb24" - integrity sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg== - dependencies: - "@types/yargs-parser" "*" - "@typescript-eslint/eslint-plugin@8.56.1": version "8.56.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.56.1.tgz#b1ce606d87221daec571e293009675992f0aae76" @@ -2774,108 +2665,6 @@ "@typescript-eslint/types" "8.56.1" eslint-visitor-keys "^5.0.0" -"@ungap/structured-clone@^1.3.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz#d06bbb384ebcf6c505fde1c3d0ed4ddffe0aaff8" - integrity sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g== - -"@unrs/resolver-binding-android-arm-eabi@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.11.1.tgz#9f5b04503088e6a354295e8ea8fe3cb99e43af81" - integrity sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw== - -"@unrs/resolver-binding-android-arm64@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.11.1.tgz#7414885431bd7178b989aedc4d25cccb3865bc9f" - integrity sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g== - -"@unrs/resolver-binding-darwin-arm64@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.11.1.tgz#b4a8556f42171fb9c9f7bac8235045e82aa0cbdf" - integrity sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g== - -"@unrs/resolver-binding-darwin-x64@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.11.1.tgz#fd4d81257b13f4d1a083890a6a17c00de571f0dc" - integrity sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ== - -"@unrs/resolver-binding-freebsd-x64@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.11.1.tgz#d2513084d0f37c407757e22f32bd924a78cfd99b" - integrity sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw== - -"@unrs/resolver-binding-linux-arm-gnueabihf@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.11.1.tgz#844d2605d057488d77fab09705f2866b86164e0a" - integrity sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw== - -"@unrs/resolver-binding-linux-arm-musleabihf@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.11.1.tgz#204892995cefb6bd1d017d52d097193bc61ddad3" - integrity sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw== - -"@unrs/resolver-binding-linux-arm64-gnu@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.11.1.tgz#023eb0c3aac46066a10be7a3f362e7b34f3bdf9d" - integrity sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ== - -"@unrs/resolver-binding-linux-arm64-musl@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.11.1.tgz#9e6f9abb06424e3140a60ac996139786f5d99be0" - integrity sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w== - -"@unrs/resolver-binding-linux-ppc64-gnu@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.11.1.tgz#b111417f17c9d1b02efbec8e08398f0c5527bb44" - integrity sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA== - -"@unrs/resolver-binding-linux-riscv64-gnu@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.11.1.tgz#92ffbf02748af3e99873945c9a8a5ead01d508a9" - integrity sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ== - -"@unrs/resolver-binding-linux-riscv64-musl@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.11.1.tgz#0bec6f1258fc390e6b305e9ff44256cb207de165" - integrity sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew== - -"@unrs/resolver-binding-linux-s390x-gnu@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.11.1.tgz#577843a084c5952f5906770633ccfb89dac9bc94" - integrity sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg== - -"@unrs/resolver-binding-linux-x64-gnu@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.11.1.tgz#36fb318eebdd690f6da32ac5e0499a76fa881935" - integrity sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w== - -"@unrs/resolver-binding-linux-x64-musl@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.11.1.tgz#bfb9af75f783f98f6a22c4244214efe4df1853d6" - integrity sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA== - -"@unrs/resolver-binding-wasm32-wasi@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.11.1.tgz#752c359dd875684b27429500d88226d7cc72f71d" - integrity sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ== - dependencies: - "@napi-rs/wasm-runtime" "^0.2.11" - -"@unrs/resolver-binding-win32-arm64-msvc@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.11.1.tgz#ce5735e600e4c2fbb409cd051b3b7da4a399af35" - integrity sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw== - -"@unrs/resolver-binding-win32-ia32-msvc@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.11.1.tgz#72fc57bc7c64ec5c3de0d64ee0d1810317bc60a6" - integrity sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ== - -"@unrs/resolver-binding-win32-x64-msvc@1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.11.1.tgz#538b1e103bf8d9864e7b85cc96fa8d6fb6c40777" - integrity sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g== - "@urql/introspection@^0.3.2": version "0.3.3" resolved "https://registry.yarnpkg.com/@urql/introspection/-/introspection-0.3.3.tgz#5bcedfebd515161eecf9b193169c2765bf5674f1" @@ -2886,6 +2675,64 @@ resolved "https://registry.yarnpkg.com/@urql/introspection/-/introspection-1.2.1.tgz#4d864c681ef540d13322d31b67b45394f2f32d83" integrity sha512-U9FTSISz69EEK3bHWDsqux9JqOeiLzr3eDFBQ5DmHuTLaBsd5mjPdtLRzzzmb9nW1Ygd6IR8YcuM7zeNqQ5lCQ== +"@vitest/expect@4.0.18": + version "4.0.18" + resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-4.0.18.tgz#361510d99fbf20eb814222e4afcb8539d79dc94d" + integrity sha512-8sCWUyckXXYvx4opfzVY03EOiYVxyNrHS5QxX3DAIi5dpJAAkyJezHCP77VMX4HKA2LDT/Jpfo8i2r5BE3GnQQ== + dependencies: + "@standard-schema/spec" "^1.0.0" + "@types/chai" "^5.2.2" + "@vitest/spy" "4.0.18" + "@vitest/utils" "4.0.18" + chai "^6.2.1" + tinyrainbow "^3.0.3" + +"@vitest/mocker@4.0.18": + version "4.0.18" + resolved "https://registry.yarnpkg.com/@vitest/mocker/-/mocker-4.0.18.tgz#b9735da114ef65ea95652c5bdf13159c6fab4865" + integrity sha512-HhVd0MDnzzsgevnOWCBj5Otnzobjy5wLBe4EdeeFGv8luMsGcYqDuFRMcttKWZA5vVO8RFjexVovXvAM4JoJDQ== + dependencies: + "@vitest/spy" "4.0.18" + estree-walker "^3.0.3" + magic-string "^0.30.21" + +"@vitest/pretty-format@4.0.18": + version "4.0.18" + resolved "https://registry.yarnpkg.com/@vitest/pretty-format/-/pretty-format-4.0.18.tgz#fbccd4d910774072ec15463553edb8ca5ce53218" + integrity sha512-P24GK3GulZWC5tz87ux0m8OADrQIUVDPIjjj65vBXYG17ZeU3qD7r+MNZ1RNv4l8CGU2vtTRqixrOi9fYk/yKw== + dependencies: + tinyrainbow "^3.0.3" + +"@vitest/runner@4.0.18": + version "4.0.18" + resolved "https://registry.yarnpkg.com/@vitest/runner/-/runner-4.0.18.tgz#c2c0a3ed226ec85e9312f9cc8c43c5b3a893a8b1" + integrity sha512-rpk9y12PGa22Jg6g5M3UVVnTS7+zycIGk9ZNGN+m6tZHKQb7jrP7/77WfZy13Y/EUDd52NDsLRQhYKtv7XfPQw== + dependencies: + "@vitest/utils" "4.0.18" + pathe "^2.0.3" + +"@vitest/snapshot@4.0.18": + version "4.0.18" + resolved "https://registry.yarnpkg.com/@vitest/snapshot/-/snapshot-4.0.18.tgz#bcb40fd6d742679c2ac927ba295b66af1c6c34c5" + integrity sha512-PCiV0rcl7jKQjbgYqjtakly6T1uwv/5BQ9SwBLekVg/EaYeQFPiXcgrC2Y7vDMA8dM1SUEAEV82kgSQIlXNMvA== + dependencies: + "@vitest/pretty-format" "4.0.18" + magic-string "^0.30.21" + pathe "^2.0.3" + +"@vitest/spy@4.0.18": + version "4.0.18" + resolved "https://registry.yarnpkg.com/@vitest/spy/-/spy-4.0.18.tgz#ba0f20503fb6d08baf3309d690b3efabdfa88762" + integrity sha512-cbQt3PTSD7P2OARdVW3qWER5EGq7PHlvE+QfzSC0lbwO+xnt7+XH06ZzFjFRgzUX//JmpxrCu92VdwvEPlWSNw== + +"@vitest/utils@4.0.18": + version "4.0.18" + resolved "https://registry.yarnpkg.com/@vitest/utils/-/utils-4.0.18.tgz#9636b16d86a4152ec68a8d6859cff702896433d4" + integrity sha512-msMRKLMVLWygpK3u2Hybgi4MNjcYJvwTb0Ru09+fOyCXIgT5raYP041DRRdiJiI3k/2U6SEbAETB3YtBrUkCFA== + dependencies: + "@vitest/pretty-format" "4.0.18" + tinyrainbow "^3.0.3" + "@whatwg-node/disposablestack@^0.0.6": version "0.0.6" resolved "https://registry.yarnpkg.com/@whatwg-node/disposablestack/-/disposablestack-0.0.6.tgz#2064a1425ea66194def6df0c7a1851b6939c82bb" @@ -2894,17 +2741,7 @@ "@whatwg-node/promise-helpers" "^1.0.0" tslib "^2.6.3" -"@whatwg-node/events@^0.0.2": - version "0.0.2" - resolved "https://registry.yarnpkg.com/@whatwg-node/events/-/events-0.0.2.tgz#7b7107268d2982fc7b7aff5ee6803c64018f84dd" - integrity sha512-WKj/lI4QjnLuPrim0cfO7i+HsDSXHxNv1y0CrJhdntuO3hxWZmnXCwNDnwOvry11OjRin6cgWNF+j/9Pn8TN4w== - -"@whatwg-node/events@^0.0.3": - version "0.0.3" - resolved "https://registry.yarnpkg.com/@whatwg-node/events/-/events-0.0.3.tgz#13a65dd4f5893f55280f766e29ae48074927acad" - integrity sha512-IqnKIDWfXBJkvy/k6tzskWTc2NK3LcqHlb+KHGCrjOCH4jfQckRX0NAiIcC/vIqQkzLYw2r2CTSwAxcrtcD6lA== - -"@whatwg-node/fetch@0.10.13": +"@whatwg-node/fetch@0.10.13", "@whatwg-node/fetch@^0.10.0", "@whatwg-node/fetch@^0.10.13": version "0.10.13" resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.10.13.tgz#2d47190c620f134dda31c7f827976a909b2cca7a" integrity sha512-b4PhJ+zYj4357zwk4TTuF2nEe0vVtOrwdsrNo5hL+u1ojXNhh1FgJ6pg1jzDlwlT4oBdzfSwaBwMCtFCsIWg8Q== @@ -2912,48 +2749,6 @@ "@whatwg-node/node-fetch" "^0.8.3" urlpattern-polyfill "^10.0.0" -"@whatwg-node/fetch@^0.6.0": - version "0.6.9" - resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.6.9.tgz#6cc694cc0378e27b8dfed427c5bf633eda6972b9" - integrity sha512-JfrBCJdMu9n9OARc0e/hPHcD98/8Nz1CKSdGYDg6VbObDkV/Ys30xe5i/wPOatYbxuvatj1kfWeHf7iNX3i17w== - dependencies: - "@peculiar/webcrypto" "^1.4.0" - "@whatwg-node/node-fetch" "^0.0.5" - busboy "^1.6.0" - urlpattern-polyfill "^6.0.2" - web-streams-polyfill "^3.2.1" - -"@whatwg-node/fetch@^0.8.0", "@whatwg-node/fetch@^0.8.1", "@whatwg-node/fetch@^0.8.2": - version "0.8.8" - resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.8.8.tgz#48c6ad0c6b7951a73e812f09dd22d75e9fa18cae" - integrity sha512-CdcjGC2vdKhc13KKxgsc6/616BQ7ooDIgPeTuAiE8qfCnS0mGzcfCOoZXypQSz73nxI+GWc7ZReIAVhxoE1KCg== - dependencies: - "@peculiar/webcrypto" "^1.4.0" - "@whatwg-node/node-fetch" "^0.3.6" - busboy "^1.6.0" - urlpattern-polyfill "^8.0.0" - web-streams-polyfill "^3.2.1" - -"@whatwg-node/node-fetch@^0.0.5": - version "0.0.5" - resolved "https://registry.yarnpkg.com/@whatwg-node/node-fetch/-/node-fetch-0.0.5.tgz#bebf18891088e5e2fc449dea8d1bc94af5ec38df" - integrity sha512-hbccmaSZaItdsRuBKBEEhLoO+5oXJPxiyd0kG2xXd0Dh3Rt+vZn4pADHxuSiSHLd9CM+S2z4+IxlEGbWUgiz9g== - dependencies: - "@whatwg-node/events" "^0.0.2" - busboy "^1.6.0" - tslib "^2.3.1" - -"@whatwg-node/node-fetch@^0.3.6": - version "0.3.6" - resolved "https://registry.yarnpkg.com/@whatwg-node/node-fetch/-/node-fetch-0.3.6.tgz#e28816955f359916e2d830b68a64493124faa6d0" - integrity sha512-w9wKgDO4C95qnXZRwZTfCmLWqyRnooGjcIwG0wADWjw9/HN0p7dtvtgSvItZtUyNteEvgTrd8QojNEqV6DAGTA== - dependencies: - "@whatwg-node/events" "^0.0.3" - busboy "^1.6.0" - fast-querystring "^1.1.1" - fast-url-parser "^1.1.3" - tslib "^2.3.1" - "@whatwg-node/node-fetch@^0.8.3": version "0.8.5" resolved "https://registry.yarnpkg.com/@whatwg-node/node-fetch/-/node-fetch-0.8.5.tgz#5ab2226866ae10a9d0403f9d44bd684178963781" @@ -2964,7 +2759,7 @@ "@whatwg-node/promise-helpers" "^1.3.2" tslib "^2.6.3" -"@whatwg-node/promise-helpers@^1.0.0", "@whatwg-node/promise-helpers@^1.3.2": +"@whatwg-node/promise-helpers@^1.0.0", "@whatwg-node/promise-helpers@^1.2.1", "@whatwg-node/promise-helpers@^1.2.4", "@whatwg-node/promise-helpers@^1.3.2": version "1.3.2" resolved "https://registry.yarnpkg.com/@whatwg-node/promise-helpers/-/promise-helpers-1.3.2.tgz#3b54987ad6517ef6db5920c66a6f0dada606587d" integrity sha512-Nst5JdK47VIl9UcGwtv2Rcgyn5lWtZ0/mhRQ4G8NN2isxpq2TO30iqHzmwoJycjWuyUfg3GFXqP/gFHXeV57IA== @@ -3021,19 +2816,6 @@ acorn@^8.11.0, acorn@^8.15.0, acorn@^8.4.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.16.0.tgz#4ce79c89be40afe7afe8f3adb902a1f1ce9ac08a" integrity sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw== -agent-base@^7.0.2, agent-base@^7.1.0: - version "7.1.4" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-7.1.4.tgz#e3cd76d4c548ee895d3c3fd8dc1f6c5b9032e7a8" - integrity sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ== - -aggregate-error@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" - integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== - dependencies: - clean-stack "^2.0.0" - indent-string "^4.0.0" - ajv-formats@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-3.0.1.tgz#3d5dc762bca17679c3c2ea7e90ad6b7532309578" @@ -3066,13 +2848,6 @@ ansi-colors@^4.1.1, ansi-colors@^4.1.3: resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== -ansi-escapes@^4.2.1, ansi-escapes@^4.3.0, ansi-escapes@^4.3.2: - version "4.3.2" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" - integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== - dependencies: - type-fest "^0.21.3" - ansi-escapes@^7.0.0: version "7.3.0" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-7.3.0.tgz#5395bb74b2150a4a1d6e3c2565f4aeca78d28627" @@ -3102,7 +2877,7 @@ ansi-styles@^5.2.0: resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== -ansi-styles@^6.1.0, ansi-styles@^6.2.1, ansi-styles@^6.2.3: +ansi-styles@^6.2.1, ansi-styles@^6.2.3: version "6.2.3" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.3.tgz#c044d5dcc521a076413472597a1acb1f103c4041" integrity sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg== @@ -3112,14 +2887,6 @@ antlr4ts@^0.5.0-alpha.4: resolved "https://registry.yarnpkg.com/antlr4ts/-/antlr4ts-0.5.0-alpha.4.tgz#71702865a87478ed0b40c0709f422cf14d51652a" integrity sha512-WPQDt1B74OfPv/IMS2ekXAKkTZIHl88uMetg6q3OTqgFxZ/dxDXI0EWLyZid/1Pe6hTftyg5N7gel5wNAGxXyQ== -anymatch@^3.1.3, anymatch@~3.1.2: - version "3.1.3" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - arg@^4.1.0: version "4.1.3" resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" @@ -3215,19 +2982,10 @@ asap@~2.0.3: resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== -asn1js@^3.0.5, asn1js@^3.0.6: - version "3.0.7" - resolved "https://registry.yarnpkg.com/asn1js/-/asn1js-3.0.7.tgz#15f1f2f59e60f80d5b43ef14047a294a969f824f" - integrity sha512-uLvq6KJu04qoQM6gvBfKFjlh6Gl0vOKQuR5cJMDHQkmwfMOQeN3F3SHCv9SNYSL+CRoHvOGFfllDlVz03GQjvQ== - dependencies: - pvtsutils "^1.3.6" - pvutils "^1.1.3" - tslib "^2.8.1" - -astral-regex@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" - integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== +assertion-error@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-2.0.1.tgz#f641a196b335690b1070bf00b6e7593fec190bf7" + integrity sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA== async-function@^1.0.0: version "1.0.0" @@ -3246,37 +3004,6 @@ available-typed-arrays@^1.0.7: dependencies: possible-typed-array-names "^1.0.0" -babel-jest@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-30.2.0.tgz#fd44a1ec9552be35ead881f7381faa7d8f3b95ac" - integrity sha512-0YiBEOxWqKkSQWL9nNGGEgndoeL0ZpWrbLMNL5u/Kaxrli3Eaxlt3ZtIDktEvXt4L/R9r3ODr2zKwGM/2BjxVw== - dependencies: - "@jest/transform" "30.2.0" - "@types/babel__core" "^7.20.5" - babel-plugin-istanbul "^7.0.1" - babel-preset-jest "30.2.0" - chalk "^4.1.2" - graceful-fs "^4.2.11" - slash "^3.0.0" - -babel-plugin-istanbul@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-7.0.1.tgz#d8b518c8ea199364cf84ccc82de89740236daf92" - integrity sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA== - dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@istanbuljs/load-nyc-config" "^1.0.0" - "@istanbuljs/schema" "^0.1.3" - istanbul-lib-instrument "^6.0.2" - test-exclude "^6.0.0" - -babel-plugin-jest-hoist@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.2.0.tgz#94c250d36b43f95900f3a219241e0f4648191ce2" - integrity sha512-ftzhzSGMUnOzcCXd6WHdBGMyuwy15Wnn0iyyWGKgBDLxf9/s5ABuraCSpBX2uG0jUg4rqJnxsLc5+oYBqoxVaA== - dependencies: - "@types/babel__core" "^7.20.5" - babel-plugin-polyfill-corejs2@^0.4.15: version "0.4.15" resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.15.tgz#808fa349686eea4741807cfaaa2aa3aa57ce120a" @@ -3306,27 +3033,6 @@ babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf" integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ== -babel-preset-current-node-syntax@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz#20730d6cdc7dda5d89401cab10ac6a32067acde6" - integrity sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg== - dependencies: - "@babel/plugin-syntax-async-generators" "^7.8.4" - "@babel/plugin-syntax-bigint" "^7.8.3" - "@babel/plugin-syntax-class-properties" "^7.12.13" - "@babel/plugin-syntax-class-static-block" "^7.14.5" - "@babel/plugin-syntax-import-attributes" "^7.24.7" - "@babel/plugin-syntax-import-meta" "^7.10.4" - "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" - "@babel/plugin-syntax-top-level-await" "^7.14.5" - babel-preset-fbjs@^3.4.0: version "3.4.0" resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz#38a14e5a7a3b285a3f3a86552d650dca5cf6111c" @@ -3360,14 +3066,6 @@ babel-preset-fbjs@^3.4.0: "@babel/plugin-transform-template-literals" "^7.0.0" babel-plugin-syntax-trailing-function-commas "^7.0.0-beta.0" -babel-preset-jest@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-30.2.0.tgz#04717843e561347781d6d7f69c81e6bcc3ed11ce" - integrity sha512-US4Z3NOieAQumwFnYdUWKvUKh8+YSnS/gB3t6YBiz0bskpu7Pine8pPCheNxlPEW4wnUkma2a94YuW2q3guvCQ== - dependencies: - babel-plugin-jest-hoist "30.2.0" - babel-preset-current-node-syntax "^1.2.0" - balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" @@ -3378,11 +3076,6 @@ balanced-match@^4.0.2: resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-4.0.4.tgz#bfb10662feed8196a2c62e7c68e17720c274179a" integrity sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA== -base64-js@^1.3.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" - integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== - baseline-browser-mapping@^2.9.0: version "2.10.0" resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.10.0.tgz#5b09935025bf8a80e29130251e337c6a7fc8cbb9" @@ -3395,20 +3088,6 @@ better-path-resolve@1.0.0: dependencies: is-windows "^1.0.0" -binary-extensions@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" - integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== - -bl@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" - integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== - dependencies: - buffer "^5.5.0" - inherits "^2.0.4" - readable-stream "^3.4.0" - bob-the-bundler@7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/bob-the-bundler/-/bob-the-bundler-7.0.1.tgz#ef86131674de60f2616801d55a507594b4cbd88f" @@ -3434,13 +3113,6 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -brace-expansion@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.2.tgz#54fc53237a613d854c7bd37463aad17df87214e7" - integrity sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ== - dependencies: - balanced-match "^1.0.0" - brace-expansion@^5.0.2: version "5.0.4" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-5.0.4.tgz#614daaecd0a688f660bbbc909a8748c3d80d4336" @@ -3448,7 +3120,7 @@ brace-expansion@^5.0.2: dependencies: balanced-match "^4.0.2" -braces@^3.0.2, braces@^3.0.3, braces@~3.0.2: +braces@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== @@ -3466,13 +3138,6 @@ browserslist@^4.24.0, browserslist@^4.28.1: node-releases "^2.0.27" update-browserslist-db "^1.2.0" -bs-logger@^0.2.6: - version "0.2.6" - resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" - integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== - dependencies: - fast-json-stable-stringify "2.x" - bser@2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" @@ -3480,26 +3145,6 @@ bser@2.1.1: dependencies: node-int64 "^0.4.0" -buffer-from@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" - integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== - -buffer@^5.5.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" - integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== - dependencies: - base64-js "^1.3.1" - ieee754 "^1.1.13" - -busboy@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893" - integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA== - dependencies: - streamsearch "^1.1.0" - call-bind-apply-helpers@^1.0.0, call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6" @@ -3526,7 +3171,7 @@ call-bound@^1.0.2, call-bound@^1.0.3, call-bound@^1.0.4: call-bind-apply-helpers "^1.0.2" get-intrinsic "^1.3.0" -callsites@^3.0.0, callsites@^3.1.0: +callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== @@ -3539,16 +3184,11 @@ camel-case@^4.1.2: pascal-case "^3.1.2" tslib "^2.0.3" -camelcase@^5.0.0, camelcase@^5.3.1: +camelcase@^5.0.0: version "5.3.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== -camelcase@^6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" - integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== - caniuse-lite@^1.0.30001759: version "1.0.30001776" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001776.tgz#3c64d006348a2e92037aa4302345129806a42d24" @@ -3563,7 +3203,12 @@ capital-case@^1.0.4: tslib "^2.0.3" upper-case-first "^2.0.2" -chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1, chalk@^4.1.2: +chai@^6.2.1: + version "6.2.2" + resolved "https://registry.yarnpkg.com/chai/-/chai-6.2.2.tgz#ae41b52c9aca87734505362717f3255facda360e" + integrity sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg== + +chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -3605,51 +3250,16 @@ change-case@^4.1.2: snake-case "^3.0.4" tslib "^2.0.3" -char-regex@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" - integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== - chardet@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/chardet/-/chardet-2.1.1.tgz#5c75593704a642f71ee53717df234031e65373c8" integrity sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ== -chokidar@^3.5.2: - version "3.6.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" - integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== - dependencies: - anymatch "~3.1.2" - braces "~3.0.2" - glob-parent "~5.1.2" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.6.0" - optionalDependencies: - fsevents "~2.3.2" - ci-info@^3.7.0: version "3.9.0" resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4" integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== -ci-info@^4.2.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-4.4.0.tgz#7d54eff9f54b45b62401c26032696eb59c8bd18c" - integrity sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg== - -cjs-module-lexer@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-2.2.0.tgz#b3ca5101843389259ade7d88c77bd06ce55849ca" - integrity sha512-4bHTS2YuzUvtoLjdy+98ykbNB5jS0+07EvFNXerqZQJ89F7DI6ET7OQo/HJuW6K0aVsKA9hj9/RVb2kQVOrPDQ== - -clean-stack@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" - integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== - clean-stack@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-3.0.1.tgz#155bf0b2221bf5f4fba89528d24c5953f17fe3a8" @@ -3657,13 +3267,6 @@ clean-stack@^3.0.0: dependencies: escape-string-regexp "4.0.0" -cli-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" - integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== - dependencies: - restore-cursor "^3.1.0" - cli-cursor@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-5.0.0.tgz#24a4831ecf5a6b01ddeb32fb71a4b2088b0dce38" @@ -3671,19 +3274,6 @@ cli-cursor@^5.0.0: dependencies: restore-cursor "^5.0.0" -cli-spinners@^2.5.0: - version "2.9.2" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.9.2.tgz#1773a8f4b9c4d6ac31563df53b3fc1d79462fe41" - integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg== - -cli-truncate@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-2.1.0.tgz#c39e28bf05edcde5be3b98992a22deed5a2b93c7" - integrity sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg== - dependencies: - slice-ansi "^3.0.0" - string-width "^4.2.0" - cli-truncate@^5.0.0: version "5.2.0" resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-5.2.0.tgz#c8e72aaca8339c773d128c36e0a17c6315b694eb" @@ -3692,10 +3282,10 @@ cli-truncate@^5.0.0: slice-ansi "^8.0.0" string-width "^8.2.0" -cli-width@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" - integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== +cli-width@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-4.1.0.tgz#42daac41d3c254ef38ad8ac037672130173691c5" + integrity sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ== cliui@^6.0.0: version "6.0.0" @@ -3715,21 +3305,6 @@ cliui@^8.0.1: strip-ansi "^6.0.1" wrap-ansi "^7.0.0" -clone@^1.0.2: - version "1.0.4" - resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" - integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== - -collect-v8-coverage@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz#cc1f01eb8d02298cbc9a437c74c70ab4e5210b80" - integrity sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw== - color-convert@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" @@ -3742,7 +3317,7 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -colorette@^2.0.16, colorette@^2.0.20: +colorette@^2.0.20: version "2.0.20" resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a" integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== @@ -3788,31 +3363,25 @@ core-js-compat@^3.48.0: dependencies: browserslist "^4.28.1" -cosmiconfig-typescript-loader@^4.3.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-4.4.0.tgz#f3feae459ea090f131df5474ce4b1222912319f9" - integrity sha512-BabizFdC3wBHhbI4kJh0VkQP9GkBfoHPydD0COMce1nJ1kJAB3F2TmJ/I7diULBKtmEWSwEbuN/KDtgnmUUVmw== - -cosmiconfig@8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.0.0.tgz#e9feae014eab580f858f8a0288f38997a7bebe97" - integrity sha512-da1EafcpH6b/TD8vDRaWV7xFINlHlF6zKsGwS1TsuVJTZRkquaS5HTMq7uq6h31619QjbsYl21gVDOm32KM1vQ== +cosmiconfig@^8.1.0: + version "8.3.6" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.3.6.tgz#060a2b871d66dba6c8538ea1118ba1ac16f5fae3" + integrity sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA== dependencies: - import-fresh "^3.2.1" + import-fresh "^3.3.0" js-yaml "^4.1.0" - parse-json "^5.0.0" + parse-json "^5.2.0" path-type "^4.0.0" -cosmiconfig@^7.0.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6" - integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA== +cosmiconfig@^9.0.0: + version "9.0.1" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-9.0.1.tgz#df110631a8547b5d1a98915271986f06e3011379" + integrity sha512-hr4ihw+DBqcvrsEDioRO31Z17x71pUYoNe/4h6Z0wB72p7MU7/9gH8Q3s12NFhHPfYBBOV3qyfUxmr/Yn3shnQ== dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.10.0" + env-paths "^2.2.1" + import-fresh "^3.3.0" + js-yaml "^4.1.0" + parse-json "^5.2.0" create-require@^1.1.0: version "1.1.1" @@ -3850,6 +3419,11 @@ cross-spawn@^7.0.3, cross-spawn@^7.0.5, cross-spawn@^7.0.6: shebang-command "^2.0.0" which "^2.0.1" +data-uri-to-buffer@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz#d8feb2b2881e6a4f58c2e08acfd0e2834e26222e" + integrity sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A== + data-view-buffer@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/data-view-buffer/-/data-view-buffer-1.0.2.tgz#211a03ba95ecaf7798a8c7198d79536211f88570" @@ -3882,22 +3456,15 @@ dataloader@^1.4.0: resolved "https://registry.yarnpkg.com/dataloader/-/dataloader-1.4.0.tgz#bca11d867f5d3f1b9ed9f737bd15970c65dff5c8" integrity sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw== -dataloader@^2.2.2: +dataloader@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/dataloader/-/dataloader-2.2.3.tgz#42d10b4913515f5b37c6acedcb4960d6ae1b1517" integrity sha512-y2krtASINtPFS1rSDjacrFgn1dcUuoREVabwlOGOe4SdxenREqwjwjElAdwvbGM7kgZz9a3KVicWR7vcz8rnzA== -debounce@^1.2.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.1.tgz#38881d8f4166a5c5848020c11827b834bcb3e0a5" - integrity sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug== - -debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.4.3: - version "4.4.3" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a" - integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== - dependencies: - ms "^2.1.3" +debounce@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/debounce/-/debounce-2.2.0.tgz#f895fa2fbdb579a0f0d3dcf5dde19657e50eaad5" + integrity sha512-Xks6RUDLZFdz8LIdR6q0MTH44k7FikOmnh5xkSjMig6ch45afc8sjTjRQf3P6ax8dMgcQrYO/AR2RGWURrruqw== debug@^3.2.7: version "3.2.7" @@ -3906,33 +3473,23 @@ debug@^3.2.7: dependencies: ms "^2.1.1" +debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.4.3: + version "4.4.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a" + integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== + dependencies: + ms "^2.1.3" + decamelize@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== -dedent@^1.6.0: - version "1.7.2" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.7.2.tgz#34e2264ab538301e27cf7b07bf2369c19baa8dd9" - integrity sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA== - deep-is@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== -deepmerge@^4.3.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" - integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== - -defaults@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" - integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== - dependencies: - clone "^1.0.2" - define-data-property@^1.0.1, define-data-property@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" @@ -3998,21 +3555,11 @@ dot-case@^3.0.4: no-case "^3.0.4" tslib "^2.0.3" -dotenv@^16.0.0: - version "16.6.1" - resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.6.1.tgz#773f0e69527a8315c7285d5ee73c4459d20a8020" - integrity sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow== - dotenv@^8.1.0: version "8.6.0" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.6.0.tgz#061af664d19f7f4d8fc6e4ff9b584ce237adcb8b" integrity sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g== -dset@^3.1.2: - version "3.1.4" - resolved "https://registry.yarnpkg.com/dset/-/dset-3.1.4.tgz#f8eaf5f023f068a036d08cd07dc9ffb7d0065248" - integrity sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA== - dunder-proto@^1.0.0, dunder-proto@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" @@ -4022,21 +3569,11 @@ dunder-proto@^1.0.0, dunder-proto@^1.0.1: es-errors "^1.3.0" gopd "^1.2.0" -eastasianwidth@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" - integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== - electron-to-chromium@^1.5.263: version "1.5.307" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.307.tgz#09f8973100c39fb0d003b890393cd1d58932b1c8" integrity sha512-5z3uFKBWjiNR44nFcYdkcXjKMbg5KXNdciu7mhTPo9tB7NbqSNP2sSnGR+fqknZSCwKkBN+oxiiajWs4dT6ORg== -emittery@^0.13.1: - version "0.13.1" - resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.13.1.tgz#c04b8c3457490e0847ae51fced3af52d338e3dad" - integrity sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ== - emoji-regex@^10.3.0: version "10.6.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-10.6.0.tgz#bf3d6e8f7f8fd22a65d9703475bc0147357a6b0d" @@ -4047,11 +3584,6 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -emoji-regex@^9.2.2: - version "9.2.2" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" - integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== - enquirer@^2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.4.1.tgz#93334b3fbd74fc7097b224ab4a8fb7e40bf4ae56" @@ -4060,6 +3592,11 @@ enquirer@^2.4.1: ansi-colors "^4.1.1" strip-ansi "^6.0.1" +env-paths@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2" + integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A== + environment@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/environment/-/environment-1.1.0.tgz#8e86c66b180f363c7ab311787e0259665f45a9f1" @@ -4142,6 +3679,11 @@ es-errors@^1.3.0: resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== +es-module-lexer@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.7.0.tgz#9159601561880a85f2734560a9099b2c31e5372a" + integrity sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA== + es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1" @@ -4175,6 +3717,38 @@ es-to-primitive@^1.3.0: is-date-object "^1.0.5" is-symbol "^1.0.4" +esbuild@^0.27.0: + version "0.27.3" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.27.3.tgz#5859ca8e70a3af956b26895ce4954d7e73bd27a8" + integrity sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg== + optionalDependencies: + "@esbuild/aix-ppc64" "0.27.3" + "@esbuild/android-arm" "0.27.3" + "@esbuild/android-arm64" "0.27.3" + "@esbuild/android-x64" "0.27.3" + "@esbuild/darwin-arm64" "0.27.3" + "@esbuild/darwin-x64" "0.27.3" + "@esbuild/freebsd-arm64" "0.27.3" + "@esbuild/freebsd-x64" "0.27.3" + "@esbuild/linux-arm" "0.27.3" + "@esbuild/linux-arm64" "0.27.3" + "@esbuild/linux-ia32" "0.27.3" + "@esbuild/linux-loong64" "0.27.3" + "@esbuild/linux-mips64el" "0.27.3" + "@esbuild/linux-ppc64" "0.27.3" + "@esbuild/linux-riscv64" "0.27.3" + "@esbuild/linux-s390x" "0.27.3" + "@esbuild/linux-x64" "0.27.3" + "@esbuild/netbsd-arm64" "0.27.3" + "@esbuild/netbsd-x64" "0.27.3" + "@esbuild/openbsd-arm64" "0.27.3" + "@esbuild/openbsd-x64" "0.27.3" + "@esbuild/openharmony-arm64" "0.27.3" + "@esbuild/sunos-x64" "0.27.3" + "@esbuild/win32-arm64" "0.27.3" + "@esbuild/win32-ia32" "0.27.3" + "@esbuild/win32-x64" "0.27.3" + escalade@^3.1.1, escalade@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" @@ -4185,16 +3759,6 @@ escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== - -escape-string-regexp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" - integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== - eslint-import-resolver-node@^0.3.9: version "0.3.9" resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz#d4eaac52b8a2e7c3cd1903eb00f7e053356118ac" @@ -4332,6 +3896,13 @@ estraverse@^5.1.0, estraverse@^5.2.0: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== +estree-walker@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-3.0.3.tgz#67c3e549ec402a487b4fc193d1953a524752340d" + integrity sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g== + dependencies: + "@types/estree" "^1.0.0" + esutils@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" @@ -4357,53 +3928,16 @@ execa@7.1.1: signal-exit "^3.0.7" strip-final-newline "^3.0.0" -execa@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" - integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.0" - human-signals "^2.1.0" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.1" - onetime "^5.1.2" - signal-exit "^3.0.3" - strip-final-newline "^2.0.0" - -exit-x@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/exit-x/-/exit-x-0.2.2.tgz#1f9052de3b8d99a696b10dad5bced9bdd5c3aa64" - integrity sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ== - -expect@30.2.0, expect@^30.0.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/expect/-/expect-30.2.0.tgz#d4013bed267013c14bc1199cec8aa57cee9b5869" - integrity sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw== - dependencies: - "@jest/expect-utils" "30.2.0" - "@jest/get-type" "30.1.0" - jest-matcher-utils "30.2.0" - jest-message-util "30.2.0" - jest-mock "30.2.0" - jest-util "30.2.0" +expect-type@^1.2.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/expect-type/-/expect-type-1.3.0.tgz#0d58ed361877a31bbc4dd6cf71bbfef7faf6bd68" + integrity sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA== extendable-error@^0.1.5: version "0.1.7" resolved "https://registry.yarnpkg.com/extendable-error/-/extendable-error-0.1.7.tgz#60b9adf206264ac920058a7395685ae4670c2b96" integrity sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg== -extract-files@^11.0.0: - version "11.0.0" - resolved "https://registry.yarnpkg.com/extract-files/-/extract-files-11.0.0.tgz#b72d428712f787eef1f5193aff8ab5351ca8469a" - integrity sha512-FuoE1qtbJ4bBVvv94CC7s0oTnKUGvQs+Rjf1L2SJFfS+HTVVjhPFtehPdQ0JiGPqVNfSSZvL5yzHHQq2Z4WNhQ== - -fast-decode-uri-component@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/fast-decode-uri-component/-/fast-decode-uri-component-1.0.1.tgz#46f8b6c22b30ff7a81357d4f59abfae938202543" - integrity sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg== - fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -4420,7 +3954,7 @@ fast-glob@^3.2.9, fast-glob@^3.3.0: merge2 "^1.3.0" micromatch "^4.0.8" -fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0: +fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== @@ -4443,13 +3977,6 @@ fast-levenshtein@^2.0.6: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== -fast-querystring@^1.1.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/fast-querystring/-/fast-querystring-1.1.2.tgz#a6d24937b4fc6f791b4ee31dcb6f53aeafb89f53" - integrity sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg== - dependencies: - fast-decode-uri-component "^1.0.1" - fast-uri@^2.1.0: version "2.4.0" resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-2.4.0.tgz#67eae6fbbe9f25339d5d3f4c4234787b65d7d55e" @@ -4460,13 +3987,6 @@ fast-uri@^3.0.1: resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.1.0.tgz#66eecff6c764c0df9b762e62ca7edcfb53b4edfa" integrity sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA== -fast-url-parser@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/fast-url-parser/-/fast-url-parser-1.1.3.tgz#f4af3ea9f34d8a271cf58ad2b3759f431f0b318d" - integrity sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ== - dependencies: - punycode "^1.3.2" - fastq@^1.6.0: version "1.20.1" resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.20.1.tgz#ca750a10dc925bc8b18839fd203e3ef4b3ced675" @@ -4474,7 +3994,7 @@ fastq@^1.6.0: dependencies: reusify "^1.0.4" -fb-watchman@^2.0.0, fb-watchman@^2.0.2: +fb-watchman@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== @@ -4504,12 +4024,13 @@ fdir@^6.5.0: resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.5.0.tgz#ed2ab967a331ade62f18d077dae192684d50d350" integrity sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg== -figures@^3.0.0: +fetch-blob@^3.1.2, fetch-blob@^3.1.4: version "3.2.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" - integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== + resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-3.2.0.tgz#f09b8d4bbd45adc6f0c20b7e787e793e309dcce9" + integrity sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ== dependencies: - escape-string-regexp "^1.0.5" + node-domexception "^1.0.0" + web-streams-polyfill "^3.0.3" file-entry-cache@^8.0.0: version "8.0.0" @@ -4525,7 +4046,7 @@ fill-range@^7.1.1: dependencies: to-regex-range "^5.0.1" -find-up@^4.0.0, find-up@^4.1.0: +find-up@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== @@ -4568,13 +4089,12 @@ for-each@^0.3.3, for-each@^0.3.5: dependencies: is-callable "^1.2.7" -foreground-child@^3.1.0: - version "3.3.1" - resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.3.1.tgz#32e8e9ed1b68a3497befb9ac2b6adf92a638576f" - integrity sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw== +formdata-polyfill@^4.0.10: + version "4.0.10" + resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" + integrity sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g== dependencies: - cross-spawn "^7.0.6" - signal-exit "^4.0.1" + fetch-blob "^3.1.2" fs-extra@^10.0.0: version "10.1.0" @@ -4617,7 +4137,7 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@^2.3.3, fsevents@~2.3.2: +fsevents@~2.3.2, fsevents@~2.3.3: version "2.3.3" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== @@ -4687,11 +4207,6 @@ get-intrinsic@^1.2.4, get-intrinsic@^1.2.5, get-intrinsic@^1.2.6, get-intrinsic@ hasown "^2.0.2" math-intrinsics "^1.1.0" -get-package-type@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" - integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== - get-proto@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" @@ -4700,7 +4215,7 @@ get-proto@^1.0.1: dunder-proto "^1.0.1" es-object-atoms "^1.0.0" -get-stream@^6.0.0, get-stream@^6.0.1: +get-stream@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== @@ -4714,7 +4229,7 @@ get-symbol-description@^1.1.0: es-errors "^1.3.0" get-intrinsic "^1.2.6" -glob-parent@^5.1.2, glob-parent@~5.1.2: +glob-parent@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -4728,18 +4243,6 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob@^10.3.10: - version "10.5.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-10.5.0.tgz#8ec0355919cd3338c28428a23d4f24ecc5fe738c" - integrity sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg== - dependencies: - foreground-child "^3.1.0" - jackspeak "^3.1.2" - minimatch "^9.0.4" - minipass "^7.1.2" - package-json-from-dist "^1.0.0" - path-scurry "^1.11.1" - glob@^13.0.3: version "13.0.6" resolved "https://registry.yarnpkg.com/glob/-/glob-13.0.6.tgz#078666566a425147ccacfbd2e332deb66a2be71d" @@ -4749,7 +4252,7 @@ glob@^13.0.3: minipass "^7.1.3" path-scurry "^2.0.2" -glob@^7.1.1, glob@^7.1.4: +glob@^7.1.1: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -4797,31 +4300,36 @@ globby@^13.1.3: merge2 "^1.4.1" slash "^4.0.0" +globrex@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/globrex/-/globrex-0.1.2.tgz#dd5d9ec826232730cd6793a5e33a9302985e6098" + integrity sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg== + gopd@^1.0.1, gopd@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== -graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.5, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.11: +graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.5, graceful-fs@^4.1.6, graceful-fs@^4.2.0: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== -graphql-config@^4.1.0, graphql-config@^4.4.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/graphql-config/-/graphql-config-4.5.0.tgz#257c2338950b8dce295a27f75c5f6c39f8f777b2" - integrity sha512-x6D0/cftpLUJ0Ch1e5sj1TZn6Wcxx4oMfmhaG9shM0DKajA9iR+j1z86GSTQ19fShbGvrSSvbIQsHku6aQ6BBw== +graphql-config@^5.1.6: + version "5.1.6" + resolved "https://registry.yarnpkg.com/graphql-config/-/graphql-config-5.1.6.tgz#bea614428ec0c5c9a6267b8a19d17e09018f8a4f" + integrity sha512-fCkYnm4Kdq3un0YIM4BCZHVR5xl0UeLP6syxxO7KAstdY7QVyVvTHP0kRPDYEP1v08uwtJVgis5sj3IOTLOniQ== dependencies: - "@graphql-tools/graphql-file-loader" "^7.3.7" - "@graphql-tools/json-file-loader" "^7.3.7" - "@graphql-tools/load" "^7.5.5" - "@graphql-tools/merge" "^8.2.6" - "@graphql-tools/url-loader" "^7.9.7" - "@graphql-tools/utils" "^9.0.0" - cosmiconfig "8.0.0" - jiti "1.17.1" - minimatch "4.2.3" - string-env-interpolation "1.0.1" + "@graphql-tools/graphql-file-loader" "^8.0.0" + "@graphql-tools/json-file-loader" "^8.0.0" + "@graphql-tools/load" "^8.1.0" + "@graphql-tools/merge" "^9.0.0" + "@graphql-tools/url-loader" "^9.0.0" + "@graphql-tools/utils" "^11.0.0" + cosmiconfig "^8.1.0" + jiti "^2.0.0" + minimatch "^10.0.0" + string-env-interpolation "^1.0.1" tslib "^2.4.0" graphql-helix@1.13.0: @@ -4841,41 +4349,6 @@ graphql-jit@0.8.7: lodash.merge "4.6.2" lodash.mergewith "4.6.2" -graphql-language-service-interface@2.10.2: - version "2.10.2" - resolved "https://registry.yarnpkg.com/graphql-language-service-interface/-/graphql-language-service-interface-2.10.2.tgz#de9386f699e446320256175e215cdc10ccf9f9b7" - integrity sha512-RKIEBPhRMWdXY3fxRs99XysTDnEgAvNbu8ov/5iOlnkZsWQNzitjtd0O0l1CutQOQt3iXoHde7w8uhCnKL4tcg== - dependencies: - graphql-config "^4.1.0" - graphql-language-service-parser "^1.10.4" - graphql-language-service-types "^1.8.7" - graphql-language-service-utils "^2.7.1" - vscode-languageserver-types "^3.15.1" - -graphql-language-service-parser@^1.10.4: - version "1.10.4" - resolved "https://registry.yarnpkg.com/graphql-language-service-parser/-/graphql-language-service-parser-1.10.4.tgz#b2979deefc5c0df571dacd409b2d5fbf1cdf7a9d" - integrity sha512-duDE+0aeKLFVrb9Kf28U84ZEHhHcvTjWIT6dJbIAQJWBaDoht0D4BK9EIhd94I3DtKRc1JCJb2+70y1lvP/hiA== - dependencies: - graphql-language-service-types "^1.8.7" - -graphql-language-service-types@^1.8.7: - version "1.8.7" - resolved "https://registry.yarnpkg.com/graphql-language-service-types/-/graphql-language-service-types-1.8.7.tgz#f5e909e6d9334ea2d8d1f7281b695b6f5602c07f" - integrity sha512-LP/Mx0nFBshYEyD0Ny6EVGfacJAGVx+qXtlJP4hLzUdBNOGimfDNtMVIdZANBXHXcM41MDgMHTnyEx2g6/Ttbw== - dependencies: - graphql-config "^4.1.0" - vscode-languageserver-types "^3.15.1" - -graphql-language-service-utils@^2.7.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/graphql-language-service-utils/-/graphql-language-service-utils-2.7.1.tgz#c97c8d744a761480aba7e03e4a42adf28b6fce39" - integrity sha512-Wci5MbrQj+6d7rfvbORrA9uDlfMysBWYaG49ST5TKylNaXYFf3ixFOa74iM1KtM9eidosUbI3E1JlWi0JaidJA== - dependencies: - "@types/json-schema" "7.0.9" - graphql-language-service-types "^1.8.7" - nullthrows "^1.0.0" - graphql-request@7.2.0: version "7.2.0" resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-7.2.0.tgz#af4aa25f27a087dd4fc93a4ff54a0f59c4487269" @@ -4898,28 +4371,16 @@ graphql-tag@2.12.6, graphql-tag@^2.11.0, graphql-tag@^2.12.6: dependencies: tslib "^2.1.0" -graphql-ws@5.12.1: - version "5.12.1" - resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.12.1.tgz#c62d5ac54dbd409cc6520b0b39de374b3d59d0dd" - integrity sha512-umt4f5NnMK46ChM2coO36PTFhHouBrK9stWWBczERguwYrGnPNxJ9dimU6IyOBfOkC6Izhkg4H8+F51W/8CYDg== +graphql-ws@^6.0.6: + version "6.0.7" + resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-6.0.7.tgz#140307a513f0ba659ecec618d6cf15354a842f96" + integrity sha512-yoLRW+KRlDmnnROdAu7sX77VNLC0bsFoZyGQJLy1cF+X/SkLg/fWkRGrEEYQK8o2cafJ2wmEaMqMEZB3U3DYDg== graphql@16.13.1: version "16.13.1" resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.13.1.tgz#38ae5c76fbc4a009e0004dca6c76c370a1da7b54" integrity sha512-gGgrVCoDKlIZ8fIqXBBb0pPKqDgki0Z/FSKNiQzSGj2uEYHr1tq5wmBegGwJx6QB5S5cM0khSBpi/JFHMCvsmQ== -handlebars@^4.7.8: - version "4.7.8" - resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.8.tgz#41c42c18b1be2365439188c77c6afae71c0cd9e9" - integrity sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ== - dependencies: - minimist "^1.2.5" - neo-async "^2.6.2" - source-map "^0.6.1" - wordwrap "^1.0.0" - optionalDependencies: - uglify-js "^3.1.4" - has-bigints@^1.0.2: version "1.1.0" resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.1.0.tgz#28607e965ac967e03cd2a2c70a2636a1edad49fe" @@ -4978,37 +4439,11 @@ hoist-non-react-statics@^3.3.2: dependencies: react-is "^16.7.0" -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -http-proxy-agent@^6.0.0: - version "6.1.1" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-6.1.1.tgz#dc04f1a84e09511740cfbd984a56f86cc42e4277" - integrity sha512-JRCz+4Whs6yrrIoIlrH+ZTmhrRwtMnmOHsHn8GFEn9O2sVfSE+DAZ3oyyGIKF8tjJEeSJmP89j7aTjVsSqsU0g== - dependencies: - agent-base "^7.1.0" - debug "^4.3.4" - -https-proxy-agent@^6.0.0: - version "6.2.1" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-6.2.1.tgz#0965ab47371b3e531cf6794d1eb148710a992ba7" - integrity sha512-ONsE3+yfZF2caH5+bJlcddtWqNI3Gvs5A38+ngvljxaBiRXRswym2c7yf8UAeFpRFKjFNHIFEHqR/OLAWJzyiA== - dependencies: - agent-base "^7.0.2" - debug "4" - human-id@^4.1.1: version "4.1.3" resolved "https://registry.yarnpkg.com/human-id/-/human-id-4.1.3.tgz#f408633c6febbef4650758f00ffca0967afb566d" integrity sha512-tsYlhAYpjCKa//8rXZ9DqKEawhPoSytweBC2eNvcaDK+57RZLHGqNs3PZTQO6yekLFSuvA6AlnAfrw1uBvtb+Q== -human-signals@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" - integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== - human-signals@^4.3.0: version "4.3.1" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-4.3.1.tgz#ab7f811e851fca97ffbd2c1fe9a958964de321b2" @@ -5026,11 +4461,6 @@ iconv-lite@^0.7.0: dependencies: safer-buffer ">= 2.1.2 < 3.0.0" -ieee754@^1.1.13: - version "1.2.1" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" - integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== - ignore@^5.2.0, ignore@^5.2.4: version "5.3.2" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" @@ -5056,7 +4486,7 @@ immutable@~3.7.6: resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.7.6.tgz#13b4d3cb12befa15482a26fe1b2ebae640071e4b" integrity sha512-AizQPcaofEtO11RZhPPHBOJRdo/20MKQF9mBLnVkBoyHi1/zXK8fzVdnEpSV9gxqtnh6Qomfp3F0xT5qP/vThw== -import-fresh@^3.2.1: +import-fresh@^3.2.1, import-fresh@^3.3.0: version "3.3.1" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.1.tgz#9cecb56503c0ada1f2741dbbd6546e4b13b57ccf" integrity sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ== @@ -5069,14 +4499,6 @@ import-from@4.0.0: resolved "https://registry.yarnpkg.com/import-from/-/import-from-4.0.0.tgz#2710b8d66817d232e16f4166e319248d3d5492e2" integrity sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ== -import-local@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.2.0.tgz#c3d5c745798c02a6f8b897726aba5100186ee260" - integrity sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA== - dependencies: - pkg-dir "^4.2.0" - resolve-cwd "^3.0.0" - imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" @@ -5095,32 +4517,11 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.3, inherits@^2.0.4: +inherits@2: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== -inquirer@^8.0.0: - version "8.2.7" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.7.tgz#62f6b931a9b7f8735dc42db927316d8fb6f71de8" - integrity sha512-UjOaSel/iddGZJ5xP/Eixh6dY1XghiBw4XK13rCCIJcJfyhhoul/7KhLLUGtebEj6GDYM6Vnx/mVsjx2L/mFIA== - dependencies: - "@inquirer/external-editor" "^1.0.0" - ansi-escapes "^4.2.1" - chalk "^4.1.1" - cli-cursor "^3.1.0" - cli-width "^3.0.0" - figures "^3.0.0" - lodash "^4.17.21" - mute-stream "0.0.8" - ora "^5.4.1" - run-async "^2.4.0" - rxjs "^7.5.5" - string-width "^4.1.0" - strip-ansi "^6.0.0" - through "^2.3.6" - wrap-ansi "^6.0.1" - internal-slot@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.1.0.tgz#1eac91762947d2f7056bc838d93e13b2e9604961" @@ -5177,13 +4578,6 @@ is-bigint@^1.1.0: dependencies: has-bigints "^1.0.2" -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - is-boolean-object@^1.2.1: version "1.2.2" resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.2.2.tgz#7067f47709809a393c71ff5bb3e135d8a9215d9e" @@ -5250,11 +4644,6 @@ is-fullwidth-code-point@^5.0.0, is-fullwidth-code-point@^5.1.0: dependencies: get-east-asian-width "^1.3.1" -is-generator-fn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" - integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== - is-generator-function@^1.0.10: version "1.1.2" resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.1.2.tgz#ae3b61e3d5ea4e4839b90bad22b02335051a17d5" @@ -5266,18 +4655,13 @@ is-generator-function@^1.0.10: has-tostringtag "^1.0.2" safe-regex-test "^1.1.0" -is-glob@4.0.3, is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: +is-glob@4.0.3, is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== dependencies: is-extglob "^2.1.1" -is-interactive@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" - integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== - is-lower-case@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-lower-case/-/is-lower-case-2.0.2.tgz#1c0884d3012c841556243483aa5d522f47396d2a" @@ -5295,6 +4679,11 @@ is-negative-zero@^2.0.3: resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.3.tgz#ced903a027aca6381b777a5743069d7376a49747" integrity sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw== +is-node-process@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/is-node-process/-/is-node-process-1.2.0.tgz#ea02a1b90ddb3934a19aea414e88edef7e11d134" + integrity sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw== + is-number-object@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.1.1.tgz#144b21e95a1bc148205dcc2814a9134ec41b2541" @@ -5342,11 +4731,6 @@ is-shared-array-buffer@^1.0.4: dependencies: call-bound "^1.0.3" -is-stream@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" - integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== - is-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac" @@ -5444,451 +4828,51 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -isomorphic-ws@5.0.0, isomorphic-ws@^5.0.0: +isomorphic-ws@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz#e5529148912ecb9b451b46ed44d53dae1ce04bbf" - integrity sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw== - -istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" - integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== - -istanbul-lib-instrument@^6.0.0, istanbul-lib-instrument@^6.0.2: - version "6.0.3" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz#fa15401df6c15874bcb2105f773325d78c666765" - integrity sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q== - dependencies: - "@babel/core" "^7.23.9" - "@babel/parser" "^7.23.9" - "@istanbuljs/schema" "^0.1.3" - istanbul-lib-coverage "^3.2.0" - semver "^7.5.4" - -istanbul-lib-report@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#908305bac9a5bd175ac6a74489eafd0fc2445a7d" - integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^4.0.0" - supports-color "^7.1.0" - -istanbul-lib-source-maps@^5.0.0: - version "5.0.6" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz#acaef948df7747c8eb5fbf1265cb980f6353a441" - integrity sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A== - dependencies: - "@jridgewell/trace-mapping" "^0.3.23" - debug "^4.1.1" - istanbul-lib-coverage "^3.0.0" - -istanbul-reports@^3.1.3: - version "3.2.0" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.2.0.tgz#cb4535162b5784aa623cee21a7252cf2c807ac93" - integrity sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -jackspeak@^3.1.2: - version "3.4.3" - resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a" - integrity sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw== - dependencies: - "@isaacs/cliui" "^8.0.2" - optionalDependencies: - "@pkgjs/parseargs" "^0.11.0" - -java-ast@0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/java-ast/-/java-ast-0.4.1.tgz#80b48278a6c97764d85908eab36c1ac40a912650" - integrity sha512-aKKgVD8nfKIbohyTuyHM60Es8vXRu+JlvGAMqY6qx5kKZYLjpALZ0zQi4RokJtE4rg3hEil7h3ASYAOuhpw+Bg== - dependencies: - antlr4ts "^0.5.0-alpha.4" - -jest-changed-files@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-30.2.0.tgz#602266e478ed554e1e1469944faa7efd37cee61c" - integrity sha512-L8lR1ChrRnSdfeOvTrwZMlnWV8G/LLjQ0nG9MBclwWZidA2N5FviRki0Bvh20WRMOX31/JYvzdqTJrk5oBdydQ== - dependencies: - execa "^5.1.1" - jest-util "30.2.0" - p-limit "^3.1.0" - -jest-circus@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-30.2.0.tgz#98b8198b958748a2f322354311023d1d02e7603f" - integrity sha512-Fh0096NC3ZkFx05EP2OXCxJAREVxj1BcW/i6EWqqymcgYKWjyyDpral3fMxVcHXg6oZM7iULer9wGRFvfpl+Tg== - dependencies: - "@jest/environment" "30.2.0" - "@jest/expect" "30.2.0" - "@jest/test-result" "30.2.0" - "@jest/types" "30.2.0" - "@types/node" "*" - chalk "^4.1.2" - co "^4.6.0" - dedent "^1.6.0" - is-generator-fn "^2.1.0" - jest-each "30.2.0" - jest-matcher-utils "30.2.0" - jest-message-util "30.2.0" - jest-runtime "30.2.0" - jest-snapshot "30.2.0" - jest-util "30.2.0" - p-limit "^3.1.0" - pretty-format "30.2.0" - pure-rand "^7.0.0" - slash "^3.0.0" - stack-utils "^2.0.6" - -jest-cli@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-30.2.0.tgz#1780f8e9d66bf84a10b369aea60aeda7697dcc67" - integrity sha512-Os9ukIvADX/A9sLt6Zse3+nmHtHaE6hqOsjQtNiugFTbKRHYIYtZXNGNK9NChseXy7djFPjndX1tL0sCTlfpAA== - dependencies: - "@jest/core" "30.2.0" - "@jest/test-result" "30.2.0" - "@jest/types" "30.2.0" - chalk "^4.1.2" - exit-x "^0.2.2" - import-local "^3.2.0" - jest-config "30.2.0" - jest-util "30.2.0" - jest-validate "30.2.0" - yargs "^17.7.2" - -jest-config@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-30.2.0.tgz#29df8c50e2ad801cc59c406b50176c18c362a90b" - integrity sha512-g4WkyzFQVWHtu6uqGmQR4CQxz/CH3yDSlhzXMWzNjDx843gYjReZnMRanjRCq5XZFuQrGDxgUaiYWE8BRfVckA== - dependencies: - "@babel/core" "^7.27.4" - "@jest/get-type" "30.1.0" - "@jest/pattern" "30.0.1" - "@jest/test-sequencer" "30.2.0" - "@jest/types" "30.2.0" - babel-jest "30.2.0" - chalk "^4.1.2" - ci-info "^4.2.0" - deepmerge "^4.3.1" - glob "^10.3.10" - graceful-fs "^4.2.11" - jest-circus "30.2.0" - jest-docblock "30.2.0" - jest-environment-node "30.2.0" - jest-regex-util "30.0.1" - jest-resolve "30.2.0" - jest-runner "30.2.0" - jest-util "30.2.0" - jest-validate "30.2.0" - micromatch "^4.0.8" - parse-json "^5.2.0" - pretty-format "30.2.0" - slash "^3.0.0" - strip-json-comments "^3.1.1" - -jest-diff@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-30.2.0.tgz#e3ec3a6ea5c5747f605c9e874f83d756cba36825" - integrity sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A== - dependencies: - "@jest/diff-sequences" "30.0.1" - "@jest/get-type" "30.1.0" - chalk "^4.1.2" - pretty-format "30.2.0" - -jest-docblock@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-30.2.0.tgz#42cd98d69f887e531c7352309542b1ce4ee10256" - integrity sha512-tR/FFgZKS1CXluOQzZvNH3+0z9jXr3ldGSD8bhyuxvlVUwbeLOGynkunvlTMxchC5urrKndYiwCFC0DLVjpOCA== - dependencies: - detect-newline "^3.1.0" - -jest-each@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-30.2.0.tgz#39e623ae71641c2ac3ee69b3ba3d258fce8e768d" - integrity sha512-lpWlJlM7bCUf1mfmuqTA8+j2lNURW9eNafOy99knBM01i5CQeY5UH1vZjgT9071nDJac1M4XsbyI44oNOdhlDQ== - dependencies: - "@jest/get-type" "30.1.0" - "@jest/types" "30.2.0" - chalk "^4.1.2" - jest-util "30.2.0" - pretty-format "30.2.0" - -jest-environment-node@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-30.2.0.tgz#3def7980ebd2fd86e74efd4d2e681f55ab38da0f" - integrity sha512-ElU8v92QJ9UrYsKrxDIKCxu6PfNj4Hdcktcn0JX12zqNdqWHB0N+hwOnnBBXvjLd2vApZtuLUGs1QSY+MsXoNA== - dependencies: - "@jest/environment" "30.2.0" - "@jest/fake-timers" "30.2.0" - "@jest/types" "30.2.0" - "@types/node" "*" - jest-mock "30.2.0" - jest-util "30.2.0" - jest-validate "30.2.0" - -jest-haste-map@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-30.2.0.tgz#808e3889f288603ac70ff0ac047598345a66022e" - integrity sha512-sQA/jCb9kNt+neM0anSj6eZhLZUIhQgwDt7cPGjumgLM4rXsfb9kpnlacmvZz3Q5tb80nS+oG/if+NBKrHC+Xw== - dependencies: - "@jest/types" "30.2.0" - "@types/node" "*" - anymatch "^3.1.3" - fb-watchman "^2.0.2" - graceful-fs "^4.2.11" - jest-regex-util "30.0.1" - jest-util "30.2.0" - jest-worker "30.2.0" - micromatch "^4.0.8" - walker "^1.0.8" - optionalDependencies: - fsevents "^2.3.3" - -jest-junit@16.0.0: - version "16.0.0" - resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-16.0.0.tgz#d838e8c561cf9fdd7eb54f63020777eee4136785" - integrity sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ== - dependencies: - mkdirp "^1.0.4" - strip-ansi "^6.0.1" - uuid "^8.3.2" - xml "^1.0.1" - -jest-leak-detector@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-30.2.0.tgz#292fdca7b7c9cf594e1e570ace140b01d8beb736" - integrity sha512-M6jKAjyzjHG0SrQgwhgZGy9hFazcudwCNovY/9HPIicmNSBuockPSedAP9vlPK6ONFJ1zfyH/M2/YYJxOz5cdQ== - dependencies: - "@jest/get-type" "30.1.0" - pretty-format "30.2.0" - -jest-matcher-utils@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-30.2.0.tgz#69a0d4c271066559ec8b0d8174829adc3f23a783" - integrity sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg== - dependencies: - "@jest/get-type" "30.1.0" - chalk "^4.1.2" - jest-diff "30.2.0" - pretty-format "30.2.0" - -jest-message-util@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-30.2.0.tgz#fc97bf90d11f118b31e6131e2b67fc4f39f92152" - integrity sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw== - dependencies: - "@babel/code-frame" "^7.27.1" - "@jest/types" "30.2.0" - "@types/stack-utils" "^2.0.3" - chalk "^4.1.2" - graceful-fs "^4.2.11" - micromatch "^4.0.8" - pretty-format "30.2.0" - slash "^3.0.0" - stack-utils "^2.0.6" - -jest-mock@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-30.2.0.tgz#69f991614eeb4060189459d3584f710845bff45e" - integrity sha512-JNNNl2rj4b5ICpmAcq+WbLH83XswjPbjH4T7yvGzfAGCPh1rw+xVNbtk+FnRslvt9lkCcdn9i1oAoKUuFsOxRw== - dependencies: - "@jest/types" "30.2.0" - "@types/node" "*" - jest-util "30.2.0" - -jest-pnp-resolver@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz#930b1546164d4ad5937d5540e711d4d38d4cad2e" - integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w== - -jest-regex-util@30.0.1: - version "30.0.1" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-30.0.1.tgz#f17c1de3958b67dfe485354f5a10093298f2a49b" - integrity sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA== - -jest-resolve-dependencies@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-30.2.0.tgz#3370e2c0b49cc560f6a7e8ec3a59dd99525e1a55" - integrity sha512-xTOIGug/0RmIe3mmCqCT95yO0vj6JURrn1TKWlNbhiAefJRWINNPgwVkrVgt/YaerPzY3iItufd80v3lOrFJ2w== - dependencies: - jest-regex-util "30.0.1" - jest-snapshot "30.2.0" - -jest-resolve@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-30.2.0.tgz#2e2009cbd61e8f1f003355d5ec87225412cebcd7" - integrity sha512-TCrHSxPlx3tBY3hWNtRQKbtgLhsXa1WmbJEqBlTBrGafd5fiQFByy2GNCEoGR+Tns8d15GaL9cxEzKOO3GEb2A== - dependencies: - chalk "^4.1.2" - graceful-fs "^4.2.11" - jest-haste-map "30.2.0" - jest-pnp-resolver "^1.2.3" - jest-util "30.2.0" - jest-validate "30.2.0" - slash "^3.0.0" - unrs-resolver "^1.7.11" - -jest-runner@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-30.2.0.tgz#c62b4c3130afa661789705e13a07bdbcec26a114" - integrity sha512-PqvZ2B2XEyPEbclp+gV6KO/F1FIFSbIwewRgmROCMBo/aZ6J1w8Qypoj2pEOcg3G2HzLlaP6VUtvwCI8dM3oqQ== - dependencies: - "@jest/console" "30.2.0" - "@jest/environment" "30.2.0" - "@jest/test-result" "30.2.0" - "@jest/transform" "30.2.0" - "@jest/types" "30.2.0" - "@types/node" "*" - chalk "^4.1.2" - emittery "^0.13.1" - exit-x "^0.2.2" - graceful-fs "^4.2.11" - jest-docblock "30.2.0" - jest-environment-node "30.2.0" - jest-haste-map "30.2.0" - jest-leak-detector "30.2.0" - jest-message-util "30.2.0" - jest-resolve "30.2.0" - jest-runtime "30.2.0" - jest-util "30.2.0" - jest-watcher "30.2.0" - jest-worker "30.2.0" - p-limit "^3.1.0" - source-map-support "0.5.13" - -jest-runtime@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-30.2.0.tgz#395ea792cde048db1b0cd1a92dc9cb9f1921bf8a" - integrity sha512-p1+GVX/PJqTucvsmERPMgCPvQJpFt4hFbM+VN3n8TMo47decMUcJbt+rgzwrEme0MQUA/R+1de2axftTHkKckg== - dependencies: - "@jest/environment" "30.2.0" - "@jest/fake-timers" "30.2.0" - "@jest/globals" "30.2.0" - "@jest/source-map" "30.0.1" - "@jest/test-result" "30.2.0" - "@jest/transform" "30.2.0" - "@jest/types" "30.2.0" - "@types/node" "*" - chalk "^4.1.2" - cjs-module-lexer "^2.1.0" - collect-v8-coverage "^1.0.2" - glob "^10.3.10" - graceful-fs "^4.2.11" - jest-haste-map "30.2.0" - jest-message-util "30.2.0" - jest-mock "30.2.0" - jest-regex-util "30.0.1" - jest-resolve "30.2.0" - jest-snapshot "30.2.0" - jest-util "30.2.0" - slash "^3.0.0" - strip-bom "^4.0.0" - -jest-snapshot@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-30.2.0.tgz#266fbbb4b95fc4665ce6f32f1f38eeb39f4e26d0" - integrity sha512-5WEtTy2jXPFypadKNpbNkZ72puZCa6UjSr/7djeecHWOu7iYhSXSnHScT8wBz3Rn8Ena5d5RYRcsyKIeqG1IyA== - dependencies: - "@babel/core" "^7.27.4" - "@babel/generator" "^7.27.5" - "@babel/plugin-syntax-jsx" "^7.27.1" - "@babel/plugin-syntax-typescript" "^7.27.1" - "@babel/types" "^7.27.3" - "@jest/expect-utils" "30.2.0" - "@jest/get-type" "30.1.0" - "@jest/snapshot-utils" "30.2.0" - "@jest/transform" "30.2.0" - "@jest/types" "30.2.0" - babel-preset-current-node-syntax "^1.2.0" - chalk "^4.1.2" - expect "30.2.0" - graceful-fs "^4.2.11" - jest-diff "30.2.0" - jest-matcher-utils "30.2.0" - jest-message-util "30.2.0" - jest-util "30.2.0" - pretty-format "30.2.0" - semver "^7.7.2" - synckit "^0.11.8" + integrity sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw== -jest-util@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-30.2.0.tgz#5142adbcad6f4e53c2776c067a4db3c14f913705" - integrity sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA== +isows@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.7.tgz#1c06400b7eed216fbba3bcbd68f12490fc342915" + integrity sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg== + +java-ast@0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/java-ast/-/java-ast-0.4.1.tgz#80b48278a6c97764d85908eab36c1ac40a912650" + integrity sha512-aKKgVD8nfKIbohyTuyHM60Es8vXRu+JlvGAMqY6qx5kKZYLjpALZ0zQi4RokJtE4rg3hEil7h3ASYAOuhpw+Bg== dependencies: - "@jest/types" "30.2.0" - "@types/node" "*" - chalk "^4.1.2" - ci-info "^4.2.0" - graceful-fs "^4.2.11" - picomatch "^4.0.2" + antlr4ts "^0.5.0-alpha.4" -jest-validate@30.2.0: +jest-diff@30.2.0: version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-30.2.0.tgz#273eaaed4c0963b934b5b31e96289edda6e0a2ef" - integrity sha512-FBGWi7dP2hpdi8nBoWxSsLvBFewKAg0+uSQwBaof4Y4DPgBabXgpSYC5/lR7VmnIlSpASmCi/ntRWPbv7089Pw== + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-30.2.0.tgz#e3ec3a6ea5c5747f605c9e874f83d756cba36825" + integrity sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A== dependencies: + "@jest/diff-sequences" "30.0.1" "@jest/get-type" "30.1.0" - "@jest/types" "30.2.0" - camelcase "^6.3.0" chalk "^4.1.2" - leven "^3.1.0" pretty-format "30.2.0" -jest-watcher@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-30.2.0.tgz#f9c055de48e18c979e7756a3917e596e2d69b07b" - integrity sha512-PYxa28dxJ9g777pGm/7PrbnMeA0Jr7osHP9bS7eJy9DuAjMgdGtxgf0uKMyoIsTWAkIbUW5hSDdJ3urmgXBqxg== - dependencies: - "@jest/test-result" "30.2.0" - "@jest/types" "30.2.0" - "@types/node" "*" - ansi-escapes "^4.3.2" - chalk "^4.1.2" - emittery "^0.13.1" - jest-util "30.2.0" - string-length "^4.0.2" - -jest-worker@30.2.0: - version "30.2.0" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-30.2.0.tgz#fd5c2a36ff6058ec8f74366ec89538cc99539d26" - integrity sha512-0Q4Uk8WF7BUwqXHuAjc23vmopWJw5WH7w2tqBoUOZpOjW/ZnR44GXXd1r82RvnmI2GZge3ivrYXk/BE2+VtW2g== - dependencies: - "@types/node" "*" - "@ungap/structured-clone" "^1.3.0" - jest-util "30.2.0" - merge-stream "^2.0.0" - supports-color "^8.1.1" - -jest@30.2.0: +jest-docblock@30.2.0: version "30.2.0" - resolved "https://registry.yarnpkg.com/jest/-/jest-30.2.0.tgz#9f0a71e734af968f26952b5ae4b724af82681630" - integrity sha512-F26gjC0yWN8uAA5m5Ss8ZQf5nDHWGlN/xWZIh8S5SRbsEKBovwZhxGd6LJlbZYxBgCYOtreSUyb8hpXyGC5O4A== + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-30.2.0.tgz#42cd98d69f887e531c7352309542b1ce4ee10256" + integrity sha512-tR/FFgZKS1CXluOQzZvNH3+0z9jXr3ldGSD8bhyuxvlVUwbeLOGynkunvlTMxchC5urrKndYiwCFC0DLVjpOCA== dependencies: - "@jest/core" "30.2.0" - "@jest/types" "30.2.0" - import-local "^3.2.0" - jest-cli "30.2.0" - -jiti@1.17.1: - version "1.17.1" - resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.17.1.tgz#264daa43ee89a03e8be28c3d712ccc4eb9f1e8ed" - integrity sha512-NZIITw8uZQFuzQimqjUxIrIcEdxYDFIe/0xYfIlVXTkiBjjyBEvgasj5bb0/cHtPRD/NziPbT312sFrkI5ALpw== + detect-newline "^3.1.0" -jose@^4.11.4: - version "4.15.9" - resolved "https://registry.yarnpkg.com/jose/-/jose-4.15.9.tgz#9b68eda29e9a0614c042fa29387196c7dd800100" - integrity sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA== +jiti@^2.0.0, jiti@^2.3.0: + version "2.6.1" + resolved "https://registry.yarnpkg.com/jiti/-/jiti-2.6.1.tgz#178ef2fc9a1a594248c20627cd820187a4d78d92" + integrity sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ== "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-yaml@^3.13.1, js-yaml@^3.6.1: +js-yaml@^3.6.1: version "3.14.2" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.2.tgz#77485ce1dd7f33c061fd1b16ecea23b55fcb04b0" integrity sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg== @@ -5896,7 +4880,7 @@ js-yaml@^3.13.1, js-yaml@^3.6.1: argparse "^1.0.7" esprima "^4.0.0" -js-yaml@^4.0.0, js-yaml@^4.1.0, js-yaml@^4.1.1: +js-yaml@^4.1.0, js-yaml@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.1.tgz#854c292467705b699476e1a2decc0c8a3458806b" integrity sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA== @@ -5940,7 +4924,7 @@ json-stable-stringify-without-jsonify@^1.0.1: resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== -json-stable-stringify@*, json-stable-stringify@^1.0.1, json-stable-stringify@^1.0.2: +json-stable-stringify@^1.0.2: version "1.3.0" resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.3.0.tgz#8903cfac42ea1a0f97f35d63a4ce0518f0cc6a70" integrity sha512-qtYiSSFlwot9XHtF9bD9c7rwKjr+RecWT//ZnPvSmEjpV5mmPOCN4j8UjY5hbjNkOwZ/jQv3J6R1/pL7RwgMsg== @@ -6011,11 +4995,6 @@ klaw-sync@^6.0.0: dependencies: graceful-fs "^4.1.11" -leven@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" - integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== - levn@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" @@ -6041,21 +5020,7 @@ lint-staged@16.3.2: tinyexec "^1.0.2" yaml "^2.8.2" -listr2@^4.0.5: - version "4.0.5" - resolved "https://registry.yarnpkg.com/listr2/-/listr2-4.0.5.tgz#9dcc50221583e8b4c71c43f9c7dfd0ef546b75d5" - integrity sha512-juGHV1doQdpNT3GSTs9IUN43QJb7KHdF9uqg7Vufs/tG9VTzpFphqF4pm/ICdAABGQxsyNn9CiYA3StkI6jpwA== - dependencies: - cli-truncate "^2.1.0" - colorette "^2.0.16" - log-update "^4.0.0" - p-map "^4.0.0" - rfdc "^1.3.0" - rxjs "^7.5.5" - through "^2.3.8" - wrap-ansi "^7.0.0" - -listr2@^9.0.5: +listr2@^9.0.0, listr2@^9.0.5: version "9.0.5" resolved "https://registry.yarnpkg.com/listr2/-/listr2-9.0.5.tgz#92df7c4416a6da630eb9ef46da469b70de97b316" integrity sha512-ME4Fb83LgEgwNw96RKNvKV4VTLuXfoKudAmm2lP8Kk87KaMK0/Xrx/aAkMWmT8mDb+3MlFDspfbCs7adjRxA2g== @@ -6106,17 +5071,22 @@ lodash.mergewith@4.6.2: resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz#617121f89ac55f59047c7aec1ccd6654c6590f55" integrity sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ== +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== + lodash.startcase@^4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.startcase/-/lodash.startcase-4.4.0.tgz#9436e34ed26093ed7ffae1936144350915d9add8" integrity sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg== -lodash@^4.17.20, lodash@^4.17.21, lodash@~4.17.0: +lodash@^4.17.21, lodash@~4.17.0: version "4.17.23" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.23.tgz#f113b0378386103be4f6893388c73d0bde7f2c5a" integrity sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w== -log-symbols@^4.0.0, log-symbols@^4.1.0: +log-symbols@^4.0.0: version "4.1.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== @@ -6124,16 +5094,6 @@ log-symbols@^4.0.0, log-symbols@^4.1.0: chalk "^4.1.0" is-unicode-supported "^0.1.0" -log-update@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/log-update/-/log-update-4.0.0.tgz#589ecd352471f2a1c0c570287543a64dfd20e0a1" - integrity sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg== - dependencies: - ansi-escapes "^4.3.0" - cli-cursor "^3.1.0" - slice-ansi "^4.0.0" - wrap-ansi "^6.2.0" - log-update@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/log-update/-/log-update-6.1.0.tgz#1a04ff38166f94647ae1af562f4bd6a15b1b7cd4" @@ -6166,11 +5126,6 @@ lower-case@^2.0.2: dependencies: tslib "^2.0.3" -lru-cache@^10.2.0: - version "10.4.3" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" - integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== - lru-cache@^11.0.0: version "11.2.6" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-11.2.6.tgz#356bf8a29e88a7a2945507b31f6429a65a192c58" @@ -6188,25 +5143,18 @@ lz-string@^1.4.4: resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== -make-dir@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" - integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== +magic-string@^0.30.21: + version "0.30.21" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.21.tgz#56763ec09a0fa8091df27879fd94d19078c00d91" + integrity sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ== dependencies: - semver "^7.5.3" + "@jridgewell/sourcemap-codec" "^1.5.5" -make-error@^1.1.1, make-error@^1.3.6: +make-error@^1.1.1: version "1.3.6" resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== -makeerror@1.0.12: - version "1.0.12" - resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" - integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== - dependencies: - tmpl "1.0.5" - map-cache@^0.2.0: version "0.2.2" resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" @@ -6227,12 +5175,12 @@ merge2@^1.3.0, merge2@^1.4.1: resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== -meros@^1.2.1: +meros@^1.3.2: version "1.3.2" resolved "https://registry.yarnpkg.com/meros/-/meros-1.3.2.tgz#4cb0d7f3d22074c6e7ae1d66f72c080bca2e414b" integrity sha512-Q3mobPbvEx7XbwhnC1J1r60+5H6EZyNccdzSz0eGexJRwouUtTZxPVRGdqKtxlpD84ScK4+tIGldkqDtCKdI0A== -micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.8: +micromatch@^4.0.2, micromatch@^4.0.5, micromatch@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== @@ -6240,11 +5188,6 @@ micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.8: braces "^3.0.3" picomatch "^2.3.1" -mimic-fn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" - integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== - mimic-fn@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" @@ -6260,49 +5203,30 @@ min-indent@1.0.1: resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== -minimatch@4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-4.2.3.tgz#b4dcece1d674dee104bb0fb833ebb85a78cbbca6" - integrity sha512-lIUdtK5hdofgCTu3aT0sOaHsYR37viUuIc0rwnnDXImbwFRcumyLMeZaM0t0I/fgxS6s6JMfu0rLD1Wz9pv1ng== - dependencies: - brace-expansion "^1.1.7" - -minimatch@^10.2.2: +minimatch@^10.0.0, minimatch@^10.2.2: version "10.2.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-10.2.4.tgz#465b3accbd0218b8281f5301e27cedc697f96fde" integrity sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg== dependencies: brace-expansion "^5.0.2" -minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2, minimatch@^3.1.5: +minimatch@^3.1.1, minimatch@^3.1.2, minimatch@^3.1.5: version "3.1.5" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.5.tgz#580c88f8d5445f2bd6aa8f3cadefa0de79fbd69e" integrity sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w== dependencies: brace-expansion "^1.1.7" -minimatch@^9.0.4: - version "9.0.9" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.9.tgz#9b0cb9fcb78087f6fd7eababe2511c4d3d60574e" - integrity sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg== - dependencies: - brace-expansion "^2.0.2" - -minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: +minimist@^1.2.0, minimist@^1.2.6: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== -"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.1.2, minipass@^7.1.3: +minipass@^7.1.2, minipass@^7.1.3: version "7.1.3" resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.3.tgz#79389b4eb1bb2d003a9bba87d492f2bd37bdc65b" integrity sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A== -mkdirp@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" - integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== - mri@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b" @@ -6313,31 +5237,26 @@ ms@^2.1.1, ms@^2.1.3: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== -mute-stream@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" - integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== +mute-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-2.0.0.tgz#a5446fc0c512b71c83c44d908d5c7b7b4c493b2b" + integrity sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA== mvdan-sh@^0.10.1: version "0.10.1" resolved "https://registry.yarnpkg.com/mvdan-sh/-/mvdan-sh-0.10.1.tgz#5b3a4462a89cf20739b12d851589342c875f4d1f" integrity sha512-kMbrH0EObaKmK3nVRKUIIya1dpASHIEusM13S4V1ViHFuxuNxCo+arxoa6j/dbV22YBGjl7UKJm9QQKJ2Crzhg== -napi-postinstall@^0.3.0: - version "0.3.4" - resolved "https://registry.yarnpkg.com/napi-postinstall/-/napi-postinstall-0.3.4.tgz#7af256d6588b5f8e952b9190965d6b019653bbb9" - integrity sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ== +nanoid@^3.3.11: + version "3.3.11" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.11.tgz#4f4f112cefbe303202f2199838128936266d185b" + integrity sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w== natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -neo-async@^2.6.2: - version "2.6.2" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" - integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== - no-case@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d" @@ -6346,23 +5265,36 @@ no-case@^3.0.4: lower-case "^2.0.2" tslib "^2.0.3" -nock@13.3.0: - version "13.3.0" - resolved "https://registry.yarnpkg.com/nock/-/nock-13.3.0.tgz#b13069c1a03f1ad63120f994b04bfd2556925768" - integrity sha512-HHqYQ6mBeiMc+N038w8LkMpDCRquCHWeNmN3v6645P3NhN2+qXOBqvPqo7Rt1VyCMzKhJ733wZqw5B7cQVFNPg== +nock@^14.0.0: + version "14.0.11" + resolved "https://registry.yarnpkg.com/nock/-/nock-14.0.11.tgz#4ed20d50433b0479ddabd9f03c5886054608aeae" + integrity sha512-u5xUnYE+UOOBA6SpELJheMCtj2Laqx15Vl70QxKo43Wz/6nMHXS7PrEioXLjXAwhmawdEMNImwKCcPhBJWbKVw== dependencies: - debug "^4.1.0" + "@mswjs/interceptors" "^0.41.0" json-stringify-safe "^5.0.1" - lodash "^4.17.21" propagate "^2.0.0" -node-fetch@^2.5.0, node-fetch@^2.6.1, node-fetch@^2.7.0: +node-domexception@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" + integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== + +node-fetch@^2.5.0, node-fetch@^2.7.0: version "2.7.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== dependencies: whatwg-url "^5.0.0" +node-fetch@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.2.tgz#d1e889bacdf733b4ff3b2b243eb7a12866a0b78b" + integrity sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA== + dependencies: + data-uri-to-buffer "^4.0.0" + fetch-blob "^3.1.4" + formdata-polyfill "^4.0.10" + node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" @@ -6380,18 +5312,6 @@ normalize-path@^2.1.1: dependencies: remove-trailing-separator "^1.0.1" -normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -npm-run-path@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" - integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== - dependencies: - path-key "^3.0.0" - npm-run-path@^5.1.0: version "5.3.0" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-5.3.0.tgz#e23353d0ebb9317f174e93417e4a4d82d0249e9f" @@ -6399,7 +5319,7 @@ npm-run-path@^5.1.0: dependencies: path-key "^4.0.0" -nullthrows@^1.0.0, nullthrows@^1.1.1: +nullthrows@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1" integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw== @@ -6460,6 +5380,11 @@ object.values@^1.2.1: define-properties "^1.2.1" es-object-atoms "^1.0.0" +obug@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/obug/-/obug-2.1.1.tgz#2cba74ff241beb77d63055ddf4cd1e9f90b538be" + integrity sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ== + once@^1.3.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" @@ -6467,13 +5392,6 @@ once@^1.3.0: dependencies: wrappy "1" -onetime@^5.1.0, onetime@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" - integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== - dependencies: - mimic-fn "^2.1.0" - onetime@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/onetime/-/onetime-6.0.0.tgz#7c24c18ed1fd2e9bca4bd26806a33613c77d34b4" @@ -6518,26 +5436,16 @@ optionator@^0.9.3: type-check "^0.4.0" word-wrap "^1.2.5" -ora@^5.4.1: - version "5.4.1" - resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" - integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== - dependencies: - bl "^4.1.0" - chalk "^4.1.0" - cli-cursor "^3.1.0" - cli-spinners "^2.5.0" - is-interactive "^1.0.0" - is-unicode-supported "^0.1.0" - log-symbols "^4.1.0" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" - outdent@^0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/outdent/-/outdent-0.5.0.tgz#9e10982fdc41492bb473ad13840d22f9655be2ff" integrity sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q== +outvariant@^1.4.0, outvariant@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/outvariant/-/outvariant-1.4.3.tgz#221c1bfc093e8fec7075497e7799fdbf43d14873" + integrity sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA== + own-keys@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/own-keys/-/own-keys-1.0.1.tgz#e4006910a2bf913585289676eebd6f390cf51358" @@ -6554,7 +5462,7 @@ p-filter@^2.1.0: dependencies: p-map "^2.0.0" -p-limit@3.1.0, p-limit@^3.0.2, p-limit@^3.1.0: +p-limit@3.1.0, p-limit@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== @@ -6594,19 +5502,12 @@ p-map@^2.0.0: resolved "https://registry.yarnpkg.com/p-map/-/p-map-2.1.0.tgz#310928feef9c9ecc65b68b17693018a665cea175" integrity sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw== -p-map@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b" - integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== - dependencies: - aggregate-error "^3.0.0" - p-try@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== -package-json-from-dist@^1.0.0, package-json-from-dist@^1.0.1: +package-json-from-dist@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz#4f1471a010827a86f94cfd9b0727e36d267de505" integrity sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw== @@ -6642,7 +5543,7 @@ parse-filepath@^1.0.2: map-cache "^0.2.0" path-root "^0.1.1" -parse-json@^5.0.0, parse-json@^5.2.0: +parse-json@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== @@ -6698,7 +5599,7 @@ path-is-absolute@^1.0.0: resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== -path-key@^3.0.0, path-key@^3.1.0: +path-key@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== @@ -6725,14 +5626,6 @@ path-root@^0.1.1: dependencies: path-root-regex "^0.1.0" -path-scurry@^1.11.1: - version "1.11.1" - resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.11.1.tgz#7960a668888594a0720b12a911d1a742ab9f11d2" - integrity sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA== - dependencies: - lru-cache "^10.2.0" - minipass "^5.0.0 || ^6.0.2 || ^7.0.0" - path-scurry@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-2.0.2.tgz#6be0d0ee02a10d9e0de7a98bae65e182c9061f85" @@ -6746,17 +5639,22 @@ path-type@^4.0.0: resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== +pathe@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/pathe/-/pathe-2.0.3.tgz#3ecbec55421685b70a9da872b2cff3e1cbed1716" + integrity sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w== + picocolors@^1.1.0, picocolors@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: +picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== -picomatch@^4.0.2, picomatch@^4.0.3: +picomatch@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.3.tgz#796c76136d1eead715db1e7bad785dedd695a042" integrity sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q== @@ -6766,18 +5664,6 @@ pify@^4.0.1: resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== -pirates@^4.0.7: - version "4.0.7" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.7.tgz#643b4a18c4257c8a65104b73f3049ce9a0a15e22" - integrity sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA== - -pkg-dir@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" - integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== - dependencies: - find-up "^4.0.0" - pluralize@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1" @@ -6788,6 +5674,15 @@ possible-typed-array-names@^1.0.0: resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz#93e3582bc0e5426586d9d07b79ee40fc841de4ae" integrity sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg== +postcss@^8.5.6: + version "8.5.8" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.5.8.tgz#6230ecc8fb02e7a0f6982e53990937857e13f399" + integrity sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg== + dependencies: + nanoid "^3.3.11" + picocolors "^1.1.1" + source-map-js "^1.2.1" + prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -6816,7 +5711,7 @@ prettier@^2.7.1: resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== -pretty-format@30.2.0, pretty-format@^30.0.0: +pretty-format@30.2.0: version "30.2.0" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-30.2.0.tgz#2d44fe6134529aed18506f6d11509d8a62775ebe" integrity sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA== @@ -6846,33 +5741,11 @@ propagate@^2.0.0: resolved "https://registry.yarnpkg.com/propagate/-/propagate-2.0.1.tgz#40cdedab18085c792334e64f0ac17256d38f9a45" integrity sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag== -punycode@^1.3.2: - version "1.4.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" - integrity sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ== - punycode@^2.1.0: version "2.3.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== -pure-rand@^7.0.0: - version "7.0.1" - resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-7.0.1.tgz#6f53a5a9e3e4a47445822af96821ca509ed37566" - integrity sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ== - -pvtsutils@^1.3.5, pvtsutils@^1.3.6: - version "1.3.6" - resolved "https://registry.yarnpkg.com/pvtsutils/-/pvtsutils-1.3.6.tgz#ec46e34db7422b9e4fdc5490578c1883657d6001" - integrity sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg== - dependencies: - tslib "^2.8.1" - -pvutils@^1.1.3: - version "1.1.5" - resolved "https://registry.yarnpkg.com/pvutils/-/pvutils-1.1.5.tgz#84b0dea4a5d670249aa9800511804ee0b7c2809c" - integrity sha512-KTqnxsgGiQ6ZAzZCVlJH5eOjSnvlyEgx1m8bkRJfOhmGRqfo5KLvmAlACQkrjEtOQ4B7wF9TdSLIs9O90MX9xA== - quansync@^0.2.7: version "0.2.11" resolved "https://registry.yarnpkg.com/quansync/-/quansync-0.2.11.tgz#f9c3adda2e1272e4f8cf3f1457b04cbdb4ee692a" @@ -6908,22 +5781,6 @@ read-yaml-file@^1.1.0: pify "^4.0.1" strip-bom "^3.0.0" -readable-stream@^3.4.0: - version "3.6.2" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" - integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -readdirp@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" - integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== - dependencies: - picomatch "^2.2.1" - redux-thunk@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/redux-thunk/-/redux-thunk-3.1.0.tgz#94aa6e04977c30e14e892eae84978c1af6058ff3" @@ -7045,13 +5902,6 @@ reselect@^5.1.0: resolved "https://registry.yarnpkg.com/reselect/-/reselect-5.1.1.tgz#c766b1eb5d558291e5e550298adb0becc24bb72e" integrity sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w== -resolve-cwd@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" - integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== - dependencies: - resolve-from "^5.0.0" - resolve-from@5.0.0, resolve-from@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" @@ -7076,14 +5926,6 @@ resolve@^1.22.11, resolve@^1.22.4: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -restore-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" - integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== - dependencies: - onetime "^5.1.0" - signal-exit "^3.0.2" - restore-cursor@^5.0.0: version "5.1.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-5.1.0.tgz#0766d95699efacb14150993f55baf0953ea1ebe7" @@ -7097,7 +5939,7 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.1.0.tgz#0fe13b9522e1473f51b558ee796e08f11f9b489f" integrity sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw== -rfdc@^1.2.0, rfdc@^1.3.0, rfdc@^1.4.1: +rfdc@^1.2.0, rfdc@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.4.1.tgz#778f76c4fb731d93414e8f925fbecf64cce7f6ca" integrity sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA== @@ -7110,10 +5952,39 @@ rimraf@6.1.3: glob "^13.0.3" package-json-from-dist "^1.0.1" -run-async@^2.4.0: - version "2.4.1" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" - integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== +rollup@^4.43.0: + version "4.59.0" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.59.0.tgz#cf74edac17c1486f562d728a4d923a694abdf06f" + integrity sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg== + dependencies: + "@types/estree" "1.0.8" + optionalDependencies: + "@rollup/rollup-android-arm-eabi" "4.59.0" + "@rollup/rollup-android-arm64" "4.59.0" + "@rollup/rollup-darwin-arm64" "4.59.0" + "@rollup/rollup-darwin-x64" "4.59.0" + "@rollup/rollup-freebsd-arm64" "4.59.0" + "@rollup/rollup-freebsd-x64" "4.59.0" + "@rollup/rollup-linux-arm-gnueabihf" "4.59.0" + "@rollup/rollup-linux-arm-musleabihf" "4.59.0" + "@rollup/rollup-linux-arm64-gnu" "4.59.0" + "@rollup/rollup-linux-arm64-musl" "4.59.0" + "@rollup/rollup-linux-loong64-gnu" "4.59.0" + "@rollup/rollup-linux-loong64-musl" "4.59.0" + "@rollup/rollup-linux-ppc64-gnu" "4.59.0" + "@rollup/rollup-linux-ppc64-musl" "4.59.0" + "@rollup/rollup-linux-riscv64-gnu" "4.59.0" + "@rollup/rollup-linux-riscv64-musl" "4.59.0" + "@rollup/rollup-linux-s390x-gnu" "4.59.0" + "@rollup/rollup-linux-x64-gnu" "4.59.0" + "@rollup/rollup-linux-x64-musl" "4.59.0" + "@rollup/rollup-openbsd-x64" "4.59.0" + "@rollup/rollup-openharmony-arm64" "4.59.0" + "@rollup/rollup-win32-arm64-msvc" "4.59.0" + "@rollup/rollup-win32-ia32-msvc" "4.59.0" + "@rollup/rollup-win32-x64-gnu" "4.59.0" + "@rollup/rollup-win32-x64-msvc" "4.59.0" + fsevents "~2.3.2" run-parallel@^1.1.9: version "1.2.0" @@ -7122,13 +5993,6 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -rxjs@^7.5.5: - version "7.8.2" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.2.tgz#955bc473ed8af11a002a2be52071bf475638607b" - integrity sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA== - dependencies: - tslib "^2.1.0" - safe-array-concat@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.1.3.tgz#c9e54ec4f603b0bbb8e7e5007a5ee7aecd1538c3" @@ -7140,11 +6004,6 @@ safe-array-concat@^1.1.3: has-symbols "^1.1.0" isarray "^2.0.5" -safe-buffer@~5.2.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - safe-push-apply@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/safe-push-apply/-/safe-push-apply-1.0.0.tgz#01850e981c1602d398c85081f360e4e6d03d27f5" @@ -7167,17 +6026,12 @@ safe-regex-test@^1.1.0: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -scuid@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/scuid/-/scuid-1.1.0.tgz#d3f9f920956e737a60f72d0e4ad280bf324d5dab" - integrity sha512-MuCAyrGZcTLfQoH2XoBlQ8C6bzwN88XT/0slOGz0pn8+gIP85BOAfYa44ZXQUTOwRwPU0QvgU+V+OSajl/59Xg== - semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.5.2, semver@^7.5.3, semver@^7.5.4, semver@^7.7.2, semver@^7.7.3: +semver@^7.5.2, semver@^7.5.3, semver@^7.5.4, semver@^7.7.3: version "7.7.4" resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.4.tgz#28464e36060e991fa7a11d0279d2d3f3b57a7e8a" integrity sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA== @@ -7296,7 +6150,12 @@ side-channel@^1.1.0: side-channel-map "^1.0.1" side-channel-weakmap "^1.0.2" -signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: +siginfo@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/siginfo/-/siginfo-2.0.0.tgz#32e76c70b79724e3bb567cb9d543eb858ccfaf30" + integrity sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g== + +signal-exit@^3.0.7: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== @@ -7326,24 +6185,6 @@ slash@^4.0.0: resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== -slice-ansi@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-3.0.0.tgz#31ddc10930a1b7e0b67b08c96c2f49b77a789787" - integrity sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ== - dependencies: - ansi-styles "^4.0.0" - astral-regex "^2.0.0" - is-fullwidth-code-point "^3.0.0" - -slice-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" - integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== - dependencies: - ansi-styles "^4.0.0" - astral-regex "^2.0.0" - is-fullwidth-code-point "^3.0.0" - slice-ansi@^7.1.0: version "7.1.2" resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-7.1.2.tgz#adf7be70aa6d72162d907cd0e6d5c11f507b5403" @@ -7368,18 +6209,10 @@ snake-case@^3.0.4: dot-case "^3.0.4" tslib "^2.0.3" -source-map-support@0.5.13: - version "0.5.13" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" - integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map@^0.6.0, source-map@^0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== +source-map-js@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46" + integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA== spawndamnit@^3.0.1: version "3.0.1" @@ -7401,12 +6234,15 @@ sprintf-js@~1.0.2: resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== -stack-utils@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f" - integrity sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ== - dependencies: - escape-string-regexp "^2.0.0" +stackback@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/stackback/-/stackback-0.0.2.tgz#1ac8a0d9483848d1695e418b6d031a3c3ce68e3b" + integrity sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw== + +std-env@^3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.10.0.tgz#d810b27e3a073047b2b5e40034881f5ea6f9c83b" + integrity sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg== stop-iteration-iterator@^1.1.0: version "1.1.0" @@ -7416,38 +6252,21 @@ stop-iteration-iterator@^1.1.0: es-errors "^1.3.0" internal-slot "^1.1.0" -streamsearch@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" - integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== +strict-event-emitter@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/strict-event-emitter/-/strict-event-emitter-0.5.1.tgz#1602ece81c51574ca39c6815e09f1a3e8550bd93" + integrity sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ== string-argv@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.2.tgz#2b6d0ef24b656274d957d54e0a4bbf6153dc02b6" integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== -string-env-interpolation@1.0.1, string-env-interpolation@^1.0.1: +string-env-interpolation@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/string-env-interpolation/-/string-env-interpolation-1.0.1.tgz#ad4397ae4ac53fe6c91d1402ad6f6a52862c7152" integrity sha512-78lwMoCcn0nNu8LszbP1UA7g55OeE4v7rCeWnM5B453rnNr4aq+5it3FEYtZrSEiMvHZOZ9Jlqb0OD0M2VInqg== -string-length@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" - integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== - dependencies: - char-regex "^1.0.2" - strip-ansi "^6.0.0" - -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" @@ -7457,15 +6276,6 @@ string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2 is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" -string-width@^5.0.1, string-width@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" - integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== - dependencies: - eastasianwidth "^0.2.0" - emoji-regex "^9.2.2" - strip-ansi "^7.0.1" - string-width@^7.0.0: version "7.2.0" resolved "https://registry.yarnpkg.com/string-width/-/string-width-7.2.0.tgz#b5bb8e2165ce275d4d43476dd2700ad9091db6dc" @@ -7515,20 +6325,6 @@ string.prototype.trimstart@^1.0.8: define-properties "^1.2.1" es-object-atoms "^1.0.0" -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" @@ -7536,7 +6332,7 @@ strip-ansi@^6.0.0, strip-ansi@^6.0.1: dependencies: ansi-regex "^5.0.1" -strip-ansi@^7.0.1, strip-ansi@^7.1.0, strip-ansi@^7.1.2: +strip-ansi@^7.1.0, strip-ansi@^7.1.2: version "7.2.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.2.0.tgz#d22a269522836a627af8d04b5c3fd2c7fa3e32e3" integrity sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w== @@ -7548,16 +6344,6 @@ strip-bom@^3.0.0: resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== -strip-bom@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" - integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== - -strip-final-newline@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" - integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== - strip-final-newline@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-3.0.0.tgz#52894c313fbff318835280aed60ff71ebf12b8fd" @@ -7575,13 +6361,6 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -supports-color@^8.1.1: - version "8.1.1" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" @@ -7599,31 +6378,29 @@ symbol-observable@^4.0.0: resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-4.0.0.tgz#5b425f192279e87f2f9b937ac8540d1984b39205" integrity sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ== -synckit@^0.11.8: - version "0.11.12" - resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.11.12.tgz#abe74124264fbc00a48011b0d98bdc1cffb64a7b" - integrity sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ== +sync-fetch@0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/sync-fetch/-/sync-fetch-0.6.0.tgz#5759e775f3d5202e1b3d14821bc152fec32aa180" + integrity sha512-IELLEvzHuCfc1uTsshPK58ViSdNqXxlml1U+fmwJIKLYKOr/rAtBrorE2RYm5IHaMpDNlmC0fr1LAvdXvyheEQ== dependencies: - "@pkgr/core" "^0.2.9" + node-fetch "^3.3.2" + timeout-signal "^2.0.0" + whatwg-mimetype "^4.0.0" term-size@^2.1.0: version "2.2.1" resolved "https://registry.yarnpkg.com/term-size/-/term-size-2.2.1.tgz#2a6a54840432c2fb6320fea0f415531e90189f54" integrity sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg== -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" +timeout-signal@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/timeout-signal/-/timeout-signal-2.0.0.tgz#23207ea448d50258bb0defe3beea4a467643abba" + integrity sha512-YBGpG4bWsHoPvofT6y/5iqulfXIiIErl5B0LdtHT1mGXDFTAhhRrbUpTvBgYbovr+3cKblya2WAOcpoy90XguA== -through@^2.3.6, through@^2.3.8: - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== +tinybench@^2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/tinybench/-/tinybench-2.9.0.tgz#103c9f8ba6d7237a47ab6dd1dcff77251863426b" + integrity sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg== tinyexec@^1.0.2: version "1.0.2" @@ -7638,6 +6415,11 @@ tinyglobby@^0.2.15: fdir "^6.5.0" picomatch "^4.0.3" +tinyrainbow@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/tinyrainbow/-/tinyrainbow-3.0.3.tgz#984a5b1c1b25854a9b6bccbe77964d0593d1ea42" + integrity sha512-PSkbLUoxOFRzJYjjxHJt9xro7D+iilgMX/C9lawzVuYiIdcihh9DXmVibBe8lmcFrRi/VzlPjBxbN7rH24q8/Q== + title-case@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/title-case/-/title-case-3.0.3.tgz#bc689b46f02e411f1d1e1d081f7c3deca0489982" @@ -7650,11 +6432,6 @@ tmp@^0.2.4: resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.5.tgz#b06bcd23f0f3c8357b426891726d16015abfd8f8" integrity sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow== -tmpl@1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" - integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== - to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -7679,27 +6456,12 @@ ts-invariant@^0.10.3: dependencies: tslib "^2.1.0" -ts-jest@29.4.6: - version "29.4.6" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.4.6.tgz#51cb7c133f227396818b71297ad7409bb77106e9" - integrity sha512-fSpWtOO/1AjSNQguk43hb/JCo16oJDnMJf3CdEGNkqsEX3t0KX96xvyX1D7PfLCpVoKu4MfVrqUkFyblYoY4lA== - dependencies: - bs-logger "^0.2.6" - fast-json-stable-stringify "^2.1.0" - handlebars "^4.7.8" - json5 "^2.2.3" - lodash.memoize "^4.1.2" - make-error "^1.3.6" - semver "^7.7.3" - type-fest "^4.41.0" - yargs-parser "^21.1.1" - ts-log@^2.2.3: version "2.2.7" resolved "https://registry.yarnpkg.com/ts-log/-/ts-log-2.2.7.tgz#4f4512144898b77c9984e91587076fcb8518688e" integrity sha512-320x5Ggei84AxzlXp91QkIGSw5wgaLT6GeAH0KsqDmRZdVWW2OiSeVvElVoatk3f7nicwXlElXsoFkARiGE2yg== -ts-node@10.9.2, ts-node@^10.9.1: +ts-node@10.9.2: version "10.9.2" resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== @@ -7718,6 +6480,11 @@ ts-node@10.9.2, ts-node@^10.9.1: v8-compile-cache-lib "^3.0.1" yn "3.1.1" +tsconfck@^3.0.3: + version "3.1.6" + resolved "https://registry.yarnpkg.com/tsconfck/-/tsconfck-3.1.6.tgz#da1f0b10d82237ac23422374b3fce1edb23c3ead" + integrity sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w== + tsconfig-paths@^3.15.0: version "3.15.0" resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz#5299ec605e55b1abb23ec939ef15edaf483070d4" @@ -7728,7 +6495,7 @@ tsconfig-paths@^3.15.0: minimist "^1.2.6" strip-bom "^3.0.0" -tslib@2.8.1, tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.5.0, tslib@^2.6.1, tslib@^2.6.2, tslib@^2.6.3, tslib@^2.7.0, tslib@^2.8.1: +tslib@2.8.1, tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.4.0, tslib@^2.5.0, tslib@^2.6.1, tslib@^2.6.2, tslib@^2.6.3, tslib@^2.8.1: version "2.8.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== @@ -7738,11 +6505,6 @@ tslib@~2.4.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== -tslib@~2.5.0: - version "2.5.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.3.tgz#24944ba2d990940e6e982c4bea147aba80209913" - integrity sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w== - tslib@~2.6.0: version "2.6.3" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0" @@ -7755,21 +6517,6 @@ type-check@^0.4.0, type-check@~0.4.0: dependencies: prelude-ls "^1.2.1" -type-detect@4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" - integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== - -type-fest@^0.21.3: - version "0.21.3" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" - integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== - -type-fest@^4.41.0: - version "4.41.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.41.0.tgz#6ae1c8e5731273c2bf1f58ad39cbae2c91a46c58" - integrity sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA== - typed-array-buffer@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz#a72395450a4869ec033fd549371b47af3a2ee536" @@ -7825,11 +6572,6 @@ ua-parser-js@^1.0.35: resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-1.0.41.tgz#bd04dc9ec830fcf9e4fad35cf22dcedd2e3b4e9c" integrity sha512-LbBDqdIC5s8iROCUjMbW1f5dJQTEFB1+KO9ogbvlb3nm9n4YHa5p4KTvFPWvh2Hs8gZMBuiB1/8+pdfe/tDPug== -uglify-js@^3.1.4: - version "3.19.3" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.19.3.tgz#82315e9bbc6f2b25888858acd1fff8441035b77f" - integrity sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ== - unbox-primitive@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.1.0.tgz#8d9d2c9edeea8460c7f35033a88867944934d1e2" @@ -7850,6 +6592,11 @@ undici-types@~7.16.0: resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.16.0.tgz#ffccdff36aea4884cbfce9a750a0580224f58a46" integrity sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw== +undici-types@~7.18.0: + version "7.18.2" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.18.2.tgz#29357a89e7b7ca4aef3bf0fd3fd0cd73884229e9" + integrity sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w== + unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz#cb3173fe47ca743e228216e4a3ddc4c84d628cc2" @@ -7890,33 +6637,6 @@ unixify@^1.0.0: dependencies: normalize-path "^2.1.1" -unrs-resolver@^1.7.11: - version "1.11.1" - resolved "https://registry.yarnpkg.com/unrs-resolver/-/unrs-resolver-1.11.1.tgz#be9cd8686c99ef53ecb96df2a473c64d304048a9" - integrity sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg== - dependencies: - napi-postinstall "^0.3.0" - optionalDependencies: - "@unrs/resolver-binding-android-arm-eabi" "1.11.1" - "@unrs/resolver-binding-android-arm64" "1.11.1" - "@unrs/resolver-binding-darwin-arm64" "1.11.1" - "@unrs/resolver-binding-darwin-x64" "1.11.1" - "@unrs/resolver-binding-freebsd-x64" "1.11.1" - "@unrs/resolver-binding-linux-arm-gnueabihf" "1.11.1" - "@unrs/resolver-binding-linux-arm-musleabihf" "1.11.1" - "@unrs/resolver-binding-linux-arm64-gnu" "1.11.1" - "@unrs/resolver-binding-linux-arm64-musl" "1.11.1" - "@unrs/resolver-binding-linux-ppc64-gnu" "1.11.1" - "@unrs/resolver-binding-linux-riscv64-gnu" "1.11.1" - "@unrs/resolver-binding-linux-riscv64-musl" "1.11.1" - "@unrs/resolver-binding-linux-s390x-gnu" "1.11.1" - "@unrs/resolver-binding-linux-x64-gnu" "1.11.1" - "@unrs/resolver-binding-linux-x64-musl" "1.11.1" - "@unrs/resolver-binding-wasm32-wasi" "1.11.1" - "@unrs/resolver-binding-win32-arm64-msvc" "1.11.1" - "@unrs/resolver-binding-win32-ia32-msvc" "1.11.1" - "@unrs/resolver-binding-win32-x64-msvc" "1.11.1" - update-browserslist-db@^1.2.0: version "1.2.3" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz#64d76db58713136acbeb4c49114366cc6cc2e80d" @@ -7951,87 +6671,75 @@ urlpattern-polyfill@^10.0.0: resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-10.1.0.tgz#1b2517e614136c73ba32948d5e7a3a063cba8e74" integrity sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw== -urlpattern-polyfill@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-6.0.2.tgz#a193fe773459865a2a5c93b246bb794b13d07256" - integrity sha512-5vZjFlH9ofROmuWmXM9yj2wljYKgWstGwe8YTyiqM7hVum/g9LyCizPZtb3UqsuppVwety9QJmfc42VggLpTgg== - dependencies: - braces "^3.0.2" - -urlpattern-polyfill@^8.0.0: - version "8.0.2" - resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz#99f096e35eff8bf4b5a2aa7d58a1523d6ebc7ce5" - integrity sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ== - -util-deprecate@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== - -uuid@^8.3.2: - version "8.3.2" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" - integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== - v8-compile-cache-lib@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== -v8-to-istanbul@^9.0.1: - version "9.3.0" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz#b9572abfa62bd556c16d75fdebc1a411d5ff3175" - integrity sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA== - dependencies: - "@jridgewell/trace-mapping" "^0.3.12" - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^2.0.0" - -value-or-promise@^1.0.11, value-or-promise@^1.0.12: - version "1.0.12" - resolved "https://registry.yarnpkg.com/value-or-promise/-/value-or-promise-1.0.12.tgz#0e5abfeec70148c78460a849f6b003ea7986f15c" - integrity sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q== - -vscode-languageserver-types@^3.15.1: - version "3.17.5" - resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz#3273676f0cf2eab40b3f44d085acbb7f08a39d8a" - integrity sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg== - -walker@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" - integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== +vite-tsconfig-paths@6.1.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/vite-tsconfig-paths/-/vite-tsconfig-paths-6.1.1.tgz#d5c28cba79c89ebf76489ef1040024b21df6da3a" + integrity sha512-2cihq7zliibCCZ8P9cKJrQBkfgdvcFkOOc3Y02o3GWUDLgqjWsZudaoiuOwO/gzTzy17cS5F7ZPo4bsnS4DGkg== dependencies: - makeerror "1.0.12" + debug "^4.1.1" + globrex "^0.1.2" + tsconfck "^3.0.3" -wcwidth@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" - integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== +"vite@^6.0.0 || ^7.0.0": + version "7.3.1" + resolved "https://registry.yarnpkg.com/vite/-/vite-7.3.1.tgz#7f6cfe8fb9074138605e822a75d9d30b814d6507" + integrity sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA== dependencies: - defaults "^1.0.3" + esbuild "^0.27.0" + fdir "^6.5.0" + picomatch "^4.0.3" + postcss "^8.5.6" + rollup "^4.43.0" + tinyglobby "^0.2.15" + optionalDependencies: + fsevents "~2.3.3" + +vitest@4.0.18: + version "4.0.18" + resolved "https://registry.yarnpkg.com/vitest/-/vitest-4.0.18.tgz#56f966353eca0b50f4df7540cd4350ca6d454a05" + integrity sha512-hOQuK7h0FGKgBAas7v0mSAsnvrIgAvWmRFjmzpJ7SwFHH3g1k2u37JtYwOwmEKhK6ZO3v9ggDBBm0La1LCK4uQ== + dependencies: + "@vitest/expect" "4.0.18" + "@vitest/mocker" "4.0.18" + "@vitest/pretty-format" "4.0.18" + "@vitest/runner" "4.0.18" + "@vitest/snapshot" "4.0.18" + "@vitest/spy" "4.0.18" + "@vitest/utils" "4.0.18" + es-module-lexer "^1.7.0" + expect-type "^1.2.2" + magic-string "^0.30.21" + obug "^2.1.1" + pathe "^2.0.3" + picomatch "^4.0.3" + std-env "^3.10.0" + tinybench "^2.9.0" + tinyexec "^1.0.2" + tinyglobby "^0.2.15" + tinyrainbow "^3.0.3" + vite "^6.0.0 || ^7.0.0" + why-is-node-running "^2.3.0" -web-streams-polyfill@^3.2.1: +web-streams-polyfill@^3.0.3: version "3.3.3" resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz#2073b91a2fdb1fbfbd401e7de0ac9f8214cecb4b" integrity sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw== -webcrypto-core@^1.8.0: - version "1.8.1" - resolved "https://registry.yarnpkg.com/webcrypto-core/-/webcrypto-core-1.8.1.tgz#09d5bd8a9c48e9fbcaf412e06b1ff1a57514ce86" - integrity sha512-P+x1MvlNCXlKbLSOY4cYrdreqPG5hbzkmawbcXLKN/mf6DZW0SdNNkZ+sjwsqVkI4A4Ko2sPZmkZtCKY58w83A== - dependencies: - "@peculiar/asn1-schema" "^2.3.13" - "@peculiar/json-schema" "^1.1.12" - asn1js "^3.0.5" - pvtsutils "^1.3.5" - tslib "^2.7.0" - webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== +whatwg-mimetype@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz#bc1bf94a985dc50388d54a9258ac405c3ca2fc0a" + integrity sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg== + whatwg-url@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" @@ -8105,6 +6813,14 @@ which@^2.0.1: dependencies: isexe "^2.0.0" +why-is-node-running@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/why-is-node-running/-/why-is-node-running-2.3.0.tgz#a3f69a97107f494b3cdc3bdddd883a7d65cebf04" + integrity sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w== + dependencies: + siginfo "^2.0.0" + stackback "0.0.2" + widest-line@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" @@ -8117,21 +6833,7 @@ word-wrap@^1.2.5: resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== -wordwrap@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" - integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== - -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^6.0.1, wrap-ansi@^6.2.0: +wrap-ansi@^6.2.0: version "6.2.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== @@ -8149,15 +6851,6 @@ wrap-ansi@^7.0.0: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" - integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ== - dependencies: - ansi-styles "^6.1.0" - string-width "^5.0.1" - strip-ansi "^7.0.1" - wrap-ansi@^9.0.0: version "9.0.2" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-9.0.2.tgz#956832dea9494306e6d209eb871643bb873d7c98" @@ -8172,23 +6865,10 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -write-file-atomic@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-5.0.1.tgz#68df4717c55c6fa4281a7860b4c2ba0a6d2b11e7" - integrity sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw== - dependencies: - imurmurhash "^0.1.4" - signal-exit "^4.0.1" - -ws@8.13.0, ws@^8.12.0: - version "8.13.0" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.13.0.tgz#9a9fb92f93cf41512a0735c8f4dd09b8a1211cd0" - integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== - -xml@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" - integrity sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw== +ws@^8.18.3, ws@^8.19.0: + version "8.19.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.19.0.tgz#ddc2bdfa5b9ad860204f5a72a4863a8895fd8c8b" + integrity sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg== y18n@^4.0.0: version "4.0.3" @@ -8205,17 +6885,12 @@ yallist@^3.0.2: resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== -yaml-ast-parser@^0.0.43: - version "0.0.43" - resolved "https://registry.yarnpkg.com/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz#e8a23e6fb4c38076ab92995c5dca33f3d3d7c9bb" - integrity sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A== - -yaml@^1.10.0, yaml@^1.10.2: +yaml@^1.10.2: version "1.10.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== -yaml@^2.2.2, yaml@^2.8.2: +yaml@^2.2.2, yaml@^2.3.1, yaml@^2.8.2: version "2.8.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.8.2.tgz#5694f25eca0ce9c3e7a9d9e00ce0ddabbd9e35c5" integrity sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A== @@ -8250,7 +6925,7 @@ yargs@^15.3.1: y18n "^4.0.0" yargs-parser "^18.1.2" -yargs@^17.0.0, yargs@^17.6.2, yargs@^17.7.2: +yargs@^17.0.0, yargs@^17.6.2: version "17.7.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== @@ -8278,6 +6953,11 @@ yocto-queue@^1.0.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.2.2.tgz#3e09c95d3f1aa89a58c114c99223edf639152c00" integrity sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ== +yoctocolors-cjs@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/yoctocolors-cjs/-/yoctocolors-cjs-2.1.3.tgz#7e4964ea8ec422b7a40ac917d3a344cfd2304baa" + integrity sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw== + zen-observable-ts@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/zen-observable-ts/-/zen-observable-ts-1.2.5.tgz#6c6d9ea3d3a842812c6e9519209365a122ba8b58"