@thi.ng/hdiff 1.0.7 → 1.1.0
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 +8 -1
- package/README.md +1 -1
- package/bin/hdiff +10 -2
- package/cli.js +1 -1
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-
|
|
3
|
+
- **Last updated**: 2025-02-11T10:30:07Z
|
|
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
|
+
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdiff@1.1.0) (2025-02-11)
|
|
15
|
+
|
|
16
|
+
#### 🚀 Features
|
|
17
|
+
|
|
18
|
+
- update CLI wrapper ([c92991c](https://github.com/thi-ng/umbrella/commit/c92991c))
|
|
19
|
+
- check if `bun` is available, otherwise fallback to `node`
|
|
20
|
+
|
|
14
21
|
### [0.3.129](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdiff@0.3.129) (2024-06-21)
|
|
15
22
|
|
|
16
23
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 201 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
package/bin/hdiff
CHANGED
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
# https://stackoverflow.com/a/246128/294515
|
|
4
4
|
SOURCE="${BASH_SOURCE[0]}"
|
|
5
|
-
while [ -
|
|
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
|
-
|
|
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
|
@@ -5,7 +5,7 @@ import { generateHtml } from "./html.js";
|
|
|
5
5
|
let src1;
|
|
6
6
|
let src2;
|
|
7
7
|
let headerBody;
|
|
8
|
-
const args = process.argv.slice(
|
|
8
|
+
const args = process.argv.slice(3);
|
|
9
9
|
if (args.length === 3) {
|
|
10
10
|
const [path, rev1, rev2] = args;
|
|
11
11
|
src1 = execSync(`git show ${rev1}:${path}`).toString();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hdiff",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "String diffing w/ hiccup output for further processing, e.g. with @thi.ng/hdom, @thi.ng/hiccup. Includes CLI util to generate HTML, with theme support and code folding",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,21 +34,20 @@
|
|
|
34
34
|
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
35
35
|
"clean": "bun ../../tools/src/clean-package.ts",
|
|
36
36
|
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
37
|
-
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
38
37
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
39
38
|
"pub": "yarn npm publish --access public",
|
|
40
39
|
"test": "bun test",
|
|
41
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
42
41
|
},
|
|
43
42
|
"dependencies": {
|
|
44
|
-
"@thi.ng/api": "^8.11.
|
|
45
|
-
"@thi.ng/diff": "^5.1.
|
|
46
|
-
"@thi.ng/hiccup": "^5.3.
|
|
47
|
-
"@thi.ng/hiccup-css": "^2.7.
|
|
48
|
-
"@thi.ng/strings": "^3.9.
|
|
43
|
+
"@thi.ng/api": "^8.11.19",
|
|
44
|
+
"@thi.ng/diff": "^5.1.86",
|
|
45
|
+
"@thi.ng/hiccup": "^5.3.2",
|
|
46
|
+
"@thi.ng/hiccup-css": "^2.7.37",
|
|
47
|
+
"@thi.ng/strings": "^3.9.4"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
51
|
-
"@types/node": "^22.10.
|
|
50
|
+
"@types/node": "^22.10.10",
|
|
52
51
|
"esbuild": "^0.24.2",
|
|
53
52
|
"typedoc": "^0.27.6",
|
|
54
53
|
"typescript": "^5.7.3"
|
|
@@ -97,5 +96,5 @@
|
|
|
97
96
|
"status": "alpha",
|
|
98
97
|
"year": 2018
|
|
99
98
|
},
|
|
100
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "035e34d5cbc5d1a7658ad9be0a1db160cee9ba52\n"
|
|
101
100
|
}
|