@graphprotocol/graph-cli 0.63.1 → 0.64.0-alpha-20231211201331-05fe4c3
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 +8 -6
- package/dist/commands/auth.js +6 -0
- package/dist/commands/create.d.ts +3 -0
- package/dist/commands/create.js +4 -0
- package/dist/commands/deploy.js +4 -2
- package/dist/commands/init.js +12 -0
- package/dist/commands/remove.d.ts +3 -0
- package/dist/commands/remove.js +4 -0
- package/dist/scaffold/index.js +1 -1
- package/oclif.manifest.json +37 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 0.64.0-alpha-20231211201331-05fe4c3
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- [#
|
|
8
|
-
[`
|
|
9
|
-
Thanks [@saihaj](https://github.com/saihaj)! -
|
|
10
|
-
|
|
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)
|
package/dist/commands/auth.js
CHANGED
|
@@ -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
|
};
|
package/dist/commands/create.js
CHANGED
|
@@ -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,
|
package/dist/commands/deploy.js
CHANGED
|
@@ -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.',
|
package/dist/commands/init.js
CHANGED
|
@@ -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
|
};
|
package/dist/commands/remove.js
CHANGED
|
@@ -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,
|
package/dist/scaffold/index.js
CHANGED
|
@@ -47,7 +47,7 @@ class Scaffold {
|
|
|
47
47
|
},
|
|
48
48
|
dependencies: {
|
|
49
49
|
'@graphprotocol/graph-cli': GRAPH_CLI_VERSION,
|
|
50
|
-
'@graphprotocol/graph-ts': `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' });
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.64.0-alpha-20231211201331-05fe4c3",
|
|
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":
|
|
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",
|