[PR #2738] [MERGED] Add crdt to the API package to fix types #11538

Closed
opened 2026-04-10 21:03:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2738
Author: @twk3
Created: 5/11/2024
Status: Merged
Merged: 5/18/2024
Merged by: @twk3

Base: masterHead: twk3/api-crdt-types


📝 Commits (4)

  • ac993e6 Add crdt to the API package to fix types
  • 86ebbdb Add release note
  • 280895e Merge remote-tracking branch 'origin/master' into twk3/api-crdt-types
  • 10a4f5b Cleanup yarn.lock merge

📊 Changes

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

View changed files

📝 packages/api/package.json (+1 -0)
📝 packages/loot-core/webpack/webpack.api.config.js (+1 -0)
upcoming-release-notes/2738.md (+6 -0)
📝 yarn.lock (+3 -9)

📄 Description

  • This way we get the crdt types available to users when they use the api
    • Otherwise they may have gotten missing type errors from typescript regarding the server/sync code from loot-core.

Instead of adding crdt as a dependency, I did confirm we could generate just the crdt types and copy them into the api like we do for loot-core. But then we still get an error regarding the google-protobuf types missing. Which is fixed by adding google-protobuf to our api dependencies. Being that a dependency needed to be added to the api either way, I just did the crdt one for now (which includes the google-protobuf dependency)

I believe this is the final unblocker for shipping the types with the API in https://github.com/actualbudget/actual/pull/2559


🔄 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/2738 **Author:** [@twk3](https://github.com/twk3) **Created:** 5/11/2024 **Status:** ✅ Merged **Merged:** 5/18/2024 **Merged by:** [@twk3](https://github.com/twk3) **Base:** `master` ← **Head:** `twk3/api-crdt-types` --- ### 📝 Commits (4) - [`ac993e6`](https://github.com/actualbudget/actual/commit/ac993e66021ba518016b74040b73a75bc7bd97f5) Add crdt to the API package to fix types - [`86ebbdb`](https://github.com/actualbudget/actual/commit/86ebbdb3a29fc3e03a2d51e1361c0e021d4b0aa2) Add release note - [`280895e`](https://github.com/actualbudget/actual/commit/280895e9f9af4b16cb34ad221b940f80558e1f61) Merge remote-tracking branch 'origin/master' into twk3/api-crdt-types - [`10a4f5b`](https://github.com/actualbudget/actual/commit/10a4f5becd0c939c74cdfbe91dc7490624bdd644) Cleanup yarn.lock merge ### 📊 Changes **4 files changed** (+11 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/api/package.json` (+1 -0) 📝 `packages/loot-core/webpack/webpack.api.config.js` (+1 -0) ➕ `upcoming-release-notes/2738.md` (+6 -0) 📝 `yarn.lock` (+3 -9) </details> ### 📄 Description - This way we get the crdt types available to users when they use the api * Otherwise they may have gotten missing type errors from typescript regarding the server/sync code from loot-core. Instead of adding crdt as a dependency, I did confirm we could generate just the crdt types and copy them into the api like we do for loot-core. But then we still get an error regarding the google-protobuf types missing. Which is fixed by adding google-protobuf to our api dependencies. Being that a dependency needed to be added to the api either way, I just did the crdt one for now (which includes the google-protobuf dependency) I believe this is the final unblocker for shipping the types with the API in https://github.com/actualbudget/actual/pull/2559 --- <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-10 21:03:02 -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#11538