@apollo/rover 0.5.0-rc.0 → 0.5.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.
- package/README.md +3 -3
- package/binary.js +16 -24
- package/install.js +0 -13
- package/package.json +4 -3
package/README.md
CHANGED
@@ -37,7 +37,7 @@ rover graph publish --schema ./path-to-valid-schema test@cats
|
|
37
37
|
## Command-line options
|
38
38
|
|
39
39
|
```console
|
40
|
-
Rover 0.5.
|
40
|
+
Rover 0.5.1
|
41
41
|
|
42
42
|
Rover - Your Graph Companion
|
43
43
|
Read the getting started guide by running:
|
@@ -142,7 +142,7 @@ To install a specific version of Rover (note the `v` prefixing the version numbe
|
|
142
142
|
> 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.
|
143
143
|
|
144
144
|
```bash
|
145
|
-
curl -sSL https://rover.apollo.dev/nix/v0.5.
|
145
|
+
curl -sSL https://rover.apollo.dev/nix/v0.5.1 | sh
|
146
146
|
```
|
147
147
|
|
148
148
|
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).
|
@@ -160,7 +160,7 @@ To install a specific version of Rover (note the `v` prefixing the version numbe
|
|
160
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.
|
161
161
|
|
162
162
|
```bash
|
163
|
-
iwr 'https://rover.apollo.dev/win/v0.5.
|
163
|
+
iwr 'https://rover.apollo.dev/win/v0.5.1' | iex
|
164
164
|
```
|
165
165
|
|
166
166
|
#### npm installer
|
package/binary.js
CHANGED
@@ -3,7 +3,7 @@ const os = require("os");
|
|
3
3
|
const cTable = require("console.table");
|
4
4
|
const libc = require("detect-libc");
|
5
5
|
const { join } = require("path");
|
6
|
-
const {
|
6
|
+
const { configureProxy } = require("axios-proxy-builder");
|
7
7
|
|
8
8
|
const error = (msg) => {
|
9
9
|
console.error(msg);
|
@@ -111,29 +111,21 @@ const run = () => {
|
|
111
111
|
|
112
112
|
const install = () => {
|
113
113
|
const binary = getBinary();
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
binary.binaryPath,
|
130
|
-
binary.name
|
131
|
-
)}' failed with message '${
|
132
|
-
e.message
|
133
|
-
}'. 'rover supergraph compose' might not work properly on your machine.`
|
134
|
-
);
|
135
|
-
}
|
136
|
-
}
|
114
|
+
const proxy = configureProxy(binary.url);
|
115
|
+
binary.install(proxy);
|
116
|
+
|
117
|
+
// use setTimeout so the message prints after the install happens.
|
118
|
+
setTimeout(() => {
|
119
|
+
// these messages are duplicated in `src/command/install/mod.rs`
|
120
|
+
// for the curl installer.
|
121
|
+
console.log(
|
122
|
+
"If you would like to disable Rover's anonymized usage collection, you can set APOLLO_TELEMETRY_DISABLED=1"
|
123
|
+
);
|
124
|
+
console.log(
|
125
|
+
"You can check out our documentation at https://go.apollo.dev/r/docs."
|
126
|
+
),
|
127
|
+
400;
|
128
|
+
});
|
137
129
|
};
|
138
130
|
|
139
131
|
module.exports = {
|
package/install.js
CHANGED
@@ -2,16 +2,3 @@
|
|
2
2
|
|
3
3
|
const { install } = require("./binary");
|
4
4
|
install();
|
5
|
-
|
6
|
-
// use setTimeout so the message prints after the install happens.zzs
|
7
|
-
setTimeout(() => {
|
8
|
-
// these messages are duplicated in `src/command/install/mod.rs`
|
9
|
-
// for the curl installer.
|
10
|
-
console.log(
|
11
|
-
"If you would like to disable Rover's anonymized usage collection, you can set APOLLO_TELEMETRY_DISABLED=1"
|
12
|
-
);
|
13
|
-
console.log(
|
14
|
-
"You can check out our documentation at https://go.apollo.dev/r/docs."
|
15
|
-
),
|
16
|
-
400;
|
17
|
-
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@apollo/rover",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.1",
|
4
4
|
"description": "The new Apollo CLI",
|
5
5
|
"main": "index.js",
|
6
6
|
"bin": {
|
@@ -33,15 +33,16 @@
|
|
33
33
|
},
|
34
34
|
"volta": {
|
35
35
|
"node": "17.5.0",
|
36
|
-
"npm": "8.
|
36
|
+
"npm": "8.6.0"
|
37
37
|
},
|
38
38
|
"homepage": "https://github.com/apollographql/rover#readme",
|
39
39
|
"dependencies": {
|
40
|
+
"axios-proxy-builder": "^0.1.1",
|
40
41
|
"binary-install": "^0.1.1",
|
41
42
|
"console.table": "^0.10.0",
|
42
43
|
"detect-libc": "^2.0.0"
|
43
44
|
},
|
44
45
|
"devDependencies": {
|
45
|
-
"prettier": "2.6.
|
46
|
+
"prettier": "2.6.2"
|
46
47
|
}
|
47
48
|
}
|