@apollo/rover 0.6.0 → 0.8.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.
Files changed (4) hide show
  1. package/README.md +62 -24
  2. package/binary.js +11 -9
  3. package/package.json +4 -4
  4. package/run.js +2 -2
package/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
 
5
5
  [![CircleCI Tests](https://circleci.com/gh/apollographql/rover.svg?style=svg)](https://app.circleci.com/pipelines/github/apollographql/rover?branch=main)
6
6
  [![GitHub Release Downloads](https://shields.io/github/downloads/apollographql/rover/total.svg)](https://github.com/apollographql/rover/releases/latest)
7
- [![Netlify Status](https://api.netlify.com/api/v1/badges/1646a37a-eb2b-48e8-b6c9-cd074f02bb50/deploy-status)](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.6.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 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
58
59
  registry
59
60
  - rover graph publish: Publish an updated graph schema to the Apollo graph registry
60
61
 
@@ -63,31 +64,68 @@ You can open the full documentation for Rover by running:
63
64
  $ rover docs open
64
65
 
65
66
  USAGE:
66
- rover [FLAGS] [OPTIONS] <SUBCOMMAND>
67
-
68
- FLAGS:
69
- --insecure-accept-invalid-certs Accept invalid certificates when performing HTTPS requests
70
- --insecure-accept-invalid-hostnames Accept invalid hostnames when performing HTTPS requests
71
- -h, --help Prints help information
72
- -V, --version Prints version information
67
+ rover [OPTIONS] <SUBCOMMAND>
73
68
 
74
69
  OPTIONS:
75
- --client-timeout <client-timeout> Configure the timeout length (in seconds) when performing HTTP(S) requests
76
- [default: 30]
77
- -l, --log <log-level> Specify Rover's log level [possible values: error, warn,
78
- info, debug, trace]
79
- --output <output-type> Specify Rover's output type [default: plain] [possible values:
80
- json, plain]
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
79
+ Accept invalid certificates when performing HTTPS requests.
80
+
81
+ You should think very carefully before using this flag.
82
+
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
88
+ Accept invalid hostnames when performing HTTPS requests.
89
+
90
+ You should think very carefully before using this flag.
91
+
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.
95
+
96
+ -l, --log <LOG_LEVEL>
97
+ Specify Rover's log level
98
+
99
+ [possible values: error, warn, info, debug, trace]
100
+
101
+ --output <OUTPUT_TYPE>
102
+ Specify Rover's output type
103
+
104
+ [default: plain]
105
+ [possible values: json, plain]
106
+
107
+ -V, --version
108
+ Print version information
81
109
 
82
110
  SUBCOMMANDS:
83
- config Configuration profile commands
84
- docs Interact with Rover's documentation
85
- explain Explain error codes
86
- graph Graph API schema commands
87
- help Prints this message or the help of the given subcommand(s)
88
- subgraph Subgraph schema commands
89
- supergraph Supergraph schema commands
90
- 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
91
129
  ```
92
130
 
93
131
  This repo is organized as a [`cargo` workspace], containing several related projects:
package/binary.js CHANGED
@@ -100,19 +100,21 @@ const getBinary = () => {
100
100
  return binary;
101
101
  };
102
102
 
103
- const install = () => {
103
+ const install = (suppressLogs = false) => {
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
- console.log(
111
- "If you would like to disable Rover's anonymized usage collection, you can set APOLLO_TELEMETRY_DISABLED=1"
112
- );
113
- console.log(
114
- "You can check out our documentation at https://go.apollo.dev/r/docs."
115
- );
108
+ if (!suppressLogs) {
109
+ console.error(
110
+ "If you would like to disable Rover's anonymized usage collection, you can set APOLLO_TELEMETRY_DISABLED=1"
111
+ );
112
+ console.error(
113
+ "You can check out our documentation at https://go.apollo.dev/r/docs."
114
+ );
115
+ }
116
+
117
+ return binary.install(proxy, suppressLogs);
116
118
  };
117
119
 
118
120
  const run = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apollo/rover",
3
- "version": "0.6.0",
3
+ "version": "0.8.1",
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.8.0"
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.6",
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(true).then(run);