Skip to content

Commit 91291f1

Browse files
renovate[bot]github-actions[bot]YaroShkvorets
authored
fix(deps): update all non-major dependencies (#1996)
* fix(deps): update all non-major dependencies * chore(dependencies): updated changesets for modified dependencies * address breaking change in immutable.js --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: YaroShkvorets <[email protected]>
1 parent 5237e9d commit 91291f1

File tree

9 files changed

+444
-411
lines changed

9 files changed

+444
-411
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@graphprotocol/graph-cli": patch
3+
---
4+
dependencies updates:
5+
- Updated dependency [`@oclif/[email protected]` ↗︎](https://www.npmjs.com/package/@oclif/core/v/4.2.10) (from `4.2.8`, in `dependencies`)
6+
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/docker-compose/v/1.2.0) (from `1.1.1`, in `dependencies`)
7+
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/immutable/v/5.1.1) (from `5.0.3`, in `dependencies`)
8+
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/undici/v/7.7.0) (from `7.4.0`, in `dependencies`)
9+
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/yaml/v/2.7.1) (from `2.7.0`, in `dependencies`)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@theguild/eslint-config": "0.13.2",
3737
"@theguild/prettier-config": "3.0.0",
3838
"@types/node": "^22.10.1",
39-
"eslint": "9.21.0",
39+
"eslint": "9.23.0",
4040
"prettier": "3.5.3"
4141
},
4242
"pnpm": {

packages/cli/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"dependencies": {
3939
"@float-capital/float-subgraph-uncrashable": "0.0.0-internal-testing.5",
40-
"@oclif/core": "4.2.8",
40+
"@oclif/core": "4.2.10",
4141
"@oclif/plugin-autocomplete": "^3.2.11",
4242
"@oclif/plugin-not-found": "^3.2.29",
4343
"@oclif/plugin-warn-if-update-available": "^3.1.24",
@@ -46,22 +46,22 @@
4646
"assemblyscript": "0.19.23",
4747
"chokidar": "4.0.3",
4848
"debug": "4.4.0",
49-
"docker-compose": "1.1.1",
49+
"docker-compose": "1.2.0",
5050
"fs-extra": "11.3.0",
5151
"glob": "11.0.1",
5252
"gluegun": "5.2.0",
5353
"graphql": "16.10.0",
54-
"immutable": "5.0.3",
54+
"immutable": "5.1.1",
5555
"jayson": "4.1.3",
5656
"js-yaml": "4.1.0",
5757
"kubo-rpc-client": "^5.0.2",
5858
"open": "10.1.0",
5959
"prettier": "3.5.3",
6060
"semver": "7.7.1",
6161
"tmp-promise": "3.0.3",
62-
"undici": "7.4.0",
62+
"undici": "7.7.0",
6363
"web3-eth-abi": "4.4.1",
64-
"yaml": "2.7.0"
64+
"yaml": "2.7.1"
6565
},
6666
"devDependencies": {
6767
"@types/debug": "^4.1.12",

packages/cli/src/subgraph.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ export default class Subgraph {
8686

8787
if (validationErrors.size > 0) {
8888
subgraphDebug.extend('validate')('Schema validation failed for %s', filename);
89-
errors = validationErrors.groupBy(error => error.get('entity')).sort();
89+
errors = validationErrors.groupBy(error => error.get('entity') ?? '').sort();
9090
const msg = errors.reduce(
9191
(msg, errors, entity) => {
92-
errors = errors.groupBy((error: any) => error.get('directive'));
92+
errors = errors.groupBy((error: any) => error.get('directive') ?? '');
9393
const inner_msgs = errors.reduce((msg: string, errors: any[], directive: string) => {
9494
return `${msg}${
9595
directive

packages/cli/src/validation/manifest.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,10 @@ const dataSourceListToMap = (dataSources: any[]) =>
275275
dataSources.reduce(
276276
(protocolKinds, dataSource) =>
277277
protocolKinds.update(Protocol.normalizeName(dataSource.kind), (networks: any) =>
278-
(networks || immutable.OrderedMap()).update(dataSource.network, (dataSourceNames: any) =>
279-
(dataSourceNames || immutable.OrderedSet()).add(dataSource.name),
278+
(networks || immutable.OrderedMap()).update(
279+
dataSource.network ?? '',
280+
(dataSourceNames: any) =>
281+
(dataSourceNames || immutable.OrderedSet()).add(dataSource.name),
280282
),
281283
),
282284
immutable.OrderedMap(),
@@ -294,9 +296,9 @@ const validateDataSourceProtocolAndNetworks = (value: any) => {
294296
message: `Conflicting protocol kinds used in data sources and templates:
295297
${protocolNetworkMap
296298
.map(
297-
(dataSourceNames: any, protocolKind: string | undefined) =>
299+
(dataSourceNames: any, protocolKind: string) =>
298300
` ${
299-
protocolKind === undefined
301+
protocolKind === ''
300302
? 'Data sources and templates having no protocol kind set'
301303
: `Data sources and templates using '${protocolKind}'`
302304
}:\n${dataSourceNames
@@ -320,9 +322,9 @@ Recommendation: Make all data sources and templates use the same protocol kind.`
320322
message: `Conflicting networks used in data sources and templates:
321323
${networks
322324
.map(
323-
(dataSources: any, network: string | undefined) =>
325+
(dataSources: any, network: string) =>
324326
` ${
325-
network === undefined
327+
network === ''
326328
? 'Data sources and templates having no network set'
327329
: `Data sources and templates using '${network}'`
328330
}:\n${dataSources.map((ds: string) => ` - ${ds}`).join('\n')}`,

packages/cli/tests/cli/validation/call-handler-with-tuple/generated/schema.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
Bytes,
1010
BigInt,
1111
BigDecimal,
12+
Int8,
1213
} from "@graphprotocol/graph-ts";
1314

1415
export class MyEntity extends Entity {

packages/cli/tests/cli/validation/example-values-found/generated/schema.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
Bytes,
1010
BigInt,
1111
BigDecimal,
12+
Int8,
1213
} from "@graphprotocol/graph-ts";
1314

1415
export class MyEntity extends Entity {

0 commit comments

Comments
 (0)