fix: #127 resolve Dependabot alerts and harden API input and bind defaults #128
+306
−396
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #127
What was done
pnpm auditalerts (all were in dev/test dependencies;pnpm audit --prodwas already 0):viteto^8.3.8(client/package.json) andvitestto^4.1.12(client/package.json,server/package.json).pnpm.overridesin rootpackage.jsonforesbuild(>=0.25.0),minimatch@>=7.0.0 <11.0.1(>=11.0.1, leaving ESLint'sminimatch@3.1.5untouched),undici(>=7.30.2 <8), andzod(>=4.6.6), and regeneratedpnpm-lock.yaml.server/src/index.tsto bindprocess.env.HOST ?? '127.0.0.1'so the API listens on loopback behind Apache/Vite unless explicitly overridden.genreIds,countries,decades, plus integer validation fordecades) inserver/src/search/search.tsandserver/src/searchHistory.ts, returning clearGraphQLErrormessages.server/src/search/search.test.tsandserver/src/searchHistory.test.ts, and logged the work indocs/AI-USAGE.md.What was tested
pnpm audit: No known vulnerabilities found (0 alerts, down from 19).pnpm format:check && pnpm lint && pnpm typecheck && pnpm test && pnpm build: all passed (0 lint warnings; client: 221 passed; server: 88 passed, 56 PostgreSQL-backed tests skipped locally withoutTEST_DATABASE_URL; largest client JS chunk: 391.06 kB).tsx(tsx -e) anddrizzle-kit --versionboth work with the updatedesbuildoverride.