Compare commits

...

7 Commits

5 changed files with 17 additions and 12 deletions
+6
View File
@@ -1,3 +1,9 @@
# 2026.4.2
- Fix: id除外が機能しない問題
# 2026.4.1
- Chg: notificationsもfor内でlastReadを更新しないように
# 2026.4.0
- Breaking: noticeUwuzuを0から作り直しました
- Breaking: 25.12.0-alpha.1までの方針を全て廃止しました
+2
View File
@@ -22,6 +22,8 @@ uwuzu v1.6.3以上で利用可能です。
- 地震情報のWebSocketの接続先をテスト用サンドボックスに変更
P2P地震情報の接続先を本番環境から[テスト用サンドボックスのエンドポイント](https://www.p2pquake.net/develop/json_api_v2/)に変更します。
そのため、最新の情報は配信されません。
- 地震情報のid除外を無効化
地震情報のid除外を記録も確認も行わなくなります。
- i18nextのdebugを有効化
[i18nextでのdebug](https://www.i18next.com/overview/configuration-options#logging)が有効化されます。
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "notice-uwuzu",
"version": "2026.4.0",
"version": "2026.4.2",
"type": "module",
"main": "dist/index.js",
"scripts": {
+3 -7
View File
@@ -27,8 +27,10 @@ try {
const mem = Memory.memory;
const lastReadReply = mem.lastReadReply;
mem.lastReadReply = notifications[0]?.valueid ?? lastReadReply;
Memory.memory = mem;
for (const [index, notification] of notifications.entries()) {
for (const notification of notifications) {
if (notification.category !== "reply" || typeof notification.valueid !== "string")
continue;
@@ -44,12 +46,6 @@ try {
continue;
}
if (index === 0) {
const mem = Memory.memory;
mem.lastReadReply = ueuseResponse.data[0].uniqid;
Memory.memory = mem;
}
ueuses.push(ueuseResponse.data[0]);
}
} else {
+2 -1
View File
@@ -68,7 +68,8 @@ if (config.earthquake?.useHistoryData) {
processMessage(message);
if (!config.debug) {
mem.processedInfo.concat([id]);
const mem = Memory.memory;
mem.processedInfo = mem.processedInfo.concat([id]);
Memory.memory = mem;
}
});