Skip to content

Release 1.5.0

Choose a tag to compare

@reid-spencer reid-spencer released this 06 Feb 04:28
· 1443 commits to main since this release

What's New

RiddlLib Shared Trait

  • Extracted cross-platform RiddlLib trait from JS-only RiddlAPI
  • RiddlLib provides parseString, flattenAST, validateString, getOutline, getTree — usable on JVM, JS, and Native
  • RiddlAPI is now a thin JS facade delegating to RiddlLib

New JS/TS API Methods

  • flattenAST(root) — remove Include/BASTImport wrappers from AST
  • getDomains(root) — extract domain definitions from opaque Root
  • inspectRoot(root) — get plain JS summary of Root

Fixed riddlLibJS Test Runner

  • JS tests now work (override Test linker config to CommonJS)
  • 8 shared RiddlLibTest tests run on both JVM and JS

Un-pended FlattenPassTest

  • FlattenPass test now runs: 3 wrapper nodes before, 0 after

Breaking Changes

TypeScript consumers: parseString() now returns an opaque RootAST handle instead of a plain JS object. Use getDomains(result.value) or inspectRoot(result.value) to access data.

Full Changelog

1.4.0...1.5.0