release: v0.19.0

Release v0.19.0. See the `## [0.19.0] — 2026-09-29` section of
[CHANGELOG.md](https://github.com/ralksta/immich-folio/blob/dev/CHANGELOG.md)
for the full list.

Highlights: client proofing links (#683), custom content pages (#738),
asset picker search (#740), concurrent-edit detection (#742), env-locked
settings (#739), an accessibility baseline (#741), three security fixes
with advisories (#737, #755, #759), and a pre-release quality pass
(#780–#797).

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: ralksta <ralksta@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Ralf <rohlenbo79@gmail.com>
Co-authored-by: Paul Thies <110185070+ImScheinox@users.noreply.github.com>
Co-authored-by: lancetm714 <108419425+lancetm714@users.noreply.github.com>
Co-authored-by: Lance Martin <lancetaylor95@gmail.com>
This commit is contained in:
Ralksta
2026-09-29 22:50:30 +02:00
committed by GitHub
parent 5f251923f0
commit ad8b09700b
297 changed files with 19398 additions and 1800 deletions

View File

@@ -17,8 +17,28 @@ interface CacheEntry<T> {
const DEFAULT_STALE_MAX_AGE_MS = 24 * 60 * 60 * 1000; // 24 hours
/**
* The entries live on globalThis, not in this module.
*
* Next bundles each route separately, so every route handler gets its own
* instance of this module. A module-level Map meant the admin panel's
* "Clear cache", a save's invalidation and the Immich webhook each cleared a
* cache no page ever read from, and the diagnostics page reported the size
* of its own, always empty, copy ("0 items"). The process is shared, so one
* store on globalThis is the cache every instance reads and clears. The key is
* versioned so a dev server's hot reload never hands a new build entries in
* an older shape.
*/
const STORE_KEY = Symbol.for('immich-folio.immich-cache.v2');
function sharedStore(): Map<string, CacheEntry<unknown>> {
const holder = globalThis as unknown as Record<symbol, Map<string, CacheEntry<unknown>>>;
holder[STORE_KEY] ??= new Map();
return holder[STORE_KEY];
}
class MemoryCache {
private store = new Map<string, CacheEntry<unknown>>();
private store = sharedStore();
private maxEntries = 200;
get size(): number {