git-truck 3.3.0 → 4.0.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.
Files changed (61) hide show
  1. package/README.md +47 -28
  2. package/build/client/assets/ChevronButton-ANoRM4oe.js +1 -0
  3. package/build/client/assets/CollapsibleHeader-Bu4p-oqI.js +1 -0
  4. package/build/client/assets/Tooltip-DRu0grUy.js +5 -0
  5. package/build/client/assets/api.abort-CX5xkHwa.js +1 -0
  6. package/build/client/assets/api.abort-DxAkeS-W.js +1 -0
  7. package/build/client/assets/api.commits-DAF4WH2m.js +1 -0
  8. package/build/client/assets/api.commits-iEgBtL-A.js +1 -0
  9. package/build/client/assets/api.progress-BENNzkFW.js +1 -0
  10. package/build/client/assets/api.progress-DICNnGq5.js +1 -0
  11. package/build/client/assets/browse-DGrdg-dm.js +1 -0
  12. package/build/client/assets/browse-Mvd04mK4.js +1 -0
  13. package/build/client/assets/clear-cache-BTEuD7P-.js +1 -0
  14. package/build/client/assets/clear-cache-BdU23_cx.js +1 -0
  15. package/build/client/assets/crashedTruck_48x-DZ8PrkDC.gif +0 -0
  16. package/build/client/assets/dist-QDdB6dtJ.js +2 -0
  17. package/build/client/assets/drivingTruck_32x-C9OqTj6H.gif +0 -0
  18. package/build/client/assets/drivingTruck_48x-CILwQUl6.gif +0 -0
  19. package/build/client/assets/{entry.client-Ci1gLbyI.js → entry.client-GhdqqEEy.js} +4 -4
  20. package/build/client/assets/jsx-runtime-GK6fC0y1.js +26 -0
  21. package/build/client/assets/loadingTruck_48x-ClwSXdP8.gif +0 -0
  22. package/build/client/assets/manifest-a38e366c.js +1 -0
  23. package/build/client/assets/react-YTRJEZSD.js +1 -0
  24. package/build/client/assets/react-dom-QjzVRb79.js +1 -0
  25. package/build/client/assets/root-CA2KruPD.js +3 -0
  26. package/build/client/assets/root-CV-2KSQa.css +2 -0
  27. package/build/client/assets/ui-HOyuwkxV.js +1 -0
  28. package/build/client/assets/unloadingTruck_48x-stS0XDD5.gif +0 -0
  29. package/build/client/assets/util-CPW5oMgy.js +44 -0
  30. package/build/client/assets/view-Cwcd1vTK.js +4 -0
  31. package/build/client/assets/viewParams-BaE5Z0S4.js +1 -0
  32. package/build/server/assets/dist-Cm7_4uo5.js +6716 -0
  33. package/build/server/assets/server-build-D8iMgYfe.js +65279 -0
  34. package/build/server/index.js +23040 -4
  35. package/cli.mjs +795 -2428
  36. package/package.json +122 -99
  37. package/build/client/assets/GitTruckInfo-DSTHQLpb.js +0 -2
  38. package/build/client/assets/RepoTabs-CAVKlzaP.js +0 -1
  39. package/build/client/assets/browse-BPS_2Q2o.js +0 -1
  40. package/build/client/assets/browse-DtF-O2nh.js +0 -9
  41. package/build/client/assets/clear-cache-C8-c8bzY.js +0 -1
  42. package/build/client/assets/clear-cache-DczfzTH1.js +0 -1
  43. package/build/client/assets/jsx-runtime-s_YwNCZb.js +0 -26
  44. package/build/client/assets/manifest-708752f7.js +0 -1
  45. package/build/client/assets/react-dom-B9ui1jR3.js +0 -1
  46. package/build/client/assets/root-BBgpPS0e.js +0 -3
  47. package/build/client/assets/root-BDi1Y-Zk.css +0 -1
  48. package/build/client/assets/truck-BgAoc4Gr.gif +0 -0
  49. package/build/client/assets/ui-mrRo7bBy.js +0 -1
  50. package/build/client/assets/view-tqZGjwcM.js +0 -1
  51. package/build/client/assets/view._index-jmCCN9mA.js +0 -1
  52. package/build/client/assets/view.commits-CsXn1fsk.js +0 -1
  53. package/build/client/assets/view.details-DurbDplo.js +0 -1
  54. package/build/server/assets/server-build-v6Kp-efC.js +0 -16049
  55. /package/build/client/assets/{_-CT17qCl3.js → _-BvRk9kiK.js} +0 -0
  56. /package/build/client/assets/{_._well-known._-8QUD84tm.js → _._well-known._-BvRk9kiK.js} +0 -0
  57. /package/build/client/assets/{_index-VLoUE117.js → _index-BvRk9kiK.js} +0 -0
  58. /package/build/client/assets/{_path-DzSNgPJP.js → _path-BvRk9kiK.js} +0 -0
  59. /package/build/client/assets/{commitcount-B_3CeIvr.js → api.commit-intervals-BvRk9kiK.js} +0 -0
  60. /package/build/client/assets/{commits-DDIAHyHU.js → api.contributor-distribution-BvRk9kiK.js} +0 -0
  61. /package/build/client/assets/{view.progress-CEmcNaLe.js → api.metrics-BvRk9kiK.js} +0 -0
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "git-truck",
3
- "version": "3.3.0",
3
+ "version": "4.0.0",
4
4
  "private": false,
5
5
  "description": "Visualizing a Git repository",
6
6
  "license": "MIT",
7
7
  "main": "./cli.mjs",
8
- "bin": "./cli.mjs",
8
+ "bin": {
9
+ "git-truck": "cli.mjs"
10
+ },
9
11
  "files": [
10
12
  "LICENSE",
11
13
  "README.md",
@@ -23,14 +25,16 @@
23
25
  "pretest:e2e": "npm run build",
24
26
  "pretest:e2e:headed": "npm run build",
25
27
  "build": "cross-env NODE_ENV=production npm run build-vite && npm run build-cli",
26
- "build:dev": "cross-env NODE_ENV=development npm run build-vite && npm run build-cli",
27
- "build-cli": "cross-env NODE_ENV=production tsdown",
28
+ "build:dev": "cross-env NODE_ENV=development npm run build-vite && npm run build-cli:dev",
29
+ "build-cli": "cross-env NODE_ENV=production tsdown --env.NODE_ENV=production",
30
+ "build-cli:dev": "cross-env NODE_ENV=development tsdown --env.NODE_ENV=development",
28
31
  "build-vite": "react-router build",
29
- "dev": "cross-env NODE_ENV=development ./src/cli.ts",
30
- "dev:bun": "cross-env NODE_ENV=development bun ./src/cli.ts",
31
- "dev:verbose": "cross-env NODE_ENV=development tsx ./src/cli.ts --log debug",
32
- "start": "cross-env NODE_ENV=production node .",
33
- "clean": "npx -y rimraf build .react-router .cache .temp cli.js cli.cjs",
32
+ "dev": "bun dev:portless",
33
+ "dev:portless": "bunx --bun portless proxy start --no-tls && bunx --bun portless git-truck bun dev:bun",
34
+ "dev:bun": "NODE_ENV=development bun --bun ./src/cli.ts",
35
+ "dev:node": "cross-env NODE_ENV=development tsx --env-file-if-exists=.env --env-file-if-exists=.env.local ./src/cli.ts",
36
+ "start": "cross-env NODE_ENV=production node . --env-file-if-exists=.env --env-file-if-exists=.env.local",
37
+ "clean": "npx -y rimraf build .react-router .cache .temp cli.mjs cli.js cli.cjs",
34
38
  "typecheck": "react-router typegen && tsc -b",
35
39
  "typegen:watch": "react-router typegen --watch",
36
40
  "pub-pre": "npm version prerelease && npm publish --tag next",
@@ -41,102 +45,122 @@
41
45
  "prepublishOnly": "npm run clean && npm run build",
42
46
  "format:write": "prettier --log-level warn --write src scripts e2e",
43
47
  "lint:fix": "eslint --fix --cache",
44
- "check:write": "npm run knip:write && npm run lint:fix && npm run format:write",
45
- "check": "npm run knip && npm run lint && npm run format:check",
48
+ "check:write": "react-router typegen && npm run knip:write && npm run lint:fix && npm run format:write",
49
+ "check": "react-router typegen && npm run knip && npm run lint && npm run format:check",
46
50
  "format:check": "prettier --check src scripts e2e",
47
51
  "lint": "eslint --cache",
48
- "prepare": "node .husky/install.mjs",
49
- "update-deps": "npx npm-check-updates -i",
52
+ "update-deps": "bun update --latest -i",
50
53
  "knip": "knip",
51
- "knip:write": "knip --fix"
54
+ "knip:write": "knip --fix",
55
+ "commit": "cz",
56
+ "changeset": "bunx @changesets/cli && git add .changeset && git commit -m \"chore: add changeset\"",
57
+ "release": "bun run build && bunx @changesets/cli publish"
52
58
  },
