From 95ed876a47e1ea3266d5becdc10544ba6064b26f Mon Sep 17 00:00:00 2001 From: Last2014 Date: Sun, 17 May 2026 14:42:30 +0900 Subject: [PATCH] =?UTF-8?q?Chg:=20=E3=83=A1=E3=83=A2=E3=83=AA=E3=82=92?= =?UTF-8?q?=E3=82=AD=E3=83=A3=E3=83=83=E3=82=B7=E3=83=A5=E3=81=97=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=20/=202026.5.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ package.json | 2 +- src/lib/memory.ts | 7 ++----- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5daced9..8f88d53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2026.5.4 +- Chg: メモリをキャッシュしないように + # 2026.5.3 - Chg: 震度分布画像のメッセージを変更 - Fix: distに震度分布画像のアセットと地域マップがコピーされるように diff --git a/package.json b/package.json index 4d41fb1..c674248 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notice-uwuzu", - "version": "2026.5.3", + "version": "2026.5.4", "type": "module", "main": "dist/index.js", "scripts": { diff --git a/src/lib/memory.ts b/src/lib/memory.ts index 5e89aec..8cc7630 100644 --- a/src/lib/memory.ts +++ b/src/lib/memory.ts @@ -17,17 +17,14 @@ class MemoryClass { max_length: 0, })); } - - this.cachedMemory = JSON.parse(readFileSync(path, "utf-8")); } get memory() { - return this.cachedMemory; + return JSON.parse(readFileSync(path, "utf-8")); } set memory(data: any) { - this.cachedMemory = data; - writeFileSync(path, JSON.stringify(this.cachedMemory), "utf-8"); + writeFileSync(path, JSON.stringify(data), "utf-8"); } } -- 2.52.0