Skip to content

v0.3.0

Latest

Choose a tag to compare

@pablogdcr pablogdcr released this 06 Jun 13:52
· 3 commits to main since this release

Changes

New hooks, model status queries, and Android language selection.

  • Added useDataDetector (imperative) and useDetectedEntities (reactive, as-you-type) hooks — both track model readiness and auto-download the model on Android.
  • Added getModelStatus() and isModelReady() to query whether a language model is available (iOS always reports ready).
  • Added Android multi-language support — detect, prepareModel, getModelStatus, isModelReady, and the hooks accept a language option selecting one of 15 ML Kit models (defaults to 'en'; ignored on iOS).
  • Renamed downloadModel() to prepareModel() (now accepts a { language } option); downloadModel() remains as a deprecated alias.
  • Corrected the minimum Android SDK to API 26 — required by ML Kit Entity Extraction (entity-extraction:16.0.0-beta6).
  • Fixed iOS to return UTF-16 offsets so start/end align with JavaScript string indices.
  • Fixed Android to read the library version from package.json.

Full Changelog: v0.2.0...v0.3.0