v1.1.0-beta.005 - perf/test: optimize reader caching for high-RAM environments and fix test suite timeouts
๐ Performance
- Implemented a size-based cache bypass in the reader image route (src/app/api/reader/image/route.ts) to prevent severe OOM (Out-of-Memory) RAM crashes when users open massive (>1GB) comic archives.
- Optimized the AdmZip in-memory concurrent cache limit to 6 for high-RAM (64GB+) environments and lowered the TTL to 60 seconds to ensure prompt garbage collection and stable server memory ceilings.
๐งช Testing
- Mocked axios in metadata-extractor.test.ts to instantly intercept ComicVine HTTP requests, permanently eliminating the 5000ms network timeouts during automated test runs.
- Updated assertion logic to cast parsed polymorphic IDs using String(), successfully resolving strict equality type mismatches (Number vs. String) generated by the XML parser.