From ddbdc8fc815ef8b6fa71493efa0ab7150f87cdbd Mon Sep 17 00:00:00 2001 From: amalcaraz Date: Tue, 8 Oct 2024 15:39:27 +0200 Subject: [PATCH] refactor: update graphql version from 15.9.0 to 16.9.0 --- package-lock.json | 151 +++++++++++++----- packages/avalanche/package.json | 10 +- packages/base/package.json | 10 +- packages/bsc/package.json | 10 +- packages/core/package.json | 10 +- packages/ethereum/package.json | 10 +- packages/framework/package.json | 6 +- .../framework/src/utils/api/indexer/types.ts | 9 +- packages/indexer-example/package.json | 3 +- packages/oasys/package.json | 10 +- packages/solana/package.json | 10 +- 11 files changed, 157 insertions(+), 82 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4ad9e4a..0305c44 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8238,14 +8238,6 @@ "dev": true, "license": "MIT" }, - "node_modules/graphql": { - "version": "15.8.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz", - "integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==", - "engines": { - "node": ">= 10.x" - } - }, "node_modules/graphql-type-json": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/graphql-type-json/-/graphql-type-json-0.3.2.tgz", @@ -19179,14 +19171,23 @@ "devDependencies": { "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" + } + }, + "packages/avalanche/node_modules/graphql": { + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.9.0.tgz", + "integrity": "sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } }, "packages/base": { @@ -19202,14 +19203,23 @@ "devDependencies": { "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" + } + }, + "packages/base/node_modules/graphql": { + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.9.0.tgz", + "integrity": "sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } }, "packages/bsc": { @@ -19225,14 +19235,23 @@ "devDependencies": { "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" + } + }, + "packages/bsc/node_modules/graphql": { + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.9.0.tgz", + "integrity": "sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } }, "packages/core": { @@ -19262,14 +19281,14 @@ "@types/express-rate-limit": "^5.1.3", "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" } }, "packages/core/node_modules/dotenv": { @@ -19283,6 +19302,15 @@ "url": "https://github.com/motdotla/dotenv?sponsor=1" } }, + "packages/core/node_modules/graphql": { + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.9.0.tgz", + "integrity": "sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" + } + }, "packages/ethereum": { "name": "@aleph-indexer/ethereum", "version": "1.5.2", @@ -19299,14 +19327,23 @@ "devDependencies": { "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" + } + }, + "packages/ethereum/node_modules/graphql": { + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.9.0.tgz", + "integrity": "sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } }, "packages/ethereum/node_modules/node-fetch": { @@ -19339,7 +19376,7 @@ "@types/dotenv-defaults": "^2.0.1", "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1", "nats": "^2.7.1" @@ -19351,7 +19388,7 @@ "@aleph-indexer/oasys": "^1.x", "@aleph-indexer/oasys-verse": "^1.x", "@aleph-indexer/solana": "^1.x", - "graphql": "^15.x", + "graphql": "^16.x", "graphql-type-json": "^0.x", "luxon": "^3.x", "nats": "^2.x" @@ -19377,6 +19414,15 @@ } } }, + "packages/framework/node_modules/graphql": { + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.9.0.tgz", + "integrity": "sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" + } + }, "packages/indexer-example": { "name": "@aleph-indexer/indexer-example", "version": "1.0.43", @@ -19389,7 +19435,16 @@ "@aleph-indexer/ethereum": "^1.0.43", "@aleph-indexer/framework": "^1.0.43", "@aleph-indexer/oasys": "^1.0.43", - "@aleph-indexer/solana": "^1.0.43" + "@aleph-indexer/solana": "^1.0.43", + "graphql": "^16.9.0" + } + }, + "packages/indexer-example/node_modules/graphql": { + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.9.0.tgz", + "integrity": "sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==", + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } }, "packages/oasys": { @@ -19405,14 +19460,14 @@ "devDependencies": { "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" } }, "packages/oasys-verse": { @@ -19426,6 +19481,15 @@ "@aleph-indexer/oasys": "1.x" } }, + "packages/oasys/node_modules/graphql": { + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.9.0.tgz", + "integrity": "sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" + } + }, "packages/solana": { "name": "@aleph-indexer/solana", "version": "1.5.3", @@ -19448,14 +19512,23 @@ "@types/bs58": "^4.0.1", "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" + } + }, + "packages/solana/node_modules/graphql": { + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.9.0.tgz", + "integrity": "sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } } } diff --git a/packages/avalanche/package.json b/packages/avalanche/package.json index fcfefc8..2e0db99 100644 --- a/packages/avalanche/package.json +++ b/packages/avalanche/package.json @@ -19,14 +19,14 @@ "author": "ALEPH.im", "license": "ISC", "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" }, "devDependencies": { "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, @@ -40,4 +40,4 @@ "entryPoint": "./index.ts", "displayName": "Avalanche Indexer Framework" } -} +} \ No newline at end of file diff --git a/packages/base/package.json b/packages/base/package.json index b0aafc9..8f4722d 100644 --- a/packages/base/package.json +++ b/packages/base/package.json @@ -19,14 +19,14 @@ "author": "ALEPH.im", "license": "ISC", "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" }, "devDependencies": { "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, @@ -40,4 +40,4 @@ "entryPoint": "./index.ts", "displayName": "Base Indexer Framework" } -} +} \ No newline at end of file diff --git a/packages/bsc/package.json b/packages/bsc/package.json index 3fffeda..7bd96ef 100644 --- a/packages/bsc/package.json +++ b/packages/bsc/package.json @@ -19,14 +19,14 @@ "author": "ALEPH.im", "license": "ISC", "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" }, "devDependencies": { "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, @@ -40,4 +40,4 @@ "entryPoint": "./index.ts", "displayName": "Bsc Indexer Framework" } -} +} \ No newline at end of file diff --git a/packages/core/package.json b/packages/core/package.json index d13d1f3..83d1586 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -19,9 +19,9 @@ "author": "ALEPH.im", "license": "ISC", "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" }, "devDependencies": { "@types/compression": "^1.7.2", @@ -31,7 +31,7 @@ "@types/express-rate-limit": "^5.1.3", "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, @@ -54,4 +54,4 @@ "entryPoint": "./src/index.ts", "displayName": "Indexer Core" } -} +} \ No newline at end of file diff --git a/packages/ethereum/package.json b/packages/ethereum/package.json index 0363653..da1dee1 100644 --- a/packages/ethereum/package.json +++ b/packages/ethereum/package.json @@ -19,14 +19,14 @@ "author": "ALEPH.im", "license": "ISC", "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" }, "devDependencies": { "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, @@ -43,4 +43,4 @@ "entryPoint": "./index.ts", "displayName": "Ethereum Indexer Framework" } -} +} \ No newline at end of file diff --git a/packages/framework/package.json b/packages/framework/package.json index b501c51..8de6fac 100644 --- a/packages/framework/package.json +++ b/packages/framework/package.json @@ -25,7 +25,7 @@ "@aleph-indexer/oasys": "^1.x", "@aleph-indexer/oasys-verse": "^1.x", "@aleph-indexer/solana": "^1.x", - "graphql": "^15.x", + "graphql": "^16.x", "graphql-type-json": "^0.x", "luxon": "^3.x", "nats": "^2.x" @@ -54,7 +54,7 @@ "@types/dotenv-defaults": "^2.0.1", "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1", "nats": "^2.7.1" @@ -68,4 +68,4 @@ "entryPoint": "./index.ts", "displayName": "Indexer Framework" } -} +} \ No newline at end of file diff --git a/packages/framework/src/utils/api/indexer/types.ts b/packages/framework/src/utils/api/indexer/types.ts index b52e8d9..1a01b52 100644 --- a/packages/framework/src/utils/api/indexer/types.ts +++ b/packages/framework/src/utils/api/indexer/types.ts @@ -10,8 +10,8 @@ import { GraphQLNamedType, GraphQLNonNull, GraphQLObjectType, + GraphQLOutputType, GraphQLString, - GraphQLType, GraphQLUnionType, } from 'graphql' import { GraphQLJSONObject } from '@aleph-indexer/core' @@ -89,8 +89,8 @@ export function getAccountTimeSeriesStatsType( customTimeSeriesTypesMap?: Record, customStatsType?: GraphQLObjectType, ): { - AccountTimeSeriesStatsList: GraphQLList - AccountStatsList: GraphQLList + AccountTimeSeriesStatsList: GraphQLList + AccountStatsList: GraphQLList types: GraphQLNamedType[] } { const GraphQLTimeSeriesItemValue = customTimeSeriesTypesMap @@ -98,7 +98,8 @@ export function getAccountTimeSeriesStatsType( name: 'TimeSeriesItemUnion', types: Object.values(customTimeSeriesTypesMap), resolveType(value) { - return customTimeSeriesTypesMap[value.type] + return value.type + // return customTimeSeriesTypesMap[value.type] }, }) : GraphQLJSONObject diff --git a/packages/indexer-example/package.json b/packages/indexer-example/package.json index a0a19dc..4401d52 100644 --- a/packages/indexer-example/package.json +++ b/packages/indexer-example/package.json @@ -26,6 +26,7 @@ "@aleph-indexer/core": "^1.0.42", "@aleph-indexer/ethereum": "^1.0.43", "@aleph-indexer/framework": "^1.0.43", - "@aleph-indexer/solana": "^1.0.43" + "@aleph-indexer/solana": "^1.0.43", + "graphql": "^16.9.0" } } \ No newline at end of file diff --git a/packages/oasys/package.json b/packages/oasys/package.json index 3c77234..8865ae2 100644 --- a/packages/oasys/package.json +++ b/packages/oasys/package.json @@ -19,14 +19,14 @@ "author": "ALEPH.im", "license": "ISC", "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" }, "devDependencies": { "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, @@ -40,4 +40,4 @@ "entryPoint": "./index.ts", "displayName": "Oasys Indexer Framework" } -} +} \ No newline at end of file diff --git a/packages/solana/package.json b/packages/solana/package.json index e494a79..a5f8a79 100644 --- a/packages/solana/package.json +++ b/packages/solana/package.json @@ -19,9 +19,9 @@ "author": "ALEPH.im", "license": "ISC", "peerDependencies": { - "graphql": "^15.8.0", - "graphql-type-json": "^0.3.2", - "luxon": "3.2.1" + "graphql": "^16.x", + "graphql-type-json": "^0.3.x", + "luxon": "3.x" }, "devDependencies": { "@coral-xyz/borsh": "^0.27.0", @@ -29,7 +29,7 @@ "@types/bs58": "^4.0.1", "@types/luxon": "3.2.0", "@types/node": "^17.0.33", - "graphql": "^15.8.0", + "graphql": "^16.9.0", "graphql-type-json": "^0.3.2", "luxon": "3.2.1" }, @@ -49,4 +49,4 @@ "entryPoint": "./index.ts", "displayName": "Solana Indexer Framework" } -} +} \ No newline at end of file