@apollo/rover 0.5.4 → 0.8.0
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/README.md +54 -35
- package/binary.js +2 -2
- package/package.json +5 -5
- package/run.js +2 -2
package/README.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
|
5
5
|
[](https://app.circleci.com/pipelines/github/apollographql/rover?branch=main)
|
6
6
|
[](https://github.com/apollographql/rover/releases/latest)
|
7
|
-
[](https://app.netlify.com/sites/apollo-cli-docs/deploys)
|
8
7
|
|
9
8
|
This is the home of Rover, the new CLI for Apollo's suite of GraphQL developer productivity tools.
|
10
9
|
|
@@ -37,7 +36,8 @@ rover graph publish --schema ./path-to-valid-schema test@cats
|
|
37
36
|
## Command-line options
|
38
37
|
|
39
38
|
```console
|
40
|
-
Rover 0.
|
39
|
+
Rover 0.8.0
|
40
|
+
Apollo Developers <opensource@apollographql.com>
|
41
41
|
|
42
42
|
Rover - Your Graph Companion
|
43
43
|
Read the getting started guide by running:
|
@@ -54,7 +54,8 @@ This will prompt you for an API Key that can be generated in Apollo Studio.
|
|
54
54
|
The most common commands from there are:
|
55
55
|
|
56
56
|
- rover graph fetch: Fetch a graph schema from the Apollo graph registry
|
57
|
-
- rover graph check: Check for breaking changes in a local graph schema against a graph schema
|
57
|
+
- rover graph check: Check for breaking changes in a local graph schema against a graph schema
|
58
|
+
in the Apollo graph
|
58
59
|
registry
|
59
60
|
- rover graph publish: Publish an updated graph schema to the Apollo graph registry
|
60
61
|
|
@@ -63,50 +64,68 @@ You can open the full documentation for Rover by running:
|
|
63
64
|
$ rover docs open
|
64
65
|
|
65
66
|
USAGE:
|
66
|
-
rover [
|
67
|
+
rover [OPTIONS] <SUBCOMMAND>
|
67
68
|
|
68
|
-
|
69
|
-
--
|
69
|
+
OPTIONS:
|
70
|
+
--client-timeout <CLIENT_TIMEOUT>
|
71
|
+
Configure the timeout length (in seconds) when performing HTTP(S) requests
|
72
|
+
|
73
|
+
[default: 30]
|
74
|
+
|
75
|
+
-h, --help
|
76
|
+
Print help information
|
77
|
+
|
78
|
+
--insecure-accept-invalid-certs
|
70
79
|
Accept invalid certificates when performing HTTPS requests.
|
71
80
|
|
72
81
|
You should think very carefully before using this flag.
|
73
82
|
|
74
|
-
If invalid certificates are trusted, any certificate for any site will be trusted for
|
75
|
-
expired certificates. This introduces significant vulnerabilities,
|
76
|
-
|
83
|
+
If invalid certificates are trusted, any certificate for any site will be trusted for
|
84
|
+
use. This includes expired certificates. This introduces significant vulnerabilities,
|
85
|
+
and should only be used as a last resort.
|
86
|
+
|
87
|
+
--insecure-accept-invalid-hostnames
|
77
88
|
Accept invalid hostnames when performing HTTPS requests.
|
78
89
|
|
79
90
|
You should think very carefully before using this flag.
|
80
91
|
|
81
|
-
If hostname verification is not used, any valid certificate for any site will be trusted
|
82
|
-
other. This introduces a significant vulnerability to man-in-the-middle
|
83
|
-
|
84
|
-
Prints help information
|
92
|
+
If hostname verification is not used, any valid certificate for any site will be trusted
|
93
|
+
for use from any other. This introduces a significant vulnerability to man-in-the-middle
|
94
|
+
attacks.
|
85
95
|
|
86
|
-
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
OPTIONS:
|
91
|
-
--client-timeout <client-timeout>
|
92
|
-
Configure the timeout length (in seconds) when performing HTTP(S) requests [default: 30]
|
96
|
+
-l, --log <LOG_LEVEL>
|
97
|
+
Specify Rover's log level
|
98
|
+
|
99
|
+
[possible values: error, warn, info, debug, trace]
|
93
100
|
|
94
|
-
|
95
|
-
Specify Rover's
|
96
|
-
|
97
|
-
|
98
|
-
|
101
|
+
--output <OUTPUT_TYPE>
|
102
|
+
Specify Rover's output type
|
103
|
+
|
104
|
+
[default: plain]
|
105
|
+
[possible values: json, plain]
|
99
106
|
|
107
|
+
-V, --version
|
108
|
+
Print version information
|
100
109
|
|
101
110
|
SUBCOMMANDS:
|
102
|
-
config
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
111
|
+
config
|
112
|
+
Configuration profile commands
|
113
|
+
docs
|
114
|
+
Interact with Rover's documentation
|
115
|
+
explain
|
116
|
+
Explain error codes
|
117
|
+
graph
|
118
|
+
Graph API schema commands
|
119
|
+
help
|
120
|
+
Print this message or the help of the given subcommand(s)
|
121
|
+
readme
|
122
|
+
Readme commands
|
123
|
+
subgraph
|
124
|
+
Subgraph schema commands
|
125
|
+
supergraph
|
126
|
+
Supergraph schema commands
|
127
|
+
update
|
128
|
+
Commands related to updating rover
|
110
129
|
```
|
111
130
|
|
112
131
|
This repo is organized as a [`cargo` workspace], containing several related projects:
|
@@ -141,7 +160,7 @@ To install a specific version of Rover (note the `v` prefixing the version numbe
|
|
141
160
|
> Note: If you're installing Rover in a CI environment, it's best to target a specific version rather than using the latest URL, since future major breaking changes could affect CI workflows otherwise.
|
142
161
|
|
143
162
|
```bash
|
144
|
-
curl -sSL https://rover.apollo.dev/nix/v0.
|
163
|
+
curl -sSL https://rover.apollo.dev/nix/v0.6.0 | sh
|
145
164
|
```
|
146
165
|
|
147
166
|
You will need `curl` installed on your system to run the above installation commands. You can get the latest version from [the curl downloads page](https://curl.se/download.html).
|
@@ -159,7 +178,7 @@ To install a specific version of Rover (note the `v` prefixing the version numbe
|
|
159
178
|
> Note: If you're installing Rover in a CI environment, it's best to target a specific version rather than using the latest URL, since future major breaking changes could affect CI workflows otherwise.
|
160
179
|
|
161
180
|
```bash
|
162
|
-
iwr 'https://rover.apollo.dev/win/v0.
|
181
|
+
iwr 'https://rover.apollo.dev/win/v0.6.0' | iex
|
163
182
|
```
|
164
183
|
|
165
184
|
#### npm installer
|
package/binary.js
CHANGED
@@ -103,8 +103,6 @@ const getBinary = () => {
|
|
103
103
|
const install = () => {
|
104
104
|
const binary = getBinary();
|
105
105
|
const proxy = configureProxy(binary.url);
|
106
|
-
binary.install(proxy);
|
107
|
-
|
108
106
|
// these messages are duplicated in `src/command/install/mod.rs`
|
109
107
|
// for the curl installer.
|
110
108
|
console.log(
|
@@ -113,6 +111,8 @@ const install = () => {
|
|
113
111
|
console.log(
|
114
112
|
"You can check out our documentation at https://go.apollo.dev/r/docs."
|
115
113
|
);
|
114
|
+
|
115
|
+
return binary.install(proxy);
|
116
116
|
};
|
117
117
|
|
118
118
|
const run = () => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@apollo/rover",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.8.0",
|
4
4
|
"description": "The new Apollo CLI",
|
5
5
|
"main": "index.js",
|
6
6
|
"bin": {
|
@@ -28,21 +28,21 @@
|
|
28
28
|
"url": "https://github.com/apollographql/rover/issues"
|
29
29
|
},
|
30
30
|
"engines": {
|
31
|
-
"node": ">=14
|
31
|
+
"node": ">=14",
|
32
32
|
"npm": ">=6"
|
33
33
|
},
|
34
34
|
"volta": {
|
35
35
|
"node": "17.5.0",
|
36
|
-
"npm": "8.
|
36
|
+
"npm": "8.15.0"
|
37
37
|
},
|
38
38
|
"homepage": "https://github.com/apollographql/rover#readme",
|
39
39
|
"dependencies": {
|
40
40
|
"axios-proxy-builder": "^0.1.1",
|
41
|
-
"binary-install": "^1.0.
|
41
|
+
"binary-install": "^1.0.2",
|
42
42
|
"console.table": "^0.10.0",
|
43
43
|
"detect-libc": "^2.0.0"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
|
-
"prettier": "2.
|
46
|
+
"prettier": "2.7.1"
|
47
47
|
}
|
48
48
|
}
|
package/run.js
CHANGED