From 6da6c4dd45a5500dbcb56e562282bad9dfecb5ed Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 15 Mar 2023 18:26:59 +0900 Subject: [PATCH] enhance(client): update AiScript to 0.13.0 --- CHANGELOG.md | 1 + packages/frontend/package.json | 2 +- packages/frontend/src/pages/flash/flash-edit.vue | 10 +++++----- .../src/pages/settings/plugin.install.vue | 2 +- pnpm-lock.yaml | 16 ++++++++-------- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62ffb0099..0e96d48fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ You should also include the user name that made the change. - 配送先サーバーが410 Goneで応答してきた場合は自動で配送停止をするように - avatarBlurHash/bannerBlurHashの型をstringに限定 - ナビゲーションバーの項目に「プロフィール」を追加できるように +- AiScriptを0.13.0に更新 ### Bugfixes - プロフィールで設定した情報が削除できない問題を修正 diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 9c8afb9ae..2192553a5 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -15,7 +15,7 @@ "@rollup/plugin-alias": "4.0.3", "@rollup/plugin-json": "6.0.0", "@rollup/pluginutils": "5.0.2", - "@syuilo/aiscript": "0.12.4", + "@syuilo/aiscript": "0.13.0", "@tabler/icons-webfont": "2.2.0", "@vitejs/plugin-vue": "4.0.0", "@vue/compiler-sfc": "3.2.47", diff --git a/packages/frontend/src/pages/flash/flash-edit.vue b/packages/frontend/src/pages/flash/flash-edit.vue index 2b7fcf74e..242ca5e89 100644 --- a/packages/frontend/src/pages/flash/flash-edit.vue +++ b/packages/frontend/src/pages/flash/flash-edit.vue @@ -33,7 +33,7 @@ import MkTextarea from '@/components/MkTextarea.vue'; import MkInput from '@/components/MkInput.vue'; import { useRouter } from '@/router'; -const PRESET_DEFAULT = `/// @ 0.12.4 +const PRESET_DEFAULT = `/// @ 0.13.0 var name = "" @@ -51,7 +51,7 @@ Ui:render([ ]) `; -const PRESET_OMIKUJI = `/// @ 0.12.4 +const PRESET_OMIKUJI = `/// @ 0.13.0 // ユーザーごとに日替わりのおみくじのプリセット // 選択肢 @@ -94,7 +94,7 @@ Ui:render([ ]) `; -const PRESET_SHUFFLE = `/// @ 0.12.4 +const PRESET_SHUFFLE = `/// @ 0.13.0 // 巻き戻し可能な文字シャッフルのプリセット let string = "ペペロンチーノ" @@ -173,7 +173,7 @@ var cursor = 0 do() `; -const PRESET_QUIZ = `/// @ 0.12.4 +const PRESET_QUIZ = `/// @ 0.13.0 let title = '地理クイズ' let qas = [{ @@ -286,7 +286,7 @@ qaEls.push(Ui:C:container({ Ui:render(qaEls) `; -const PRESET_TIMELINE = `/// @ 0.12.4 +const PRESET_TIMELINE = `/// @ 0.13.0 // APIリクエストを行いローカルタイムラインを表示するプリセット @fetch() { diff --git a/packages/frontend/src/pages/settings/plugin.install.vue b/packages/frontend/src/pages/settings/plugin.install.vue index f23a33817..98063d6ff 100644 --- a/packages/frontend/src/pages/settings/plugin.install.vue +++ b/packages/frontend/src/pages/settings/plugin.install.vue @@ -49,7 +49,7 @@ async function install() { text: 'No language version annotation found :(', }); return; - } else if (!lv.startsWith('0.12.')) { + } else if (!(lv.startsWith('0.12.') || lv.startsWith('0.13.'))) { os.alert({ type: 'error', text: `aiscript version '${lv}' is not supported :(`, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cdbbfafec..826411d18 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -309,7 +309,7 @@ importers: sharp-read-bmp: github.com/misskey-dev/sharp-read-bmp/02d9dc189fa7df0c4bea09330be26741772dac01 strict-event-emitter-types: 2.0.0 stringz: 2.1.0 - summaly: github.com/misskey-dev/summaly/51f3870e1ff5e0b22102e804112b10cb72f3c494 + summaly: github.com/misskey-dev/summaly/028b2fed2fd4f5ea7b6a8d55024825c815434f7d systeminformation: 5.17.12 tinycolor2: 1.6.0 tmp: 0.2.1 @@ -398,7 +398,7 @@ importers: '@rollup/plugin-alias': 4.0.3 '@rollup/plugin-json': 6.0.0 '@rollup/pluginutils': 5.0.2 - '@syuilo/aiscript': 0.12.4 + '@syuilo/aiscript': 0.13.0 '@tabler/icons-webfont': 2.2.0 '@testing-library/vue': ^6.6.1 '@types/escape-regexp': 0.0.1 @@ -486,7 +486,7 @@ importers: '@rollup/plugin-alias': 4.0.3_rollup@3.19.0 '@rollup/plugin-json': 6.0.0_rollup@3.19.0 '@rollup/pluginutils': 5.0.2_rollup@3.19.0 - '@syuilo/aiscript': 0.12.4 + '@syuilo/aiscript': 0.13.0 '@tabler/icons-webfont': 2.2.0 '@vitejs/plugin-vue': 4.0.0_vite@4.1.4+vue@3.2.47 '@vue/compiler-sfc': 3.2.47 @@ -2295,8 +2295,8 @@ packages: dev: false optional: true - /@syuilo/aiscript/0.12.4: - resolution: {integrity: sha512-fIWEAHsnw9vMWTcjmSM2rCsadhb+BLirLDLW6lnRw3PFC8LV76Np8Ih8ssfAb00udh6oiGBSj+WiBdkMagbjmQ==} + /@syuilo/aiscript/0.13.0: + resolution: {integrity: sha512-zikuEpQEp1lyNoLxsqNnR2UqyRVV1ZdTOTIyKkEU/4gX90M4t1LIvevbzfyiwoUqLkOMqhdU/poARPL3pCwygg==} dependencies: autobind-decorator: 2.4.0 seedrandom: 3.0.5 @@ -14146,10 +14146,10 @@ packages: sharp: 0.31.3 dev: false - github.com/misskey-dev/summaly/51f3870e1ff5e0b22102e804112b10cb72f3c494: - resolution: {tarball: https://codeload.github.com/misskey-dev/summaly/tar.gz/51f3870e1ff5e0b22102e804112b10cb72f3c494} + github.com/misskey-dev/summaly/028b2fed2fd4f5ea7b6a8d55024825c815434f7d: + resolution: {tarball: https://codeload.github.com/misskey-dev/summaly/tar.gz/028b2fed2fd4f5ea7b6a8d55024825c815434f7d} name: summaly - version: 3.0.4 + version: 4.0.0 dependencies: cheerio: 1.0.0-rc.12 escape-regexp: 0.0.1