@graphprotocol/graph-cli 0.57.0 → 0.58.0-alpha-20230906052855-895f9f9

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,14 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
+ ## 0.58.0-alpha-20230906052855-895f9f9
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1434](https://github.com/graphprotocol/graph-tooling/pull/1434)
8
+ [`7555ca1`](https://github.com/graphprotocol/graph-tooling/commit/7555ca18b52cc50f9f0326dc4cebf1c16978c4f1)
9
+ Thanks [@incrypto32](https://github.com/incrypto32)! - Add data source context support in ethereum
10
+ manifest
11
+
3
12
  ## 0.57.0
4
13
 
5
14
  ### Minor Changes
@@ -7,6 +7,7 @@
7
7
  scalar String
8
8
  scalar File
9
9
  scalar BigInt
10
+ scalar JSON
10
11
 
11
12
  type SubgraphManifest {
12
13
  specVersion: String!
@@ -25,6 +26,7 @@ type DataSource {
25
26
  kind: String!
26
27
  name: String!
27
28
  network: String
29
+ context: JSON
28
30
  source: ContractSource!
29
31
  mapping: ContractMapping!
30
32
  }
@@ -7,6 +7,7 @@
7
7
  scalar String
8
8
  scalar File
9
9
  scalar BigInt
10
+ scalar JSON
10
11
 
11
12
  type SubgraphManifest {
12
13
  specVersion: String!
@@ -26,6 +27,7 @@ type DataSource {
26
27
  kind: String!
27
28
  name: String!
28
29
  network: String
30
+ context: JSON
29
31
  source: ContractSource!
30
32
  mapping: ContractMapping!
31
33
  }
@@ -8,6 +8,7 @@ scalar String
8
8
  scalar File
9
9
  scalar BigInt
10
10
  scalar Boolean
11
+ scalar JSON
11
12
 
12
13
  type SubgraphManifest {
13
14
  specVersion: String!
@@ -28,6 +29,7 @@ type DataSource {
28
29
  kind: String!
29
30
  name: String!
30
31
  network: String
32
+ context: JSON
31
33
  source: ContractSource!
32
34
  mapping: ContractMapping!
33
35
  }
@@ -7,6 +7,7 @@
7
7
  scalar String
8
8
  scalar File
9
9
  scalar BigInt
10
+ scalar JSON
10
11
 
11
12
  type SubgraphManifest {
12
13
  specVersion: String!
@@ -26,6 +27,7 @@ type DataSource {
26
27
  kind: String!
27
28
  name: String!
28
29
  network: String
30
+ context: JSON
29
31
  source: ContractSource!
30
32
  mapping: ContractMapping!
31
33
  }
@@ -154,6 +154,20 @@ const validators = immutable_1.default.fromJS({
154
154
  message: `Expected filename, found ${typeName(value)}:\n${value}`,
155
155
  },
156
156
  ]),
157
+ JSON: (value, ctx) => {
158
+ try {
159
+ JSON.parse(JSON.stringify(value));
160
+ return List();
161
+ }
162
+ catch (e) {
163
+ return immutable_1.default.fromJS([
164
+ {
165
+ path: ctx.get('path'),
166
+ message: `Invalid JSON value: ${e.message}`,
167
+ },
168
+ ]);
169
+ }
170
+ },
157
171
  Boolean: (value, ctx) => typeof value === 'boolean'
158
172
  ? List()
159
173
  : immutable_1.default.fromJS([
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.57.0",
2
+ "version": "0.58.0-alpha-20230906052855-895f9f9",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.57.0",
3
+ "version": "0.58.0-alpha-20230906052855-895f9f9",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {