git-truck 3.2.1 → 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 +798 -2463
  36. package/package.json +122 -98
  37. package/build/client/assets/RepoTabs-CxO-avi8.js +0 -1
  38. package/build/client/assets/browse-Bvc2-R26.js +0 -1
  39. package/build/client/assets/browse-n3hSveGT.js +0 -9
  40. package/build/client/assets/clear-cache-BJQQzFka.js +0 -1
  41. package/build/client/assets/clear-cache-DkN7P69Z.js +0 -1
  42. package/build/client/assets/dist-Bpk5WHYg.js +0 -2
  43. package/build/client/assets/jsx-runtime-s_YwNCZb.js +0 -26
  44. package/build/client/assets/manifest-1770f4ad.js +0 -1
  45. package/build/client/assets/react-dom-B9ui1jR3.js +0 -1
  46. package/build/client/assets/root-BK0u4vgl.css +0 -1
  47. package/build/client/assets/root-CGqKHKfX.js +0 -3
  48. package/build/client/assets/truck-BgAoc4Gr.gif +0 -0
  49. package/build/client/assets/ui-Dwu6e1gT.js +0 -1
  50. package/build/client/assets/view-PpNM0R4w.js +0 -1
  51. package/build/client/assets/view._index-jmCCN9mA.js +0 -1
  52. package/build/client/assets/view.commits-CUFKse0G.js +0 -1
  53. package/build/client/assets/view.details-12HQVV2q.js +0 -1
  54. package/build/server/assets/server-build-UP6uUcLa.js +0 -15737
  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.2.1",
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,101 +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"
60
+ "@duckdb/node-api": "1.5.1-r.1"
77
61
  },
78
62
  "devDependencies": {
79
- "@eslint/js": "^9.39.2",
80
- "@playwright/test": "^1.58.2",
81
- "@react-router/dev": "^7.13.0",
82
- "@react-router/fs-routes": "^7.13.0",
83
- "@react-router/node": "^7.13.0",
84
- "@tailwindcss/vite": "^4.1.18",
85
- "@types/byte-size": "^8.1.2",
86
- "@types/d3": "^7.4.3",
87
- "@types/d3-hierarchy": "^3.1.7",
88
- "@types/express": "^5.0.6",
89
- "@types/node": "^25.3.0",
90
- "@types/randomstring": "^1.3.0",
91
- "@types/react": "^19.2.14",
92
- "@types/react-dom": "^19.2.3",
93
- "@types/semver": "^7.7.1",
94
- "@types/sha1": "^1.1.5",
95
- "@types/yargs-parser": "^21.0.3",
96
- "cross-env": "^10.1.0",
97
- "d3-hierarchy": "^3.1.2",
98
- "dotenv": "^17.2.4",
99
- "eslint": "^9.39.2",
100
- "eslint-import-resolver-typescript": "^4.4.4",
101
- "eslint-plugin-import": "^2.32.0",
102
- "eslint-plugin-jsx-a11y": "^6.10.2",
103
- "eslint-plugin-react": "^7.37.5",
104
- "eslint-plugin-react-hooks": "^7.0.1",
105
- "get-port": "^7.1.0",
106
- "globals": "^17.3.0",
107
- "husky": "^9.1.7",
108
- "isbot": "^5.1.35",
109
- "knip": "^5.83.1",
110
- "language-map": "^1.5.0",
111
- "lint-staged": "^16.2.7",
112
- "npm-check-updates": "^19.3.2",
113
- "open": "^11.0.0",
114
- "prettier": "^3.8.1",
115
- "prettier-plugin-tailwindcss": "^0.7.2",
116
- "react": "^19.2.4",
117
- "react-dom": "^19.2.4",
118
- "react-router": "^7.13.0",
119
- "react-router-devtools": "^6.2.0",
120
- "react-use-size": "^5.0.1",
121
- "tailwindcss": "^4.1.18",
122
- "tsdown": "^0.16.8",
123
- "tsx": "^4.21.0",
124
- "typescript": "^5.9.3",
125
- "typescript-eslint": "^8.55.0",
126
- "vite": "npm:rolldown-vite@7.3.1",
127
- "vite-tsconfig-paths": "^6.1.1",
128
- "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"
129
139
  },
130
140
  "tsdown": {
131
141
  "entry": "./src/cli.ts",
132
142
  "outDir": ".",
133
143
  "treeshake": true,
134
144
  "clean": false,
135
- "external": [
136
- "vite",
137
- "lightningcss"
138
- ],
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
+ },
139
164
  "cjs-interop": true,
140
165
  "env": {
141
166
  "NODE_ENV": "production"
@@ -150,12 +175,6 @@
150
175
  "prettier-plugin-tailwindcss"
151
176
  ]
152
177
  },
153
- "lint-staged": {
154
- "{src,scripts}/**/*.{ts,tsx,js,mjs}": [
155
- "eslint --cache --fix",
156
- "prettier --write"
157
- ]
158
- },
159
178
  "knip": {
160
179
  "entry": [
161
180
  "src/server/app.ts",
@@ -173,5 +192,10 @@
173
192
  "bugs": {
174
193
  "url": "https://github.com/git-truck/git-truck/issues"
175
194
  },
176
- "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
+ }
177
201
  }
@@ -1 +0,0 @@
1
- import{M as e,N as t,W as n,j as r,t as i}from"./jsx-runtime-s_YwNCZb.js";import{i as a}from"./react-dom-B9ui1jR3.js";import{yn as o,zn as s}from"./dist-Bpk5WHYg.js";import{C as c}from"./browse-n3hSveGT.js";var l=n(i());function u(){let n=t(),i=r(),u=e(a(`/view/commits`));return(0,l.jsx)(c,{large:!0,group:{"/details":`Details`,"/commits":`Commits`},iconMap:{"/details":o,"/commits":s},defaultValue:u?`/commits`:`/details`,ariaLabel:`Select details tab`,onChange:e=>{n(a(`/view${e}`)+i.search,{state:i.state})}})}export{u as t};
@@ -1 +0,0 @@
1
- import"./jsx-runtime-s_YwNCZb.js";import"./react-dom-B9ui1jR3.js";import"./dist-Bpk5WHYg.js";import{n as e,t}from"./browse-n3hSveGT.js";export{t as default,e as meta};