@apollo/rover 0.5.1 → 0.5.4-rc.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 (3) hide show
  1. package/README.md +3 -4
  2. package/binary.js +13 -21
  3. package/package.json +3 -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.1
40
+ Rover 0.5.3
41
41
 
42
42
  Rover - Your Graph Companion
43
43
  Read the getting started guide by running:
@@ -102,7 +102,6 @@ SUBCOMMANDS:
102
102
  config Configuration profile commands
103
103
  docs Interact with Rover's documentation
104
104
  explain Explain error codes
105
- fed2 Federation 2 Alpha commands
106
105
  graph Graph API schema commands
107
106
  help Prints this message or the help of the given subcommand(s)
108
107
  subgraph Subgraph schema commands
@@ -142,7 +141,7 @@ To install a specific version of Rover (note the `v` prefixing the version numbe
142
141
  > 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
142
 
144
143
  ```bash
145
- curl -sSL https://rover.apollo.dev/nix/v0.5.1 | sh
144
+ curl -sSL https://rover.apollo.dev/nix/v0.5.3 | sh
146
145
  ```
147
146
 
148
147
  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 +159,7 @@ To install a specific version of Rover (note the `v` prefixing the version numbe
160
159
  > 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
160
 
162
161
  ```bash
163
- iwr 'https://rover.apollo.dev/win/v0.5.1' | iex
162
+ iwr 'https://rover.apollo.dev/win/v0.5.3' | iex
164
163
  ```
165
164
 
166
165
  #### npm installer
package/binary.js CHANGED
@@ -2,7 +2,6 @@ const { Binary } = require("binary-install");
2
2
  const os = require("os");
3
3
  const cTable = require("console.table");
4
4
  const libc = require("detect-libc");
5
- const { join } = require("path");
6
5
  const { configureProxy } = require("axios-proxy-builder");
7
6
 
8
7
  const error = (msg) => {
@@ -95,37 +94,30 @@ const getBinary = () => {
95
94
  const url = `https://rover.apollo.dev/tar/${name}/${platform.RUST_TARGET}/v${version}`;
96
95
  let binary = new Binary(platform.BINARY_NAME, url);
97
96
 
98
- // binary-install doesn't put the binary in the right place, so just patch it.
99
- binary.installDirectory = join(__dirname, "node_modules", ".bin");
100
- binary.binaryPath = join(binary.installDirectory, binary.name);
101
97
  // setting this allows us to extract supergraph plugins to the proper directory
102
98
  // the variable itself is read in Rust code
103
99
  process.env.APOLLO_NODE_MODULES_BIN_DIR = binary.installDirectory;
104
100
  return binary;
105
101
  };
106
102
 
107
- const run = () => {
108
- const binary = getBinary();
109
- binary.run();
110
- };
111
-
112
103
  const install = () => {
113
104
  const binary = getBinary();
114
105
  const proxy = configureProxy(binary.url);
115
106
  binary.install(proxy);
116
107
 
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
- });
108
+ // these messages are duplicated in `src/command/install/mod.rs`
109
+ // 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
+ );
116
+ };
117
+
118
+ const run = () => {
119
+ const binary = getBinary();
120
+ binary.run();
129
121
  };
130
122
 
131
123
  module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apollo/rover",
3
- "version": "0.5.1",
3
+ "version": "0.5.4-rc.0",
4
4
  "description": "The new Apollo CLI",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -33,12 +33,12 @@
33
33
  },
34
34
  "volta": {
35
35
  "node": "17.5.0",
36
- "npm": "8.6.0"
36
+ "npm": "8.7.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": "^0.1.1",
41
+ "binary-install": "^1.0.1",
42
42
  "console.table": "^0.10.0",
43
43
  "detect-libc": "^2.0.0"
44
44
  },