[PR #5747] [MERGED] Align amount conversion utilities between api and loot-core #36286

Closed
opened 2026-04-20 23:09:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5747
Author: @StephenBrown2
Created: 9/19/2025
Status: Merged
Merged: 10/5/2025
Merged by: @matt-fidd

Base: masterHead: unify-integer-amount-functions


📝 Commits (2)

  • 0f8fbac Align amount conversion utilities between api and loot-core
  • 1d04b20 Moves amount conversion utils to core

📊 Changes

4 files changed (+8 additions, -9 deletions)

View changed files

packages/api/utils.js (+0 -7)
packages/api/utils.ts (+1 -0)
📝 packages/loot-core/src/server/importers/ynab4.ts (+1 -2)
upcoming-release-notes/5747.md (+6 -0)

📄 Description

Updates api amount conversion utilities to use the loot-core versions.

  • Removed duplicate implementations: Deleted the local amountToInteger and integerToAmount function implementations
  • Added re-exports: Used a single export statement to re-export both functions from the loot-core module
  • Maintained API compatibility: The public API remains exactly the same - consumers of this module won't need to change anything

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/5747 **Author:** [@StephenBrown2](https://github.com/StephenBrown2) **Created:** 9/19/2025 **Status:** ✅ Merged **Merged:** 10/5/2025 **Merged by:** [@matt-fidd](https://github.com/matt-fidd) **Base:** `master` ← **Head:** `unify-integer-amount-functions` --- ### 📝 Commits (2) - [`0f8fbac`](https://github.com/actualbudget/actual/commit/0f8fbac5abcf578b45425f34a7c3e37db11b7a20) Align amount conversion utilities between api and loot-core - [`1d04b20`](https://github.com/actualbudget/actual/commit/1d04b20f9a66052fa5b9b5ddc3050634ecbb20fb) Moves amount conversion utils to core ### 📊 Changes **4 files changed** (+8 additions, -9 deletions) <details> <summary>View changed files</summary> ➖ `packages/api/utils.js` (+0 -7) ➕ `packages/api/utils.ts` (+1 -0) 📝 `packages/loot-core/src/server/importers/ynab4.ts` (+1 -2) ➕ `upcoming-release-notes/5747.md` (+6 -0) </details> ### 📄 Description Updates api amount conversion utilities to use the loot-core versions. - Removed duplicate implementations: Deleted the local amountToInteger and integerToAmount function implementations - Added re-exports: Used a single export statement to re-export both functions from the loot-core module - Maintained API compatibility: The public API remains exactly the same - consumers of this module won't need to change anything --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 23:09:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#36286