@eagleoutice/flowr 2.16.3 → 2.16.5
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 +14 -14
- package/cli/repl/core.js +13 -2
- package/cli/repl/parser/slice-query-parser.d.ts +21 -5
- package/cli/repl/parser/slice-query-parser.js +33 -13
- package/core/steps/all/static-slicing/10-reconstruct.d.ts +2 -2
- package/dataflow/environments/built-in.d.ts +2 -0
- package/dataflow/environments/built-in.js +10 -2
- package/dataflow/environments/data-masking-functions.js +2 -1
- package/dataflow/environments/default-builtin-config.d.ts +31 -5
- package/dataflow/environments/default-builtin-config.js +12 -15
- package/dataflow/environments/query-fn-props.js +2 -1
- package/dataflow/eval/resolve/alias-tracking.js +5 -2
- package/dataflow/eval/resolve/node-value.js +1 -1
- package/dataflow/eval/resolve/resolve-argument.js +2 -0
- package/dataflow/eval/resolve/resolve-strings.d.ts +10 -0
- package/dataflow/eval/resolve/resolve-strings.js +79 -12
- package/dataflow/eval/resolve/resolve.js +2 -6
- package/dataflow/extractor.js +11 -4
- package/dataflow/graph/applied-arguments.d.ts +5 -0
- package/dataflow/graph/applied-arguments.js +17 -0
- package/dataflow/graph/df-helper.js +2 -2
- package/dataflow/graph/graph.d.ts +5 -0
- package/dataflow/graph/graph.js +5 -0
- package/dataflow/info.js +8 -1
- package/dataflow/internal/linker.js +35 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +9 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +32 -12
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +8 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +7 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +11 -1
- package/dataflow/internal/process/functions/call/named-call-handling.js +4 -2
- package/dataflow/internal/process/functions/call/quoted.js +3 -3
- package/dataflow/internal/program-order.js +7 -1
- package/dataflow/processor.d.ts +2 -0
- package/documentation/doc-util/doc-query.d.ts +1 -1
- package/documentation/doc-util/doc-query.js +3 -1
- package/documentation/doc-util/doc-timings.js +3 -2
- package/documentation/doc-util/doc-types.js +4 -0
- package/documentation/wiki-create-linting-rules.js +1 -1
- package/documentation/wiki-linter.d.ts +14 -0
- package/documentation/wiki-linter.js +341 -126
- package/linter/linter-executor.js +7 -0
- package/linter/linter-rules.d.ts +47 -47
- package/linter/rules/absolute-path.d.ts +1 -1
- package/linter/rules/absolute-path.js +6 -4
- package/linter/rules/cmd-check/call-arguments.d.ts +1 -1
- package/linter/rules/cmd-check/call-arguments.js +10 -5
- package/linter/rules/cmd-check/compiled-code.d.ts +1 -1
- package/linter/rules/cmd-check/compiled-code.js +1 -1
- package/linter/rules/cmd-check/conformance.d.ts +5 -1
- package/linter/rules/cmd-check/conformance.js +64 -64
- package/linter/rules/cmd-check/description-metadata.d.ts +1 -1
- package/linter/rules/cmd-check/description-metadata.js +1 -1
- package/linter/rules/cmd-check/documentation-mismatch.d.ts +6 -0
- package/linter/rules/cmd-check/foreign-function-calls.d.ts +1 -1
- package/linter/rules/cmd-check/foreign-function-calls.js +1 -1
- package/linter/rules/cmd-check/namespace-tampering.d.ts +1 -1
- package/linter/rules/cmd-check/namespace-tampering.js +1 -1
- package/linter/rules/cmd-check/non-ascii-code.d.ts +1 -1
- package/linter/rules/cmd-check/non-ascii-code.js +1 -1
- package/linter/rules/cmd-check/package-data.d.ts +3 -1
- package/linter/rules/cmd-check/package-data.js +1 -1
- package/linter/rules/cmd-check/package-hooks.d.ts +2 -2
- package/linter/rules/cmd-check/package-hooks.js +13 -5
- package/linter/rules/cmd-check/package-metafiles.d.ts +1 -1
- package/linter/rules/cmd-check/package-metafiles.js +1 -1
- package/linter/rules/cmd-check/package-structure.d.ts +1 -1
- package/linter/rules/cmd-check/package-structure.js +1 -1
- package/linter/rules/cmd-check/rd-files.d.ts +17 -1
- package/linter/rules/cmd-check/rd-files.js +1 -1
- package/linter/rules/cmd-check/true-false-abbreviation.d.ts +1 -1
- package/linter/rules/cmd-check/true-false-abbreviation.js +1 -1
- package/linter/rules/dataframe-access-validation.d.ts +1 -1
- package/linter/rules/dataframe-access-validation.js +1 -1
- package/linter/rules/dead-code.d.ts +4 -4
- package/linter/rules/dead-code.js +19 -4
- package/linter/rules/deprecated-functions.d.ts +1 -1
- package/linter/rules/deprecated-functions.js +1 -1
- package/linter/rules/file-path-validity.d.ts +6 -2
- package/linter/rules/file-path-validity.js +7 -3
- package/linter/rules/namespace-access.d.ts +3 -3
- package/linter/rules/namespace-access.js +12 -3
- package/linter/rules/naming-convention.d.ts +1 -1
- package/linter/rules/naming-convention.js +1 -1
- package/linter/rules/network-functions.d.ts +1 -1
- package/linter/rules/network-functions.js +1 -1
- package/linter/rules/no-leaked-credentials.d.ts +1 -1
- package/linter/rules/no-leaked-credentials.js +1 -1
- package/linter/rules/problematic-inputs.d.ts +2 -2
- package/linter/rules/problematic-inputs.js +4 -4
- package/linter/rules/roxygen-arguments.d.ts +2 -2
- package/linter/rules/roxygen-arguments.js +2 -2
- package/linter/rules/seeded-randomness.d.ts +2 -2
- package/linter/rules/seeded-randomness.js +2 -2
- package/linter/rules/software-has-license.d.ts +2 -2
- package/linter/rules/software-has-license.js +2 -2
- package/linter/rules/software-has-tests.d.ts +2 -2
- package/linter/rules/software-has-tests.js +2 -2
- package/linter/rules/stop-with-call-arg.d.ts +3 -3
- package/linter/rules/stop-with-call-arg.js +22 -5
- package/linter/rules/syntactically-valid.d.ts +1 -1
- package/linter/rules/syntactically-valid.js +1 -1
- package/linter/rules/unclosed-connection.d.ts +2 -2
- package/linter/rules/unclosed-connection.js +2 -2
- package/linter/rules/undefined-symbol.d.ts +1 -1
- package/linter/rules/undefined-symbol.js +27 -4
- package/linter/rules/unescaped-arguments.d.ts +1 -1
- package/linter/rules/unescaped-arguments.js +1 -1
- package/linter/rules/unused-definition.d.ts +1 -1
- package/linter/rules/unused-definition.js +21 -2
- package/linter/rules/unused-import.d.ts +1 -1
- package/linter/rules/unused-import.js +1 -1
- package/linter/rules/useless-loop.d.ts +1 -1
- package/linter/rules/useless-loop.js +1 -1
- package/package.json +1 -1
- package/project/context/flowr-analyzer-environment-context.d.ts +1 -1
- package/project/context/flowr-analyzer-environment-context.js +2 -1
- package/project/context/flowr-analyzer-files-context.js +12 -11
- package/project/dependency-version-space.js +4 -6
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +2 -0
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +9 -8
- package/project/plugins/file-plugins/flowr-analyzer-test-file-plugin.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-vignette-file-plugin.js +1 -1
- package/queries/catalog/dependencies-query/data-flow.d.ts +2 -0
- package/queries/catalog/dependencies-query/data-flow.js +6 -0
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +31 -0
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +5 -0
- package/queries/catalog/dependencies-query/implicit-echo.js +29 -30
- package/queries/catalog/dependencies-query/plot-objects.js +6 -2
- package/queries/catalog/dice-query/dice-query-format.d.ts +1 -1
- package/queries/catalog/dice-query/dice-query-format.js +1 -1
- package/queries/catalog/slice-query-options.d.ts +3 -3
- package/queries/catalog/slice-query-options.js +1 -1
- package/queries/catalog/static-slice-query/static-slice-query-executor.js +12 -1
- package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +7 -1
- package/queries/catalog/static-slice-query/static-slice-query-format.js +4 -2
- package/queries/query.d.ts +2 -2
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +19 -56
- package/reconstruct/inline/source-inline-map.d.ts +1 -1
- package/reconstruct/inline/source-inline-map.js +5 -3
- package/reconstruct/reconstruct.d.ts +8 -1
- package/reconstruct/reconstruct.js +12 -3
- package/slicing/static/removal-slice.d.ts +19 -0
- package/slicing/static/removal-slice.js +165 -0
- package/slicing/static/static-slicer.js +10 -5
- package/util/text/playground-link.d.ts +24 -1
- package/util/text/playground-link.js +16 -1
- package/util/version.js +2 -2
|
@@ -7,7 +7,9 @@ export declare enum PlaygroundBox {
|
|
|
7
7
|
/** what the dependency query found */
|
|
8
8
|
Deps = "deps",
|
|
9
9
|
/** what the linter found */
|
|
10
|
-
Lints = "lints"
|
|
10
|
+
Lints = "lints",
|
|
11
|
+
/** what the DESCRIPTION of the project says */
|
|
12
|
+
Project = "project"
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* What a link can point at, written the way flowR names a place in a script:
|
|
@@ -53,6 +55,22 @@ export interface PlaygroundLinkParts {
|
|
|
53
55
|
/** another deployment of the page, for a local build or a fork */
|
|
54
56
|
readonly base?: string;
|
|
55
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* The letter each setting of the view takes in the view field of a link, in the order a link writes them. Links in
|
|
60
|
+
* papers and mails have to open as they were sent: a letter is never reused for something else, only new ones are added.
|
|
61
|
+
*/
|
|
62
|
+
declare const ViewFlags: {
|
|
63
|
+
readonly forward: ">";
|
|
64
|
+
readonly removal: "-";
|
|
65
|
+
readonly dim: "d";
|
|
66
|
+
readonly replOpen: "r";
|
|
67
|
+
readonly wholeSlice: "a";
|
|
68
|
+
readonly inline: "i";
|
|
69
|
+
};
|
|
70
|
+
/** how the view of the page was left, as the view field of a link carries it */
|
|
71
|
+
export type PlaygroundView = {
|
|
72
|
+
readonly [Setting in keyof typeof ViewFlags]?: boolean;
|
|
73
|
+
};
|
|
56
74
|
/**
|
|
57
75
|
* Everything about flowR's playground that is not the page itself: what a link to it carries, and how
|
|
58
76
|
* one is written. The page reads back exactly what {@link Playground.link} writes.
|
|
@@ -86,6 +104,10 @@ export declare const Playground: {
|
|
|
86
104
|
};
|
|
87
105
|
/** the boxes of the page a mark can point at */
|
|
88
106
|
Box: typeof PlaygroundBox;
|
|
107
|
+
/** the view field's letters for the settings of `view` that are on */
|
|
108
|
+
viewFlags(this: void, view: PlaygroundView): string;
|
|
109
|
+
/** which settings of the view the letters of a view field turn on */
|
|
110
|
+
readView(this: void, flags: string): Required<PlaygroundView>;
|
|
89
111
|
/**
|
|
90
112
|
* The link that opens the playground on exactly this: a script, what it points at, where its cursor
|
|
91
113
|
* sits, and how the page is laid out.
|
|
@@ -127,3 +149,4 @@ export declare const Playground: {
|
|
|
127
149
|
/** where a name stands in a line, as a name rather than as a substring of a longer one */
|
|
128
150
|
nameIndexIn(this: void, text: string, name: string): number | undefined;
|
|
129
151
|
};
|
|
152
|
+
export {};
|
|
@@ -15,6 +15,8 @@ var PlaygroundBox;
|
|
|
15
15
|
PlaygroundBox["Deps"] = "deps";
|
|
16
16
|
/** what the linter found */
|
|
17
17
|
PlaygroundBox["Lints"] = "lints";
|
|
18
|
+
/** what the DESCRIPTION of the project says */
|
|
19
|
+
PlaygroundBox["Project"] = "project";
|
|
18
20
|
})(PlaygroundBox || (exports.PlaygroundBox = PlaygroundBox = {}));
|
|
19
21
|
/** a mark that stands for a place in the script: a line, a range, a column, or a name on a line, in another file with a `(file-regex)` */
|
|
20
22
|
const CodeMarkPattern = /^\d+(:\d+|-\d+|@.+)?(\(.+\))?$/;
|
|
@@ -82,6 +84,11 @@ const Mark = {
|
|
|
82
84
|
});
|
|
83
85
|
}
|
|
84
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* The letter each setting of the view takes in the view field of a link, in the order a link writes them. Links in
|
|
89
|
+
* papers and mails have to open as they were sent: a letter is never reused for something else, only new ones are added.
|
|
90
|
+
*/
|
|
91
|
+
const ViewFlags = { forward: '>', removal: '-', dim: 'd', replOpen: 'r', wholeSlice: 'a', inline: 'i' };
|
|
85
92
|
/**
|
|
86
93
|
* Everything about flowR's playground that is not the page itself: what a link to it carries, and how
|
|
87
94
|
* one is written. The page reads back exactly what {@link Playground.link} writes.
|
|
@@ -101,6 +108,14 @@ exports.Playground = {
|
|
|
101
108
|
Mark,
|
|
102
109
|
/** the boxes of the page a mark can point at */
|
|
103
110
|
Box: PlaygroundBox,
|
|
111
|
+
/** the view field's letters for the settings of `view` that are on */
|
|
112
|
+
viewFlags(view) {
|
|
113
|
+
return Object.entries(ViewFlags).filter(([setting]) => view[setting]).map(([, letter]) => letter).join('');
|
|
114
|
+
},
|
|
115
|
+
/** which settings of the view the letters of a view field turn on */
|
|
116
|
+
readView(flags) {
|
|
117
|
+
return Object.fromEntries(Object.entries(ViewFlags).map(([setting, letter]) => [setting, flags.includes(letter)]));
|
|
118
|
+
},
|
|
104
119
|
/**
|
|
105
120
|
* The link that opens the playground on exactly this: a script, what it points at, where its cursor
|
|
106
121
|
* sits, and how the page is laid out.
|
|
@@ -112,7 +127,7 @@ exports.Playground = {
|
|
|
112
127
|
const view = [
|
|
113
128
|
split === undefined ? '' : String(split),
|
|
114
129
|
repl === undefined ? '' : String(repl),
|
|
115
|
-
|
|
130
|
+
exports.Playground.viewFlags({ forward, dim, replOpen, wholeSlice })
|
|
116
131
|
];
|
|
117
132
|
while (view.length > 0 && view[view.length - 1].length === 0) {
|
|
118
133
|
view.pop();
|
package/util/version.js
CHANGED
|
@@ -43,9 +43,9 @@ const sigdb_download_1 = require("../project/sigdb/sigdb-download");
|
|
|
43
43
|
const doc_files_1 = require("../documentation/doc-util/doc-files");
|
|
44
44
|
const strings_1 = require("./text/strings");
|
|
45
45
|
// this is automatically replaced with the current version by release-it
|
|
46
|
-
const version = '2.16.
|
|
46
|
+
const version = '2.16.5';
|
|
47
47
|
// this is automatically replaced with the release date by release-it (scripts/bump-version.ts)
|
|
48
|
-
const versionDate = '2026-10-
|
|
48
|
+
const versionDate = '2026-10-22T17:19:41Z';
|
|
49
49
|
/**
|
|
50
50
|
* Retrieves the current flowR version as a new {@link SemVer} object.
|
|
51
51
|
*/
|