@apollo/rover 0.7.0 → 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.
Files changed (4) hide show
  1. package/README.md +52 -33
  2. package/binary.js +2 -2
  3. package/package.json +4 -4
  4. package/run.js +2 -2
package/README.md CHANGED
@@ -36,7 +36,8 @@ rover graph publish --schema ./path-to-valid-schema test@cats
36
36
  ## Command-line options
37
37
 
38
38
  ```console
39
- Rover 0.7.0
39
+ Rover 0.8.0
40
+ Apollo Developers <opensource@apollographql.com>
40
41
 
41
42
  Rover - Your Graph Companion
42
43
  Read the getting started guide by running:
@@ -53,7 +54,8 @@ This will prompt you for an API Key that can be generated in Apollo Studio.
53
54
  The most common commands from there are:
54
55
 
55
56
  - rover graph fetch: Fetch a graph schema from the Apollo graph registry
56
- - rover graph check: Check for breaking changes in a local graph schema against a graph schema in the Apollo graph
57
+ - rover graph check: Check for breaking changes in a local graph schema against a graph schema
58
+ in the Apollo graph
57
59
  registry
58
60
  - rover graph publish: Publish an updated graph schema to the Apollo graph registry
59
61
 
@@ -62,51 +64,68 @@ You can open the full documentation for Rover by running:
62
64
  $ rover docs open
63
65
 
64
66
  USAGE:
65
- rover [FLAGS] [OPTIONS] <SUBCOMMAND>
67
+ rover [OPTIONS] <SUBCOMMAND>
66
68
 
67
- FLAGS:
68
- --insecure-accept-invalid-certs
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
69
79
  Accept invalid certificates when performing HTTPS requests.
70
80
 
71
81
  You should think very carefully before using this flag.
72
82
 
73
- If invalid certificates are trusted, any certificate for any site will be trusted for use. This includes
74
- expired certificates. This introduces significant vulnerabilities, and should only be used as a last resort.
75
- --insecure-accept-invalid-hostnames
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
76
88
  Accept invalid hostnames when performing HTTPS requests.
77
89
 
78
90
  You should think very carefully before using this flag.
79
91
 
80
- If hostname verification is not used, any valid certificate for any site will be trusted for use from any
81
- other. This introduces a significant vulnerability to man-in-the-middle attacks.
82
- -h, --help
83
- 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.
84
95
 
85
- -V, --version
86
- Prints version information
87
-
88
-
89
- OPTIONS:
90
- --client-timeout <client-timeout>
91
- 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]
92
100
 
93
- -l, --log <log-level>
94
- Specify Rover's log level [possible values: error, warn, info, debug,
95
- trace]
96
- --output <output-type>
97
- Specify Rover's output type [default: plain] [possible values: json, plain]
101
+ --output <OUTPUT_TYPE>
102
+ Specify Rover's output type
103
+
104
+ [default: plain]
105
+ [possible values: json, plain]
98
106
 
107
+ -V, --version
108
+ Print version information
99
109
 
100
110
  SUBCOMMANDS:
101
- config Configuration profile commands
102
- docs Interact with Rover's documentation
103
- explain Explain error codes
104
- graph Graph API schema commands
105
- help Prints this message or the help of the given subcommand(s)
106
- readme Readme commands
107
- subgraph Subgraph schema commands
108
- supergraph Supergraph schema commands
109
- update Commands related to updating rover
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:
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.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "The new Apollo CLI",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -33,16 +33,16 @@
33
33
  },
34
34
  "volta": {
35
35
  "node": "17.5.0",
36
- "npm": "8.12.1"
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.1",
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.6.2"
46
+ "prettier": "2.7.1"
47
47
  }
48
48
  }
package/run.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const { run } = require("./binary");
4
- run();
3
+ const { run, install: maybeInstall } = require("./binary");
4
+ maybeInstall().then(run);