Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
🤖 Auto commit for release 'develop' on 2026-09-09
JC53364be416878
diff --git a/app/Api/V1/Controllers/Insight/Income/TagController.php b/app/Api/V1/Controllers/Insight/Income/TagController.phpindex 94be2ae461..df99eef909 100644--- a/app/Api/V1/Controllers/Insight/Income/TagController.php+++ b/app/Api/V1/Controllers/Insight/Income/TagController.php@@ -158,10 +158,7 @@ final class TagController extends Controller'currency_id' => (string) $foreignCurrencyId,'currency_code' => $journal['foreign_currency_code'],];- $response[$foreignKey]['difference'] = bcadd(- (string) $response[$foreignKey]['difference'],- Steam::positive($journal['foreign_amount'])- );+ $response[$foreignKey]['difference'] = bcadd((string) $response[$foreignKey]['difference'], Steam::positive($journal['foreign_amount']));$response[$foreignKey]['difference_float'] = (float) $response[$foreignKey]['difference'];}}diff --git a/app/Api/V1/Controllers/Insight/Transfer/TagController.php b/app/Api/V1/Controllers/Insight/Transfer/TagController.phpindex b7b85fd376..f92a7aa9f0 100644--- a/app/Api/V1/Controllers/Insight/Transfer/TagController.php+++ b/app/Api/V1/Controllers/Insight/Transfer/TagController.php@@ -155,10 +155,7 @@ final class TagController extends Controller'currency_id' => (string) $foreignCurrencyId,'currency_code' => $journal['foreign_currency_code'],];- $response[$foreignKey]['difference'] = bcadd(- (string) $response[$foreignKey]['difference'],- Steam::positive($journal['foreign_amount'])- );+ $response[$foreignKey]['difference'] = bcadd((string) $response[$foreignKey]['difference'], Steam::positive($journal['foreign_amount']));$response[$foreignKey]['difference_float'] = (float) $response[$foreignKey]['difference']; // intentional float}}diff --git a/app/Helpers/Collector/GroupCollector.php b/app/Helpers/Collector/GroupCollector.phpindex e44c77237e..7dad331e04 100644--- a/app/Helpers/Collector/GroupCollector.php+++ b/app/Helpers/Collector/GroupCollector.php@@ -951,13 +951,13 @@ class GroupCollector implements GroupCollectorInterfaceprivate function parseSums(array $groups): array{- //Log::debug(sprintf('Now in parseGroups for %d group(s).', count($groups)));+ // Log::debug(sprintf('Now in parseGroups for %d group(s).', count($groups)));/*** @var int $groudId* @var array $group*/foreach ($groups as $groudId => $group) {- //Log::debug(sprintf('Now in parseGroups for group #%d with %d transaction(s).', $groudId, count($group['transactions'])));+ // Log::debug(sprintf('Now in parseGroups for group #%d with %d transaction(s).', $groudId, count($group['transactions'])));/** @var array $transaction */foreach ($group['transactions'] as $transaction) {// Log::debug(sprintf('Now in parseTransactions for transaction #%d', $transaction['transaction_journal_id']));@@ -979,13 +979,14 @@ class GroupCollector implements GroupCollectorInterface$groups[$groudId]['sums'][$currencyId]['currency_decimal_places'] = $transaction['currency_decimal_places'];$groups[$groudId]['sums'][$currencyId]['amount'] = '0';$groups[$groudId]['sums'][$currencyId]['pc_amount'] = '0';- //Log::debug(sprintf('Set amount and pc_amount to 0 for currency %s', $transaction['currency_code']));++ // Log::debug(sprintf('Set amount and pc_amount to 0 for currency %s', $transaction['currency_code']));}$groups[$groudId]['sums'][$currencyId]['amount'] = bcadd((string) $groups[$groudId]['sums'][$currencyId]['amount'], $transaction['amount']);$groups[$groudId]['sums'][$currencyId]['pc_amount'] = bcadd((string) $groups[$groudId]['sums'][$currencyId]['pc_amount'], $pcAmount);if (null !== $transaction['foreign_amount'] && null !== $transaction['foreign_currency_id']) {- //Log::debug(sprintf('This transaction also has foreign amount %s %s', $transaction['foreign_currency_code'], $transaction['foreign_amount']));+ // Log::debug(sprintf('This transaction also has foreign amount %s %s', $transaction['foreign_currency_code'], $transaction['foreign_amount']));$foreignCurrencyId = (int) $transaction['foreign_currency_id'];// set default:@@ -996,13 +997,21 @@ class GroupCollector implements GroupCollectorInterface$groups[$groudId]['sums'][$foreignCurrencyId]['currency_decimal_places'] = $transaction['foreign_currency_decimal_places'];$groups[$groudId]['sums'][$foreignCurrencyId]['amount'] = '0';$groups[$groudId]['sums'][$foreignCurrencyId]['pc_amount'] = '0';- //Log::debug(sprintf('Set amount and pc_amount to 0 for currency %s', $transaction['foreign_currency_code']));++ // Log::debug(sprintf('Set amount and pc_amount to 0 for currency %s', $transaction['foreign_currency_code']));}- $groups[$groudId]['sums'][$foreignCurrencyId]['amount'] = bcadd((string) $groups[$groudId]['sums'][$foreignCurrencyId]['amount'], $foreignAmount);- $groups[$groudId]['sums'][$foreignCurrencyId]['pc_amount'] = bcadd((string) $groups[$groudId]['sums'][$foreignCurrencyId]['pc_amount'], $pcForeignAmount);+ $groups[$groudId]['sums'][$foreignCurrencyId]['amount'] = bcadd(+ (string) $groups[$groudId]['sums'][$foreignCurrencyId]['amount'],+ $foreignAmount+ );+ $groups[$groudId]['sums'][$foreignCurrencyId]['pc_amount'] = bcadd(+ (string) $groups[$groudId]['sums'][$foreignCurrencyId]['pc_amount'],+ $pcForeignAmount+ );}}}+return $groups;}diff --git a/app/Http/Controllers/Budget/BudgetLimitController.php b/app/Http/Controllers/Budget/BudgetLimitController.phpindex d461374baa..2edb4f5531 100644--- a/app/Http/Controllers/Budget/BudgetLimitController.php+++ b/app/Http/Controllers/Budget/BudgetLimitController.php@@ -198,13 +198,7 @@ final class BudgetLimitController extends Controllerif ($request->expectsJson()) {$array = $limit->toArray();// add some extra metadata:- $spentArr = $this->opsRepository->sumExpenses(- $limit->start_date,- $limit->end_date,- null,- new Collection()->push($budget),- $currency- );+ $spentArr = $this->opsRepository->sumExpenses($limit->start_date, $limit->end_date, null, new Collection()->push($budget), $currency);$array['spent'] = $spentArr[$currency->id]['sum'] ?? '0';$array['left_formatted'] = Amount::formatAnything($limit->transactionCurrency, bcadd($array['spent'], (string) $array['amount']));$array['amount_formatted'] = Amount::formatAnything($limit->transactionCurrency, $limit['amount']);diff --git a/app/Http/Controllers/Budget/IndexController.php b/app/Http/Controllers/Budget/IndexController.phpindex d40d4432a3..215ebbd484 100644--- a/app/Http/Controllers/Budget/IndexController.php+++ b/app/Http/Controllers/Budget/IndexController.php@@ -284,10 +284,7 @@ final class IndexController extends Controllerif (array_key_exists($currency->id, $spentArr) && array_key_exists('sum', $spentArr[$currency->id])) {$array['spent'][$currency->id]['spent'] = $spentArr[$currency->id]['sum'];- $array['spent'][$currency->id]['spent_outside'] = Steam::negative(bcsub(- $spentInLimits[$currency->id],- $spentArr[$currency->id]['sum']- ));+ $array['spent'][$currency->id]['spent_outside'] = Steam::negative(bcsub($spentInLimits[$currency->id], $spentArr[$currency->id]['sum']));$array['spent'][$currency->id]['currency_id'] = $currency->id;$array['spent'][$currency->id]['currency_symbol'] = $currency->symbol;$array['spent'][$currency->id]['currency_decimal_places'] = $currency->decimal_places;diff --git a/app/Http/Controllers/Chart/AccountController.php b/app/Http/Controllers/Chart/AccountController.phpindex 9ba9db395d..0df2fe94a8 100644--- a/app/Http/Controllers/Chart/AccountController.php+++ b/app/Http/Controllers/Chart/AccountController.php@@ -592,17 +592,16 @@ final class AccountController extends Controllerforeach ($return as $key => $info) {if ('balance' !== $key && 'pc_balance' !== $key) {// assume it's a currency:- $setCurrency = $this->currencyRepository->findByCode((string) $key);+ $setCurrency = $this->currencyRepository->findByCode((string) $key);// skip null and skip the primary currency.- if(null !== $setCurrency && $setCurrency->id === $this->primaryCurrency->id) {+ if (null !== $setCurrency && $setCurrency->id === $this->primaryCurrency->id) {continue;}- if(null !== $setCurrency) {+ if (null !== $setCurrency) {$info['currency_symbol'] = $setCurrency->symbol;$info['currency_code'] = $setCurrency->code;$info['label'] = sprintf('%s (%s) A', $account->name, $setCurrency->symbol);}-}if ('balance' === $key) {$info['currency_symbol'] = $accountCurrency->symbol;diff --git a/app/Http/Controllers/Chart/BudgetController.php b/app/Http/Controllers/Chart/BudgetController.phpindex f4b32fe5c5..ad724137dc 100644--- a/app/Http/Controllers/Chart/BudgetController.php+++ b/app/Http/Controllers/Chart/BudgetController.php@@ -539,13 +539,7 @@ final class BudgetController extends Controller}// get spent amount in this period for this currency.- $sum = $this->opsRepository->sumExpenses(- $currentStart,- $currentEnd,- $accounts,- new Collection()->push($budget),- $currency- );+ $sum = $this->opsRepository->sumExpenses($currentStart, $currentEnd, $accounts, new Collection()->push($budget), $currency);$amount = Steam::positive($sum[$currency->id]['sum'] ?? '0');$chartData[0]['entries'][$title] = Steam::bcround($amount, $currency->decimal_places);diff --git a/app/Jobs/CreateAutoBudgetLimits.php b/app/Jobs/CreateAutoBudgetLimits.phpindex affea656a0..476da65ac3 100644--- a/app/Jobs/CreateAutoBudgetLimits.php+++ b/app/Jobs/CreateAutoBudgetLimits.php@@ -132,13 +132,7 @@ class CreateAutoBudgetLimits implements ShouldQueue// if has one, calculate expenses and use that as a base.$repository = app(OperationsRepositoryInterface::class);$repository->setUser($autoBudget->budget->user);- $spent = $repository->sumExpenses(- $previousStart,- $previousEnd,- null,- new Collection()->push($autoBudget->budget),- $autoBudget->transactionCurrency- );+ $spent = $repository->sumExpenses($previousStart, $previousEnd, null, new Collection()->push($autoBudget->budget), $autoBudget->transactionCurrency);$currencyId = $autoBudget->transaction_currency_id;$spentAmount = $spent[$currencyId]['sum'] ?? '0';Log::debug(sprintf('Spent in previous budget period (%s-%s) is %s', $previousStart->format('Y-m-d'), $previousEnd->format('Y-m-d'), $spentAmount));@@ -228,13 +222,7 @@ class CreateAutoBudgetLimits implements ShouldQueue// if has one, calculate expenses and use that as a base.$repository = app(OperationsRepositoryInterface::class);$repository->setUser($autoBudget->budget->user);- $spent = $repository->sumExpenses(- $previousStart,- $previousEnd,- null,- new Collection()->push($autoBudget->budget),- $autoBudget->transactionCurrency- );+ $spent = $repository->sumExpenses($previousStart, $previousEnd, null, new Collection()->push($autoBudget->budget), $autoBudget->transactionCurrency);$currencyId = $autoBudget->transaction_currency_id;$spentAmount = $spent[$currencyId]['sum'] ?? '0';Log::debug(sprintf('Spent in previous budget period (%s-%s) is %s', $previousStart->format('Y-m-d'), $previousEnd->format('Y-m-d'), $spentAmount));diff --git a/app/Support/Amount.php b/app/Support/Amount.phpindex 56d752e507..c030cb8bfc 100644--- a/app/Support/Amount.php+++ b/app/Support/Amount.php@@ -310,7 +310,6 @@ class Amount$cache->addProperty('getPrimaryCurrencyByGroup');$cache->addProperty($userGroup->id);if ($cache->has()) {-return $cache->get();}diff --git a/app/Support/Http/Controllers/AugumentData.php b/app/Support/Http/Controllers/AugumentData.phpindex a507156873..a3a940b1ba 100644--- a/app/Support/Http/Controllers/AugumentData.php+++ b/app/Support/Http/Controllers/AugumentData.php@@ -222,14 +222,7 @@ trait AugumentData$currentEnd->addMonth();}// primary currency amount.- $expenses = $opsRepository->sumExpenses(- $currentStart,- $currentEnd,- null,- $budgetCollection,- $entry->transactionCurrency,- $this->convertToPrimary- );+ $expenses = $opsRepository->sumExpenses($currentStart, $currentEnd, null, $budgetCollection, $entry->transactionCurrency, $this->convertToPrimary);$spent = $expenses[$currency->id]['sum'] ?? '0';$entry->pc_spent = $spent;diff --git a/app/Support/Http/Controllers/PeriodOverview.php b/app/Support/Http/Controllers/PeriodOverview.phpindex eafe11ed02..bb2455e7dd 100644--- a/app/Support/Http/Controllers/PeriodOverview.php+++ b/app/Support/Http/Controllers/PeriodOverview.php@@ -200,7 +200,7 @@ trait PeriodOverviewprotected function getSingleModelPeriod(Model $model, string $period, Carbon $start, Carbon $end): array{- //Log::debug(sprintf('Now in getSingleModelPeriod(%s #%d, %s %s)', $model::class, $model->id, $start->format('Y-m-d'), $end->format('Y-m-d')));+ // Log::debug(sprintf('Now in getSingleModelPeriod(%s #%d, %s %s)', $model::class, $model->id, $start->format('Y-m-d'), $end->format('Y-m-d')));$types = ['spent', 'earned', 'transferred_in', 'transferred_away'];$return = ['title' => Navigation::periodShow($start, $period),@@ -313,7 +313,7 @@ trait PeriodOverviewreturn new Collection();}- //Log::debug(sprintf('Now in filterStatistics("%s")', $type));+ // Log::debug(sprintf('Now in filterStatistics("%s")', $type));return $this->statistics->filter(static function (PeriodStatistic $statistic) use ($start, $end, $type): bool {return $statistic->start->isSameSecond($start) && $statistic->end->isSameSecond($end) && $statistic->type === $type;@@ -423,14 +423,14 @@ trait PeriodOverviewprivate function getSingleModelPeriodByType(Model $model, Carbon $start, Carbon $end, string $type): array{-// Log::debug(sprintf(-// 'Now in getSingleModelPeriodByType(%s #%d, %s %s, %s)',-// $model::class,-// $model->id,-// $start->format('Y-m-d H:i:s.u'),-// $end->format('Y-m-d H:i:s.u'),-// $type-// ));+ // Log::debug(sprintf(+ // 'Now in getSingleModelPeriodByType(%s #%d, %s %s, %s)',+ // $model::class,+ // $model->id,+ // $start->format('Y-m-d H:i:s.u'),+ // $end->format('Y-m-d H:i:s.u'),+ // $type+ // ));$statistics = $this->filterStatistics($start, $end, $type);// nothing found, regenerate them.diff --git a/app/Support/JsonApi/Enrichments/RecurringEnrichment.php b/app/Support/JsonApi/Enrichments/RecurringEnrichment.phpindex 2428353cb0..d0c09bf027 100644--- a/app/Support/JsonApi/Enrichments/RecurringEnrichment.php+++ b/app/Support/JsonApi/Enrichments/RecurringEnrichment.php@@ -354,11 +354,7 @@ class RecurringEnrichment implements EnrichmentInterface/** @var RecurrenceRepetition $repetition */foreach ($set as $repetition) {- $recurrence = $this->collection->filter(- static fn (Recurrence $item): bool => (int) $item->id === (int) $repetition->recurrence_id- )- ->first()- ;+ $recurrence = $this->collection->filter(static fn (Recurrence $item): bool => (int) $item->id === (int) $repetition->recurrence_id)->first();$fromDate = clone ($recurrence->latest_date ?? $recurrence->first_date);$recurrenceId = (int) $repetition->recurrence_id;$repId = (int) $repetition->id;diff --git a/app/Support/Steam.php b/app/Support/Steam.phpindex 629a400f77..99a33ceda0 100644--- a/app/Support/Steam.php+++ b/app/Support/Steam.php@@ -43,6 +43,7 @@ use Psr\Container\ContainerExceptionInterface;use Psr\Container\NotFoundExceptionInterface;use Safe\Exceptions\UrlException;use ValueError;+use function Safe\parse_url;use function Safe\preg_replace;@@ -56,13 +57,12 @@ class Steam* properly gets the balance of a range.*/public function accountsBalancesInRange(- Collection $accounts,- Carbon $start,- Carbon $end,+ Collection $accounts,+ Carbon $start,+ Carbon $end,?TransactionCurrency $primary = null,- ?bool $convertToPrimary = null- ): array- {+ ?bool $convertToPrimary = null+ ): array {return [$this->accountsBalancesOptimized($accounts, $start, $primary, $convertToPrimary, inclusive: false),$this->accountsBalancesOptimized($accounts, $end, $primary, $convertToPrimary),@@ -70,67 +70,67 @@ class Steam}public function accountsBalancesOptimized(- Collection $accounts,- Carbon $date,+ Collection $accounts,+ Carbon $date,?TransactionCurrency $primary = null,- ?bool $convertToPrimary = null,- bool $inclusive = true- ): array- {+ ?bool $convertToPrimary = null,+ bool $inclusive = true+ ): array {// Log::debug(sprintf('accountsBalancesOptimized: Called for %d account(s) with date/time "%s" (inclusive: %s)', $accounts->count(), $date->toIso8601String(), var_export($inclusive, true)));- $result = [];+ $result = [];$convertToPrimary ??= Amount::convertToPrimary();$primary ??= Amount::getPrimaryCurrency();- $currencies = $this->getCurrencies($accounts);+ $currencies = $this->getCurrencies($accounts);// balance(s) in all currencies for ALL accounts.$arrayOfSums = Transaction::query()- ->whereIn('account_id', $accounts->pluck('id')->toArray())- ->leftJoin('transaction_journals', 'transaction_journals.id', '=', 'transactions.transaction_journal_id')- ->leftJoin('transaction_currencies', 'transaction_currencies.id', '=', 'transactions.transaction_currency_id')- ->where('transaction_journals.date', $inclusive ? '<=' : '<', $date->format('Y-m-d H:i:s'))- ->whereNull('transaction_journals.deleted_at')- ->groupBy(['transactions.account_id', 'transaction_currencies.code'])- ->get(['transactions.account_id', 'transaction_currencies.code', DB::raw('SUM(transactions.amount) as sum_of_amount')])- ->toArray();+ ->whereIn('account_id', $accounts->pluck('id')->toArray())+ ->leftJoin('transaction_journals', 'transaction_journals.id', '=', 'transactions.transaction_journal_id')+ ->leftJoin('transaction_currencies', 'transaction_currencies.id', '=', 'transactions.transaction_currency_id')+ ->where('transaction_journals.date', $inclusive ? '<=' : '<', $date->format('Y-m-d H:i:s'))+ ->whereNull('transaction_journals.deleted_at')+ ->groupBy(['transactions.account_id', 'transaction_currencies.code'])+ ->get(['transactions.account_id', 'transaction_currencies.code', DB::raw('SUM(transactions.amount) as sum_of_amount')])+ ->toArray()+ ;// Log::debug('Array of sums: ', $arrayOfSums);/** @var Account $account */foreach ($accounts as $account) {// this key is overwritten right away, but I must remember it is always created.- $currency = $currencies[$account->id];- $return = [+ $currency = $currencies[$account->id];+ $return = ['pc_balance' => '0','balance' => '0',];// FIRST, add virtual balance to this.- $virtualBalance = (string)('' === (string)$account->virtual_balance ? '0' : $account->virtual_balance);- $pcVirtualBalance = '0';+ $virtualBalance = (string) ('' === (string) $account->virtual_balance ? '0' : $account->virtual_balance);+ $pcVirtualBalance = '0';if (!$convertToPrimary) {$return['balance'] = bcadd($return['balance'], $virtualBalance);Log::debug(sprintf('ADD virtual balance (%s) to "balance"', $virtualBalance), $return);}if ($convertToPrimary) {// the primary currency balance is combined with a converted virtual_balance:- $converter = new ExchangeRateConverter();- $pcVirtualBalance = $converter->convert($currency, $primary, $date, $virtualBalance);+ $converter = new ExchangeRateConverter();+ $pcVirtualBalance = $converter->convert($currency, $primary, $date, $virtualBalance);Log::debug(sprintf('ADD converted virtual balance (%s) to "pc_balance"', $pcVirtualBalance));$return['pc_balance'] = bcadd($pcVirtualBalance, $return['pc_balance']);}// second array- $accountSums = array_filter($arrayOfSums, static fn(array $entry): bool => $entry['account_id'] === $account->id);+ $accountSums = array_filter($arrayOfSums, static fn (array $entry): bool => $entry['account_id'] === $account->id);if (0 === count($accountSums)) {Log::debug('No sums in transactions, so return whatever we have now.', $return);$result[$account->id] = $return;continue;}- $sumsByCode = [];+ $sumsByCode = [];foreach ($accountSums as $accountSum) {// $accountSum = array_values($accountSum)[0];- $sumOfAmount = (string)$accountSum['sum_of_amount'];+ $sumOfAmount = (string) $accountSum['sum_of_amount'];$sumOfAmount = $this->floatalize('' === $sumOfAmount ? '0' : $sumOfAmount);$sumsByCode[$accountSum['code']] = $sumOfAmount;}@@ -155,7 +155,7 @@ class Steamif ($convertToPrimary) {// the primary currency balance is combined with a converted virtual_balance:- $converter = new ExchangeRateConverter();+ $converter = new ExchangeRateConverter();// $return['pc_balance'] = bcadd($pcVirtualBalance, $return['pc_balance']);$sumsByCode[$primary->code] = bcadd($pcVirtualBalance, $sumsByCode[$primary->code] ?? '0');@@ -209,10 +209,10 @@ class Steam// Log::debug(sprintf('Trying bcround("%s",%d)', $number, $precision));if (str_contains($number, '.')) {if ('-' !== $number[0]) {- return bcadd($number, '0.' . str_repeat('0', $precision) . '5', $precision);+ return bcadd($number, '0.'.str_repeat('0', $precision).'5', $precision);}- return bcsub($number, '0.' . str_repeat('0', $precision) . '5', $precision);+ return bcsub($number, '0.'.str_repeat('0', $precision).'5', $precision);}return $number;@@ -354,17 +354,15 @@ class Steam"balance": balance in the account's currency OR user's primary currency if the account has no currency--> "pc_balance": balance in the user's primary currency, with all amounts converted to the primary currency."EUR": balance in EUR (or whatever currencies the account has balance in)- TXT- )]+ TXT)]public function finalAccountBalance(- Account $account,- Carbon $date,+ Account $account,+ Carbon $date,?TransactionCurrency $primary = null,- ?bool $convertToPrimary = null,- bool $inclusive = true- ): array- {- $cache = new CacheProperties();+ ?bool $convertToPrimary = null,+ bool $inclusive = true+ ): array {+ $cache = new CacheProperties();$cache->addProperty($account->id);$cache->addProperty($date);if ($cache->has()) {@@ -380,25 +378,26 @@ class Steam$primary = Amount::getPrimaryCurrencyByUserGroup($account->user->userGroup);}// account balance thing.- $currencyPresent = property_exists($account, 'meta') && array_key_exists('currency', $account->meta) && null !== $account->meta['currency'];+ $currencyPresent = property_exists($account, 'meta') && array_key_exists('currency', $account->meta) && null !== $account->meta['currency'];if ($currencyPresent) {$accountCurrency = $account->meta['currency'];}if (!$currencyPresent) {$accountCurrency = $this->getAccountCurrency($account);}- $hasCurrency = null !== $accountCurrency;- $currency = $hasCurrency ? $accountCurrency : $primary;- $return = ['pc_balance' => '0', 'balance' => '0']; // this key is overwritten right away, but I must remember it is always created.+ $hasCurrency = null !== $accountCurrency;+ $currency = $hasCurrency ? $accountCurrency : $primary;+ $return = ['pc_balance' => '0', 'balance' => '0']; // this key is overwritten right away, but I must remember it is always created.// balance(s) in all currencies.- $array = $account+ $array = $account->transactions()->leftJoin('transaction_journals', 'transaction_journals.id', '=', 'transactions.transaction_journal_id')->leftJoin('transaction_currencies', 'transaction_currencies.id', '=', 'transactions.transaction_currency_id')->where('transaction_journals.date', $inclusive ? '<=' : '<', $date->format('Y-m-d H:i:s'))->get(['transaction_currencies.code', 'transactions.amount'])- ->toArray();- $others = $this->groupAndSumTransactions($array, 'code', 'amount');+ ->toArray()+ ;+ $others = $this->groupAndSumTransactions($array, 'code', 'amount');// Log::debug('All balances are (joined)', $others);// if there is no request to convert, take this as "balance" and "pc_balance".$return['balance'] = $others[$currency->code] ?? '0';@@ -415,7 +414,7 @@ class Steam}// either way, the balance is always combined with the virtual balance:- $virtualBalance = (string)('' === (string)$account->virtual_balance ? '0' : $account->virtual_balance);+ $virtualBalance = (string) ('' === (string) $account->virtual_balance ? '0' : $account->virtual_balance);if ($convertToPrimary) {// the primary currency balance is combined with a converted virtual_balance:@@ -431,7 +430,7 @@ class Steam// Log::debug(sprintf('Virtual balance makes the (primary currency) total %s', $return['balance']));}- $final = array_merge($return, $others);+ $final = array_merge($return, $others);// Log::debug('Final balance is', $final);$cache->store($final);@@ -449,7 +448,7 @@ class Steam// Log::debug(sprintf('called finalAccountBalanceInRange(#%d, %s, %s)', $account->id, $start->format('Y-m-d H:i:s'), $end->format('Y-m-d H:i:s')));// set up cache- $cache = new CacheProperties();+ $cache = new CacheProperties();$cache->addProperty($account->id);$cache->addProperty('final-balance-in-range');$cache->addProperty($start);@@ -461,25 +460,25 @@ class Steamreturn $cache->get();}- $balances = [];- $formatted = $start->format('Y-m-d');+ $balances = [];+ $formatted = $start->format('Y-m-d');// Log::debug('Get first balance to start.');// 2025-10-08 replaced finalAccountBalance with accountsBalancesOptimized:- $primaryCurrency = Amount::getPrimaryCurrencyByUserGroup($account->user->userGroup);- $startBalance = $this->accountsBalancesOptimized(new Collection()->push($account), $start, $primaryCurrency, $convertToPrimary, false)[$account->id];- $accountCurrency = $this->getAccountCurrency($account);- $hasCurrency = $accountCurrency instanceof TransactionCurrency;- $currency = $accountCurrency ?? $primaryCurrency;+ $primaryCurrency = Amount::getPrimaryCurrencyByUserGroup($account->user->userGroup);+ $startBalance = $this->accountsBalancesOptimized(new Collection()->push($account), $start, $primaryCurrency, $convertToPrimary, false)[$account->id];+ $accountCurrency = $this->getAccountCurrency($account);+ $hasCurrency = $accountCurrency instanceof TransactionCurrency;+ $currency = $accountCurrency ?? $primaryCurrency;// Log::debug(sprintf('Currency is %s', $currency->code));// set start balances:if (!array_key_exists($currency->code, $startBalance)) {// set first balance to 0 or the virtual balance of the account.- $startBalance[$currency->code] = (string)('' === (string)$account->virtual_balance ? '0' : $account->virtual_balance);+ $startBalance[$currency->code] = (string) ('' === (string) $account->virtual_balance ? '0' : $account->virtual_balance);Log::debug(sprintf('[a] Start balance in %s is %s', $currency->code, $startBalance[$currency->code]));}if ($hasCurrency && !array_key_exists($accountCurrency->code, $startBalance)) {- $startBalance[$currency->code] = (string)('' === (string)$account->virtual_balance ? '0' : $account->virtual_balance);+ $startBalance[$currency->code] = (string) ('' === (string) $account->virtual_balance ? '0' : $account->virtual_balance);Log::debug(sprintf('[b] Start balance in %s is %s', $currency->code, $startBalance[$currency->code]));}if ($hasCurrency && !array_key_exists($primaryCurrency->code, $startBalance)) {@@ -487,10 +486,14 @@ class Steam$converter = new ExchangeRateConverter();$converted = $converter->convert($accountCurrency, $primaryCurrency, $start, $startBalance[$accountCurrency->code]);$startBalance[$primaryCurrency->code] = $converted;- Log::debug(sprintf('[c] Also set start balance in %s to %s because convertToPrimary = true, and this account is not in that currency.', $primaryCurrency->code, $converted));+ Log::debug(sprintf(+ '[c] Also set start balance in %s to %s because convertToPrimary = true, and this account is not in that currency.',+ $primaryCurrency->code,+ $converted+ ));}if ($accountCurrency->id !== $primaryCurrency->id && !$convertToPrimary) {- $startBalance[$primaryCurrency->code] = (string)('' === (string)$account->virtual_balance ? '0' : $account->virtual_balance);+ $startBalance[$primaryCurrency->code] = (string) ('' === (string) $account->virtual_balance ? '0' : $account->virtual_balance);// Log::debug(sprintf('[d] Also set start balance in %s to %s', $primaryCurrency->code, $startBalance[$primaryCurrency->code]));}@@ -498,16 +501,16 @@ class Steamif (!$hasCurrency) {// Log::debug(sprintf('[e] Also set start balance in %s', $primaryCurrency->code));- $startBalance[$primaryCurrency->code] = (string)('' === (string)$account->virtual_balance ? '0' : $account->virtual_balance);+ $startBalance[$primaryCurrency->code] = (string) ('' === (string) $account->virtual_balance ? '0' : $account->virtual_balance);}- $currencies = [$currency->id => $currency, $primaryCurrency->id => $primaryCurrency];+ $currencies = [$currency->id => $currency, $primaryCurrency->id => $primaryCurrency];$balances[$formatted] = $startBalance;Log::debug('Final start balance: ', $startBalance);// sums up the balance changes per day.// Log::debug(sprintf('Date >= %s and <= %s', $start->format('Y-m-d H:i:s'), $end->format('Y-m-d H:i:s')));- $set = $account+ $set = $account->transactions()->leftJoin('transaction_journals', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')->where('transaction_journals.date', '>=', $start->format('Y-m-d H:i:s'))@@ -516,51 +519,52 @@ class Steam->groupBy('transactions.transaction_currency_id')->orderBy('transaction_journals.date', 'ASC')->whereNull('transaction_journals.deleted_at')- ->get(['transaction_journals.date', 'transactions.transaction_currency_id', DB::raw('SUM(transactions.amount) AS sum_of_day')]);+ ->get(['transaction_journals.date', 'transactions.transaction_currency_id', DB::raw('SUM(transactions.amount) AS sum_of_day')])+ ;- $currentBalance = $startBalance;- $converter = new ExchangeRateConverter();+ $currentBalance = $startBalance;+ $converter = new ExchangeRateConverter();/** @var Transaction $entry */foreach ($set as $entry) {// get date object- $carbon = new Carbon($entry->date, $entry->date_tz);- $carbonKey = $carbon->format('Y-m-d');+ $carbon = new Carbon($entry->date, $entry->date_tz);+ $carbonKey = $carbon->format('Y-m-d');// make sure sum is a string:- $sumOfDay = (string)($entry->sum_of_day ?? '0');+ $sumOfDay = (string) ($entry->sum_of_day ?? '0');// #10426 make sure sum is not in scientific notation.- $sumOfDay = $this->floatalize($sumOfDay);+ $sumOfDay = $this->floatalize($sumOfDay);// find currency of this entry, does not have to exist.$currencies[$entry->transaction_currency_id] ??= Amount::getTransactionCurrencyById($entry->transaction_currency_id);// make sure this $entry has its own $entryCurrency/** @var TransactionCurrency $entryCurrency */- $entryCurrency = $currencies[$entry->transaction_currency_id];+ $entryCurrency = $currencies[$entry->transaction_currency_id];// Log::debug(sprintf('Processing transaction(s) on moment %s', $carbon->format('Y-m-d H:i:s')));// add amount to current balance in currency code.- $currentBalance[$entryCurrency->code] ??= '0';- $currentBalance[$entryCurrency->code] = bcadd($sumOfDay, (string)$currentBalance[$entryCurrency->code]);+ $currentBalance[$entryCurrency->code] ??= '0';+ $currentBalance[$entryCurrency->code] = bcadd($sumOfDay, (string) $currentBalance[$entryCurrency->code]);// if not requested to convert to primary currency, add the amount to "balance", do nothing else.if (!$convertToPrimary) {- $currentBalance['balance'] = bcadd((string)$currentBalance['balance'], $sumOfDay);+ $currentBalance['balance'] = bcadd((string) $currentBalance['balance'], $sumOfDay);}// if convert to primary currency add the converted amount to "pc_balance".// if there is a request to convert, convert to "pc_balance" and use "balance" for whichever amount is in the primary currency.if ($convertToPrimary) {- $pcSumOfDay = $converter->convert($entryCurrency, $primaryCurrency, $carbon, $sumOfDay);- $currentBalance['pc_balance'] = bcadd((string)($currentBalance['pc_balance'] ?? '0'), $pcSumOfDay);- $currentBalance[$primaryCurrency->code] = bcadd((string)($currentBalance[$primaryCurrency->code] ?? '0'), $pcSumOfDay);+ $pcSumOfDay = $converter->convert($entryCurrency, $primaryCurrency, $carbon, $sumOfDay);+ $currentBalance['pc_balance'] = bcadd((string) ($currentBalance['pc_balance'] ?? '0'), $pcSumOfDay);+ $currentBalance[$primaryCurrency->code] = bcadd((string) ($currentBalance[$primaryCurrency->code] ?? '0'), $pcSumOfDay);// if it's the same currency as the entry, also add to balance (see other code).if ($currency->id === $entryCurrency->id) {- $currentBalance['balance'] = bcadd((string)$currentBalance['balance'], $sumOfDay);+ $currentBalance['balance'] = bcadd((string) $currentBalance['balance'], $sumOfDay);}}// add to final array.- $balances[$carbonKey] = $currentBalance;+ $balances[$carbonKey] = $currentBalance;// Log::debug(sprintf('Updated entry [%s]', $carbonKey), $currentBalance);}@@ -578,26 +582,26 @@ class Steam*/public function floatalize(string $value): string{- $value = strtoupper($value);+ $value = strtoupper($value);if (!str_contains($value, 'E')) {return $value;}// Log::debug(sprintf('Floatalizing %s', $value));- $number = substr($value, 0, (int)strpos($value, 'E'));+ $number = substr($value, 0, (int) strpos($value, 'E'));if (str_contains($number, '.')) {- $post = strlen(substr($number, (int)strpos($number, '.') + 1));- $mantis = substr($value, (int)strpos($value, 'E') + 1);+ $post = strlen(substr($number, (int) strpos($number, '.') + 1));+ $mantis = substr($value, (int) strpos($value, 'E') + 1);if ($mantis < 0) {- $post += abs((int)$mantis);+ $post += abs((int) $mantis);}// TODO careless float could break financial math.- return number_format((float)$value, $post, '.', '');+ return number_format((float) $value, $post, '.', '');}// TODO careless float could break financial math.- return number_format((float)$value, 0, '.', '');+ return number_format((float) $value, 0, '.', '');}public function formatAmountByCode(string $amount, string $code, ?bool $coloured = null): string@@ -621,7 +625,7 @@ class Steampublic function formatAmountBySymbol(string $amount, ?string $symbol = null, ?int $decimalPlaces = null, ?bool $coloured = null): string{if (null === $symbol) {- $message = sprintf(+ $message = sprintf('formatAmountBySymbol("%s", %s, %d, %s) was called without a symbol. Please browse to /flush to clear your cache.',$amount,var_export($symbol, true),@@ -632,8 +636,8 @@ class Steam$currency = Amount::getPrimaryCurrency();}if (null !== $symbol) {- $decimalPlaces ??= 2;- $coloured ??= true;+ $decimalPlaces ??= 2;+ $coloured ??= true;$currency = new TransactionCurrency();$currency->symbol = $symbol;$currency->decimal_places = $decimalPlaces;@@ -644,8 +648,8 @@ class Steampublic function getAccountCurrency(Account $account): ?TransactionCurrency{- $type = $account->accountType->type;- $list = config('firefly.valid_currency_account_types');+ $type = $account->accountType->type;+ $list = config('firefly.valid_currency_account_types');// return null if not in this list.if (!in_array($type, $list, true)) {@@ -656,7 +660,7 @@ class Steamreturn null;}- return Amount::getTransactionCurrencyById((int)$result->data);+ return Amount::getTransactionCurrencyById((int) $result->data);}public function getHostName(string $ipAddress): string@@ -670,11 +674,11 @@ class Steam$hostName = $ipAddress;}- if ('' !== (string)$hostName && $hostName !== $ipAddress) {+ if ('' !== (string) $hostName && $hostName !== $ipAddress) {$host = $hostName;}- return (string)$host;+ return (string) $host;}/**@@ -698,18 +702,19 @@ class Steam{$list = [];- $set = auth()+ $set = auth()->user()->transactions()->whereIn('transactions.account_id', $accounts)->groupBy(['transactions.account_id', 'transaction_journals.user_id'])- ->get(['transactions.account_id', DB::raw('MAX(transaction_journals.date) AS max_date')]);+ ->get(['transactions.account_id', DB::raw('MAX(transaction_journals.date) AS max_date')])+ ;/** @var Transaction $entry */foreach ($set as $entry) {- $date = new Carbon($entry->max_date, config('app.timezone'));+ $date = new Carbon($entry->max_date, config('app.timezone'));$date->setTimezone(config('app.timezone'));- $list[(int)$entry->account_id] = $date;+ $list[(int) $entry->account_id] = $date;}return $list;@@ -725,14 +730,14 @@ class Steamif (null !== $cached) {return $cached;}- $locale = Preferences::get('locale', config('firefly.default_locale', 'equal'))->data;+ $locale = Preferences::get('locale', config('firefly.default_locale', 'equal'))->data;if (is_array($locale)) {$locale = 'equal';}if ('equal' === $locale) {$locale = $this->getLanguage();}- $locale = (string)$locale;+ $locale = (string) $locale;// Check for Windows to replace the locale correctly.if ('WIN' === strtoupper(substr(PHP_OS, 0, 3))) {@@ -771,7 +776,7 @@ class Steampublic function getSafeUrl(string $unknownUrl, string $safeUrl): string{// Log::debug(sprintf('getSafeUrl(%s, %s)', $unknownUrl, $safeUrl));- $returnUrl = $safeUrl;+ $returnUrl = $safeUrl;// die('in get safe url');try {@@ -834,24 +839,24 @@ class Steam// has a K in it, remove the K and multiply by 1024.$bytes = bcmul(rtrim($string, 'k'), '1024');- return (int)$bytes;+ return (int) $bytes;}if (false !== stripos($string, 'm')) {// has a M in it, remove the M and multiply by 1048576.$bytes = bcmul(rtrim($string, 'm'), '1048576');- return (int)$bytes;+ return (int) $bytes;}if (false !== stripos($string, 'g')) {// has a G in it, remove the G and multiply by (1024)^3.$bytes = bcmul(rtrim($string, 'g'), '1073741824');- return (int)$bytes;+ return (int) $bytes;}- return (int)$string;+ return (int) $string;}public function positive(string $amount): string@@ -890,13 +895,13 @@ class Steamif (null === $preference) {$singleton->setPreference($key, $currency);}- $current = $amount;+ $current = $amount;if ($currency->id !== $primary->id) {$current = $converter->convert($currency, $primary, $date, $amount);// Log::debug(sprintf('Convert %s %s to %s %s', $currency->code, $amount, $primary->code, $current));}- $total = bcadd((string)$current, $total);+ $total = bcadd((string) $current, $total);}return $total;@@ -910,18 +915,18 @@ class Steam$primary = Amount::getPrimaryCurrency();$currencies[$primary->id] = $primary;- $ids = $accounts->pluck('id')->toArray();- $result = AccountMeta::query()->whereIn('account_id', $ids)->where('name', 'currency_id')->get();+ $ids = $accounts->pluck('id')->toArray();+ $result = AccountMeta::query()->whereIn('account_id', $ids)->where('name', 'currency_id')->get();/** @var AccountMeta $item */foreach ($result as $item) {- $integer = (int)$item->data;+ $integer = (int) $item->data;if (0 !== $integer) {- $accountPreferences[(int)$item->account_id] = $integer;+ $accountPreferences[(int) $item->account_id] = $integer;}}// collect those currencies, skip primary because we already have it.- $set = TransactionCurrency::query()->whereIn('id', $accountPreferences)->where('id', '!=', $primary->id)->get();+ $set = TransactionCurrency::query()->whereIn('id', $accountPreferences)->where('id', '!=', $primary->id)->get();foreach ($set as $item) {$currencies[$item->id] = $item;}@@ -932,7 +937,7 @@ class Steam$currencyPresent = property_exists($account, 'meta') && array_key_exists('currency', $account->meta) && null !== $account->meta['currency'];if ($currencyPresent) {$currencyId = $account->meta['currency']->id;- $currencies[$currencyId] ??= $account->meta['currency'];+ $currencies[$currencyId] ??= $account->meta['currency'];$accountCurrencies[$accountId] = $account->meta['currency'];}if (!$currencyPresent && !array_key_exists($accountId, $accountPreferences)) {@@ -952,7 +957,7 @@ class Steamforeach ($array as $item) {$groupKey = $item[$group] ?? 'unknown';- $return[$groupKey] = bcadd($return[$groupKey] ?? '0', (string)$item[$field]);+ $return[$groupKey] = bcadd($return[$groupKey] ?? '0', (string) $item[$field]);}return $return;diff --git a/app/User.php b/app/User.phpindex 8faec32ee6..d7b641b0ae 100644--- a/app/User.php+++ b/app/User.php@@ -88,7 +88,7 @@ class User extends Authenticatable implements OAuthenticatable#[Override]protected $fillable = ['email', 'password', 'blocked', 'blocked_code', 'user_group_id'];#[Override]- protected $hidden = ['password', 'remember_token', 'mfa_secret','reset'];+ protected $hidden = ['password', 'remember_token', 'mfa_secret', 'reset'];#[Override]protected $table = 'users';diff --git a/app/View/Components/Form/Alpine/TransactionCurrency.php b/app/View/Components/Form/Alpine/TransactionCurrency.phpindex 896a526b24..26f3878587 100644--- a/app/View/Components/Form/Alpine/TransactionCurrency.php+++ b/app/View/Components/Form/Alpine/TransactionCurrency.php@@ -1,5 +1,7 @@<?php+declare(strict_types=1);+namespace FireflyIII\View\Components\Form\Alpine;use Closure;@@ -9,6 +11,7 @@ use Illuminate\View\Component;class TransactionCurrency extends Component{public string $value;+/*** Create a new component instance.*/@@ -20,7 +23,7 @@ class TransactionCurrency extends Component/*** Get the view / contents that represent the component.*/- public function render(): View|Closure|string+ public function render(): Closure|string|View{return view('components.form.alpine.transaction-currency');}diff --git a/composer.lock b/composer.lockindex a1e00ab041..b509202bba 100644--- a/composer.lock+++ b/composer.lock@@ -3524,16 +3524,16 @@},{"name": "monolog/monolog",- "version": "3.11.0",+ "version": "3.12.0","source": {"type": "git","url": "https://github.com/Seldaek/monolog.git",- "reference": "147f303310f06334f03f409e49d7ad1e275ff05a"+ "reference": "72c534fc0ab181ef52d92a68382318631e301608"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/Seldaek/monolog/zipball/147f303310f06334f03f409e49d7ad1e275ff05a",- "reference": "147f303310f06334f03f409e49d7ad1e275ff05a",+ "url": "https://api.github.com/repos/Seldaek/monolog/zipball/72c534fc0ab181ef52d92a68382318631e301608",+ "reference": "72c534fc0ab181ef52d92a68382318631e301608","shasum": ""},"require": {@@ -3559,6 +3559,7 @@"phpstan/phpstan-strict-rules": "^2","phpunit/phpunit": "^10.5.17 || ^11.0.7","predis/predis": "^1.1 || ^2",+ "psr/clock": "^1.0","rollbar/rollbar": "^4.0","ruflin/elastica": "^7 || ^8","symfony/mailer": "^5.4 || ^6",@@ -3577,6 +3578,7 @@"graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server","mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)","php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib",+ "psr/clock": "Required to pass a clock to the Logger and control the timestamp of log records","rollbar/rollbar": "Allow sending log messages to Rollbar","ruflin/elastica": "Allow sending log messages to an Elastic Search server"},@@ -3611,7 +3613,7 @@],"support": {"issues": "https://github.com/Seldaek/monolog/issues",- "source": "https://github.com/Seldaek/monolog/tree/3.11.0"+ "source": "https://github.com/Seldaek/monolog/tree/3.12.0"},"funding": [{@@ -3623,7 +3625,7 @@"type": "tidelift"}],- "time": "2026-09-02T12:39:56+00:00"+ "time": "2026-09-09T08:34:20+00:00"},{"name": "nesbot/carbon",diff --git a/config/firefly.php b/config/firefly.phpindex 237f796428..48797cc260 100644--- a/config/firefly.php+++ b/config/firefly.php@@ -79,7 +79,7 @@ return [// see cer.php for exchange rates feature flag.],'version' => 'develop/2026-09-09',-'build_time' => 1788931220,+'build_time' => 1788981590,'api_version' => '2.1.0', // field is no longer used.'db_version' => 28, // field is no longer used.diff --git a/package-lock.json b/package-lock.jsonindex c493602b54..95b73243c7 100644--- a/package-lock.json+++ b/package-lock.json@@ -72,9 +72,9 @@"license": "MIT"},"node_modules/@oxc-project/types": {- "version": "0.148.0",- "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.148.0.tgz",- "integrity": "sha512-Nm4s/jB+4FpFsPhWGEC4h7rzksesmtnMXomo6rCMcg/b8zLQuOziRgkCS1fxDCXOlJB/6Q8oABOZ/OP6RIPj9A==",+ "version": "0.149.0",+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.149.0.tgz",+ "integrity": "sha512-Efcc+iF0j3Bf67YjEqIqWXbX5XddXoK/Mw4K1/JuXwRCZ8N16VR7iT23nlCc9XrveFVh/E5Rqs2StT0V8v9LdA==","dev": true,"license": "MIT","funding": {@@ -394,9 +394,9 @@}},"node_modules/@rolldown/binding-android-arm-eabi": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.7.tgz",- "integrity": "sha512-EypzgnYCwyVY4NDHKzGmNJT5b+XaQEBniHxsMdeIQLB/tcCzZnhqrzHpZFbX9iaxx+5RiB8caATBtfvZP7zVxQ==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.8.tgz",+ "integrity": "sha512-tN5aztYkKCte4i5SIrrz5yK/HMjEuCqCSCJa418jOV8tZ1cBY3YF2otxB1ktPxzsLA1BeTqwapK0bfjxNvHJVw==","cpu": ["arm"],@@ -411,9 +411,9 @@}},"node_modules/@rolldown/binding-android-arm64": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.7.tgz",- "integrity": "sha512-l17HE9EweWaqJZhuUuNBN/FzM62xw+DECVnJyvMsxn8vJFAGLy5QfLDoYAcronkAN8VxKZHezDpulHDPx95vFw==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.8.tgz",+ "integrity": "sha512-dIYTWl9XprMUiQFoc55KUyk/oS8SKYH3zFl0LTR7RT0Xj4hgSVyuJcroH8JUu8RcpF8fTB6E0aOwCkZoYPcDSQ==","cpu": ["arm64"],@@ -428,9 +428,9 @@}},"node_modules/@rolldown/binding-darwin-arm64": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.7.tgz",- "integrity": "sha512-8ED8ELFvHXc6OCETIn4gXObPiaR6bckM/ipXtbzlPVDRMBfEGjCKgO90F9YtfdpDatVx/ZQw7aZ1vUMf/+T3Mw==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.8.tgz",+ "integrity": "sha512-PCSDQGXD2IyTEFrcgPyBM8jJuGmrbCMuoIOXdbEGVemruKACXoLQJrb+A45Z0L5t1RQkdfJprAYPkikbh7dzdA==","cpu": ["arm64"],@@ -445,9 +445,9 @@}},"node_modules/@rolldown/binding-darwin-x64": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.7.tgz",- "integrity": "sha512-/WPripjtiAIZ2tWY7ddijORT0Ujg87wxWW/qcoFVCKAWVDPhtY0xr7Dj0M3GyNGz60jGwTElhro/mkF9dT7dDQ==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.8.tgz",+ "integrity": "sha512-Uk7lRsGhPFHVX/sAUC6D5H9Ol30dFHd6iquokll2th3LpdJ3F5CzQB+7DHn0Ri2mG+U7k2zXiPHDrwZenXhwSA==","cpu": ["x64"],@@ -462,9 +462,9 @@}},"node_modules/@rolldown/binding-freebsd-x64": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.7.tgz",- "integrity": "sha512-14DI4NcqpvbICxSnGLx3PmtDaWqRP/KGSGb6C+JLLVPeZRl6dKdHba3pGsqT3vpdTqhEYIPG0MMQ8c0xYqoJxA==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.8.tgz",+ "integrity": "sha512-DjszaTEVogPqA5bYzsEeqDCQxbcp2fexQwKcRspYji2yzR68fCf+e4fx6kBSRDwX5/brZaHw/hWS9+A/+/w9sQ==","cpu": ["x64"],@@ -479,9 +479,9 @@}},"node_modules/@rolldown/binding-linux-arm-gnueabihf": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.7.tgz",- "integrity": "sha512-bxrWIRvHWQvbJwi+VIie/kDJmQxcNE6xxWwZdqF/ExVAigtHkv54WTLQPb+QsZdnFy18fg7JPfWGL0RH6vwIlQ==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.8.tgz",+ "integrity": "sha512-zmwa7FTmdzB6aaEEuuls18H6Ap5JmJPSoPTuXixeJZV6tG40SyLkApQtz1g8ptZtiEKqj9OM0oNLPh1AgvE31Q==","cpu": ["arm"],@@ -496,9 +496,9 @@}},"node_modules/@rolldown/binding-linux-arm64-gnu": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.7.tgz",- "integrity": "sha512-toOY2BChBZyuxU7OYX6Tn389di4IzAqPTycVcci0O7FSfBqzRB3RZn+K5Is6ANf4tmgRd/K1yZTsNTXbkXsnLg==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.8.tgz",+ "integrity": "sha512-KdYQDPHwJVnbFwdTGMgxsI9SqblBlz6STGM+w1We/d5B8OWWidYH0MwkU/uA1wM5fIpO2MkOVxXrNzzuZhw9ew==","cpu": ["arm64"],@@ -513,9 +513,9 @@}},"node_modules/@rolldown/binding-linux-arm64-musl": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.7.tgz",- "integrity": "sha512-lAIXTH/aiLRLxsTgQvfhjo4K1ydWIp00+V0voOr9beb/9ZmkUFrSIb03dXNFRgMNvkE6oGsF10ioQ6UsI+vS5Q==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.8.tgz",+ "integrity": "sha512-jFJTifHnNPY+yzOoNZQfSIysrVyXzEQPhPnOUjmD1bcQGHH6s7c8cViKWar8YplQImE5N9JRqMCLrM2CdxOrZA==","cpu": ["arm64"],@@ -530,9 +530,9 @@}},"node_modules/@rolldown/binding-linux-ppc64-gnu": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.7.tgz",- "integrity": "sha512-kdnwS28Pkenp/mZMRwjXXXwxQ7pIsm+bF919LUK93BOyhcLsrVKdP2p9fxpiPNPAbNuch8ypQt0pm2P2LYCAGg==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.8.tgz",+ "integrity": "sha512-FhiOziBDWPBjbcmRzfLyIJnaP7AVMFXT7YCXPjXxj7wKU3vx24RjrCNN/zjvVa+N2vVoHJwCoUBvsrN/DG3zIA==","cpu": ["ppc64"],@@ -547,9 +547,9 @@}},"node_modules/@rolldown/binding-linux-s390x-gnu": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.7.tgz",- "integrity": "sha512-516OdsyLdr5E65paF3yBF55t8mfm9+gmtCsK3xI7XKXIT7EfRlHhxL8K/NR6Hu8BWSgF5+1w74lTL0+nxcc8Qw==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.8.tgz",+ "integrity": "sha512-WnHfADMzOV2Y55wlx1hzzQnar/wDt/VdvWSD99r18Mz9ylNieIGOkRx3UV21h7m/eJvjySYJkO26VvGNFkwsIQ==","cpu": ["s390x"],@@ -564,9 +564,9 @@}},"node_modules/@rolldown/binding-linux-x64-gnu": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.7.tgz",- "integrity": "sha512-r8/z8n7GFaYRln3xmP1Cxy0HH/HLM0uBUPkEuSVEfKGDA89M0FsZRZJRSwe/tJjRx+fpH/gjorfhB8tmEbSFLA==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.8.tgz",+ "integrity": "sha512-H9tRr5ibfXFVLxbPOseVewewFpl28zcEdjRDt2FTUZU7odxP0gEv1ki4/kGmcGOh78oRwZuuQllGLZ9zTJp84g==","cpu": ["x64"],@@ -581,9 +581,9 @@}},"node_modules/@rolldown/binding-linux-x64-musl": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.7.tgz",- "integrity": "sha512-pAsE8iiDxUg1xBqdhrTfg45AVDVpirjz00sblEYClGNNcMnDb+e8beQgqIAw6LvauX/APvgxUnwrgun/YYGBhw==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.8.tgz",+ "integrity": "sha512-UefiqfM3D6IVNlZ8tSGs9+Ejjud2T+oxO0IHADU45Y+lyEjD2dVFyZHbkfX0LUb5Zugo/oIv1eCO/KVYhgYJYA==","cpu": ["x64"],@@ -598,9 +598,9 @@}},"node_modules/@rolldown/binding-openharmony-arm64": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.7.tgz",- "integrity": "sha512-lTcIYmmnQQA8Or/2DatS6oSqcdLHvendjS+zLu+FwgToynWMRSmQdpM65fTANJgIS4mjbMOo5KT2lnT9SAb96w==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.8.tgz",+ "integrity": "sha512-637Ke4kWSy6rp9cxQ9gMOXlxPgIw/c1beASV4M//3+9I4uwBVOOl74G+e3zyU3u19U7RkRl/HuewixZ/Z6+Rjg==","cpu": ["arm64"],@@ -615,9 +615,9 @@}},"node_modules/@rolldown/binding-win32-arm64-msvc": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.7.tgz",- "integrity": "sha512-e3Gu3WxbNk/UqQhxqU7YIYO+9ZBvWNz3U+h/qRFosscMFzdRPbXYSaSWgSnklv2fz1TgzBTcti2z35c/7irsHw==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.8.tgz",+ "integrity": "sha512-xWBkPOF1Q9k/Gv1nQXnVdLxKu74jXppuOM4Z3mnypVUJJJwLsMl7hNJGRAUJoG8A5MgOI1ACKM+wBFxSJzKy4A==","cpu": ["arm64"],@@ -632,9 +632,9 @@}},"node_modules/@rolldown/binding-win32-x64-msvc": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.7.tgz",- "integrity": "sha512-W/jg5qoRSqjsEv0+dZi4e687mcHqmVuU0P4fK6qS/xjetW2Gmc1W8j//z5nAeNcC8Ttm0hV46IjcYeuVwYhuiw==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.8.tgz",+ "integrity": "sha512-uz2ZvfgXbxqNwijjjbxrnvALwpyODDcgc1T1N8N3rf/DXKQmaFwmB4LX4yyjggpwN2obdQLb2rgirX5ffCWYng==","cpu": ["x64"],@@ -2179,13 +2179,13 @@}},"node_modules/rolldown": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.7.tgz",- "integrity": "sha512-g0EtLvBjTUB7jhyV0S/TCup3v/XSVl45vUIGbOGU4QPiyjTenCe4mKuFvW9fEgYmS2Fo42AUssRmNuMziXdrig==",+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.8.tgz",+ "integrity": "sha512-Z67nTmhZe7anqnM/EjI392w5i/ANUinjip7QYsOyN37oayduxt3ksdX0hf5OOamkAd53BiIHfbfSzfUmzKFQqQ==","dev": true,"license": "MIT","dependencies": {- "@oxc-project/types": "=0.148.0",+ "@oxc-project/types": "=0.149.0","@rolldown/pluginutils": "^1.0.0"},"bin": {@@ -2195,21 +2195,21 @@"node": "^20.19.0 || >=22.12.0"},"optionalDependencies": {- "@rolldown/binding-android-arm-eabi": "1.2.7",- "@rolldown/binding-android-arm64": "1.2.7",- "@rolldown/binding-darwin-arm64": "1.2.7",- "@rolldown/binding-darwin-x64": "1.2.7",- "@rolldown/binding-freebsd-x64": "1.2.7",- "@rolldown/binding-linux-arm-gnueabihf": "1.2.7",- "@rolldown/binding-linux-arm64-gnu": "1.2.7",- "@rolldown/binding-linux-arm64-musl": "1.2.7",- "@rolldown/binding-linux-ppc64-gnu": "1.2.7",- "@rolldown/binding-linux-s390x-gnu": "1.2.7",- "@rolldown/binding-linux-x64-gnu": "1.2.7",- "@rolldown/binding-linux-x64-musl": "1.2.7",- "@rolldown/binding-openharmony-arm64": "1.2.7",- "@rolldown/binding-win32-arm64-msvc": "1.2.7",- "@rolldown/binding-win32-x64-msvc": "1.2.7"+ "@rolldown/binding-android-arm-eabi": "1.2.8",+ "@rolldown/binding-android-arm64": "1.2.8",+ "@rolldown/binding-darwin-arm64": "1.2.8",+ "@rolldown/binding-darwin-x64": "1.2.8",+ "@rolldown/binding-freebsd-x64": "1.2.8",+ "@rolldown/binding-linux-arm-gnueabihf": "1.2.8",+ "@rolldown/binding-linux-arm64-gnu": "1.2.8",+ "@rolldown/binding-linux-arm64-musl": "1.2.8",+ "@rolldown/binding-linux-ppc64-gnu": "1.2.8",+ "@rolldown/binding-linux-s390x-gnu": "1.2.8",+ "@rolldown/binding-linux-x64-gnu": "1.2.8",+ "@rolldown/binding-linux-x64-musl": "1.2.8",+ "@rolldown/binding-openharmony-arm64": "1.2.8",+ "@rolldown/binding-win32-arm64-msvc": "1.2.8",+ "@rolldown/binding-win32-x64-msvc": "1.2.8"}},"node_modules/rxjs": {