Changelog - 2026-07-11
Connectors Consistency Hardening
Breaking Change Bug Fix EnhancementIn one line. The Postgres, Typesense and Meilisearch connectors now behave consistently, with a tighter public API and several correctness fixes, including one where a user filter could widen a default scope.
What changed
- Strict
find()/findOne().optsandfilterare required on every connector. The find-all form isfind({ filter: {} }). engineParams. Eleven Typesense-only tuning fields left the neutral search input and now travel throughengineParams, keyed by the engine's wire names.- Memory connector removed.
MemoryDataSource,MemoryRepositoryand the@venizia/ignis/memoryexport are gone. - Internal barrels unexported. The search, Typesense and Meilisearch
internal/modules are no longer public. SwaggerComponentrenamed toApiReferenceComponent. Old names remain as deprecated aliases.- Dead exports removed. The
node:teststructured testing module (TestPlan,TestCase,TestDescribe,BaseTestPlan) and the helperstransformValueOrPromise,getNumberValue,toStringDecimalandparseArrayToRecordWithKey. - New Postgres operators.
exists,notExistsandnotnow work, including on JSON-path fields. They used to throwInvalid query operator. - Faster. Relation resolution is memoized,
WHEREis built once per call, and Meilisearch write polling backs off exponentially.
Who is affected
- Search repository users calling bare
find(). Usefind({ filter: {} }). - Callers passing Typesense-only tuning fields on the search input. Move them to
engineParams. - Memory connector users, and anyone importing an engine
internalbarrel. Those are gone. SwaggerComponentusers. Still works; preferApiReferenceComponentin new code.- Everyone else. No action needed; the fixes apply automatically.
Breaking changes
Strict
find()/findOne(). Barefind()andfind({})are compile errors. In practice this only changes the search repositories.typescript// Before const all = await productSearchRepository.find(); // After const all = await productSearchRepository.find({ filter: {} });Engine tuning moved to
engineParams. The moved fields arenumTypos,prefix,infix,useCache,cacheTtl,exhaustiveSearch,pinnedHits,hiddenHits,prioritizeExactMatch,dropTokensThresholdandpreset.typescript// Before await productSearchRepository.search({ mode: 'keyword', query: 'wireless', queryBy: ['name'], numTypos: 1, preset: 'listing', }); // After await productSearchRepository.search({ mode: 'keyword', query: 'wireless', queryBy: ['name'], engineParams: { num_typos: 1, preset: 'listing' }, });Memory connector removed. Use
BasePostgresDataSourceandDefaultCRUDRepositoryagainst a disposable database for prototyping and tests. Use the search connectors' fakes if your use case was search-shaped.Engine
internal/barrels unexported.SearchConnectorInternal,TypesenseInternalandMeilisearchInternalhave no public specifier and no compatibility guarantee.import { TypesenseInternal } from '@venizia/ignis/typesense'no longer works.SwaggerComponentrenamed.typescript// Before import { ISwaggerOptions, SwaggerBindingKeys, SwaggerComponent } from '@venizia/ignis'; this.bind({ key: SwaggerBindingKeys.SWAGGER_OPTIONS }).toValue(options); this.component(SwaggerComponent); // After import { ApiReferenceBindingKeys, ApiReferenceComponent, IApiReferenceOptions } from '@venizia/ignis'; this.bind({ key: ApiReferenceBindingKeys.API_REFERENCE_OPTIONS }).toValue(options); this.component(ApiReferenceComponent);
Details
Bug fixes:
mergeFilter. It merged arrays index-wise, so a same-key user filter could widen a default scope. For example, default{ id: { inq: [1, 2, 3] } }with user{ id: { inq: [4] } }gave{ id: { inq: [4, 2, 3] } }. Twoorarrays could also collapse into one AND. The merge is now at the top key: a user key replaces the default's value, and a user value ofundefinednever overrides a defined default.409/404alignment. TypesensecreateDocumenton a duplicate id throws409(core.search_engine.already_exists), not503. MeilisearchupdateByIdon a missing id throws404instead of creating a record.- Meilisearch primary key. The path id is written last and wins, so a patch body carrying the primary key can no longer retarget a write onto another row.
multiSearchhidden fields. Each collection's@modelhiddenPropertiesare now added to that entry'sexcludeFields, as single-collectionsearch()already did.updateAll/deleteAllon search return{ count, data: null }and no longer cap data atdefaultLimitwhile reporting a highercount.- Meilisearch
updateByIdrespects a@modeldefault filter: a document it excludes now gives404. - Postgres numerics. JSON-path numeric operators cast the extracted value consistently, fixing a
text = integerSQL error.neqnever matches aNULLrow.