Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/@graphprotocol_graph-cli-1996-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@graphprotocol/graph-cli": patch
---
dependencies updates:
- Updated dependency [`@oclif/[email protected]` ↗︎](https://www.npmjs.com/package/@oclif/core/v/4.2.10) (from `4.2.8`, in `dependencies`)
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/docker-compose/v/1.2.0) (from `1.1.1`, in `dependencies`)
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/immutable/v/5.1.1) (from `5.0.3`, in `dependencies`)
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/undici/v/7.7.0) (from `7.4.0`, in `dependencies`)
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/yaml/v/2.7.1) (from `2.7.0`, in `dependencies`)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@theguild/eslint-config": "0.13.2",
"@theguild/prettier-config": "3.0.0",
"@types/node": "^22.10.1",
"eslint": "9.21.0",
"eslint": "9.23.0",
"prettier": "3.5.3"
},
"pnpm": {
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"@float-capital/float-subgraph-uncrashable": "0.0.0-internal-testing.5",
"@oclif/core": "4.2.8",
"@oclif/core": "4.2.10",
"@oclif/plugin-autocomplete": "^3.2.11",
"@oclif/plugin-not-found": "^3.2.29",
"@oclif/plugin-warn-if-update-available": "^3.1.24",
Expand All @@ -46,22 +46,22 @@
"assemblyscript": "0.19.23",
"chokidar": "4.0.3",
"debug": "4.4.0",
"docker-compose": "1.1.1",
"docker-compose": "1.2.0",
"fs-extra": "11.3.0",
"glob": "11.0.1",
"gluegun": "5.2.0",
"graphql": "16.10.0",
"immutable": "5.0.3",
"immutable": "5.1.1",
"jayson": "4.1.3",
"js-yaml": "4.1.0",
"kubo-rpc-client": "^5.0.2",
"open": "10.1.0",
"prettier": "3.5.3",
"semver": "7.7.1",
"tmp-promise": "3.0.3",
"undici": "7.4.0",
"undici": "7.7.0",
"web3-eth-abi": "4.4.1",
"yaml": "2.7.0"
"yaml": "2.7.1"
},
"devDependencies": {
"@types/debug": "^4.1.12",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/subgraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ export default class Subgraph {

if (validationErrors.size > 0) {
subgraphDebug.extend('validate')('Schema validation failed for %s', filename);
errors = validationErrors.groupBy(error => error.get('entity')).sort();
errors = validationErrors.groupBy(error => error.get('entity') ?? '').sort();
const msg = errors.reduce(
(msg, errors, entity) => {
errors = errors.groupBy((error: any) => error.get('directive'));
errors = errors.groupBy((error: any) => error.get('directive') ?? '');
const inner_msgs = errors.reduce((msg: string, errors: any[], directive: string) => {
return `${msg}${
directive
Expand Down
14 changes: 8 additions & 6 deletions packages/cli/src/validation/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,10 @@ const dataSourceListToMap = (dataSources: any[]) =>
dataSources.reduce(
(protocolKinds, dataSource) =>
protocolKinds.update(Protocol.normalizeName(dataSource.kind), (networks: any) =>
(networks || immutable.OrderedMap()).update(dataSource.network, (dataSourceNames: any) =>
(dataSourceNames || immutable.OrderedSet()).add(dataSource.name),
(networks || immutable.OrderedMap()).update(
dataSource.network ?? '',
(dataSourceNames: any) =>
(dataSourceNames || immutable.OrderedSet()).add(dataSource.name),
),
),
immutable.OrderedMap(),
Expand All @@ -294,9 +296,9 @@ const validateDataSourceProtocolAndNetworks = (value: any) => {
message: `Conflicting protocol kinds used in data sources and templates:
${protocolNetworkMap
.map(
(dataSourceNames: any, protocolKind: string | undefined) =>
(dataSourceNames: any, protocolKind: string) =>
` ${
protocolKind === undefined
protocolKind === ''
? 'Data sources and templates having no protocol kind set'
: `Data sources and templates using '${protocolKind}'`
}:\n${dataSourceNames
Expand All @@ -320,9 +322,9 @@ Recommendation: Make all data sources and templates use the same protocol kind.`
message: `Conflicting networks used in data sources and templates:
${networks
.map(
(dataSources: any, network: string | undefined) =>
(dataSources: any, network: string) =>
` ${
network === undefined
network === ''
? 'Data sources and templates having no network set'
: `Data sources and templates using '${network}'`
}:\n${dataSources.map((ds: string) => ` - ${ds}`).join('\n')}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Bytes,
BigInt,
BigDecimal,
Int8,
} from "@graphprotocol/graph-ts";

export class MyEntity extends Entity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Bytes,
BigInt,
BigDecimal,
Int8,
} from "@graphprotocol/graph-ts";

export class MyEntity extends Entity {
Expand Down
Loading