53
59
  "dependencies": {
54
- "@duckdb/node-api": "^1.4.2-r.1",
55
- "@headlessui/react": "^2.2.9",
56
- "@mdi/js": "^7.4.47",
57
- "@react-router/express": "^7.13.0",
58
- "a11y-contrast-color": "^1.1.0",
59
- "ansi-colors": "^4.1.3",
60
- "byte-size": "^9.0.1",
61
- "clsx": "^2.1.1",
62
- "color-convert": "^3.1.3",
63
- "d3": "^7.9.0",
64
- "express": "^5.2.1",
65
- "ignore": "^7.0.5",
66
- "nanospinner": "^1.2.2",
67
- "nuqs": "^2.8.8",
68
- "randomstring": "^1.3.1",
69
- "react-colorful": "^5.6.1",
70
- "react-compound-slider": "^3.4.0",
71
- "react-datepicker": "^8.10.0",
72
- "react-tiny-popover": "^8.1.6",
73
- "semver": "^7.7.4",
74
- "sha1": "^1.1.1",
75
- "tailwind-merge": "^3.4.0",
76
- "yargs-parser": "^22.0.0",
77
- "zustand": "^5.0.11"
60
+ "@duckdb/node-api": "1.5.1-r.1"
78
61
  },
79
62
  "devDependencies": {
80
- "@eslint/js": "^9.39.2",
81
- "@playwright/test": "^1.58.2",
82
- "@react-router/dev": "^7.13.0",
83
- "@react-router/fs-routes": "^7.13.0",
84
- "@react-router/node": "^7.13.0",
85
- "@tailwindcss/vite": "^4.1.18",
86
- "@types/byte-size": "^8.1.2",
87
- "@types/d3": "^7.4.3",
88
- "@types/d3-hierarchy": "^3.1.7",
89
- "@types/express": "^5.0.6",
90
- "@types/node": "^25.3.0",
91
- "@types/randomstring": "^1.3.0",
92
- "@types/react": "^19.2.14",
93
- "@types/react-dom": "^19.2.3",
94
- "@types/semver": "^7.7.1",
95
- "@types/sha1": "^1.1.5",
96
- "@types/yargs-parser": "^21.0.3",
97
- "cross-env": "^10.1.0",
98
- "d3-hierarchy": "^3.1.2",
99
- "dotenv": "^17.2.4",
100
- "eslint": "^9.39.2",
101
- "eslint-import-resolver-typescript": "^4.4.4",
102
- "eslint-plugin-import": "^2.32.0",
103
- "eslint-plugin-jsx-a11y": "^6.10.2",
104
- "eslint-plugin-react": "^7.37.5",
105
- "eslint-plugin-react-hooks": "^7.0.1",
106
- "get-port": "^7.1.0",
107
- "globals": "^17.3.0",
108
- "husky": "^9.1.7",
109
- "isbot": "^5.1.35",
110
- "knip": "^5.83.1",
111
- "language-map": "^1.5.0",
112
- "lint-staged": "^16.2.7",
113
- "npm-check-updates": "^19.3.2",
114
- "open": "^11.0.0",
115
- "prettier": "^3.8.1",
116
- "prettier-plugin-tailwindcss": "^0.7.2",
117
- "react": "^19.2.4",
118
- "react-dom": "^19.2.4",
119
- "react-router": "^7.13.0",
120
- "react-router-devtools": "^6.2.0",
121
- "react-use-size": "^5.0.1",
122
- "tailwindcss": "^4.1.18",
123
- "tsdown": "^0.21.0",
124
- "tsx": "^4.21.0",
125
- "typescript": "^5.9.3",
126
- "typescript-eslint": "^8.55.0",
127
- "vite": "npm:rolldown-vite@7.3.1",
128
- "vite-tsconfig-paths": "^6.1.1",
129
- "vitest": "^4.0.18"
63
+ "@babel/core": "7.29.0",
64
+ "@changesets/cli": "2.30.0",
65
+ "@eslint/js": "9.39.2",
66
+ "@headlessui/react": "2.2.9",
67
+ "@mdi/js": "7.4.47",
68
+ "@playwright/test": "1.58.2",
69
+ "@react-router/dev": "7.15.1",
70
+ "@react-router/express": "7.15.1",
71
+ "@react-router/fs-routes": "7.15.1",
72
+ "@react-router/node": "7.15.1",
73
+ "@rolldown/plugin-babel": "0.2.2",
74
+ "@tailwindcss/vite": "4.3.0",
75
+ "@types/bun": "1.3.10",
76
+ "@types/byte-size": "8.1.2",
77
+ "@types/d3": "7.4.3",
78
+ "@types/d3-hierarchy": "3.1.7",
79
+ "@types/express": "5.0.6",
80
+ "@types/node": "^25.9.1",
81
+ "@types/randomstring": "1.3.0",
82
+ "@types/react": "19.2.15",
83
+ "@types/react-dom": "19.2.3",
84
+ "@types/semver": "7.7.1",
85
+ "@types/sha1": "1.1.5",
86
+ "@vitejs/plugin-react": "6.0.2",
87
+ "ansi-colors": "4.1.3",
88
+ "async-mutex": "0.5.0",
89
+ "babel-plugin-react-compiler": "1.0.0",
90
+ "byte-size": "9.0.1",
91
+ "clsx": "2.1.1",
92
+ "color-convert": "3.1.3",
93
+ "commitizen": "4.3.1",
94
+ "cross-env": "10.1.0",
95
+ "cz-conventional-changelog": "3.3.0",
96
+ "d3": "7.9.0",
97
+ "d3-hierarchy": "3.1.2",
98
+ "eslint": "9.39.2",
99
+ "eslint-import-resolver-typescript": "4.4.4",
100
+ "eslint-plugin-import": "2.32.0",
101
+ "eslint-plugin-jsx-a11y": "6.10.2",
102
+ "eslint-plugin-react": "7.37.5",
103
+ "eslint-plugin-react-hooks": "7.0.1",
104
+ "eslint-plugin-react-you-might-not-need-an-effect": "0.9.3",
105
+ "express": "5.2.1",
106
+ "get-port": "7.1.0",
107
+ "globals": "17.3.0",
108
+ "ignore": "7.0.5",
109
+ "isbot": "5.1.35",
110
+ "knip": "6.1.0",
111
+ "language-map": "1.5.0",
112
+ "nanospinner": "1.2.2",
113
+ "nuqs": "2.8.9",
114
+ "open": "11.0.0",
115
+ "prettier": "3.8.1",
116
+ "prettier-plugin-tailwindcss": "0.7.2",
117
+ "radix-ui": "1.4.3",
118
+ "randomstring": "1.3.1",
119
+ "react": "19.2.6",
120
+ "react-colorful": "5.6.1",
121
+ "react-compound-slider": "3.4.0",
122
+ "react-dom": "19.2.6",
123
+ "react-router": "7.15.1",
124
+ "react-router-devtools": "6.2.0",
125
+ "react-tiny-popover": "8.1.6",
126
+ "react-use-size": "5.0.1",
127
+ "semver": "7.7.4",
128
+ "sha1": "1.1.1",
129
+ "tailwind-merge": "3.4.0",
130
+ "tailwindcss": "4.3.0",
131
+ "temporal-polyfill": "0.3.2",
132
+ "tsdown": "0.22.0",
133
+ "tsx": "4.21.0",
134
+ "typescript": "6.0.3",
135
+ "typescript-eslint": "8.60.0",
136
+ "vite": "8.0.14",
137
+ "vitest": "4.1.7",
138
+ "zustand": "5.0.13"
130
139
  },
