@thi.ng/pointfree-lang 2.3.30 → 2.3.32
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/CHANGELOG.md +7 -1
- package/README.md +11 -6
- package/cli.js +11 -6
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-08-
|
|
3
|
+
- **Last updated**: 2025-08-06T18:02:31Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -11,6 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
11
11
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
12
|
and/or version bumps of transitive dependencies.
|
|
13
13
|
|
|
14
|
+
### [2.3.31](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.3.31) (2025-08-06)
|
|
15
|
+
|
|
16
|
+
#### ♻️ Refactoring
|
|
17
|
+
|
|
18
|
+
- update CLI internals, rename `--debug` => `--verbose` ([44c07b8](https://github.com/thi-ng/umbrella/commit/44c07b8))
|
|
19
|
+
|
|
14
20
|
### [2.3.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.3.15) (2025-06-27)
|
|
15
21
|
|
|
16
22
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -129,13 +129,18 @@ The package includes a `pointfree` CLI command to evaluate strings or files:
|
|
|
129
129
|
```text
|
|
130
130
|
npx @thi.ng/pointfree-lang
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
█ █ █ │
|
|
133
|
+
██ █ │
|
|
134
|
+
█ █ █ █ █ █ █ █ │ @thi.ng/pointfree-lang v2.3.30
|
|
135
|
+
█ █ █ █ █ █ █ █ █ │ Forth-style DSL & CLI
|
|
136
|
+
█ │
|
|
137
|
+
█ █ │
|
|
133
138
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
Usage: pointfree [opts] [file]
|
|
140
|
+
|
|
141
|
+
-v, --verbose Display extra information
|
|
142
|
+
|
|
143
|
+
-e STR, --exec STR Execute given string
|
|
139
144
|
```
|
|
140
145
|
|
|
141
146
|
For CLI usage, in addition to the other language features discussed further below, the following words are available too (more to be added):
|
package/cli.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ARG_VERBOSE,
|
|
3
|
+
cliApp,
|
|
4
|
+
configureLogLevel,
|
|
5
|
+
string,
|
|
6
|
+
THING_HEADER
|
|
7
|
+
} from "@thi.ng/args";
|
|
2
8
|
import { timedResult } from "@thi.ng/bench";
|
|
3
9
|
import { readJSON, readText, writeFile } from "@thi.ng/file-io";
|
|
4
|
-
import { LogLevel } from "@thi.ng/logger";
|
|
5
10
|
import { ensureStack } from "@thi.ng/pointfree";
|
|
6
|
-
import {
|
|
11
|
+
import { readdirSync, readFileSync } from "node:fs";
|
|
7
12
|
import { join } from "node:path";
|
|
8
13
|
import { ffi, run, runU } from "./runtime.js";
|
|
9
14
|
const PKG = readJSON(join(process.argv[2], "package.json"));
|
|
@@ -78,8 +83,8 @@ cliApp({
|
|
|
78
83
|
name: "pointfree",
|
|
79
84
|
start: 3,
|
|
80
85
|
opts: {
|
|
81
|
-
|
|
82
|
-
exec: string({ alias: "e",
|
|
86
|
+
...ARG_VERBOSE,
|
|
87
|
+
exec: string({ alias: "e", desc: "Execute given string" })
|
|
83
88
|
},
|
|
84
89
|
commands: { CMD },
|
|
85
90
|
single: true,
|
|
@@ -92,7 +97,7 @@ Usage: pointfree [opts] [file]
|
|
|
92
97
|
paramWidth: 24
|
|
93
98
|
},
|
|
94
99
|
ctx: async (ctx) => {
|
|
95
|
-
|
|
100
|
+
configureLogLevel(ctx.logger, ctx.opts.verbose);
|
|
96
101
|
return ctx;
|
|
97
102
|
}
|
|
98
103
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/pointfree-lang",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.32",
|
|
4
4
|
"description": "Forth style syntax layer/compiler & CLI for the @thi.ng/pointfree DSL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@thi.ng/api": "^8.12.1",
|
|
47
|
-
"@thi.ng/args": "^2.
|
|
47
|
+
"@thi.ng/args": "^2.9.1",
|
|
48
48
|
"@thi.ng/bench": "^3.6.28",
|
|
49
49
|
"@thi.ng/errors": "^2.5.41",
|
|
50
|
-
"@thi.ng/file-io": "^2.2.
|
|
50
|
+
"@thi.ng/file-io": "^2.2.7",
|
|
51
51
|
"@thi.ng/logger": "^3.1.16",
|
|
52
|
-
"@thi.ng/pointfree": "^3.1.
|
|
52
|
+
"@thi.ng/pointfree": "^3.1.120"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^24.1.0",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"parent": "@thi.ng/pointfree",
|
|
112
112
|
"year": 2018
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "9a998c33c7a524c95b552b9cbdc2734d28a5dafc\n"
|
|
115
115
|
}
|