diff --git a/app/components/list/ListEntry.vue b/app/components/list/ListEntry.vue index 1096c78e16..062ce8c8fb 100644 --- a/app/components/list/ListEntry.vue +++ b/app/components/list/ListEntry.vue @@ -71,6 +71,7 @@ async function removeList() { if (confirmDelete.choice === 'confirm') { await nextTick() try { + // @ts-expect-error this method should not take any argument, but it expects 1-2 arguments since masto.js v7.7.0 (potential issue) await client.v1.lists.$select(list.value.id).remove() emit('listRemoved', list.value.id) } diff --git a/app/composables/masto/status.ts b/app/composables/masto/status.ts index fa83c948dd..4ffedab8f1 100644 --- a/app/composables/masto/status.ts +++ b/app/composables/masto/status.ts @@ -61,6 +61,7 @@ export function useStatusActions(props: StatusActionsProps) { const toggleReblog = () => toggleStatusAction( 'reblogged', + // @ts-expect-error this method should not take any argument, but it expects 1-2 arguments since masto.js v7.7.0 (potential issue) () => client.value.v1.statuses.$select(status.value.id)[status.value.reblogged ? 'unreblog' : 'reblog']().then((res) => { if (status.value.reblogged) // returns the original status diff --git a/package.json b/package.json index 19bce2eb01..e08c8bb5de 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "js-yaml": "^4.1.0", "lru-cache": "^11.0.0", "magic-string": "^0.30.19", - "masto": "^7.6.0", + "masto": "^7.8.0", "mocked-exports": "^0.1.1", "node-emoji": "^2.1.3", "nuxt": "^4.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b4e114ef82..92b1af42eb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -198,8 +198,8 @@ importers: specifier: ^0.30.19 version: 0.30.19 masto: - specifier: ^7.6.0 - version: 7.6.0 + specifier: ^7.8.0 + version: 7.8.0 mocked-exports: specifier: ^0.1.1 version: 0.1.1 @@ -6927,8 +6927,8 @@ packages: marky@1.3.0: resolution: {integrity: sha512-ocnPZQLNpvbedwTy9kNrQEsknEfgvcLMvOtz3sFeWApDq1MXH1TqkCIx58xlpESsfwQOnuBO9beyQuNGzVvuhQ==} - masto@7.6.0: - resolution: {integrity: sha512-oFRcgSxTI31Y1TrKmw8bCCUKqVzD+iTxniC8Im7bfpUkdT7U9TOP4mQv8s2JWsIp+4NumpLyEcIZiPfBUaFZ6w==} + masto@7.8.0: + resolution: {integrity: sha512-ZU0zQHzyV6I4hTOUv0PBvmLQDvtp+EtOm3/2hwei+CNcfA9E+XcBafThe1gSzNDBAzUbEg/O8fwGLTZV5PJNfQ==} math-intrinsics@1.1.0: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} @@ -17576,7 +17576,7 @@ snapshots: marky@1.3.0: {} - masto@7.6.0: + masto@7.8.0: dependencies: change-case: 5.4.4 events-to-async: 2.0.2