Commit 6fe2dbf
fix: tech debt cleanup + security audit (#17)
* refactor: delete dead fish data files and orphaned data copies
Remove 6 unused files (~2,500 lines). Only fish_data_v3.js is imported
anywhere in the codebase — v1, v2, corrupted backup, root data/ copies,
and issue list.md were all dead weight.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: sync yield auto-scaling between Express and Vercel backends
The Vercel API auto-scaled decimal yields < 1 to percentages (0.42 → 42)
but the Express server did not. Same Excel upload now produces consistent
yield values regardless of which backend processes it.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: return 201 status for resource creation in Express server
POST /api/register, /api/save-calc, and /api/user-data now return 201
to match the Vercel API endpoints and HTTP conventions for resource
creation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: standardize CSV export date format between backends
Express server used toLocaleDateString() (date only) while Vercel API
used toLocaleString() (date + time). Standardized on toLocaleString().
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: wire data validation script and update gitignore
Add npm run validate-data script for fish_data_v3 QA checks.
Add favicon-preview.html to gitignore (dev artifact).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: security audit — replace xlsx with exceljs, upgrade vulnerable deps
- Replace xlsx (unmaintained, CVEs) with exceljs for Excel/CSV parsing
in both server/server.js and api/upload-data.js
- Upgrade sqlite3 5.x → 6.x (fixes tar/node-gyp/cacache chain)
- Upgrade bcrypt 5.x → 6.x (fixes @mapbox/node-pre-gyp/tar chain)
- Upgrade multer 2.0 → 2.1
- Drop .xls support (only .xlsx and .csv)
- Run npm audit fix across all three package roots
Remaining unfixable: elliptic via @stackframe/react (no upstream fix,
removed in Cloudflare migration), serialize-javascript via workbox-build
(no upstream fix yet for @rollup/plugin-terser).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2f07a08 commit 6fe2dbf
15 files changed
Lines changed: 4998 additions & 6654 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
50 | 70 | | |
51 | 71 | | |
52 | 72 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments