Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Changed

- Updated the expression engine to `obsidian-bases-expression` 0.3.0-rc.5 and the expression editor to `obsidian-bases-expression-builder` 0.2.0-rc.3. Expressions no longer overflow the stack if they read a value that refers back to itself (obsidian-bases-expression #7).

## [0.1.5] - 2026-11-11

### Fixed
Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"dependencies": {
"@callumalpass/mdbase-interop": "0.1.0-rc.2",
"@callumalpass/mdbase-runtime": "file:vendor/callumalpass-mdbase-runtime-0.2.0-rc.1.tgz",
"obsidian-bases-expression": "^0.2.0",
"obsidian-bases-expression-builder": "^0.1.0",
"obsidian-bases-expression": "^0.3.0-rc.5",
"obsidian-bases-expression-builder": "^0.2.0-rc.3",
"yaml": "^2.8.1"
},
"devDependencies": {
Expand Down
13 changes: 13 additions & 0 deletions tests/expressions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,17 @@ describe("workflow expressions", () => {
$expr: "steps.read-parent.output.tasks[0].customProperties.area",
}, "$", schema)).toEqual([]);
});

it("evaluates over a context that reaches a circular object graph", () => {
// The engine passes plain data, but the expression library must not
// overflow if a runtime object slips through (issue #22).
const app: Record<string, unknown> = {};
app.self = app;
const run = context();
run.steps.read = { status: "success", output: { task: { title: "Write report", app } } };

expect(evaluateWorkflowExpression({ $expr: "steps.read.output.task.title" }, run)).toBe(
"Write report"
);
});
});
Loading