Repository navigation
Release v1.4.0
Changed
- ML detector no longer needs a separate install: the ONNX Runtime JS API is now bundled into scanic's ESM build as a lazy, code-split chunk (~50 KB, gzip ~15 KB) loaded only on first
detector: 'ml'use.onnxruntime-webis no longer an (optional) peer dependency —npm install scanicis all ML users need. The custom wasm + model still stream from thescanic-mlCDN at runtime, and classical users still download none of it. The matching ORT version is bundled, so there is no longer a peer-version mismatch to get wrong.- UMD/CommonJS consumers are unchanged:
onnxruntime-webstays external there (UMD can't code-split), so script-tag/requireML users still self-provideonnxruntime-web@1.23.x.
- UMD/CommonJS consumers are unchanged:
Installation
npm install scanic@1.4.0Or via CDN:
<script src="https://unpkg.com/scanic@1.4.0/dist/scanic.js"></script>Full Changelog: v1.3.0...v1.4.0