@eagleoutice/flowr 2.12.1 → 2.12.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/cli/flowr.js CHANGED
@@ -162,8 +162,15 @@ async function mainRepl() {
162
162
  const engines = await (0, engines_1.retrieveEngineInstances)(config);
163
163
  const defaultEngine = engines.engines[engines.default];
164
164
  if (options.version) {
165
- for (const engine of Object.values(engines.engines)) {
166
- await (0, version_1.printVersionInformation)(repl_main_1.standardReplOutput, engine);
165
+ const enginesList = Object.values(engines.engines);
166
+ if (enginesList.length > 0) {
167
+ await (0, version_1.printVersionInformation)(repl_main_1.standardReplOutput, enginesList[0]);
168
+ for (const engine of enginesList.slice(1)) {
169
+ console.log('');
170
+ await (0, version_1.printVersionInformation)(repl_main_1.standardReplOutput, engine, true);
171
+ }
172
+ }
173
+ for (const engine of enginesList) {
167
174
  engine?.close();
168
175
  }
169
176
  return (0, proc_1.exitSafe)(0);
@@ -67,9 +67,8 @@ async function runDownload(output, analyzer, rest) {
67
67
  if (manifest) {
68
68
  await analyzer.context().deps.addDatabaseSource(manifest);
69
69
  analyzer.reset();
70
- output.stdout(`Mounted ${(0, ansi_1.bold)(manifest, f)}.`);
70
+ output.stdout(`Mounted ${(0, ansi_1.bold)(manifest, f)} (will be available on next startup from the cache).`);
71
71
  }
72
- output.stdout((0, ansi_1.italic)(`Add "${dir}" to solver.sigdb.additionalPaths to keep it mounted on every start.`, f));
73
72
  }
74
73
  catch (e) {
75
74
  output.stderr(`Download failed: ${e.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eagleoutice/flowr",
3
- "version": "2.12.1",
3
+ "version": "2.12.2",
4
4
  "description": "Static Dataflow Analyzer and Program Slicer for the R Programming Language",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "repository": {
@@ -31,12 +31,12 @@
31
31
  "gen:base-packages": "ts-node --transpile-only scripts/gen-base-packages.ts",
32
32
  "sync:sigdb": "ts-node --transpile-only scripts/sigdb-remote.ts",
33
33
  "publish:sigdb": "ts-node scripts/publish-sigdb.ts",
34
- "build:copy-data": "npm run sync:sigdb && ts-node --transpile-only scripts/sigdb-copy.ts",
34
+ "build:copy-data": "ts-node --transpile-only scripts/sigdb-copy.ts",
35
35
  "build-dev": "npm run build && npm run build:copy-wasm",
36
36
  "build:bundle-flowr": "npm run build && esbuild --bundle dist/src/cli/flowr.js --platform=node --tree-shaking=true --minify --external:clipboardy --target=node22 --outfile=dist/src/cli/flowr.min.js && npm run build:copy-wasm",
37
37
  "build:copy-wasm": "mkdir -p dist/node_modules/@davisvaughan/tree-sitter-r/ && mkdir -p dist/node_modules/web-tree-sitter && cp node_modules/@davisvaughan/tree-sitter-r/tree-sitter-r.wasm dist/node_modules/@davisvaughan/tree-sitter-r/ && cp node_modules/web-tree-sitter/tree-sitter.wasm dist/node_modules/web-tree-sitter/",
38
- "lint-local": "npx eslint --version && npx eslint src/ test/ --rule \"no-warning-comments: off\"",
39
- "lint": "npm run license-compat -- --summary && npx eslint --version && npx eslint src/ test/",
38
+ "lint-local": "npx eslint --version && npx eslint src/ test/ scripts/ --rule \"no-warning-comments: off\"",
39
+ "lint": "npm run license-compat -- --summary && npx eslint --version && npx eslint src/ test/ scripts/",
40
40
  "license-compat": "license-checker-rseidelsohn --onlyAllow 'MIT;MPL-2.0;MIT OR X11;GPLv2;LGPL;GNUGPL;ISC;Apache-2.0;FreeBSD;BSD-2-Clause;clearbsd;ModifiedBSD;BSD-3-Clause;Python-2.0;Unlicense;WTFPL;BlueOak-1.0.0;CC-BY-4.0;CC-BY-3.0;CC0-1.0;0BSD'",
41
41
  "doc": "typedoc",
42
42
  "test": "vitest --exclude \"test/system-tests/**\" --config test/vitest.config.mts",
package/util/version.d.ts CHANGED
@@ -24,5 +24,5 @@ export declare function retrieveVersionInformation(input: KnownParser | Readonly
24
24
  /**
25
25
  * Displays the version information to the given output.
26
26
  */
27
- export declare function printVersionInformation(output: ReplOutput, input: KnownParser | ReadonlyFlowrAnalysisProvider): Promise<void>;
27
+ export declare function printVersionInformation(output: ReplOutput, input: KnownParser | ReadonlyFlowrAnalysisProvider, engineOnly?: boolean): Promise<void>;
28
28
  export {};
package/util/version.js CHANGED
@@ -7,7 +7,7 @@ const semver_1 = require("semver");
7
7
  const assert_1 = require("./assert");
8
8
  const sigdb_download_1 = require("../project/sigdb/sigdb-download");
9
9
  // this is automatically replaced with the current version by release-it
10
- const version = '2.12.1';
10
+ const version = '2.12.2';
11
11
  // this is automatically replaced with the release date by release-it (regex-bumper, see package.json)
12
12
  const versionDate = '2026-07-15T07:13:44Z';
13
13
  /**
@@ -40,18 +40,18 @@ async function retrieveVersionInformation(input) {
40
40
  /**
41
41
  * Displays the version information to the given output.
42
42
  */
43
- async function printVersionInformation(output, input) {
43
+ async function printVersionInformation(output, input, engineOnly = false) {
44
44
  const { flowr, r, engine } = await retrieveVersionInformation(input);
45
45
  const faint = (s) => output.formatter.format(s, { style: 2 /* FontStyles.Faint */ });
46
46
  const rReason = r === 'none' ? ' (no R interpreter available)'
47
47
  : r === 'unknown' ? (engine === 'tree-sitter' ? ' (not queried, using the tree-sitter engine)' : ' (could not be determined)')
48
48
  : '';
49
49
  const flowrValue = versionRegex.test(flowr) ? output.formatter.hyperlink(flowr, `https://github.com/flowr-analysis/flowr/releases/tag/v${flowr}`) : flowr;
50
- const rows = [
51
- ['engine', engine],
52
- ['flowR', `${flowrValue} ${faint(`(${versionDate})`)}`],
53
- ['R', `${r}${rReason}`, r === 'none' || r === 'unknown']
54
- ];
50
+ const rows = [];
51
+ if (!engineOnly) {
52
+ rows.push(['flowR', `${flowrValue} ${faint(`(${versionDate})`)}`]);
53
+ }
54
+ rows.push(['engine', engine], ['R', `${r}${rReason}`, r === 'none' || r === 'unknown']);
55
55
  if (typeof input !== 'function' && 'inspectContext' in input) {
56
56
  // reads the current analyzer, so it reflects the databases in use (and adapts to config changes)
57
57
  const ctx = input.inspectContext();
@@ -67,7 +67,8 @@ async function printVersionInformation(output, input) {
67
67
  }
68
68
  const width = Math.max(...rows.map(([label]) => label.length));
69
69
  for (const [label, value, faded] of rows) {
70
- const line = `${label.padEnd(width)} : ${value}`;
70
+ const padding = ' '.repeat(width - label.length);
71
+ const line = `${label}:${padding} ${value}`;
71
72
  output.stdout(faded ? faint(line) : line);
72
73
  }
73
74
  }