A local-first personal finance app
[AI] Upgrade akahu to 2.6.0 (#9411)
Matiss Janis Aboltins6330c716ce93
diff --git a/packages/sync-server/package.json b/packages/sync-server/package.jsonindex 5510c99569..143035d3a1 100644--- a/packages/sync-server/package.json+++ b/packages/sync-server/package.json@@ -90,7 +90,7 @@"dependencies": {"@actual-app/crdt": "workspace:*","@actual-app/web": "workspace:*",- "akahu": "^2.5.1",+ "akahu": "^2.6.0","argon2": "^0.45.1","bcrypt": "^6.0.0","better-sqlite3": "^13.0.3",diff --git a/packages/sync-server/src/app-akahu/app-akahu.ts b/packages/sync-server/src/app-akahu/app-akahu.tsindex 60cb5b0e04..13b1b27d91 100644--- a/packages/sync-server/src/app-akahu/app-akahu.ts+++ b/packages/sync-server/src/app-akahu/app-akahu.ts@@ -6,8 +6,6 @@ import type {PendingTransaction,Transaction,} from 'akahu';-// For some reason this is not provided in the provided index.d.ts file-import type { EnrichedPendingTransaction } from 'akahu/dist/models/transactions';import express from 'express';import { handleError } from '#app-gocardless/util/handle-error';@@ -320,11 +318,7 @@ function convertToCents(amount: number): number {return Math.round(amount * 100);}-type AnyTransaction =- | Transaction- | EnrichedTransaction- | PendingTransaction- | EnrichedPendingTransaction;+type AnyTransaction = Transaction | EnrichedTransaction | PendingTransaction;function getPayeeName(trans: AnyTransaction): string {return getMerchantName(trans) ?? getOtherAccount(trans) ?? trans.description;@@ -345,7 +339,7 @@ function getOtherAccount(trans: AnyTransaction): string | undefined {}function processPendingTransaction(- trans: PendingTransaction | EnrichedPendingTransaction,+ trans: PendingTransaction,account: Account,): AkahuTransaction {const transactionDate = new Date(trans.date);diff --git a/upcoming-release-notes/upgrade-akahu-2-6-0.md b/upcoming-release-notes/upgrade-akahu-2-6-0.mdnew file mode 100644index 0000000000..d2f92f2f0c--- /dev/null+++ b/upcoming-release-notes/upgrade-akahu-2-6-0.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [MatissJanis]+---++Upgrade the `akahu` bank sync client to 2.6.0diff --git a/yarn.lock b/yarn.lockindex bb4aaab744..6389641b2a 100644--- a/yarn.lock+++ b/yarn.lock@@ -191,7 +191,7 @@ __metadata:"@types/node": "npm:^22.20.5""@types/supertest": "npm:^7.2.1""@typescript/native-preview": "npm:beta"- akahu: "npm:^2.5.1"+ akahu: "npm:^2.6.0"argon2: "npm:^0.45.1"bcrypt: "npm:^6.0.0"better-sqlite3: "npm:^13.0.3"@@ -10109,13 +10109,12 @@ __metadata:languageName: nodelinkType: hard-"akahu@npm:^2.5.1":- version: 2.5.1- resolution: "akahu@npm:2.5.1"+"akahu@npm:^2.6.0":+ version: 2.6.0+ resolution: "akahu@npm:2.6.0"dependencies:- axios: "npm:^1.13.5"- uuid: "npm:^8.3.2"- checksum: 10/46f428bde53497af8fe00578f8c78442f623d146e6ac6e223958659629091823edba8c73392fe665d5b78f3675c70c7f26dfb11d03d358d0d1a0361a33f1d2bb+ axios: "npm:^1.20.0"+ checksum: 10/a2acde9027f8b4d6728dbe5fcdae570bc3ed9124bc4ab99eda8c73078061e83eca1902775f858fe0ce2b6ffeb41ffefca8e18c115a6a08934729d6f9a834a45blanguageName: nodelinkType: hard@@ -10560,15 +10559,15 @@ __metadata:languageName: nodelinkType: hard-"axios@npm:^1.13.5":- version: 1.20.0- resolution: "axios@npm:1.20.0"+"axios@npm:^1.20.0":+ version: 1.21.0+ resolution: "axios@npm:1.21.0"dependencies:follow-redirects: "npm:^1.16.0"form-data: "npm:^4.0.6"https-proxy-agent: "npm:^5.0.1"proxy-from-env: "npm:^2.1.0"- checksum: 10/0376b6178baecbe0f5d36088f5b5f6c21362ce301e0731f77172f9c89be740bdee20d8ae6ab186340d7cb752020c6a4f1381290e5a5cd10f6f9003941615ac77+ checksum: 10/1d350436e2bcda52ea62607452bbefa17fa04c43192ecb989d5650215306f9aabfd98bbd1690fcf24ee4c9587630af2e7795feab4e7931f80c43ddd6eceeecc9languageName: nodelinkType: hard