Skip to content

v0.4.0

Latest

Choose a tag to compare

@willwade willwade released this 13 Oct 11:48

Changed (breaking)

  • Morphology parsers are now async and safe to bundle in browser/React Native (#53, thanks @sonicbaume):
    • Grid3VerbsParser.parseZip / parseZipDetailed / parseXmlFileDetailed / parseCustomDirectory
    • TDSnapLexiconParser.parseDb
    • WordFormGenerator.generateFromPos
    • MetricsCalculator.analyze
  • Migration: await these calls — e.g. const metrics = await calculator.analyze(tree). I/O now routes through the library's FileAdapter/ZipAdapter abstractions (jszip/sql.js in the browser, adm-zip/better-sqlite3 on Node). Browser callers pass File/Blob inputs rather than paths.