@graphprotocol/graph-cli 0.91.0-alpha-20241205170612-5770b32 → 0.91.1

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,6 +1,14 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.91.0-alpha-20241205170612-5770b32
3
+ ## 0.91.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1783](https://github.com/graphprotocol/graph-tooling/pull/1783)
8
+ [`ea1d948`](https://github.com/graphprotocol/graph-tooling/commit/ea1d94863783e19a379ce6d545d5f8523d8bf9e8)
9
+ Thanks [@YaroShkvorets](https://github.com/YaroShkvorets)! - Fix bug with network selection
10
+
11
+ ## 0.91.0
4
12
 
5
13
  ### Minor Changes
6
14
 
@@ -109,6 +109,7 @@ CodegenCommand.flags = {
109
109
  summary: 'IPFS node to use for fetching subgraph data.',
110
110
  char: 'i',
111
111
  default: ipfs_1.DEFAULT_IPFS_URL,
112
+ hidden: true,
112
113
  }),
113
114
  'uncrashable-config': core_1.Flags.file({
114
115
  summary: 'Directory for uncrashable config.',
@@ -324,6 +324,7 @@ InitCommand.flags = {
324
324
  summary: 'IPFS node to use for fetching subgraph data.',
325
325
  char: 'i',
326
326
  default: ipfs_1.DEFAULT_IPFS_URL,
327
+ hidden: true,
327
328
  }),
328
329
  };
329
330
  exports.default = InitCommand;
@@ -443,7 +444,7 @@ async function processInitForm({ protocol: initProtocol, abi: initAbi, abiPath:
443
444
  type: 'input',
444
445
  name: 'source',
445
446
  message: sourceMessage,
446
- skip: () => !isComposedSubgraph,
447
+ skip: () => initFromExample !== undefined || !protocolInstance.hasContract() || isSubstreams,
447
448
  initial: initContract,
448
449
  validate: async (value) => {
449
450
  if (isComposedSubgraph) {
@@ -146,7 +146,7 @@ async function getPlatform(matchstickVersion, logsOpt) {
146
146
  const type = os_1.default.type();
147
147
  const arch = os_1.default.arch();
148
148
  const cpuCore = os_1.default.cpus()[0];
149
- const isAppleSilicon = arch === 'arm64' && /Apple (M1|M2|M3|processor)/.test(cpuCore.model);
149
+ const isAppleSilicon = arch === 'arm64' && /Apple (M1|M2|M3|M4|processor)/.test(cpuCore.model);
150
150
  const linuxInfo = type === 'Linux' ? await getLinuxInfo.bind(this)() : {};
151
151
  const linuxDistro = linuxInfo.name;
152
152
  const release = linuxInfo.version || os_1.default.release();
@@ -106,7 +106,7 @@ class Protocol {
106
106
  near: ['near'],
107
107
  cosmos: ['cosmos'],
108
108
  substreams: ['substreams'],
109
- subgraph: ['subgraph'],
109
+ // subgraph: ['subgraph'],
110
110
  });
111
111
  }
112
112
  static availableNetworks() {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.91.0-alpha-20241205170612-5770b32",
2
+ "version": "0.91.1",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
@@ -244,6 +244,7 @@
244
244
  "type": "option",
245
245
  "char": "i",
246
246
  "summary": "IPFS node to use for fetching subgraph data.",
247
+ "hidden": true,
247
248
  "multiple": false,
248
249
  "default": "https://api.thegraph.com/ipfs/api/v0"
249
250
  },
@@ -461,8 +462,7 @@
461
462
  "ethereum",
462
463
  "near",
463
464
  "cosmos",
464
- "substreams",
465
- "subgraph"
465
+ "substreams"
466
466
  ]
467
467
  },
468
468
  "node": {
@@ -565,6 +565,7 @@
565
565
  "type": "option",
566
566
  "char": "i",
567
567
  "summary": "IPFS node to use for fetching subgraph data.",
568
+ "hidden": true,
568
569
  "multiple": false,
569
570
  "default": "https://api.thegraph.com/ipfs/api/v0"
570
571
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.91.0-alpha-20241205170612-5770b32",
3
+ "version": "0.91.1",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {