@cedarjs/cli 7.0.0-canary.3241 → 7.0.0-canary.3242

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.
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import { Listr } from "listr2";
4
- import { coerce, isGreaterOrEqual } from "verkit";
4
+ import { coerce, isGreaterThanOrEqual } from "verkit";
5
5
  import { colors as c } from "@cedarjs/cli-helpers/colors";
6
6
  import {
7
7
  addRootPackages,
@@ -40,7 +40,7 @@ const handler = async (options) => {
40
40
  );
41
41
  const reactVersion = webPkgJson["dependencies"]["react"];
42
42
  const coercedReactVersion = coerce(reactVersion);
43
- if (!coercedReactVersion || !isGreaterOrEqual(coercedReactVersion, "19.0.0")) {
43
+ if (!coercedReactVersion || !isGreaterThanOrEqual(coercedReactVersion, "19.0.0")) {
44
44
  throw new Error(
45
45
  "You need to be using at least React version 19 to enable the React Compiler"
46
46
  );
@@ -1,5 +1,5 @@
1
1
  import enq from "enquirer";
2
- import { isGreaterOrEqual, isLess, tryParse } from "verkit";
2
+ import { isGreaterThanOrEqual, isLessThan, tryParse } from "verkit";
3
3
  import { dlx } from "@cedarjs/cli-helpers/packageManager/exec";
4
4
  import { getCompatibilityData } from "@cedarjs/cli-helpers/version";
5
5
  import { getPaths } from "@cedarjs/project-config";
@@ -16,7 +16,7 @@ async function handler({
16
16
  console.log(
17
17
  "No compatibility check will be performed because you used the --force flag."
18
18
  );
19
- if (tryParse(packageVersion) !== null && isLess(packageVersion, "1.0.0")) {
19
+ if (tryParse(packageVersion) !== null && isLessThan(packageVersion, "1.0.0")) {
20
20
  console.log(
21
21
  "Be aware that this package is under version 1.0.0 and so should be considered experimental."
22
22
  );
@@ -86,7 +86,7 @@ The latest version compatible with your project is ${latestCompatibleVersionText
86
86
  await runPackage(packageName, versionToUse, additionalOptionsToForward);
87
87
  }
88
88
  async function showExperimentalWarning(version) {
89
- if (version === void 0 || tryParse(version) === null || isGreaterOrEqual(version, "1.0.0")) {
89
+ if (version === void 0 || tryParse(version) === null || isGreaterThanOrEqual(version, "1.0.0")) {
90
90
  return;
91
91
  }
92
92
  const decision = await promptWithChoices(
@@ -3,7 +3,7 @@ import path from "path";
3
3
  import ansis from "ansis";
4
4
  import boxen from "boxen";
5
5
  import latestVersion from "latest-version";
6
- import { isGreater, isValid } from "verkit";
6
+ import { isGreaterThan, isValid } from "verkit";
7
7
  import { formatCedarCommand } from "@cedarjs/cli-helpers/packageManager/display";
8
8
  import { getNodeRunnerArgs } from "@cedarjs/cli-helpers/packageManager/exec";
9
9
  import { getConfig } from "@cedarjs/project-config";
@@ -106,7 +106,7 @@ function shouldShow() {
106
106
  const data = readUpdateDataFile();
107
107
  let newerVersion = false;
108
108
  data.remoteVersions.forEach((version) => {
109
- newerVersion ||= isGreater(version, localVersion);
109
+ newerVersion ||= isGreaterThan(version, localVersion);
110
110
  });
111
111
  return data.shownAt < (/* @__PURE__ */ new Date()).getTime() - SHOW_PERIOD && newerVersion;
112
112
  }
@@ -120,7 +120,7 @@ function getUpdateMessage() {
120
120
  let updateCount = 0;
121
121
  let message = ` New updates to Cedar are available via \`${formatCedarCommand(["upgrade#REPLACEME#"])}\` `;
122
122
  data.remoteVersions.forEach((version, tag) => {
123
- if (isGreater(version, data.localVersion)) {
123
+ if (isGreaterThan(version, data.localVersion)) {
124
124
  updateCount += 1;
125
125
  if (tag === localTag) {
126
126
  message += `
@@ -1,4 +1,4 @@
1
- import { clean, isGreaterOrEqual } from "verkit";
1
+ import { clean, isGreaterThanOrEqual } from "verkit";
2
2
  import { colors as c } from "@cedarjs/cli-helpers/colors";
3
3
  function checkNodeVersion() {
4
4
  const checks = { ok: true };
@@ -10,7 +10,7 @@ function checkNodeVersion() {
10
10
  checks.message = `Invalid Node.js version: ${pVersion}`;
11
11
  return checks;
12
12
  }
13
- if (isGreaterOrEqual(pVersionC, LOWER_BOUND)) {
13
+ if (isGreaterThanOrEqual(pVersionC, LOWER_BOUND)) {
14
14
  return checks;
15
15
  }
16
16
  checks.ok = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "7.0.0-canary.3241",
3
+ "version": "7.0.0-canary.3242",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,17 +36,17 @@
36
36
  "@babel/preset-typescript": "7.29.7",
37
37
  "@babel/traverse": "7.29.8",
38
38
  "@babel/types": "7.29.8",
39
- "@cedarjs/api-server": "7.0.0-canary.3241",
40
- "@cedarjs/babel-config": "7.0.0-canary.3241",
41
- "@cedarjs/cli-helpers": "7.0.0-canary.3241",
42
- "@cedarjs/internal": "7.0.0-canary.3241",
43
- "@cedarjs/prerender": "7.0.0-canary.3241",
44
- "@cedarjs/project-config": "7.0.0-canary.3241",
45
- "@cedarjs/structure": "7.0.0-canary.3241",
46
- "@cedarjs/telemetry": "7.0.0-canary.3241",
47
- "@cedarjs/utils": "7.0.0-canary.3241",
48
- "@cedarjs/vite": "7.0.0-canary.3241",
49
- "@cedarjs/web-server": "7.0.0-canary.3241",
39
+ "@cedarjs/api-server": "7.0.0-canary.3242",
40
+ "@cedarjs/babel-config": "7.0.0-canary.3242",
41
+ "@cedarjs/cli-helpers": "7.0.0-canary.3242",
42
+ "@cedarjs/internal": "7.0.0-canary.3242",
43
+ "@cedarjs/prerender": "7.0.0-canary.3242",
44
+ "@cedarjs/project-config": "7.0.0-canary.3242",
45
+ "@cedarjs/structure": "7.0.0-canary.3242",
46
+ "@cedarjs/telemetry": "7.0.0-canary.3242",
47
+ "@cedarjs/utils": "7.0.0-canary.3242",
48
+ "@cedarjs/vite": "7.0.0-canary.3242",
49
+ "@cedarjs/web-server": "7.0.0-canary.3242",
50
50
  "@listr2/prompt-adapter-enquirer": "4.3.2",
51
51
  "@opentelemetry/api": "1.9.1",
52
52
  "@opentelemetry/core": "2.11.0",
@@ -90,11 +90,11 @@
90
90
  "title-case": "3.0.3",
91
91
  "unionfs": "4.6.0",
92
92
  "uuid": "11.1.1",
93
- "verkit": "0.4.0",
93
+ "verkit": "0.5.0",
94
94
  "yargs": "17.7.3"
95
95
  },
96
96
  "devDependencies": {
97
- "@cedarjs/framework-tools": "7.0.0-canary.3241",
97
+ "@cedarjs/framework-tools": "7.0.0-canary.3242",
98
98
  "@prisma/dmmf": "7.10.0",
99
99
  "@types/archiver": "^7.0.0",
100
100
  "memfs": "4.78.1",