@graphprotocol/graph-cli 0.97.0 → 0.97.1-alpha-20250404171100-8445d33dd95701be9598dcaac5354f478bf548fa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
+
## 0.97.1-alpha-20250404171100-8445d33dd95701be9598dcaac5354f478bf548fa
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1996](https://github.com/graphprotocol/graph-tooling/pull/1996) [`91291f1`](https://github.com/graphprotocol/graph-tooling/commit/91291f1881fdd89f14651d291cb9c61dfe18f754) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
8
|
+
- Updated dependency [`@oclif/core@4.2.10` ↗︎](https://www.npmjs.com/package/@oclif/core/v/4.2.10) (from `4.2.8`, in `dependencies`)
|
|
9
|
+
- Updated dependency [`docker-compose@1.2.0` ↗︎](https://www.npmjs.com/package/docker-compose/v/1.2.0) (from `1.1.1`, in `dependencies`)
|
|
10
|
+
- Updated dependency [`immutable@5.1.1` ↗︎](https://www.npmjs.com/package/immutable/v/5.1.1) (from `5.0.3`, in `dependencies`)
|
|
11
|
+
- Updated dependency [`undici@7.7.0` ↗︎](https://www.npmjs.com/package/undici/v/7.7.0) (from `7.4.0`, in `dependencies`)
|
|
12
|
+
- Updated dependency [`yaml@2.7.1` ↗︎](https://www.npmjs.com/package/yaml/v/2.7.1) (from `2.7.0`, in `dependencies`)
|
|
13
|
+
|
|
3
14
|
## 0.97.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -2,5 +2,5 @@ import immutable from 'immutable';
|
|
|
2
2
|
/**
|
|
3
3
|
* Type conversions
|
|
4
4
|
*/
|
|
5
|
-
declare const _default: immutable.Map<"ethereum" | "AssemblyScript" | "Value", immutable.Map<"AssemblyScript", immutable.List<immutable.List<string | immutable.Map<keyof RegExp,
|
|
5
|
+
declare const _default: immutable.Map<"ethereum" | "AssemblyScript" | "Value", immutable.Map<"AssemblyScript", immutable.List<immutable.List<string | immutable.Map<keyof RegExp, unknown> | immutable.Map<never, never>>>> | immutable.Map<"ethereum" | "Value", immutable.List<immutable.List<string | immutable.Map<keyof RegExp, unknown> | immutable.Map<never, never>>> | immutable.List<immutable.List<string | immutable.Map<keyof RegExp, unknown> | immutable.Map<never, never>> | immutable.List<string | immutable.Map<never, never> | null>>> | immutable.Map<"AssemblyScript", immutable.List<immutable.List<string | immutable.Map<keyof RegExp, unknown> | immutable.Map<never, never>>>>>;
|
|
6
6
|
export default _default;
|
package/dist/subgraph.js
CHANGED
|
@@ -53,9 +53,9 @@ export default class Subgraph {
|
|
|
53
53
|
let errors;
|
|
54
54
|
if (validationErrors.size > 0) {
|
|
55
55
|
subgraphDebug.extend('validate')('Schema validation failed for %s', filename);
|
|
56
|
-
errors = validationErrors.groupBy(error => error.get('entity')).sort();
|
|
56
|
+
errors = validationErrors.groupBy(error => error.get('entity') ?? '').sort();
|
|
57
57
|
const msg = errors.reduce((msg, errors, entity) => {
|
|
58
|
-
errors = errors.groupBy((error) => error.get('directive'));
|
|
58
|
+
errors = errors.groupBy((error) => error.get('directive') ?? '');
|
|
59
59
|
const inner_msgs = errors.reduce((msg, errors, directive) => {
|
|
60
60
|
return `${msg}${directive
|
|
61
61
|
? `
|
|
@@ -208,7 +208,7 @@ const validateValue = (value, ctx) => {
|
|
|
208
208
|
// 'near-mainnet': ['contract3'],
|
|
209
209
|
// },
|
|
210
210
|
// }
|
|
211
|
-
const dataSourceListToMap = (dataSources) => dataSources.reduce((protocolKinds, dataSource) => protocolKinds.update(Protocol.normalizeName(dataSource.kind), (networks) => (networks || immutable.OrderedMap()).update(dataSource.network, (dataSourceNames) => (dataSourceNames || immutable.OrderedSet()).add(dataSource.name))), immutable.OrderedMap());
|
|
211
|
+
const dataSourceListToMap = (dataSources) => dataSources.reduce((protocolKinds, dataSource) => protocolKinds.update(Protocol.normalizeName(dataSource.kind), (networks) => (networks || immutable.OrderedMap()).update(dataSource.network ?? '', (dataSourceNames) => (dataSourceNames || immutable.OrderedSet()).add(dataSource.name))), immutable.OrderedMap());
|
|
212
212
|
const validateDataSourceProtocolAndNetworks = (value) => {
|
|
213
213
|
const dataSources = [...value.dataSources, ...(value.templates || [])];
|
|
214
214
|
const protocolNetworkMap = dataSourceListToMap(dataSources);
|
|
@@ -218,7 +218,7 @@ const validateDataSourceProtocolAndNetworks = (value) => {
|
|
|
218
218
|
path: [],
|
|
219
219
|
message: `Conflicting protocol kinds used in data sources and templates:
|
|
220
220
|
${protocolNetworkMap
|
|
221
|
-
.map((dataSourceNames, protocolKind) => ` ${protocolKind ===
|
|
221
|
+
.map((dataSourceNames, protocolKind) => ` ${protocolKind === ''
|
|
222
222
|
? 'Data sources and templates having no protocol kind set'
|
|
223
223
|
: `Data sources and templates using '${protocolKind}'`}:\n${dataSourceNames
|
|
224
224
|
.valueSeq()
|
|
@@ -237,7 +237,7 @@ Recommendation: Make all data sources and templates use the same protocol kind.`
|
|
|
237
237
|
path: [],
|
|
238
238
|
message: `Conflicting networks used in data sources and templates:
|
|
239
239
|
${networks
|
|
240
|
-
.map((dataSources, network) => ` ${network ===
|
|
240
|
+
.map((dataSources, network) => ` ${network === ''
|
|
241
241
|
? 'Data sources and templates having no network set'
|
|
242
242
|
: `Data sources and templates using '${network}'`}:\n${dataSources.map((ds) => ` - ${ds}`).join('\n')}`)
|
|
243
243
|
.join('\n')}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphprotocol/graph-cli",
|
|
3
|
-
"version": "0.97.
|
|
3
|
+
"version": "0.97.1-alpha-20250404171100-8445d33dd95701be9598dcaac5354f478bf548fa",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI for building for and deploying to The Graph",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@float-capital/float-subgraph-uncrashable": "0.0.0-internal-testing.5",
|
|
30
|
-
"@oclif/core": "4.2.
|
|
30
|
+
"@oclif/core": "4.2.10",
|
|
31
31
|
"@oclif/plugin-autocomplete": "^3.2.11",
|
|
32
32
|
"@oclif/plugin-not-found": "^3.2.29",
|
|
33
33
|
"@oclif/plugin-warn-if-update-available": "^3.1.24",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"assemblyscript": "0.19.23",
|
|
37
37
|
"chokidar": "4.0.3",
|
|
38
38
|
"debug": "4.4.0",
|
|
39
|
-
"docker-compose": "1.
|
|
39
|
+
"docker-compose": "1.2.0",
|
|
40
40
|
"fs-extra": "11.3.0",
|
|
41
41
|
"glob": "11.0.1",
|
|
42
42
|
"gluegun": "5.2.0",
|
|
43
43
|
"graphql": "16.10.0",
|
|
44
|
-
"immutable": "5.
|
|
44
|
+
"immutable": "5.1.1",
|
|
45
45
|
"jayson": "4.1.3",
|
|
46
46
|
"js-yaml": "4.1.0",
|
|
47
47
|
"kubo-rpc-client": "^5.0.2",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"prettier": "3.5.3",
|
|
50
50
|
"semver": "7.7.1",
|
|
51
51
|
"tmp-promise": "3.0.3",
|
|
52
|
-
"undici": "7.
|
|
52
|
+
"undici": "7.7.0",
|
|
53
53
|
"web3-eth-abi": "4.4.1",
|
|
54
|
-
"yaml": "2.7.
|
|
54
|
+
"yaml": "2.7.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/debug": "^4.1.12",
|