@graphprotocol/graph-cli 0.49.0-alpha-20230503003528-ad88944 → 0.49.0-alpha-20230503100511-80612fa

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,9 +1,14 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.49.0-alpha-20230503003528-ad88944
3
+ ## 0.49.0-alpha-20230503100511-80612fa
4
4
 
5
5
  ### Minor Changes
6
6
 
7
+ - [#1327](https://github.com/graphprotocol/graph-tooling/pull/1327)
8
+ [`a70ac44`](https://github.com/graphprotocol/graph-tooling/commit/a70ac44575a486128fafd3ee9e9e6fbb05bc642e)
9
+ Thanks [@saihaj](https://github.com/saihaj)! - do not generate types, instead show a message to
10
+ user to use substreams CLI for codegen.
11
+
7
12
  - [#1306](https://github.com/graphprotocol/graph-tooling/pull/1306)
8
13
  [`f5e4b58`](https://github.com/graphprotocol/graph-tooling/commit/f5e4b58989edc5f3bb8211f1b912449e77832de8)
9
14
  Thanks [@saihaj](https://github.com/saihaj)! - Add loadInBlock function for entities as part of
@@ -16,7 +16,7 @@ export default class TypeGenerator {
16
16
  private protocol;
17
17
  private protocolTypeGenerator;
18
18
  constructor(options: TypeGeneratorOptions);
19
- generateTypes(): Promise<boolean>;
19
+ generateTypes(): Promise<boolean | undefined>;
20
20
  generateUncrashableEntities(graphSchema: any): Promise<any>;
21
21
  loadSubgraph({ quiet }?: {
22
22
  quiet: boolean;
@@ -58,6 +58,10 @@ class TypeGenerator {
58
58
  });
59
59
  }
60
60
  async generateTypes() {
61
+ if (this.protocol.name === 'substreams') {
62
+ toolbox.print.success('Subgraph uses a substream datasource. Codegeneration is not required.');
63
+ return;
64
+ }
61
65
  try {
62
66
  if (!this.options.skipMigrations && this.options.subgraphManifest) {
63
67
  await (0, migrations_1.applyMigrations)({
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.49.0-alpha-20230503003528-ad88944",
2
+ "version": "0.49.0-alpha-20230503100511-80612fa",
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.49.0-alpha-20230503003528-ad88944",
3
+ "version": "0.49.0-alpha-20230503100511-80612fa",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {