diff --git a/.gitignore b/.gitignore index 96e5560..0b56ee1 100644 --- a/.gitignore +++ b/.gitignore @@ -107,3 +107,6 @@ dist # IDE directories .idea + +# Vscode directories +.vscode diff --git a/packages/common-ts/package.json b/packages/common-ts/package.json index 4ad4f43..25b1c5b 100644 --- a/packages/common-ts/package.json +++ b/packages/common-ts/package.json @@ -18,8 +18,8 @@ "dependencies": { "@graphprotocol/contracts": "5.3.3", "@graphprotocol/pino-sentry-simple": "0.7.1", - "@urql/core": "2.4.4", - "@urql/exchange-execute": "1.2.2", + "@urql/core": "3.1.0", + "@urql/exchange-execute": "2.1.0", "body-parser": "1.20.2", "bs58": "5.0.0", "cors": "2.8.5", diff --git a/packages/common-ts/src/subgraph/networkSubgraphClient.test.ts b/packages/common-ts/src/subgraph/networkSubgraphClient.test.ts index 286cbd6..0c48c22 100644 --- a/packages/common-ts/src/subgraph/networkSubgraphClient.test.ts +++ b/packages/common-ts/src/subgraph/networkSubgraphClient.test.ts @@ -12,11 +12,15 @@ describe('Network Subgraph Client', () => { expect( client - .query(gql` - { - ok - } - `) + .query( + gql` + { + ok + } + `, + [], + [], + ) .toPromise(), ).resolves.toMatchObject({ data: { ok: true }, diff --git a/yarn.lock b/yarn.lock index ca7979e..a7b00dc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@0no-co/graphql.web@^1.0.1": - version "1.0.4" - resolved "https://registry.npmjs.org/@0no-co/graphql.web/-/graphql.web-1.0.4.tgz#9606eb651955499525d068ce0ad8bea596286ce2" - integrity sha512-W3ezhHGfO0MS1PtGloaTpg0PbaT8aZSmmaerL7idtU5F7oCI+uu25k+MsMS31BVFlp4aMkHSrNRxiD72IlK8TA== +"@0no-co/graphql.web@^1.0.5": + version "1.0.8" + resolved "https://registry.yarnpkg.com/@0no-co/graphql.web/-/graphql.web-1.0.8.tgz#20682c7839b0b5b7728ad944a8602ca46d983e75" + integrity sha512-8BG6woLtDMvXB9Ajb/uE+Zr/U7y4qJ3upXi0JQHZmsKUJa7HjF/gFvmL2f3/mSmfZoQGRr9VoY97LCX2uaFMzA== "@aashutoshrathi/word-wrap@^1.2.3": version "1.2.6" @@ -985,11 +985,6 @@ split2 "^3.1.1" through2 "^3.0.1" -"@graphql-typed-document-node/core@^3.1.1": - version "3.2.0" - resolved "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.2.0.tgz#5f3d96ec6b2354ad6d8a28bf216a1d97b5426861" - integrity sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ== - "@humanwhocodes/config-array@^0.11.11": version "0.11.11" resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz#88a04c570dbbc7dd943e4712429c3df09bc32844" @@ -2655,29 +2650,28 @@ "@typescript-eslint/types" "6.7.0" eslint-visitor-keys "^3.4.1" -"@urql/core@2.4.4": - version "2.4.4" - resolved "https://registry.npmjs.org/@urql/core/-/core-2.4.4.tgz#29f1d03cc439134259761e70a78ae20302c3d7fe" - integrity sha512-TD+OS7jG1Ts6QkpU0TZ85i/vu40r71GF0QQFDhnWFtgkHcNwnpkIwWBMa72AR3j2imBTPpk61e/xb39uM/t37A== +"@urql/core@3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@urql/core/-/core-3.1.0.tgz#b77c6e444da35507b234645caed383cbb04d8ac9" + integrity sha512-6pYB4/WGZmuCxCc+h8AX9h+g1o75cPgMrcan+G/pYEDGAd6+PXoEuDumhEXpwu4vnkqCvVnFELEYcqkaM8ddPg== dependencies: - "@graphql-typed-document-node/core" "^3.1.1" - wonka "^4.0.14" + wonka "^6.1.2" -"@urql/core@>=2.3.6": - version "4.1.2" - resolved "https://registry.npmjs.org/@urql/core/-/core-4.1.2.tgz#0080796f07f34a6878a29eb0ef319ceb2083b65b" - integrity sha512-K+JA5dxEjY7Jkt1hV8G2ShkuOscKS/r+8QnXDDxTkyMzZzviYqz5f/zxgSElObT/QSW17xCC1LFl+kwiyX5opg== +"@urql/core@>=3.1.0": + version "5.0.6" + resolved "https://registry.yarnpkg.com/@urql/core/-/core-5.0.6.tgz#0d6624e30084f9137f78dc6c5bb8a599cba7f9dc" + integrity sha512-38rgSDqVNihFDauw1Pm9V7XLWIKuK8V9CKgrUF7/xEKinze8ENKP1ZeBhkG+dxWzJan7CHK+SLl46kAdvZwIlA== dependencies: - "@0no-co/graphql.web" "^1.0.1" + "@0no-co/graphql.web" "^1.0.5" wonka "^6.3.2" -"@urql/exchange-execute@1.2.2": - version "1.2.2" - resolved "https://registry.npmjs.org/@urql/exchange-execute/-/exchange-execute-1.2.2.tgz#41a68500c44d12c4c1e6a80dfc77cefccde15687" - integrity sha512-KebdnKWMKI1NkRtIxp8YIouynOaFnhcdaMNCcJEtp+kmY4vGZUgdxT/SIzTPXXYJvk5G2aiQ/JMr97I+wM/EHA== +"@urql/exchange-execute@2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@urql/exchange-execute/-/exchange-execute-2.1.0.tgz#70058969248e204494526decf2bb75c11c965ad1" + integrity sha512-b84hq5EPgbERmg+98SqmMZqD5W3YrFkFii/6ZWVm5zsVdb+c0ZhRpUrpOCSemh5Jl5X291PG0WUUy2hdMtjraQ== dependencies: - "@urql/core" ">=2.3.6" - wonka "^4.0.14" + "@urql/core" ">=3.1.0" + wonka "^6.0.0" JSONStream@^1.0.4: version "1.3.5" @@ -8775,14 +8769,9 @@ wkx@^0.5.0: dependencies: "@types/node" "*" -wonka@^4.0.14: - version "4.0.15" - resolved "https://registry.npmjs.org/wonka/-/wonka-4.0.15.tgz#9aa42046efa424565ab8f8f451fcca955bf80b89" - integrity sha512-U0IUQHKXXn6PFo9nqsHphVCE5m3IntqZNB9Jjn7EB1lrR7YTDY3YWgFvEvwniTzXSvOH/XMzAZaIfJF/LvHYXg== - -wonka@^6.3.2: +wonka@^6.0.0, wonka@^6.1.2, wonka@^6.3.2: version "6.3.4" - resolved "https://registry.npmjs.org/wonka/-/wonka-6.3.4.tgz#76eb9316e3d67d7febf4945202b5bdb2db534594" + resolved "https://registry.yarnpkg.com/wonka/-/wonka-6.3.4.tgz#76eb9316e3d67d7febf4945202b5bdb2db534594" integrity sha512-CjpbqNtBGNAeyNS/9W6q3kSkKE52+FjIj7AkFlLr11s/VWGUu6a2CdYSdGxocIhIVjaW/zchesBQUKPVU69Cqg== wordwrap@^1.0.0: