Skip to content
Snippets Groups Projects
Unverified Commit fafd162d authored by Jed Fox's avatar Jed Fox Committed by GitHub
Browse files

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.
parent ec5e98b9
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,10 @@ import * as injected from './injected'; ...@@ -6,7 +6,10 @@ import * as injected from './injected';
let actualApp; let actualApp;
export const internal = bundle.lib; export const internal = bundle.lib;
// DEPRECATED: remove the next line in @actual-app/api v7
export * as methods from './methods'; export * as methods from './methods';
export * from './methods';
export * as utils from './utils'; export * as utils from './utils';
export async function init(config = {}) { export async function init(config = {}) {
......
---
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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment