difit 3.1.9 → 3.1.11

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.
Files changed (29) hide show
  1. package/README.ja.md +30 -13
  2. package/README.ko.md +30 -13
  3. package/README.md +30 -13
  4. package/README.zh.md +30 -13
  5. package/dist/cli/index.js +56 -46
  6. package/dist/cli/index.test.js +143 -56
  7. package/dist/cli/utils.d.ts +4 -7
  8. package/dist/cli/utils.js +17 -98
  9. package/dist/client/assets/{index-B1Ye1njT.js → index-0eidGb4G.js} +30 -30
  10. package/dist/client/assets/{prism-csharp-Dv4F6oYg.js → prism-csharp-Bz_zphOC.js} +1 -1
  11. package/dist/client/assets/{prism-hcl-BKiQPDt1.js → prism-hcl-HO7lwwhc.js} +1 -1
  12. package/dist/client/assets/{prism-java-CsLA9BYF.js → prism-java-Dh0Q2eOX.js} +1 -1
  13. package/dist/client/assets/{prism-perl-CjbksjRr.js → prism-perl-D_qbRz8N.js} +1 -1
  14. package/dist/client/assets/{prism-php-Blls7Q4g.js → prism-php-Dgr7EUBn.js} +1 -1
  15. package/dist/client/assets/{prism-ruby-DVHs5uYA.js → prism-ruby-CaFchRnn.js} +1 -1
  16. package/dist/client/assets/{prism-solidity-BxgmEX2j.js → prism-solidity-CDfI790k.js} +1 -1
  17. package/dist/client/index.html +1 -1
  18. package/dist/server/generated-file-check.d.ts +2 -1
  19. package/dist/server/git-diff.js +38 -22
  20. package/dist/server/server.d.ts +1 -0
  21. package/dist/server/server.js +17 -10
  22. package/dist/server/server.test.js +104 -0
  23. package/dist/tui/App.js +7 -10
  24. package/dist/tui/components/SideBySideDiffViewer.js +8 -8
  25. package/dist/tui/components/StatusBar.js +1 -5
  26. package/dist/types/diff.d.ts +1 -0
  27. package/dist/utils/commentFormatting.js +1 -3
  28. package/dist/utils/suggestionUtils.d.ts +2 -1
  29. package/package.json +39 -48
package/package.json CHANGED
@@ -1,22 +1,39 @@
1
1
  {
2
2
  "name": "difit",
3
- "version": "3.1.9",
3
+ "version": "3.1.11",
4
4
  "description": "A lightweight command-line tool that spins up a local web server to display Git commit diffs in a GitHub-like Files changed view",
5
- "type": "module",
6
- "engines": {
7
- "node": ">=21.0.0"
8
- },
9
- "bin": {
10
- "difit": "./dist/cli/index.js"
11
- },
12
- "main": "./dist/cli/index.js",
5
+ "keywords": [
6
+ "cli",
7
+ "code-review",
8
+ "diff",
9
+ "diff-viewer",
10
+ "git",
11
+ "github",
12
+ "react",
13
+ "review",
14
+ "tailwind"
15
+ ],
13
16
  "homepage": "https://github.com/yoshiko-pg/difit",
17
+ "bugs": {
18
+ "url": "https://github.com/yoshiko-pg/difit/issues"
19
+ },
20
+ "license": "MIT",
21
+ "author": "yoshiko-pg",
14
22
  "repository": {
15
23
  "type": "git",
16
24
  "url": "https://github.com/yoshiko-pg/difit.git"
17
25
  },
18
- "bugs": {
19
- "url": "https://github.com/yoshiko-pg/difit/issues"
26
+ "bin": {
27
+ "difit": "./dist/cli/index.js"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "README.md"
32
+ ],
33
+ "type": "module",
34
+ "main": "./dist/cli/index.js",
35
+ "publishConfig": {
36
+ "access": "public"
20
37
  },
21
38
  "scripts": {
22
39
  "dev": "node scripts/dev.js",
@@ -24,10 +41,10 @@
24
41
  "build": "tsc -b && vite build",
25
42
  "build:cli": "tsc --project tsconfig.cli.json",
26
43
  "start": "pnpm run build && node dist/cli/index.js",
27
- "lint": "eslint .",
28
- "lint:fix": "eslint . --fix",
29
- "format": "prettier --write .",
30
- "typecheck": "tsc -b",
44
+ "check": "oxlint . --type-aware --type-check --deny-warnings --report-unused-disable-directives",
45
+ "check:fix": "oxlint . --type-aware --type-check --deny-warnings --report-unused-disable-directives --fix",
46
+ "format": "oxfmt --check .",
47
+ "format:fix": "oxfmt --write .",
31
48
  "knip": "knip --use-tsconfig-files",
32
49
  "test": "vitest run",
33
50
  "test:watch": "vitest",
@@ -42,7 +59,6 @@
42
59
  },
43
60
  "dependencies": {
44
61
  "@floating-ui/react": "^0.27.16",
45
- "@octokit/rest": "^22.0.0",
46
62
  "@parcel/watcher": "^2.5.1",
47
63
  "commander": "^14.0.0",
48
64
  "diff": "^8.0.2",
@@ -60,8 +76,6 @@
60
76
  "simple-git": "^3.28.0"
61
77
  },
62
78
  "devDependencies": {
63
- "@eslint/js": "^9.30.1",
64
- "@prettier/plugin-oxc": "^0.1.0",
65
79
  "@tailwindcss/postcss": "^4.1.11",
66
80
  "@testing-library/jest-dom": "^6.6.3",
67
81
  "@testing-library/react": "^16.3.0",
@@ -71,48 +85,25 @@
71
85
  "@types/node": "^24.0.8",
72
86
  "@types/react": "^19.1.8",
73
87
  "@types/react-dom": "^19.1.6",
74
- "@typescript-eslint/eslint-plugin": "^8.35.1",
75
- "@typescript-eslint/parser": "^8.35.1",
76
88
  "@vitejs/plugin-react": "^5.0.0",
77
89
  "autoprefixer": "^10.4.21",
78
- "eslint": "^9.30.0",
79
- "eslint-config-prettier": "^10.1.5",
80
- "eslint-plugin-import": "^2.32.0",
81
- "eslint-plugin-react": "^7.37.5",
82
- "eslint-plugin-react-hooks": "^7.0.0",
83
- "eslint-plugin-unused-imports": "^4.1.4",
84
- "globals": "^17.0.0",
90
+ "eslint-plugin-react-hooks": "^7.0.1",
85
91
  "happy-dom": "^20.0.0",
86
92
  "knip": "^5.83.0",
87
93
  "lefthook": "^2.0.0",
94
+ "oxfmt": "^0.34.0",
95
+ "oxlint": "^1.49.0",
96
+ "oxlint-tsgolint": "^0.14.1",
88
97
  "playwright": "^1.54.1",
89
98
  "postcss": "^8.5.6",
90
- "prettier": "^3.6.2",
91
99
  "tailwindcss": "^4.1.11",
92
100
  "typescript": "^5.8.3",
93
101
  "undici": "^7.11.0",
94
102
  "vite": "^7.0.0",
95
103
  "vitest": "^4.0.6"
96
104
  },
97
- "files": [
98
- "dist",
99
- "README.md"
100
- ],
101
- "keywords": [
102
- "git",
103
- "diff",
104
- "cli",
105
- "review",
106
- "github",
107
- "code-review",
108
- "tailwind",
109
- "react",
110
- "diff-viewer"
111
- ],
112
- "author": "yoshiko-pg",
113
- "license": "MIT",
114
- "publishConfig": {
115
- "access": "public"
105
+ "engines": {
106
+ "node": ">=21.0.0"
116
107
  },
117
- "packageManager": "pnpm@10.28.2"
108
+ "packageManager": "pnpm@10.29.3"
118
109
  }