Skip to content

Update obsidian-bases-expression to 0.3.0-rc.5 - #24

Merged
callumalpass merged 1 commit into
mainfrom
chore/bases-expression-0.3
Nov 11, 2026
Merged

callumalpass merged 1 commit into
mainfrom
chore/bases-expression-0.3

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Updates the expression engine to obsidian-bases-expression 0.3.0-rc.5, which adds the fromJs cycle guard from callumalpass/obsidian-bases-expression#8 (fixes callumalpass/obsidian-bases-expression#7). It backs up the plain-data conversion added for #22 in #23.

Changes

  • obsidian-bases-expression ^0.2.0 → ^0.3.0-rc.5.
  • obsidian-bases-expression-builder ^0.1.0 → ^0.2.0-rc.3. This is required: builder 0.1.0 requires expression ^0.2.0, while 0.2.0-rc.3 accepts ^0.3.0-rc.4.
  • The lockfile keeps obsidian at 1.13.1. Re-resolving would pick 1.14.4, which requires @codemirror/state 6.7.6 and conflicts with the builder's (and this repo's) 6.5.0 pin. package.json ranges for obsidian and CodeMirror are unchanged.
  • New test in tests/expressions.test.ts: an expression over a context that reaches a circular object evaluates normally.
  • CHANGELOG.md entry under Unreleased.

Changes in 0.3.0-rc.x since 0.2.0 are additions (inference, Bases/mdbase adapters, thisRecord) and a parser fix for punctuation-only string literals.

Checks

npm ci, npm test (72 passed), npm run typecheck, npm run lint and npm run build pass. I haven't checked the expression editor in Obsidian, because no instance was running.

0.3.0-rc.5 adds a cycle guard to fromJs (obsidian-bases-expression#7),
so expression evaluation no longer overflows on circular context values.
This backs up the plain-data conversion added for #22.

obsidian-bases-expression-builder 0.1.0 requires the expression package
at ^0.2.0, so the editor moves to 0.2.0-rc.3, which accepts
^0.3.0-rc.4. Obsidian stays at the locked 1.13.1 because builder rc.3
pins @codemirror/state 6.5.0 and @codemirror/view 6.38.6, matching
this repo's own pins.
@callumalpass
callumalpass merged commit 6436a95 into main Nov 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fromJs overflows on circular input

1 participant