131
140
  "tsdown": {
132
141
  "entry": "./src/cli.ts",
133
142
  "outDir": ".",
134
143
  "treeshake": true,
135
144
  "clean": false,
136
- "external": [
137
- "vite",
138
- "lightningcss"
139
- ],
145
+ "minify": true,
146
+ "deps": {
147
+ "onlyBundle": false,
148
+ "alwaysBundle": [
149
+ "ansi-colors",
150
+ "async-mutex",
151
+ "color-convert",
152
+ "express",
153
+ "ignore",
154
+ "nanospinner",
155
+ "semver",
156
+ "yargs-parser"
157
+ ],
158
+ "neverBundle": [
159
+ "vite",
160
+ "lightningcss",
161
+ "/^@duckdb//"
162
+ ]
163
+ },
140
164
  "cjs-interop": true,
141
165
  "env": {
142
166
  "NODE_ENV": "production"
@@ -151,12 +175,6 @@
151
175
  "prettier-plugin-tailwindcss"
152
176
  ]
153
177
  },
154
- "lint-staged": {
155
- "{src,scripts}/**/*.{ts,tsx,js,mjs}": [
156
- "eslint --cache --fix",
157
- "prettier --write"
158
- ]
159
- },
160
178
  "knip": {
161
179
  "entry": [
162
180
  "src/server/app.ts",
@@ -174,5 +192,10 @@
174
192
  "bugs": {
175
193
  "url": "https://github.com/git-truck/git-truck/issues"
176
194
  },
177
- "homepage": "https://github.com/git-truck/git-truck#readme"
195
+ "homepage": "https://github.com/git-truck/git-truck#readme",
196
+ "config": {
197
+ "commitizen": {
198
+ "path": "./node_modules/cz-conventional-changelog"
199
+ }
200
+ }
178
201
  }