From fafd162db08e48c61cd934cd6dcc9b6123dd0b83 Mon Sep 17 00:00:00 2001 From: Jed Fox <git@jedfox.com> Date: Mon, 22 May 2023 18:20:09 -0400 Subject: [PATCH] Export `api/methods.js` at the top level again (#1054) This allows using the API as documented. In #877, I think this was unintentionally converted to be a named export. --- packages/api/index.js | 3 +++ upcoming-release-notes/1054.md | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 upcoming-release-notes/1054.md diff --git a/packages/api/index.js b/packages/api/index.js index 71f97f69b..b601d97d3 100644 --- a/packages/api/index.js +++ b/packages/api/index.js @@ -6,7 +6,10 @@ import * as injected from './injected'; let actualApp; export const internal = bundle.lib; +// DEPRECATED: remove the next line in @actual-app/api v7 export * as methods from './methods'; + +export * from './methods'; export * as utils from './utils'; export async function init(config = {}) { diff --git a/upcoming-release-notes/1054.md b/upcoming-release-notes/1054.md new file mode 100644 index 000000000..742feea13 --- /dev/null +++ b/upcoming-release-notes/1054.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [j-f1] +--- + +Re-export the API methods at the top level of the `@actual-budget/api` package like they were in the past. Note: If you were using the `api.methods.<method>` syntax to access API methods in recent versions, that is now deprecated and will stop working with the next major release of the API package. -- GitLab