fix(website): broken doc links, WASM SW cache versioning (#398, #403)#415
fix(website): broken doc links, WASM SW cache versioning (#398, #403)#415ajitpratap0 merged 2 commits intomainfrom
Conversation
… 404 status - Issue #397: not-found.tsx is already correct Next.js App Router structure (no changes needed — returns HTTP 404 automatically for unmatched routes) - Issue #398: Replace relative .md file links with website doc routes in GETTING_STARTED.md, CLI_GUIDE.md, USAGE_GUIDE.md, LINTING_RULES.md, CONFIGURATION.md, API_REFERENCE.md, SQL_COMPATIBILITY.md - Issue #403: Version WASM service worker cache key (gosqlx-wasm-v2), add self.clients.claim() on activate, scope cache deletion to gosqlx-wasm-* prefix only, guard fetch with response.ok check Closes #397, #398, #403 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ajitpratap0's task —— View job PR Review Complete ✅Reviewing PR #415 for code quality, potential issues, performance, security, and test coverage. Review Tasks
📋 Overall Assessment: APPROVED ✅This is a high-quality PR that addresses legitimate infrastructure issues with clean, well-thought-out solutions. 🔗 Documentation Link Fixes ✅Issue #398: All broken Changes Made
Quality Assessment
⚡ WASM Service Worker Improvements ✅Issue #403: Significant improvements to service worker cache management. Key Improvements1. Versioned Cache Strategy 🎯const CACHE_VERSION = 'v2';
const CACHE_NAME = `gosqlx-wasm-${CACHE_VERSION}`;
2. Immediate Service Worker Activation 🚀self.clients.claim();
3. Scoped Cache Cleanup 🧹.filter((name) => name.startsWith('gosqlx-wasm-') && name !== CACHE_NAME)
4. Response Validation 🛡️if (response.ok) cache.put(event.request, response.clone());
Performance & Security AnalysisPerformance Impact ⚡
Security Assessment 🔒
🏗️ Code Quality AssessmentStrengths
Minor Observations
🎯 Project Standards Alignment ✅Documentation Standards
Code Standards
🚀 RecommendationsAccept This PR ✅
Future Considerations
📊 Test CoverageManual testing suggested:
Areas not requiring tests:
Verdict: This PR addresses legitimate issues with clean, production-ready solutions. The systematic approach to fixing doc links and thoughtful service worker improvements demonstrate good engineering practices. Recommend merging. |
|
Claude finished @ajitpratap0's task —— View job PR Review Complete ✅Reviewing PR #415 for code quality, potential issues, performance, security, and test coverage. Review Tasks
📋 Overall Assessment: APPROVED ✅This is a high-quality PR that addresses legitimate infrastructure issues with clean, well-thought-out solutions. 🔗 Documentation Link Fixes ✅Issue #398: All broken Changes Made
Quality Assessment
⚡ WASM Service Worker Improvements ✅Issue #403: Significant improvements to service worker cache management. Key Improvements1. Versioned Cache Strategy 🎯const CACHE_VERSION = 'v2';
const CACHE_NAME = `gosqlx-wasm-${CACHE_VERSION}`;
2. Immediate Service Worker Activation 🚀self.clients.claim();
3. Scoped Cache Cleanup 🧹.filter((name) => name.startsWith('gosqlx-wasm-') && name !== CACHE_NAME)
4. Response Validation 🛡️if (response.ok) cache.put(event.request, response.clone());
Performance & Security AnalysisPerformance Impact ⚡
Security Assessment 🔒
🏗️ Code Quality AssessmentStrengths
Minor Observations
🎯 Project Standards Alignment ✅Documentation Standards
Code Standards
🚀 RecommendationsAccept This PR ✅
Future Considerations
📊 Test CoverageManual testing suggested:
Areas not requiring tests:
Verdict: This PR addresses legitimate issues with clean, production-ready solutions. The systematic approach to fixing doc links and thoughtful service worker improvements demonstrate good engineering practices. Recommend merging. |
Summary
Addresses issues #397, #398, #403. Issue #397 (soft 404) was investigated and confirmed not an issue —
app/not-found.tsxin Next.js App Router automatically returns HTTP 404 for unmatched routes.Changes
#398 — Broken
.mdrelative links in docs contentFixed relative
.mdfile references in all 7 docs served by the website (files indocs/at repo root). Replaced with correct website paths or GitHub URLs:LINTING_RULES.md/docs/linting-rulesLSP_GUIDE.md/docs/lsp-guideCONFIGURATION.md/docs/configurationGETTING_STARTED.md/docs/getting-startedUSAGE_GUIDE.md/docs/usage-guideCLI_GUIDE.md/docs/cli-guideAPI_REFERENCE.md/docs/api-referenceMCP_GUIDE.md/docs/mcp-guideSQL_COMPATIBILITY.md/docs/sql-compatibilityERROR_CODES.md/docs/error-codes../examples/MIGRATION.md../CONTRIBUTING.md#403 — WASM service worker cache versioning
Updated
website/public/wasm-sw.js(already registered viaServiceWorkerRegister.tsx):gosqlx-wasm-v2(easy to bump on each WASM binary deploy)self.clients.claim()on activate so the new SW takes over existing clients immediatelygosqlx-wasm-*prefix only (previously deleted all caches indiscriminately)response.okguard before caching fetch responses to prevent caching error responsesTest plan
/playground→ open DevTools → Application → Service Workers → confirmwasm-sw.jsregistered andgosqlx-wasm-v2cache present/this-does-not-exist→ check Network tab → confirm 404 status codeCloses #397, #398, #403
🤖 Generated with Claude Code