@apollo/rover 0.5.1 → 0.5.2

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 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.2
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.2 | 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.2' | iex
164
163
  ```
165
164
 
166
165
  #### npm installer
package/binary.js CHANGED
@@ -95,41 +95,28 @@ const getBinary = () => {
95
95
  const url = `https://rover.apollo.dev/tar/${name}/${platform.RUST_TARGET}/v${version}`;
96
96
  let binary = new Binary(platform.BINARY_NAME, url);
97
97
 
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
98
  // setting this allows us to extract supergraph plugins to the proper directory
102
99
  // the variable itself is read in Rust code
103
100
  process.env.APOLLO_NODE_MODULES_BIN_DIR = binary.installDirectory;
104
101
  return binary;
105
102
  };
106
103
 
107
- const run = () => {
108
- const binary = getBinary();
109
- binary.run();
110
- };
111
-
112
104
  const install = () => {
113
105
  const binary = getBinary();
114
106
  const proxy = configureProxy(binary.url);
115
107
  binary.install(proxy);
116
108
 
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
- });
109
+ // these messages are duplicated in `src/command/install/mod.rs`
110
+ // for the curl installer.
111
+ console.log(
112
+ "If you would like to disable Rover's anonymized usage collection, you can set APOLLO_TELEMETRY_DISABLED=1"
113
+ );
114
+ console.log(
115
+ "You can check out our documentation at https://go.apollo.dev/r/docs."
116
+ );
129
117
  };
130
118
 
131
119
  module.exports = {
132
120
  install,
133
- run,
134
121
  getBinary,
135
122
  };
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@apollo/rover",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "The new Apollo CLI",
5
5
  "main": "index.js",
6
- "bin": {
7
- "rover": "run.js"
8
- },
9
6
  "scripts": {
10
7
  "prepack": "cp ../../README.md . && cp ../../LICENSE .",
11
8
  "postinstall": "node ./install.js",
@@ -33,12 +30,12 @@
33
30
  },
34
31
  "volta": {
35
32
  "node": "17.5.0",
36
- "npm": "8.6.0"
33
+ "npm": "8.7.0"
37
34
  },
38
35
  "homepage": "https://github.com/apollographql/rover#readme",
39
36
  "dependencies": {
40
37
  "axios-proxy-builder": "^0.1.1",
41
- "binary-install": "^0.1.1",
38
+ "binary-install": "^1.0.0",
42
39
  "console.table": "^0.10.0",
43
40
  "detect-libc": "^2.0.0"
44
41
  },
package/run.js DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { run } = require("./binary");
4
- run();