From f35e3e6fd39ade2923da4014e61918c17f6f0aaa Mon Sep 17 00:00:00 2001 From: kwaroran Date: Wed, 3 Apr 2024 20:08:51 +0900 Subject: [PATCH] Update version to 1.91.0 --- src-tauri/tauri.conf.json | 2 +- src/etc/patchNote.ts | 22 +++++++++++++++++----- src/ts/storage/database.ts | 2 +- version.json | 2 +- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 81977aae..f6aa2209 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "RisuAI", - "version": "1.90.1" + "version": "1.91.0" }, "tauri": { "allowlist": { diff --git a/src/etc/patchNote.ts b/src/etc/patchNote.ts index 1fb3c6e4..c901880c 100644 --- a/src/etc/patchNote.ts +++ b/src/etc/patchNote.ts @@ -1,11 +1,23 @@ export const patchNote = { - version: "1.90", + version: "1.91", content: ` -# Update 1.90.1 -- Added {{spread::A}} and {{trim::B}} -- Fixed undefined variable crashing the app -- Now invaild curly brace syntax will be ignored +# Update 1.91.0 +- {{#if A}} now trims the whitespace inside the content +- Old {{time}} and {{date}} is renamed to {{message_time}} and {{message_date}} +- Added {{lastcharmessage}} as allias for {{previous_char_chat}} +- Added {{lastusermessage}} as allias for {{previous_user_chat}} +- Added {{newline}} as allias for {{br}} +- Added {{lastmessage}}, which returns the last message sent in the current chat +- Added {{maxcontext}}, which returns the maximum context length +- Added {{lastmessageid}}, which returns the index of the last message sent in the current chat +- Added {{pow::A::B}}, which returns A raised to the power of B +- Added {{pick::A::B...}} which returns a random element from the list, but is consistent across the same message +- Added {{time}}, which returns the current time in the format HH:MM:SS in your timezone +- Added {{date}}, which returns the current date in the format YYYY-MM-DD in your timezone +- Added {{isotime}}, which returns the current time in the format HH:MM:SS in UTC +- Added {{isodate}}, which returns the current date in the format YYYY-MM-DD in UTC +- Added {{#if-pure A}} which is the same as {{#if A}}, but does not trim the whitespace inside the content ` } diff --git a/src/ts/storage/database.ts b/src/ts/storage/database.ts index 1b0c8c31..d5e87c97 100644 --- a/src/ts/storage/database.ts +++ b/src/ts/storage/database.ts @@ -15,7 +15,7 @@ import type { OobaChatCompletionRequestParams } from '../model/ooba'; export const DataBase = writable({} as any as Database) export const loadedStore = writable(false) -export let appVer = "1.90.1" +export let appVer = "1.91.0" export let webAppSubVer = '' export function setDatabase(data:Database){ diff --git a/version.json b/version.json index 2be664bc..83a6f54f 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{"version":"1.90.1"} \ No newline at end of file +{"version":"1.91.0"} \ No newline at end of file