diff --git a/.changeset/khaki-snakes-cross.md b/.changeset/khaki-snakes-cross.md deleted file mode 100644 index 0eed0eae4..000000000 --- a/.changeset/khaki-snakes-cross.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphprotocol/client-cli': patch ---- - -Upgrade internal GraphQL-Mesh deps to have better cross-platform support (node/browser) diff --git a/.changeset/mean-beers-matter.md b/.changeset/mean-beers-matter.md deleted file mode 100644 index d6783570a..000000000 --- a/.changeset/mean-beers-matter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphprotocol/client-cli': patch ---- - -Improve logging experience diff --git a/.changeset/orange-toys-hope copy.md b/.changeset/orange-toys-hope copy.md deleted file mode 100644 index 41b26ddd5..000000000 --- a/.changeset/orange-toys-hope copy.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -'@graphprotocol/client-auto-pagination': patch ---- - -#### Auto Pagination Transform - -`graph-client` implements automatic pagination using `first:` and `after:` filters of `graph-node`. - -At the moment, `graph-node` allow fetching only 1000 records per query. This transfomer allow you to run queries with any limit, and the breaks it automatically to multiple concurrent requests, then merges the responses into a single response. - -This feature is implemented in `@graphprotocol/client-auto-pagination` and installed automatically with the `graph-client` CLI package. - -### Usage Example - -```yaml -# .graphclientrc.yml -sources: - - name: uniswap - handler: - graphql: - endpoint: https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2 - transforms: - - autoPagination: - validateSchema: true # Validates that the schema source actually contains the required input filters. - limitOfRecords: 1000 # Default is 1000, you can change if you indexer has different configuration in GRAPH_GRAPHQL_MAX_FIRST var. -``` diff --git a/.changeset/orange-toys-hope.md b/.changeset/orange-toys-hope.md deleted file mode 100644 index 0d4f0aac0..000000000 --- a/.changeset/orange-toys-hope.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@graphprotocol/client-block-tracking': patch ---- - -#### Block Tracking Transform - -`graph-client` implements automatic block tracking using `number_gte` filter of `graph-node`. This automates the process [of fetching and tracking the block number of entites](https://thegraph.com/docs/en/developer/distributed-systems/#polling-for-updated-data). - -This feature is implemented in `@graphprotocol/client-block-tracking` and installed automatically with the `graph-client` CLI package. - -### Usage Example - -```yaml -# .graphclientrc.yml -sources: - - name: uniswap - handler: - graphql: - endpoint: https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2 - transforms: # The following section will make sure to automatically fetch the block information, and then use it for tracking in future queries. - - blockTracking: - validateSchema: true # Validates that the schema source actually contains _meta and input block filters. -``` diff --git a/.changeset/real-pants-cheat.md b/.changeset/real-pants-cheat.md deleted file mode 100644 index 1440bc1ba..000000000 --- a/.changeset/real-pants-cheat.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@graphprotocol/client-apollo': patch -'@graphprotocol/client-cli': patch -'@graphprotocol/client-urql': patch ---- - -Update internal dependencies diff --git a/.changeset/rude-games-compare.md b/.changeset/rude-games-compare.md deleted file mode 100644 index 9881b17cc..000000000 --- a/.changeset/rude-games-compare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphprotocol/client-cli': patch ---- - -Use GraphQL Yoga internally in Mesh CLI and have an improved execution layer diff --git a/.changeset/short-buses-draw.md b/.changeset/short-buses-draw.md deleted file mode 100644 index f644977c8..000000000 --- a/.changeset/short-buses-draw.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphprotocol/client-cli': patch ---- - -Update internal GraphQL Mesh dependecies in order to allow custom package prefixes besides @graphql-mesh/\* diff --git a/.changeset/silver-ways-flash.md b/.changeset/silver-ways-flash.md deleted file mode 100644 index 157f65c4a..000000000 --- a/.changeset/silver-ways-flash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphprotocol/client-cli': patch ---- - -Update core GraphQL-Mesh version for a better compatibility for browser/Node envs diff --git a/.changeset/smooth-pans-sneeze.md b/.changeset/smooth-pans-sneeze.md deleted file mode 100644 index d21d0d17c..000000000 --- a/.changeset/smooth-pans-sneeze.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphprotocol/client-cli': patch ---- - -Update internal GraphiQL and have better interal GraphQL server (based on Yoga) in CLI commands diff --git a/.changeset/wicked-fireants-notice.md b/.changeset/wicked-fireants-notice.md deleted file mode 100644 index 74c82c3a2..000000000 --- a/.changeset/wicked-fireants-notice.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphprotocol/client-cli': patch ---- - -Bump internal GraphQL-Tools deps for an improve error handling diff --git a/examples/apollo/package.json b/examples/apollo/package.json index 3ed535464..30092fbd5 100644 --- a/examples/apollo/package.json +++ b/examples/apollo/package.json @@ -11,13 +11,13 @@ }, "dependencies": { "@apollo/client": "3.5.10", - "@graphprotocol/client-apollo": "0.0.2", + "@graphprotocol/client-apollo": "0.0.3", "graphql": "16.3.0", "react": "17.0.2", "react-dom": "17.0.2" }, "devDependencies": { - "@graphprotocol/client-cli": "0.0.4", + "@graphprotocol/client-cli": "0.0.5", "@types/react": "17.0.33", "@types/react-dom": "17.0.10", "@vitejs/plugin-react": "1.3.1", diff --git a/examples/composition/package.json b/examples/composition/package.json index dfdb88815..4e5897f18 100644 --- a/examples/composition/package.json +++ b/examples/composition/package.json @@ -9,7 +9,7 @@ "graphiql": "graphclient serve-dev" }, "dependencies": { - "@graphprotocol/client-cli": "0.0.4", + "@graphprotocol/client-cli": "0.0.5", "@graphql-mesh/transform-prefix": "0.11.34", "@graphql-mesh/transform-rename": "0.12.35", "@graphql-mesh/transform-type-merging": "0.3.44", diff --git a/examples/execute/package.json b/examples/execute/package.json index 743796cd5..33655bb03 100644 --- a/examples/execute/package.json +++ b/examples/execute/package.json @@ -15,7 +15,7 @@ "react-dom": "17.0.2" }, "devDependencies": { - "@graphprotocol/client-cli": "0.0.4", + "@graphprotocol/client-cli": "0.0.5", "@types/react": "17.0.33", "@types/react-dom": "17.0.10", "@vitejs/plugin-react": "1.3.1", diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 6f40d4738..086bb1676 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -16,7 +16,7 @@ "react-dom": "17.0.2" }, "devDependencies": { - "@graphprotocol/client-cli": "0.0.4", + "@graphprotocol/client-cli": "0.0.5", "@types/node": "17.0.26", "@types/react": "17.0.41", "eslint": "8.14.0", diff --git a/examples/node/package.json b/examples/node/package.json index a3b0b8af6..d25a5291d 100644 --- a/examples/node/package.json +++ b/examples/node/package.json @@ -9,7 +9,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphprotocol/client-cli": "0.0.4", + "@graphprotocol/client-cli": "0.0.5", "concurrently": "7.1.0", "graphql": "16.3.0", "nodemon": "2.0.15", diff --git a/examples/urql/package.json b/examples/urql/package.json index 573697bc8..050173505 100644 --- a/examples/urql/package.json +++ b/examples/urql/package.json @@ -10,14 +10,14 @@ "graphiql": "graphclient serve-dev" }, "dependencies": { - "@graphprotocol/client-urql": "0.0.2", + "@graphprotocol/client-urql": "0.0.3", "graphql": "16.3.0", "react": "17.0.2", "react-dom": "17.0.2", "urql": "2.2.0" }, "devDependencies": { - "@graphprotocol/client-cli": "0.0.4", + "@graphprotocol/client-cli": "0.0.5", "@types/react": "17.0.33", "@types/react-dom": "17.0.10", "@vitejs/plugin-react": "1.3.1", diff --git a/packages/apollo/CHANGELOG.md b/packages/apollo/CHANGELOG.md index feab19600..51e2e3a79 100644 --- a/packages/apollo/CHANGELOG.md +++ b/packages/apollo/CHANGELOG.md @@ -1,5 +1,11 @@ # @graphprotocol/client-apollo +## 0.0.3 + +### Patch Changes + +- 074d9b8: Update internal dependencies + ## 0.0.2 ### Patch Changes diff --git a/packages/apollo/package.json b/packages/apollo/package.json index 99ec898c3..253bb0410 100644 --- a/packages/apollo/package.json +++ b/packages/apollo/package.json @@ -1,6 +1,6 @@ { "name": "@graphprotocol/client-apollo", - "version": "0.0.2", + "version": "0.0.3", "description": "", "repository": { "type": "git", diff --git a/packages/auto-pagination/CHANGELOG.md b/packages/auto-pagination/CHANGELOG.md new file mode 100644 index 000000000..896c3471f --- /dev/null +++ b/packages/auto-pagination/CHANGELOG.md @@ -0,0 +1,28 @@ +# @graphprotocol/client-auto-pagination + +## 0.0.1 + +### Patch Changes + +- 063dc0b: #### Auto Pagination Transform + + `graph-client` implements automatic pagination using `first:` and `after:` filters of `graph-node`. + + At the moment, `graph-node` allow fetching only 1000 records per query. This transfomer allow you to run queries with any limit, and the breaks it automatically to multiple concurrent requests, then merges the responses into a single response. + + This feature is implemented in `@graphprotocol/client-auto-pagination` and installed automatically with the `graph-client` CLI package. + + ### Usage Example + + ```yaml + # .graphclientrc.yml + sources: + - name: uniswap + handler: + graphql: + endpoint: https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2 + transforms: + - autoPagination: + validateSchema: true # Validates that the schema source actually contains the required input filters. + limitOfRecords: 1000 # Default is 1000, you can change if you indexer has different configuration in GRAPH_GRAPHQL_MAX_FIRST var. + ``` diff --git a/packages/auto-pagination/package.json b/packages/auto-pagination/package.json index c5bf5e2b3..c2e7c7b47 100644 --- a/packages/auto-pagination/package.json +++ b/packages/auto-pagination/package.json @@ -1,6 +1,6 @@ { "name": "@graphprotocol/client-auto-pagination", - "version": "0.0.0", + "version": "0.0.1", "description": "", "repository": { "type": "git", diff --git a/packages/block-tracking/CHANGELOG.md b/packages/block-tracking/CHANGELOG.md new file mode 100644 index 000000000..45a173f5d --- /dev/null +++ b/packages/block-tracking/CHANGELOG.md @@ -0,0 +1,25 @@ +# @graphprotocol/client-block-tracking + +## 0.0.1 + +### Patch Changes + +- 063dc0b: #### Block Tracking Transform + + `graph-client` implements automatic block tracking using `number_gte` filter of `graph-node`. This automates the process [of fetching and tracking the block number of entites](https://thegraph.com/docs/en/developer/distributed-systems/#polling-for-updated-data). + + This feature is implemented in `@graphprotocol/client-block-tracking` and installed automatically with the `graph-client` CLI package. + + ### Usage Example + + ```yaml + # .graphclientrc.yml + sources: + - name: uniswap + handler: + graphql: + endpoint: https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2 + transforms: # The following section will make sure to automatically fetch the block information, and then use it for tracking in future queries. + - blockTracking: + validateSchema: true # Validates that the schema source actually contains _meta and input block filters. + ``` diff --git a/packages/block-tracking/package.json b/packages/block-tracking/package.json index 5df92cce6..726411148 100644 --- a/packages/block-tracking/package.json +++ b/packages/block-tracking/package.json @@ -1,6 +1,6 @@ { "name": "@graphprotocol/client-block-tracking", - "version": "0.0.0", + "version": "0.0.1", "description": "", "repository": { "type": "git", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 2bdb8bd9d..f671ee830 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,22 @@ # @graphprotocol/client-cli +## 0.0.5 + +### Patch Changes + +- 074d9b8: Upgrade internal GraphQL-Mesh deps to have better cross-platform support (node/browser) +- 074d9b8: Improve logging experience +- 074d9b8: Update internal dependencies +- 074d9b8: Use GraphQL Yoga internally in Mesh CLI and have an improved execution layer +- 074d9b8: Update internal GraphQL Mesh dependecies in order to allow custom package prefixes besides @graphql-mesh/\* +- 074d9b8: Update core GraphQL-Mesh version for a better compatibility for browser/Node envs +- 074d9b8: Update internal GraphiQL and have better interal GraphQL server (based on Yoga) in CLI commands +- 074d9b8: Bump internal GraphQL-Tools deps for an improve error handling +- Updated dependencies [063dc0b] +- Updated dependencies [063dc0b] + - @graphprotocol/client-auto-pagination@0.0.1 + - @graphprotocol/client-block-tracking@0.0.1 + ## 0.0.4 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index f623a0096..9d49e474d 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@graphprotocol/client-cli", - "version": "0.0.4", + "version": "0.0.5", "description": "", "repository": { "type": "git", @@ -52,8 +52,8 @@ "@graphql-mesh/cli": "0.68.0", "@graphql-mesh/graphql": "0.23.8", "tslib": "2.4.0", - "@graphprotocol/client-auto-pagination": "0.0.0", - "@graphprotocol/client-block-tracking": "0.0.0" + "@graphprotocol/client-auto-pagination": "0.0.1", + "@graphprotocol/client-block-tracking": "0.0.1" }, "devDependencies": { "graphql": "16.3.0" diff --git a/packages/urql/CHANGELOG.md b/packages/urql/CHANGELOG.md index 1c9ea93e1..ed56c873b 100644 --- a/packages/urql/CHANGELOG.md +++ b/packages/urql/CHANGELOG.md @@ -1,5 +1,11 @@ # @graphprotocol/client-urql +## 0.0.3 + +### Patch Changes + +- 074d9b8: Update internal dependencies + ## 0.0.2 ### Patch Changes diff --git a/packages/urql/package.json b/packages/urql/package.json index 95c137903..4cce1b446 100644 --- a/packages/urql/package.json +++ b/packages/urql/package.json @@ -1,6 +1,6 @@ { "name": "@graphprotocol/client-urql", - "version": "0.0.2", + "version": "0.0.3", "description": "", "repository": { "type": "git",