Reference
Changelog
What changed in each release. The package follows semantic versioning; before 1.0, minor versions may change the public API.
Releases are also published on GitHub and npm.
0.1.0#
2026-09-23
Initial public release.
semantic(state)withis(),score(),choose(),batch()andrank().- Automatic batching: every question created in one synchronous turn shares a request. Warning on unbatched sequential awaits outside production.
createSemantic()for private instances;configureSemantic()for the module-level one; zero configuration withJEV_API_KEY.- Definitions:
defineRule,defineMetric,defineSchema, and the low-levelevaluate()withboolean,number,enumOf,objectandnumberRangeoutput helpers. - Collections:
filter,some,every,rank,find(one request) andcompare(one request). - Measured confidence via
samplesandminConfidence, with value or asyncfallback;allowUnknownbands. - Caching with TTL strings, an LRU
MemoryCache, and theSemanticCacheinterface for shared stores. - Observability hooks
onEvaluationandonUnbatched. - Jev provider with a pinned model, retries with backoff, timeouts, and per-request key resolution.
jevascript/testingwithcreateMockSemanticProvider.- Error classes:
SemanticError,NotConfiguredError,UnsupportedByProviderError,LowConfidenceError,ProviderError.
Not yet built#
Designed but out of scope for this release: evidence (extractive citation of the lines behind a judgement), semanticAssert and defineInvariant, definePolicy (mixed deterministic and semantic rules), semantic.query, evaluateDataset, adaptive filter packing, and framework and provider add-ons (Next.js helper, Zod bridge, OpenAI provider, Vercel AI SDK bridge).