@thi.ng/pointfree-lang 2.2.66 → 2.3.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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-29T16:25:48Z
3
+ - **Last updated**: 2025-02-13T16:03:11Z
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,13 @@ 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.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.3.0) (2025-02-11)
15
+
16
+ #### 🚀 Features
17
+
18
+ - update CLI wrapper ([9de9de2](https://github.com/thi-ng/umbrella/commit/9de9de2))
19
+ - check if `bun` is available, otherwise fallback to `node`
20
+
14
21
  ### [2.2.38](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.2.38) (2024-06-21)
15
22
 
16
23
  #### ♻️ Refactoring
package/bin/pointfree CHANGED
@@ -2,11 +2,19 @@
2
2
 
3
3
  # https://stackoverflow.com/a/246128/294515
4
4
  SOURCE="${BASH_SOURCE[0]}"
5
- while [ -h "$SOURCE" ]; do
5
+ while [ -L "$SOURCE" ]; do
6
6
  DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
7
7
  SOURCE="$(readlink "$SOURCE")"
8
8
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
9
9
  done
10
10
  DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
11
+ DIR="$(dirname $DIR)"
11
12
 
12
- /usr/bin/env node "$DIR/../cli.js" "$DIR" "$@"
13
+ # prefer using bun
14
+ if [ -x "$(command -v bun)" ]; then
15
+ CMD=bun
16
+ else
17
+ CMD=node
18
+ fi
19
+
20
+ /usr/bin/env $CMD "$DIR/cli.js" "$DIR" "$@"
package/cli.js CHANGED
@@ -4,9 +4,9 @@ import { readJSON, readText, writeFile } from "@thi.ng/file-io";
4
4
  import { LogLevel } from "@thi.ng/logger";
5
5
  import { ensureStack } from "@thi.ng/pointfree";
6
6
  import { readFileSync, readdirSync } from "node:fs";
7
- import { resolve } from "node:path";
7
+ import { join } from "node:path";
8
8
  import { ffi, run, runU } from "./runtime.js";
9
- const PKG = readJSON(resolve(process.argv[2], "../package.json"));
9
+ const PKG = readJSON(join(process.argv[2], "package.json"));
10
10
  const CMD = {
11
11
  desc: "",
12
12
  opts: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/pointfree-lang",
3
- "version": "2.2.66",
3
+ "version": "2.3.1",
4
4
  "description": "Forth style syntax layer/compiler & CLI for the @thi.ng/pointfree DSL",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,18 +43,18 @@
43
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@thi.ng/api": "^8.11.19",
47
- "@thi.ng/args": "^2.3.58",
48
- "@thi.ng/bench": "^3.6.12",
49
- "@thi.ng/errors": "^2.5.25",
50
- "@thi.ng/file-io": "^2.1.26",
51
- "@thi.ng/logger": "^3.1.0",
52
- "@thi.ng/pointfree": "^3.1.101"
46
+ "@thi.ng/api": "^8.11.20",
47
+ "@thi.ng/args": "^2.3.59",
48
+ "@thi.ng/bench": "^3.6.13",
49
+ "@thi.ng/errors": "^2.5.26",
50
+ "@thi.ng/file-io": "^2.1.27",
51
+ "@thi.ng/logger": "^3.1.1",
52
+ "@thi.ng/pointfree": "^3.1.102"
53
53
  },
54
54
  "devDependencies": {
55
- "esbuild": "^0.24.2",
55
+ "esbuild": "^0.25.0",
56
56
  "pegjs": "0.11.0-master.f69239d",
57
- "typedoc": "^0.27.6",
57
+ "typedoc": "^0.27.7",
58
58
  "typescript": "^5.7.3"
59
59
  },
60
60
  "keywords": [
@@ -110,5 +110,5 @@
110
110
  "parent": "@thi.ng/pointfree",
111
111
  "year": 2018
112
112
  },
113
- "gitHead": "dcc1dbfa6eae31ac65e12843987b94d4a7edc144\n"
113
+ "gitHead": "9a0b33253fef092aaf301decf6ecd54317874d4c\n"
114
114
  }