@metabase/rde 0.5.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 +1 -1
- package/dist/cli.mjs +7 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -152,7 +152,7 @@ Docker is used whenever it is available: the image is self-contained, and the co
|
|
|
152
152
|
|
|
153
153
|
rde runs Metabase Enterprise 65 or newer. Once Metabase is up, `rde init`, `rde start`, and `rde upgrade` read the version it reports and refuse the OSS edition (a `v0.…` version, which `metabase/metabase` runs), a release before 65, and a build of master (a `-SNAPSHOT` version, which `metabase/metabase-enterprise-head` runs), with exit code 2 and the way to another: `rde upgrade --to <image or release tag>` for this instance, or `rde uninstall`, then `rde init --image <image>` or `rde init --jar <release tag>`, for a new one. The refused instance is left running as it is. `--jar` refuses a `v0.…` tag before anything is downloaded. With `RDE_DEV=1`, for working on rde and Metabase themselves, every version runs.
|
|
154
154
|
|
|
155
|
-
A new instance runs the newest release that Metabase's release feed (`https://static.metabase.com/version-info-ee.json`) lists of Enterprise 65 or newer, betas and release
|
|
155
|
+
A new instance runs the newest release that Metabase's release feed (`https://static.metabase.com/version-info-ee.json`) lists of Enterprise 65 or newer, a beta included: a major's betas are its `.0` builds and its first final release is `.1`, so a beta runs only until that final is out. The feed's own `latest`, like the Docker `:latest` tag, moves to a new major only weeks after its release, so rde reads neither. Docker gets the major line of that release, `metabase/metabase-enterprise:v1.<major>.x`, a tag Metabase moves to every build of the major: the state file records the line, and each pull of it brings the newest build. The jar gets the release itself. While the feed lists no release of 65 or newer, `init` stops with exit code 2 before it pulls or downloads anything, and names the ways out: `--image <image>`, `--jar <release tag>`, or `RDE_DEV=1` for the development build. When the feed cannot be read, `init` stops the same way, with the cause and `--image <image>` or `--jar <release tag>` as the way past it. In development mode the image is `metabase/metabase-enterprise-head:latest`, and the jar's `latest` is the feed's own `latest`.
|
|
156
156
|
|
|
157
157
|
## Everyday commands
|
|
158
158
|
|
package/dist/cli.mjs
CHANGED
|
@@ -2243,7 +2243,6 @@ const VERSION_INFO_PATH = "/version-info-ee.json";
|
|
|
2243
2243
|
const JAR_FILE = "metabase.jar";
|
|
2244
2244
|
const RELEASE_TAG$1 = /^v(?<edition>[01])\.(?<major>\d+)\.\d+(?:\.\d+)?(?:-[\w.]+)?$/;
|
|
2245
2245
|
const MAJOR_LINE_TAG = /^v(?<edition>[01])\.(?<major>\d+)\.x$/;
|
|
2246
|
-
const FINAL_ENTERPRISE_RELEASE = /^v1\.\d+\.\d+(?:\.\d+)?$/;
|
|
2247
2246
|
const ENTERPRISE_EDITION = "1";
|
|
2248
2247
|
const OPEN_SOURCE_EDITION = "0";
|
|
2249
2248
|
const SNAPSHOT_SUFFIX = "-SNAPSHOT";
|
|
@@ -2282,11 +2281,13 @@ function compareReleases(left, right) {
|
|
|
2282
2281
|
return 0;
|
|
2283
2282
|
}
|
|
2284
2283
|
function supportedRelease(version) {
|
|
2285
|
-
|
|
2286
|
-
const major =
|
|
2287
|
-
|
|
2284
|
+
const groups = RELEASE_TAG$1.exec(version)?.groups;
|
|
2285
|
+
const major = groups?.["major"];
|
|
2286
|
+
if (groups?.["edition"] !== ENTERPRISE_EDITION || major === void 0) return null;
|
|
2287
|
+
const number = Number.parseInt(major, 10);
|
|
2288
|
+
return number >= 65 ? {
|
|
2288
2289
|
version,
|
|
2289
|
-
major
|
|
2290
|
+
major: number
|
|
2290
2291
|
} : null;
|
|
2291
2292
|
}
|
|
2292
2293
|
function newestSupportedRelease(versions) {
|
|
@@ -9373,7 +9374,7 @@ const db = defineCommand({
|
|
|
9373
9374
|
//#endregion
|
|
9374
9375
|
//#region package.json
|
|
9375
9376
|
var name = "@metabase/rde";
|
|
9376
|
-
var version = "0.5.
|
|
9377
|
+
var version = "0.5.1";
|
|
9377
9378
|
var description = "Prepares a local machine for data-engineering work with Metabase and coding agents";
|
|
9378
9379
|
//#endregion
|
|
9379
9380
|
//#region src/version.ts
|