Changelog - 2026-07-12
Core Consolidation and Deduplication
Breaking Change Bug Fix Enhancement New APIIn one line. A user filter can no longer drop a default scope such as a tenant restriction, and you extend BaseApplication directly instead of composing mixins.
What changed
- Mixin functions removed.
RepositoryMixin,ServiceMixinandComponentMixinduplicated methodsBaseApplicationalready has. The interfaces (IRepositoryMixin, etc.) are unchanged. - Default filters narrow, not replace. Before, a user filter on the same key as a default scope (a tenant restriction, a date floor) replaced it. Same-key operator collisions are now combined with
AND, so the default scope survives. BasePoolHelper.use({ fn })is nowuse({ execution }). No deprecated alias.- Redis wait.
SocketIOServerHelper.configure()now fails after 30 seconds if Redis never becomes ready, instead of hanging boot. - New
isApplicationError(error). A shape-based check for an application error across package boundaries, whereinstanceofis unsafe. - Fixes. A datasource that failed to resolve its driver once no longer stays broken; it retries on next use. A Meilisearch
importDocumentsfailure keeps its real HTTP status. Typesense's filter compiler no longer emits a malformed query string when a filter group compiles to nothing. - Deprecated.
SwaggerBindingKeys.SWAGGER_OPTIONSin favor ofApiReferenceBindingKeys.API_REFERENCE_OPTIONS(same binding).
typescript
import { isApplicationError } from '@venizia/ignis-helpers';
if (isApplicationError(error)) {
throw error;
}Who is affected
- Apps composing the mixins onto
AbstractApplication. ExtendBaseApplicationinstead. - Apps whose code relied on a user filter overriding a default filter. Use
shouldSkipDefaultFilterfor a genuine bypass. - Callers of
pool.use({ fn }). Rename toexecution. - Code doing
error instanceof ApplicationErroracross a package boundary. Switch toisApplicationError(error). - Everyone else. No action needed.
Breaking changes
Registration mixin functions removed.
typescript// Before import { AbstractApplication, ComponentMixin, RepositoryMixin, ServiceMixin } from '@venizia/ignis'; class CustomApplication extends ComponentMixin( ServiceMixin(RepositoryMixin(AbstractApplication)), ) {} // After import { BaseApplication } from '@venizia/ignis'; class CustomApplication extends BaseApplication { // service(), repository(), dataSource(), component() are already here }Default-filter merge narrows. A bare scalar over scalar collision (for example
isDeleted: falsetotrue) is still a user-wins override. Only operator collisions changed. The next day this tightened further fororclauses: see Security and Reliability Hardening.typescript// default: { where: { createdAt: { gte: '2024-01-01' }, tenantId: { inq: ['t1', 't2'] } } } // user: { where: { createdAt: { lte: '2024-12-31' } } } // Before - the default's floor was dropped { where: { createdAt: { lte: '2024-12-31' }, tenantId: { inq: ['t1', 't2'] } } } // After - both conditions survive { where: { tenantId: { inq: ['t1', 't2'] }, and: [ { createdAt: { gte: '2024-01-01' } }, { createdAt: { lte: '2024-12-31' } }, ], }, }BasePoolHelper.use({ fn })renamed.typescript// Before await pool.use({ fn: (resource) => resource.doWork() }); // After await pool.use({ execution: (resource) => resource.doWork() });
Details
isApplicationErrorchecks for anErrorcarrying a numericstatusCode, not class identity.inversionships dual CJS and ESM builds, so its error class has more than one runtime identity, andhelperskeeps its own separateApplicationError.