@apollo/rover 0.3.0 → 0.4.3
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/LICENSE +6 -0
- package/README.md +7 -10
- package/binary.js +3 -3
- package/package.json +11 -7
package/LICENSE
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
Copyright 2021 Apollo Graph, Inc.
|
2
|
+
|
3
|
+
Source code in this repository is covered by (i) an MIT compatible license or (ii) the Elastic License 2.0, in each case, as designated by a licensing file within a subdirectory or file header. The default throughout the repository is an MIT compatible license, unless a file header or a licensing file in a subdirectory specifies another license.
|
4
|
+
|
5
|
+
--------------------------------------------------------------------------------
|
6
|
+
|
1
7
|
MIT License
|
2
8
|
|
3
9
|
Copyright (c) 2021 Apollo Graph, Inc.
|
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.3
|
40
|
+
Rover 0.4.3
|
41
41
|
|
42
42
|
Rover - Your Graph Companion
|
43
43
|
Read the getting started guide by running:
|
@@ -83,6 +83,7 @@ SUBCOMMANDS:
|
|
83
83
|
config Configuration profile commands
|
84
84
|
docs Interact with Rover's documentation
|
85
85
|
explain Explain error codes
|
86
|
+
fed2 Federation 2 Alpha commands
|
86
87
|
graph Graph API schema commands
|
87
88
|
help Prints this message or the help of the given subcommand(s)
|
88
89
|
subgraph Subgraph schema commands
|
@@ -96,7 +97,6 @@ This repo is organized as a [`cargo` workspace], containing several related proj
|
|
96
97
|
- [`houston`]: utilities for configuring Rover
|
97
98
|
- [`robot-panic`]: a fork of [`rust-cli/human-panic`] adjusted for Rover
|
98
99
|
- [`rover-client`]: an HTTP client for making GraphQL requests for Rover
|
99
|
-
- [`sdl-encoder`]: a crate to encode SDL
|
100
100
|
- [`sputnik`]: a crate to aid in collection of anonymous data for Rust CLIs
|
101
101
|
- [`timber`]: Rover's logging formatter
|
102
102
|
|
@@ -105,7 +105,6 @@ This repo is organized as a [`cargo` workspace], containing several related proj
|
|
105
105
|
[`robot-panic`]: https://github.com/apollographql/rover/tree/main/crates/robot-panic
|
106
106
|
[`rust-cli/human-panic`]: https://github.com/rust-cli/human-panic
|
107
107
|
[`rover-client`]: https://github.com/apollographql/rover/tree/main/crates/rover-client
|
108
|
-
[`sdl-encoder`]: https://github.com/apollographql/rover/tree/main/crates/sdl-encoder
|
109
108
|
[`sputnik`]: https://github.com/apollographql/rover/tree/main/crates/sputnik
|
110
109
|
[`timber`]: https://github.com/apollographql/rover/tree/main/crates/timber
|
111
110
|
|
@@ -113,7 +112,7 @@ This repo is organized as a [`cargo` workspace], containing several related proj
|
|
113
112
|
|
114
113
|
#### Linux and MacOS `curl | sh` installer
|
115
114
|
|
116
|
-
To install the latest release of Rover:
|
115
|
+
To install the latest release of Rover:
|
117
116
|
|
118
117
|
```bash
|
119
118
|
curl -sSL https://rover.apollo.dev/nix/latest | sh
|
@@ -124,7 +123,7 @@ To install a specific version of Rover (note the `v` prefixing the version numbe
|
|
124
123
|
> 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.
|
125
124
|
|
126
125
|
```bash
|
127
|
-
curl -sSL https://rover.apollo.dev/nix/v0.
|
126
|
+
curl -sSL https://rover.apollo.dev/nix/v0.4.3 | sh
|
128
127
|
```
|
129
128
|
|
130
129
|
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).
|
@@ -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
|
-
iwr 'https://rover.apollo.dev/win/v0.
|
144
|
+
iwr 'https://rover.apollo.dev/win/v0.4.3' | iex
|
146
145
|
```
|
147
146
|
|
148
147
|
#### npm installer
|
@@ -178,8 +177,6 @@ From here you can either place the binary in your `PATH` manually, or run `./tar
|
|
178
177
|
|
179
178
|
See [this page](https://go.apollo.dev/r/contributing) for info about contributing to Rover.
|
180
179
|
|
181
|
-
##
|
180
|
+
## Licensing
|
182
181
|
|
183
|
-
|
184
|
-
|
185
|
-
[LICENSE]: https://github.com/apollographql/rover/blob/main/LICENSE
|
182
|
+
Source code in this repository is covered by (i) an MIT compatible license or (ii) the Elastic License 2.0, in each case, as designated by a licensing file within a subdirectory or file header. The default throughout the repository is an MIT compatible license, unless a file header or a licensing file in a subdirectory specifies another license.
|
package/binary.js
CHANGED
@@ -50,17 +50,17 @@ const getPlatform = () => {
|
|
50
50
|
) {
|
51
51
|
if (supportedPlatform.TYPE === "Linux") {
|
52
52
|
let musl_warning = "Downloading musl binary that does not include `rover supergraph compose`.";
|
53
|
-
if (libc.
|
53
|
+
if (libc.isNonGlibcLinuxSync()) {
|
54
54
|
console.warn("This operating system does not support dynamic linking to glibc.");
|
55
55
|
console.warn(musl_warning);
|
56
56
|
supportedPlatform.RUST_TARGET = "x86_64-unknown-linux-musl";
|
57
57
|
} else {
|
58
|
-
let libc_version = libc.
|
58
|
+
let libc_version = libc.versionSync();
|
59
59
|
let split_libc_version = libc_version.split(".");
|
60
60
|
let libc_major_version = split_libc_version[0];
|
61
61
|
let libc_minor_version = split_libc_version[1];
|
62
62
|
let min_major_version = 2;
|
63
|
-
let min_minor_version =
|
63
|
+
let min_minor_version = 17;
|
64
64
|
if (libc_major_version < min_major_version || libc_minor_version < min_minor_version) {
|
65
65
|
console.warn(`This operating system needs glibc >= ${min_major_version}.${min_minor_version}, but only has ${libc_version} installed.`);
|
66
66
|
console.warn(musl_warning);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@apollo/rover",
|
3
|
-
"version": "0.3
|
3
|
+
"version": "0.4.3",
|
4
4
|
"description": "The new Apollo CLI",
|
5
5
|
"main": "index.js",
|
6
6
|
"bin": {
|
@@ -27,17 +27,21 @@
|
|
27
27
|
"bugs": {
|
28
28
|
"url": "https://github.com/apollographql/rover/issues"
|
29
29
|
},
|
30
|
+
"engines": {
|
31
|
+
"node": ">=14 <=17",
|
32
|
+
"npm": ">=6"
|
33
|
+
},
|
34
|
+
"volta": {
|
35
|
+
"node": "17.5.0",
|
36
|
+
"npm": "8.5.0"
|
37
|
+
},
|
30
38
|
"homepage": "https://github.com/apollographql/rover#readme",
|
31
39
|
"dependencies": {
|
32
40
|
"binary-install": "^0.1.1",
|
33
41
|
"console.table": "^0.10.0",
|
34
|
-
"detect-libc": "^
|
42
|
+
"detect-libc": "^2.0.0"
|
35
43
|
},
|
36
44
|
"devDependencies": {
|
37
|
-
"prettier": "
|
38
|
-
},
|
39
|
-
"volta": {
|
40
|
-
"node": "16.9.1",
|
41
|
-
"npm": "7.24.0"
|
45
|
+
"prettier": "2.5.1"
|
42
46
|
}
|
43
47
|
}
|