@graphprotocol/graph-cli 0.63.1 → 0.64.0-alpha-20231211202728-7e2eb95

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,13 +1,15 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.63.1
3
+ ## 0.64.0-alpha-20231211202728-7e2eb95
4
4
 
5
- ### Patch Changes
5
+ ### Minor Changes
6
6
 
7
- - [#1539](https://github.com/graphprotocol/graph-tooling/pull/1539)
8
- [`3e29dfd`](https://github.com/graphprotocol/graph-tooling/commit/3e29dfdf0175634246aca5d2b57328cdd32ea45a)
9
- Thanks [@saihaj](https://github.com/saihaj)! - upgrade `graph init` to use latest version of
10
- `graph-ts`
7
+ - [#1533](https://github.com/graphprotocol/graph-tooling/pull/1533)
8
+ [`5284a6d`](https://github.com/graphprotocol/graph-tooling/commit/5284a6df70faa4c35a273c04b7cc1226f2b964a9)
9
+ Thanks [@saihaj](https://github.com/saihaj)! - adding deprecation notices for commands we plan to
10
+ change in the next major. See https://github.com/graphprotocol/graph-tooling/issues/1487
11
+
12
+ ### Patch Changes
11
13
 
12
14
  - [#1540](https://github.com/graphprotocol/graph-tooling/pull/1540)
13
15
  [`8a79d05`](https://github.com/graphprotocol/graph-tooling/commit/8a79d0501dfb95452f198b6744c459716d112275)
@@ -54,10 +54,16 @@ AuthCommand.flags = {
54
54
  product: core_1.Flags.string({
55
55
  summary: 'Select a product for which to authenticate.',
56
56
  options: ['subgraph-studio', 'hosted-service'],
57
+ deprecated: {
58
+ message: 'In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/',
59
+ },
57
60
  }),
58
61
  studio: core_1.Flags.boolean({
59
62
  summary: 'Shortcut for "--product subgraph-studio".',
60
63
  exclusive: ['product'],
64
+ deprecated: {
65
+ message: 'In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/',
66
+ },
61
67
  }),
62
68
  };
63
69
  exports.default = AuthCommand;
@@ -1,6 +1,9 @@
1
1
  import { Command } from '@oclif/core';
2
+ import { Deprecation } from '@oclif/core/lib/interfaces';
2
3
  export default class CreateCommand extends Command {
3
4
  static description: string;
5
+ static state: string;
6
+ static deprecationOptions: Deprecation;
4
7
  static args: {
5
8
  'subgraph-name': import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
9
  };
@@ -57,6 +57,10 @@ class CreateCommand extends core_1.Command {
57
57
  }
58
58
  }
59
59
  CreateCommand.description = 'Registers a subgraph name';
60
+ CreateCommand.state = 'deprecated';
61
+ CreateCommand.deprecationOptions = {
62
+ message: 'In next major version, this command will be merged as a subcommand for `graph local`.',
63
+ };
60
64
  CreateCommand.args = {
61
65
  'subgraph-name': core_1.Args.string({
62
66
  required: true,
@@ -375,9 +375,11 @@ DeployCommand.flags = {
375
375
  exclusive: ['access-token'],
376
376
  }),
377
377
  'access-token': core_1.Flags.string({
378
- deprecated: true,
379
- summary: 'Graph access key. DEPRECATED: Use "--deploy-key" instead.',
380
378
  exclusive: ['deploy-key'],
379
+ deprecated: {
380
+ to: 'deploy-key',
381
+ message: "In next version, we are removing this flag in favor of '--deploy-key'",
382
+ },
381
383
  }),
382
384
  'version-label': core_1.Flags.string({
383
385
  summary: 'Version label used for the deployment.',
@@ -237,10 +237,16 @@ InitCommand.flags = {
237
237
  product: core_1.Flags.string({
238
238
  summary: 'Selects the product for which to initialize.',
239
239
  options: ['subgraph-studio', 'hosted-service'],
240
+ deprecated: {
241
+ message: 'In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/',
242
+ },
240
243
  }),
241
244
  studio: core_1.Flags.boolean({
242
245
  summary: 'Shortcut for "--product subgraph-studio".',
243
246
  exclusive: ['product'],
247
+ deprecated: {
248
+ message: 'In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/',
249
+ },
244
250
  }),
245
251
  node: core_1.Flags.string({
246
252
  summary: 'Graph node for which to initialize.',
@@ -249,6 +255,9 @@ InitCommand.flags = {
249
255
  'allow-simple-name': core_1.Flags.boolean({
250
256
  description: 'Use a subgraph name without a prefix.',
251
257
  default: false,
258
+ deprecated: {
259
+ message: 'In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/',
260
+ },
252
261
  }),
253
262
  'from-contract': core_1.Flags.string({
254
263
  description: 'Creates a scaffold based on an existing contract.',
@@ -277,6 +286,9 @@ InitCommand.flags = {
277
286
  'skip-git': core_1.Flags.boolean({
278
287
  summary: 'Skip initializing a Git repository.',
279
288
  default: false,
289
+ deprecated: {
290
+ message: 'In next major version, this flag will be removed. By default we will stop initializing a Git repository.',
291
+ },
280
292
  }),
281
293
  'start-block': core_1.Flags.string({
282
294
  helpGroup: 'Scaffold from contract',
@@ -1,6 +1,9 @@
1
1
  import { Command } from '@oclif/core';
2
+ import { Deprecation } from '@oclif/core/lib/interfaces';
2
3
  export default class RemoveCommand extends Command {
3
4
  static description: string;
5
+ static state: string;
6
+ static deprecationOptions: Deprecation;
4
7
  static args: {
5
8
  'subgraph-name': import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
9
  };
@@ -58,6 +58,10 @@ class RemoveCommand extends core_1.Command {
58
58
  }
59
59
  }
60
60
  RemoveCommand.description = 'Unregisters a subgraph name';
61
+ RemoveCommand.state = 'deprecated';
62
+ RemoveCommand.deprecationOptions = {
63
+ message: 'In next major version, this command will be merged as a subcommand for `graph local`.',
64
+ };
61
65
  RemoveCommand.args = {
62
66
  'subgraph-name': core_1.Args.string({
63
67
  required: true,
@@ -47,7 +47,7 @@ class Scaffold {
47
47
  },
48
48
  dependencies: {
49
49
  '@graphprotocol/graph-cli': GRAPH_CLI_VERSION,
50
- '@graphprotocol/graph-ts': `0.32.0`,
50
+ '@graphprotocol/graph-ts': `0.30.0`,
51
51
  },
52
52
  devDependencies: this.protocol.hasEvents() ? { 'matchstick-as': `0.5.0` } : undefined,
53
53
  }), { parser: 'json' });
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.63.1",
2
+ "version": "0.64.0-alpha-20231211202728-7e2eb95",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
@@ -86,7 +86,10 @@
86
86
  "options": [
87
87
  "subgraph-studio",
88
88
  "hosted-service"
89
- ]
89
+ ],
90
+ "deprecated": {
91
+ "message": "In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/"
92
+ }
90
93
  },
91
94
  "studio": {
92
95
  "name": "studio",
@@ -95,7 +98,10 @@
95
98
  "allowNo": false,
96
99
  "exclusive": [
97
100
  "product"
98
- ]
101
+ ],
102
+ "deprecated": {
103
+ "message": "In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/"
104
+ }
99
105
  }
100
106
  },
101
107
  "args": {
@@ -288,7 +294,11 @@
288
294
  "pluginName": "@graphprotocol/graph-cli",
289
295
  "pluginAlias": "@graphprotocol/graph-cli",
290
296
  "pluginType": "core",
297
+ "state": "deprecated",
291
298
  "aliases": [],
299
+ "deprecationOptions": {
300
+ "message": "In next major version, this command will be merged as a subcommand for `graph local`."
301
+ },
292
302
  "flags": {
293
303
  "help": {
294
304
  "name": "help",
@@ -373,12 +383,14 @@
373
383
  "access-token": {
374
384
  "name": "access-token",
375
385
  "type": "option",
376
- "summary": "Graph access key. DEPRECATED: Use \"--deploy-key\" instead.",
377
386
  "multiple": false,
378
387
  "exclusive": [
379
388
  "deploy-key"
380
389
  ],
381
- "deprecated": true
390
+ "deprecated": {
391
+ "to": "deploy-key",
392
+ "message": "In next version, we are removing this flag in favor of '--deploy-key'"
393
+ }
382
394
  },
383
395
  "version-label": {
384
396
  "name": "version-label",
@@ -505,7 +517,10 @@
505
517
  "options": [
506
518
  "subgraph-studio",
507
519
  "hosted-service"
508
- ]
520
+ ],
521
+ "deprecated": {
522
+ "message": "In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/"
523
+ }
509
524
  },
510
525
  "studio": {
511
526
  "name": "studio",
@@ -514,7 +529,10 @@
514
529
  "allowNo": false,
515
530
  "exclusive": [
516
531
  "product"
517
- ]
532
+ ],
533
+ "deprecated": {
534
+ "message": "In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/"
535
+ }
518
536
  },
519
537
  "node": {
520
538
  "name": "node",
@@ -527,7 +545,10 @@
527
545
  "name": "allow-simple-name",
528
546
  "type": "boolean",
529
547
  "description": "Use a subgraph name without a prefix.",
530
- "allowNo": false
548
+ "allowNo": false,
549
+ "deprecated": {
550
+ "message": "In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/"
551
+ }
531
552
  },
532
553
  "from-contract": {
533
554
  "name": "from-contract",
@@ -577,7 +598,10 @@
577
598
  "name": "skip-git",
578
599
  "type": "boolean",
579
600
  "summary": "Skip initializing a Git repository.",
580
- "allowNo": false
601
+ "allowNo": false,
602
+ "deprecated": {
603
+ "message": "In next major version, this flag will be removed. By default we will stop initializing a Git repository."
604
+ }
581
605
  },
582
606
  "start-block": {
583
607
  "name": "start-block",
@@ -775,7 +799,11 @@
775
799
  "pluginName": "@graphprotocol/graph-cli",
776
800
  "pluginAlias": "@graphprotocol/graph-cli",
777
801
  "pluginType": "core",
802
+ "state": "deprecated",
778
803
  "aliases": [],
804
+ "deprecationOptions": {
805
+ "message": "In next major version, this command will be merged as a subcommand for `graph local`."
806
+ },
779
807
  "flags": {
780
808
  "help": {
781
809
  "name": "help",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.63.1",
3
+ "version": "0.64.0-alpha-20231211202728-7e2eb95",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {