What changed in IGNIS, who is affected and what to do about it.
An app adds only a check and an issue schema; the component adds the upload-validate route, and commit refuses an invalid file.
A static-asset entry now needs a bucket and takes serverUpload, directUpload and metaLink as use toggles. The bucket routes, onCommit and the disk spool are removed, and direct upload needs a keyPrefix.
Every exported name of the static-asset component now starts with StaticAsset, its helper classes and constants moved, the binding keys changed, and AssetControllerFactory.defineAssetController and AuthControllerFactory.define became build. No aliases are kept.
deleteObject awaits the MetaLink delete so a failure is no longer swallowed. Two unused static helpers and two unused validators are removed, and a storage helper's default key function is public.
An entry's auth applies to every built-in route, publicRead leaves reading one object open, and the four routes that list, read, create and delete buckets must now be turned on.
upload-validate now pins the exact content it read and answers the token commit needs, so a file cannot be swapped between the check and the copy. The validation handler gets a pinned file.
The mail queue's redis option is now an IRedisHelper (single, sentinel or cluster) instead of single-node options. The application owns the connection, and the executor no longer closes it.
One POST policy now authorizes exactly one key, the commit token can be bound to the user it was issued to, upload-commit calls authorize, and a new verify method lets an app check a file before committing it.
Two new uid helpers cover secret tokens and typed codes. Mail, MIME ids, getUID() and the upload filename now draw from them, and a verification token under 16 bytes now throws.
A new public route for clients that need the server clock. It returns the date, time, epoch, time zone and UTC offset from one instant, and sends Cache-Control no-store.
The static-asset direct upload now has a class you inject into a service, so an app can commit an upload while it saves its own record instead of making a second HTTP call.
RelationalMigrationRunner replaces ledgerTable with ledger: { schema, table }. On Postgres the schema is created when it is missing; SQLite accepts only main.
A key, segment, bucket or file name chosen by the caller is quoted and escaped before a storage helper writes it to a log line, so it cannot forge a line or hide text. EchoUtility.toSafeEcho is the one place that does it.
isValidSegment measures a name in UTF-8 bytes, and isValidObjectKey refuses a key that ends with a slash, so both are a 400 instead of a 500 or a silent collision.
@venizia/ignis-kernel/statuses exports Statuses and CommonStatuses alone; the Statuses category checks read the leading digit of a code, and isValid checks its shape instead of the built-in list.
RecordUtility.isPlainObject(value) is true only for an object whose prototype is Object.prototype or null, so an Error, a Date, a Map, an array or a foreign-realm object is refused.
prefer-nullish-coalescing in oxlintConfigs now allows || on a string, so value?.trim() || fallback passes. Objects and numbers still report.
updateBy, deleteBy and restoreBy are the only bulk methods, and their where is required; the whole table is where: {} with options.force.
hiddenProperties becomes properties.hidden, getServerStampedKeys() becomes properties.stamped with a default list, the generated bodies drop deletedAt, a soft-deletable repository refuses deletedAt in an update, and a soft delete can write other columns.
An entry of jwks.hosts.http can be a host name, an IPv4 address or a bracketed IPv6 address, each with an optional port. Matching is exact; wildcards, ranges and CIDR stay refused.
One public helper walks the cause chain and returns the Postgres error with its code, constraint and detail, whichever driver threw it. The error handler uses the same helper.
repo.findEvery() is an async iterator that yields every row a filter matches as pages, one query per page, paging by primary key so inserts and deletes while it runs never shift the window.
A where on a timestamp or date column now accepts an ISO 8601 string or epoch milliseconds, and a bad value is a 400 instead of a TypeError.
venizia/no-await-new-chain is in houseConfigs and reactHouseConfigs at error. await new Runner().run() becomes a declared instance and an await on the next line, and the rule fixes it.
CrudControllerFactory.build and SearchControllerFactory.build take the repository class and a routes map. The path is on @controller, the entity comes from @repository, and CRUD restore routes are new.
ApplicationError.fromUnknown({ error }) turns whatever a catch block holds into an ApplicationError and never throws. An ApplicationError comes back as the same instance.
A browser worker built on WorkerApplication that declares no REST controller drops zod, zod-to-openapi and @hono/zod-openapi from its bundle: 569 KB becomes 137 KB, 146 KB gzipped becomes 45 KB.
repository.upsert({ data, on }) inserts a row or updates the row holding its unique key, in one INSERT ... ON CONFLICT statement, with the same access rules as create and update.
A request filter that names a hidden property now gets the same 400 as the same filter with a missing name in its place, even when it names other bad keys, and a Meilisearch order on an undeclared field is refused like a hidden one.
@datasource({ open: { on: 'first-use' } }) starts the application without opening the datasource; the first repository call opens it once, and a failed open is retried by the next call.
The user-token path refuses a token with typ svc+jwt, and a boot with a verify option that is not an object, or with the algorithm none, is refused.
TransactionDouble.events lists, in order, each begin, commit and rollback that reached the double, so a test asserts the order of a flow without a hand-made beginTransaction stub.
claims.audience is optional. Without it no aud is stamped and none is checked; claims.issuer stays required. Set, the audience works as before.
With virtualHostedStyle: true, BunS3Helper's upload, read, stat, delete and list calls now go to the bucket's own host instead of the bare endpoint.
RecordUtility.read({ value, path }) reads along an array of keys and answers undefined when a step is missing, null or not an object, reading own properties only.
A generated search controller answers 400 to mode raw and to multi-search unless the controller sets modes.raw.allow. Server code keeps both on the repository.
isValidSegment, isValidObjectKey and isValidBucketName refuse U+2028 and U+2029 too, so the storage name rules and the connectors' echo rules agree.
A search hit's highlight is shaped like its document: hidden fields are removed, and the Meilisearch connector asks the engine for the visible fields only.
Every JWS and JWKS configuration needs claims: { issuer, audience }. IGNIS stamps both on every token it signs, requires both on every token it verifies, and pins the accepted algorithm.
An application whose jwtSecret is shorter than 32 bytes refuses to boot, and the message says how to generate one.
A JWKS URL with http: is refused at boot unless its host is loopback or listed by name in jwks.hosts.http. The rule covers the JWKS verifier and the service-assertion callers.
buildUrl refuses a request path that holds a dot segment (also percent-encoded), a backslash or a control character, and checks that the resolved URL is on the base origin and under the base path.
A link loop is refused as an invalid object name, and any other failure to resolve the real path of a target names its error code, not the server path.
With no body limit configured, the application now limits every request body to 5 MiB. The application config can change the default, and a route that takes larger bodies sets its own limit with BodyLimits.route.
AES.encrypt no longer accepts an iv option: every encryption draws a fresh random IV, and decrypt reads it from the ciphertext. Passing iv is refused. Existing ciphertext still decrypts.
The doThrow option of AES and RSA encrypt and decrypt is removed. A failure always throws, and passing doThrow is refused.
A where, order or update key named __proto__, constructor or prototype answers 400 Column NOT FOUND, like any other unknown column.
Every generated search controller, scoped or not, refuses engineParams with 400 unless it lists the parameters a caller may send, and never a parameter that selects rows or fields.
A where, an order or an include scope that names a hidden property answers 400, with the very text a field that does not exist gets, on the generated CRUD and search controllers. Server code on the repository is unchanged.
A where that sets a field the model's default filter also sets now AND-composes with it, scalars included, so a request cannot read soft-deleted rows. Server code opts out with shouldSkipDefaultFilter.
The where schema refuses a filter whose and / or groups nest deeper than 20 levels, before it is parsed. The limit is configurable with QuerySchemaFactory.build({ limits: { whereDepth } }).
A first frame such as null, a number, a string or a list no longer throws inside the message handler. It is dropped with a log line, and the connection stays as it was.
With requireEncryption, a client stays in the authenticating state until the handshake completes; room joins and messages are refused until then.
A 422 validation response in production lists the validation issues; when the message is not an issue list it carries no cause, instead of the raw error object.
UrlPolicy.isNonPublicAddress expands an IPv6 address before it classifies it and covers the ranges the prefix test missed. UrlPolicy.assertSafeUrl refuses a url with a username or a password.
A rejected upload no longer leaves disk-spooled files behind, and one upload request carries at most 20 file parts by default (parseMultipartBody.maxFiles). A multipart parse that fails part-way removes what it wrote.
The files array of the upload-policy body accepts at most parseMultipartBody.maxFiles entries (default 20); more is a 422.
A resolve that returns false, 0, an empty string, a list, an empty object or an object with an undefined value no longer leaves the model without a row scope. It is read as unresolved, so onMissing decides, deny by default.
SocketIOServerHelper.send with no destination used to emit to every connected socket, the ones that had not authenticated included. It now goes to a room every authenticated socket joins.
A hidden field can no longer ride inside a field-list element such as title,secret in facetBy, groupBy, queryBy, the highlight fields or the vector field. Every part is checked.
With virtualHostedStyle, a bucket name that is not one lower-case DNS label is refused before it becomes part of a host.
RedactUtility and the logger now mask the values of credential, dbCredential, api_credential and their plural forms, as they already did for credentials, a token or a secret.
RedactUtility masks signing and encryption keys, session and one-time values, signatures, card and national-id numbers and the kebab spellings of tokens, and it scrubs url passwords, bearer credentials and credential query parameters inside strings. The request log masks the OAuth callback code and state.
RedactUtility.redactSecrets, redactUrlCredentials and toJsonSafe take force: true, which masks whatever APP_ENV_LOGGER_DO_REDACT says. The logger keeps following the switch.
RecordUtility.isRecord and RecordUtility.isPlainRecord narrow an unknown value to a record, with and without arrays. Both are exported from @venizia/ignis-helpers and @venizia/ignis-helpers/core.
PromiseUtility.withTimeout runs a call against a timer and always clears it. PromiseUtility.sleep now returns Promise<void>, and PromiseUtility is exported from @venizia/ignis-helpers/core.
PostgresErrorCodes, the SQLSTATE codes the error middleware maps to HTTP 400, is now a real export of @venizia/ignis-kernel and @venizia/ignis, at runtime and in the types.
@venizia/ignis-connectors/postgres exports PGliteCRUDRepository, DefaultCRUDRepository with the datasource typed as PGlite, so new Repo(pgliteDataSource) type-checks and getClient() is a PGlite.
isValidSegment, isValidObjectKey and isValidBucketName refuse every control character, a lone surrogate and the bidirectional marks and overrides, the way isValidOriginalName does.
toInclude looks relation names up on own properties only, so constructor or toString answers 400 Relation NOT FOUND instead of an internal error, and the message echoes the name escaped.
GET /health/stats compares the configured secretKey with Hash.equals instead of ===.
Hash.verify checks a received digest or HMAC signature against the one a value produces, without the timing leak of ===.
Hash.equals compares two strings you already hold in constant time, Hash.verify uses it, and the verify docs say an unpadded or URL-safe form of the same base64 digest is refused.
fetchGuarded resolves a host once per hop, checks every answer and connects to those addresses, so DNS rebinding cannot reach an internal address. It also sends POST and other methods with headers and a body, for signed webhooks.
The extra of an error is rendered through the redaction the log line already used, always masking in production, and a 5xx in production carries no extra. A cycle or a BigInt in extra no longer turns the authored status into a 500.
With applicationSecret set, a null claim is now encrypted and decodes as null, as it does without encryption, so an encrypted token decodes to the same payload as a plain one.
writeStream, and every other write that reaches DiskHelper, now resolves the bucket and the key to a path inside the base directory and refuses one that leaves it, as reads and deletes already did.
getObject, getObjectStream, getStat and removeObject answer not found for a directory under an object path.
DiskHelper follows symbolic links before it reads, writes, stats or deletes, and refuses a target that leads outside the storage root. writeStream no longer creates a missing bucket.
The cache of PBKDF2-derived keys keeps at most 64 entries, evicting the least recently used, and no longer keys its entries by the plaintext secret.
configs.middlewares.cors.origin takes a subdomain wildcard, matched by one tested matcher with the scheme and the port compared exactly, so no app writes its own origin regex.
configs.middlewares.cors.origin takes :* as the port of a pattern, also on an exact host, so a development rule like http://localhost on any port needs no custom matcher.
ApplicationBootAssertion.assert resets the process-wide AuthorizationEnforcerRegistry before it boots, so booting an application twice in one process no longer fails with Enforcer already registered.
ApplicationBootAssertion.assert fails on an invalid configs.middlewares value, such as a bad CORS pattern, because the default stack is a boot step. It does not run your setupMiddlewares(); the docs now say so.
A strategy that answers without a userId no longer authenticates a request in any mode, as it already did not in all mode. The next strategy gets its turn.
The row scope of access.resolve is ANDed with the where of every read, count, update and delete, and of an include, whatever shape the scope has. A where can only narrow it.
A child model with access.through could be updated, deleted, created or moved under a shared parent although the parent refuses that write. The parent's write.sharedRows now holds at every hop.
BunS3Helper.listObjects now defaults useRecursive to false, as DiskHelper and the docs always said. Pass useRecursive true to list the whole tree.
The relational repository's updateEach takes a list of { id, data } and runs one update per row inside one transaction, with the default filter, row scope, hidden fields and audit stamps of updateById.
engineParams takes a typed sortBy for the sorts filter.order cannot name, and refuses it together with filter.order or sort_by.
RepositoryDouble.withTransactions, from @venizia/ignis/testing, installs the repository's own runInTransaction on a hand-made double, so a service that opens a transaction runs in a unit test.
Declare a search field { optional: true, nullable: true } and a read returns null where the engine kept no key.
The nine @venizia packages stop publishing declaration maps, which pointed at a src folder the tarball does not contain; the .js.map files stay.
houseConfigs and reactHouseConfigs now include the async style and hook rules. asyncStyleConfigs and reactAsyncStyleConfigs are removed, so a project's lint config is one array.
@venizia/dev-configs no longer installs eslint-plugin-n and eslint-plugin-unicorn, which served two rules; the dependency tree falls from 112 to 34 packages and from 23.5 MB to 7.0 MB. The oxlint preset still runs both, and the ESLint preset keeps the switch-case braces rule as a house rule.
APP_ENV_APPLICATION_TIMEZONE falls back to UTC, and the app preset's .env.example sets it to UTC.
houseConfigs, reactHouseConfigs and eslintConfigs add four blank-line rules, fixed by devz lint --fix. ESLint only.
A child model with only a foreign key inherits its parent's row scope, for reads and writes. The access settings type is now a union.
The access resolver gets { operation }. ScopeOperations replaces ScopeWriteOperations and moves to the kernel.
TypesenseConnector.streamDocuments reads an export as NDJSON lines with bounded memory, exportDocuments takes excludeFields, a call can set timeoutMs, and updateByFilter refuses an empty document.
importDocuments takes an opt-in throwOnFail: true that throws a 422 after the last batch when the engine rejected rows, with the counts and every per-row response; the default still returns them without throwing.
findDocument (and document.find) answers null where getDocument throws 404 not_found, the way getAlias does.
TransactionDouble, PostgresTransactionDouble and SqliteTransactionDouble take an optional connector, onCommit and onRollback.
The Typesense and Meilisearch connectors map an engine 400, 404, 409 or 422 to the matching 4xx error with the engine message kept, and keep the 503 for transport failures, 5xx, auth and rate limits.
searchCount, facets and suggest accept engineParams, checked and sent the way search() does, so they match what a tuned search matches; ITypesenseTuning gains maxCandidates.
ReadableSearchRepository gains searchCount, facets and suggest; facetCounts is typed and camelCase on Typesense and Meilisearch; Typesense tuning has typed camelCase names; hybrid hits carry rankFusionScore and vectorDistance.
password on IRedisSingleHelperProps is optional, as it already was for cluster and sentinel.
@model no longer throws for defaultFilter, defaultLimit, maxLimit, scopeFilter or skipMigrate and ignores them; the types refuse them as excess properties, so a typed model fails the typecheck. devz codemod model-settings is removed.
IJWTTokenPayload.roles is optional: a token may be generated without it, and code that reads it must check it first.
@venizia/ignis no longer declares pg, postgres, @electric-sql/pglite, @libsql/client, meilisearch or typesense as optional peers; @venizia/ignis-connectors declares them, so list the driver you use in your own dependencies.
devz codemod const-classes no longer writes a doc comment above each class it creates.
Every user-facing change since 0.4.6 in one table, with an ordered upgrade checklist. IGNIS moves public functions into classes, replaces the logger types, makes AES and RSA async, and puts Hash on Bun.
@venizia/ignis-boot 0.4.7-3 threw 'Bun is not defined' when Vite ran under Node; the scan cache no longer needs Bun, and a test now runs the built plugin under a real Node.
A dozen exports with no user in IGNIS, ARDOR or the apps we checked are removed: TApplicationError, six filter types, the App constants, ReactEslintConfigs, isSqliteTransaction, two kernel metadata interfaces and the ts-node block of tsconfig.common.json.
@venizia/ignis is now released whenever a tool its presets name (@venizia/ignis-boot, @venizia/dev-configs) is, so a project made from the IGNIS preset gets the fixed tool.
isMailTransport and isValidMailOptions in @venizia/ignis/mail are removed; call MailTypeUtility.isTransport and MailTypeUtility.isValidOptions, or run devz codemod namespace-functions.
LegacyAES, IPayloadCipher, DEFAULT_PAD_END and the cipher option of the JWS and JWKS token services are removed; ciphertext in the pre-PBKDF2 format has no reader any more, so re-encrypt it before you update.
Hash.digest, Hash.hmac and AssetCommitToken compute with Bun.CryptoHasher, so they throw outside Bun; the mail code and token generators draw from crypto.getRandomValues and reject a bad length or size with a named error.
Envs, a second name for applicationEnvironment in @venizia/ignis-helpers, is removed; use applicationEnvironment, or AppEnvs, which stays.
ECDH and AbstractCryptoAlgorithm in @venizia/ignis-helpers can now be imported from @venizia/ignis-helpers/core, so a page and a server speak one ECDH wire format with one class.
CredentialHelper.hash in @venizia/ignis-helpers now writes argon2id unless you pass algorithm: 'bcrypt'.
@venizia/ignis/postgres, /relational, /sqlite, /search, /typesense, /meilisearch and their driver and controller sub-paths are removed; import them from @venizia/ignis-connectors, which your app must list as a dependency, and run devz codemod connector-imports.
devz codemod async-style, const-classes and drop-redundant-casts refuse --write with no path; pass a path, or --all for the whole working tree.
AES and RSA methods now run over Web Crypto and return promises.
Every public function that moved into a class loses its old name in this release; devz codemod namespace-functions rewrites the calls, and a short list of removals (MinIO, a few helpers) needs a manual step.
RecursiveTreeSql.walk in @venizia/ignis-connectors has a new start option to treat every row of the table as a root.
RecursiveTreeSql.walk in @venizia/ignis-connectors starts from several ids or from every root, and filter applies one condition to both terms of the walk.
LoggerFactory is now in @venizia/ignis-helpers/core and defaults to the console, so a compiled binary needs no logger setup and a browser app picks its provider and level with one call; ApplicationLogger, LoggerSlot and LoggerResolver are removed.
Hash.digest and Hash.hmac in @venizia/ignis-helpers accept bytes as well as text, and digest hashes several parts in order as one message.
CredentialHelper in @venizia/ignis-helpers hashes and checks passwords with Bun.password, reading bcrypt and argon2 hashes.
@venizia/ignis adds a shared preset kind, so vulcan add --preset ignis --shared common makes a package that backend and frontend apps both import.
@venizia/dev-configs adds two opt-in lint rules: never await a .then/.catch/.finally chain, and never swallow an error in a catch; devz codemod async-style fixes the safe shape.
@venizia/dev-configs adds four lint rules for await, return and React hooks, off until you spread asyncStyleConfigs (the two await rules) or reactAsyncStyleConfigs (the two hook rules), and devz codemod async-style to fix a codebase.
devz codemod async-style gives every hoisted const a name that is unique in its function, and leaves a file as it was when the rewrite would be worse.
Every user-facing change since 0.4.4 in one table, with an ordered upgrade checklist. IGNIS 0.4.5 loads a peer that ships two builds as the ES module copy your own import holds.
ModuleUtility.load imports a peer from the project root as the copy your own import gets, ModuleUtility.preload registers that copy for constructors that cannot await, and the gRPC adapter loads its peers with load.
Four dev-configs commands for trimming tests without losing coverage: the JUnit analysis, the unreferenced support files, the mutation-ledger replay and the positive-control registry check.
A test can run an application's real boot with no database, port or network using assertApplicationBoots from @venizia/ignis/testing, and it fails with the error boot raises.
@venizia/dev-configs/testing exports spawnSyncBounded and useRepoTmp, and a preload keeps a bare bun test's temp folders inside the repository.
The browser-purity gate is now devz check purity in @venizia/dev-configs, so a repository keeps only its claims file.
The catalog guard, the import-cycle list and the split report are now devz check commands in @venizia/dev-configs, so a repository no longer keeps copies of the scripts.
The dev-configs tsconfig presets move to module esnext and moduleResolution bundler, so a package whose type is unset typechecks against the ESM-only IGNIS packages.
Every user-facing change since 0.4.3 in one table, with an ordered upgrade checklist. IGNIS 0.4.4 runs on Bun >= 1.4 and ships ESM only.
Every user-facing change since 0.4.2 in one table, with an ordered upgrade checklist: update the packages, run the codemod, review shared rows, then read the rest.
The deprecated skipMigrate key of @model is gone; the decorator throws on it and names the replacement, migration: { use: false }.
Update, delete, soft delete and restore now leave shared rows (null scope column) out unless write.sharedRows is true, closing a gap in 0.4.2.
After a failed onSecretRotated(), a datasource kept the rotated user and password in its settings when they were not there before; fixed in 0.4.4 for every relational and raw-SQL datasource.
The search controllers entry now exports the TSearchScopeResolver type, so a constant holding the result of defineSearchController with a scope no longer fails with TS2883.
defaultFilter, defaultLimit, maxLimit and scopeFilter are gone from @model settings, and a model that still uses one throws when the decorator runs.
New @venizia/ignis-connectors/raw-sql sub-path with BaseRawSqlDataSource and BaseRawSqlRepository for an engine (ClickHouse, DuckDB, BigQuery) that runs SQL text and returns rows.
@model({ type }) is optional and typed by ModelTypes. skipMigrate is replaced by migration: { use }, kept for one release with a boot warning. devz codemod model-settings rewrites skipMigrate.
The enable field of the middleware options is optional (default true), the middleware types say what is installed, and devz codemod warns when a path you pass holds no source files.
devz codemod is a dry run unless you pass --write, --check fails while a model is left untouched, and the new drop-redundant-casts and const-classes codemods clean up casts and string unions.
String options across the IGNIS packages are now const classes with SCHEME_SET and isValid with unchanged values, and ESLint now warns on a string-literal union in an exported type and on an as X cast.
SearchControllerFactory.defineSearchController takes a scope option that the server ANDs into every search, so the client cannot widen or remove it.
A create, createAll or an update payload that names a scope column is refused with a 403 when its value is outside the resolved scope. Return ScopeFilters.UNRESTRICTED for deliberate cross-scope writes.
RecursiveTreeSql.walk now qualifies a Postgres table with its schema, and a new anchorFilter option filters the anchor term the way recursiveFilter filters the recursive one.
IModelSettings groups the default filter and limits under query and the row scope under access. The old flat keys keep working in 0.4.2 with a boot warning and are removed in 0.4.3.
ServerApplication.installShutdownSignals is an opt-in hook that stops the application and exits when the process receives SIGTERM or SIGINT.
Duration unit conversion, the application environment, secrets, the TCP client registry and the high-frequency logger no longer answer 'constructor' or 'toString' with a member of Object.prototype.
devz clean now also deletes the top-level *.tsbuildinfo file that an incremental type-check leaves next to tsconfig.json.
defineCrudController refuses to boot when a write route would inherit a controller-level authorize whose action is read, because anyone allowed to read could write.
configs.middlewares.cors now installs Hono's cors() as the first middleware, so a 413 from the body limit and other early framework responses are readable from a browser.
find, findOne and findById type the returned row from filter.fields, so an unselected column is a compile error; a repository that overrides them with the old <R = E> shape needs migrating.
NodeFetcher encodes JSON bodies, merges default headers and takes query-string options, and the socket.io client has a browser-pure entry.
connectors/http can create, update and delete over the IGNIS CRUD routes, follows the session's headers and token, keeps the server's error, and HttpResponseReader is available without the connector.
devz lint and make format with bun fmt from the [fmt] table of bunfig.toml; the oxfmt and prettier presets and the ./formatters subpath are removed from @venizia/dev-configs, and Bun 1.4.4 is the new floor.
Peer floors now ask for the newest major of ioredis, bullmq, nodemailer, mailgun.js, @scalar/hono-api-reference, meilisearch, node-vault and eslint-plugin-unicorn.
The shared tsconfig adds isolatedModules, moduleDetection force and noImplicitReturns, and BunCompiler.compile({ check }) stops on a type error.
A new app comes with a .env.example naming every APP_ENV key it reads and its .ignore files, and the image refuses a build commit that is not a sha.
The generated Dockerfile stops when a .env file reaches the build context, so secrets never land in a builder layer.
devz lint replaces each project's lint script, .configs splits into lints, formatters and builders with a .ignore each, and vulcan add --preset ignis --lib creates a shared library.
BunCompiler.compile({ workers }) bundles the Bun Worker files an app starts into the same executable.
Every IGNIS package moves to 0.3.0 on the latest tag, and one command creates a working IGNIS app.
generatePrincipalColumnDefs takes isNullableDiscriminator, and false makes the principal type column NOT NULL.
Importing from @venizia/dev-configs/linters/oxlint loads only the oxlint presets, so every oxlint run starts about a second sooner.
BuildInfoStamp bakes the commit, branch and build time into the binary and reads them from git when running from source, so the ignis-build-info CLI and its generated file are gone.
A plain install now resolves stable IGNIS 0.2.2 packages on the latest tag, without @next.
The dev-configs naming-convention and no-unused-vars rules accept a variable named with a leading underscore, such as { page: _page, ...rest }, while still checking its case.
FilterSchema and InclusionSchema are now typed zod schemas instead of any, so a schema that embeds them infers precisely.
Decorated code that a bundler evaluates before the package entry no longer fails with Reflect.getMetadata is not a function.
When @inject({ target: X }) finds a different class of the same name bound under that key, resolution now stops with an error naming both instead of handing back the other class.
Projects on @venizia/dev-configs now compile with noImplicitAny, and installing one IGNIS package always brings the sibling versions released with it.
A frontend project can drop its local copies of these lint rules and take them from @venizia/dev-configs.
Bun.build of an application that imports @venizia/ignis but does not install the optional peer casbin no longer fails with Could not resolve: casbin.
AutoArtifacts builds an application's artifact index in memory on Bun and in Vite, ArtifactGroup lets a shared package declare its domains once, and the auto index works from the entry module, tsc dist, .tsx files and the browser.
An install pulls less, because four packages stop declaring zod, reflect-metadata, drizzle-kit and tsx that they never imported.
@repository no longer throws 'Invalid constructor | Received: Function' when its first constructor parameter is typed by a type-only class import and the code was built with tsc.
OxlintConfigs.create({ lenientFallback: true }) allows || on string and number operands; the default stays strict.
A package skips generated paths in lint and format with LINT_IGNORE, and the rejection test helpers ship once from @venizia/dev-configs/testing.
Two house ESLint rules (at most 5 positional parameters, errors through getError) and consistent-type-imports in the base oxlint preset.
@venizia/dev-configs 0.3.0 ships oxlint and oxfmt configs next to the ESLint and Prettier ones. Nothing was removed from the package.
@venizia/dev-configs 0.3.1 adds lint, format and tsconfig presets for browser code without React, and the React preset now builds on them.
Bun skips a tsconfig extends that names a package, so the dev-configs decorator options never reach bun run or bun test. Restate two options in your own tsconfig.
null is no longer 1970, plus a quarter unit, set, the boolean comparisons and isBetween, clock-face durations, clone, your own names per locale, diff counted as dayjs counts, and timeZone renamed to tz.
isApplicationError() now also requires normalized.text, so a plain Error that only carries a statusCode is no longer taken for an ApplicationError.
IntlTemporalAdapter needs no Temporal, so TemporalHelper works in every browser, with month and weekday names, 12-hour time, relative time, diff, compare, a non-throwing parse and duration formatting.
ApplicationError.toFilledText() fills the args into the message template, for a reader that only knows .message, such as a queue's failure reason. message itself stays the template.
The error response's message fills each %{key} from normalized.args, so a client with no translation for the code shows readable text. normalized.text, Error.message and the log keep the template.
TConstValue, TStringConstValue and TNumberConstValue no longer widen to string or number in an object literal, a let or an inferred generic. A test that compares one of these values with a plain string needs a type argument.
respond({ extra }) offers figures beside a list's rows, such as facets and counts, computed only when the client names them in x-request-extra. The http connector asks for them, typed.
A subclass property @inject no longer leaks into its parent, isOptional holds on the { target } form, a cycle throws with its path, the singleton cache holds falsy values, and two symbols with one description are two keys.
ReactEslintConfigs gives a React frontend the same lint base as its backend, plus React, hooks and accessibility rules; the base raises ban-ts-comment and no-namespace to error.
Two classes that derive one binding key now fail registration, @repository injects a decorated datasource by its class, and the repository and datasource registries are keyed by class, so a minified build no longer hands one class another's instance.
The BFF fetch bridge no longer claims /apix for a basePath of /api, and a new origin option keeps calls to other origins on the network.
New inSql and ninSql operators take a Drizzle SQL subquery built in server code, so a list filtered by another table runs as one query with no id list in between.
Postgres JSON-path literals now quote every element, so a key named null (any case) is read as a key in where, order and update, instead of as SQL NULL.
Error messages that quote a key, field or order entry from the request now escape control characters and Unicode line terminators, so a crafted key can no longer split a log line.
A JSON-path key like 'metadata.a.b' now type-checks against T's JSON columns with no cast, and a new TOrderEntry<T> type checks an order list the same way.
runInTransaction begins, commits, and rolls back for you, and TransactionDouble from @venizia/ignis/testing stubs a transaction with no database behind it.
parseOrderEntry is now a public export every dialect shares, toOrderBy gains an expressions option for sorting by a joined column or a computed SQL expression, and a malformed order entry is now a 400 instead of a silent truncation.
A JSON-path filter or order key now renders qualified with its table or query alias, so a query joining two tables that share a JSON column name no longer fails with an ambiguous-column error.
The static-asset component can serve one bucket, scope a shared bucket, take uploads straight to storage, order MetaLink rows and refresh them safely, with several breaking renames and fixes listed below.
An attachment path is read only inside the new attachmentRoot option, a text or html body must be a string, a new maxAttachmentBytes option (default 25 MB) caps a message's attachments, and a failed send no longer echoes the raw error text.
@inject({ target }) at a repository's parameter 0 now accepts a datasource class that has no binding key yet, and still refuses anything that is not a datasource.
@repository takes type: RepositoryTypes.REMOTE for data behind another service's API, defineCrudController injects the repository it names, and HttpDataSource accepts a relative baseUrl in a browser.
Valid OpenAPI error keys, a working path.isStrict, search controllers that inject their repository, nested JSON-path updates on PostgreSQL, CRUD routes that ignore audit fields in the body, and stop() closing every datasource, among other fixes.
The 0.2.0-48 prerelease: the dayjs date utility gives way to TemporalHelper, search controllers and RecursiveTreeSql move to their own entries, compiled binaries get a typed module option, and Node ESM works.
ModelFactory.defineEntity builds the entity class from a plain drizzle table, relations point at tables, and TEntityObject infers the row type with its relations.
UuidHelper is the single place to mint UUIDs: v7 for database keys, v5 for deterministic idempotency keys, v4 for public tokens.
Four breaking changes, batched before 0.2.0 stable: ioredis becomes an optional peer, ErrorSchema leaves helpers, resolvers take an options object, and upload labels in the query are refused.
The default string primary key is now a time-ordered UUID v7: faster inserts, a smaller index and faster ordered paging.
Pages over a tied order no longer repeat or skip rows, bulk update and delete take where in the body, and an included relation keeps its hidden columns and row scope whatever its table is named.
No IGNIS package depends on lodash any more; isEmpty and omit are available from @venizia/ignis-helpers/common.
@venizia/ignis-connectors/http reads an IGNIS REST server through the repository contract, with the same filter vocabulary and Content-Range envelope, in 12.8 KB gzipped.
@venizia/ignis-kernel/repository carries AbstractRepository, AbstractDataSource and the CRUD contract without the OpenAPI layer - 14.7 KB gzipped instead of 105 KB.
Long strings are capped in every log line, with the original length kept in the marker; stack traces are exempt.
Importing Container alone drops from 437 KB to 64 KB in a browser bundle, and a new @venizia/ignis-kernel/metadata sub-path serves consumers that never serve HTTP.
A browser bundle of @venizia/ignis-kernel/metadata drops from 20 KB to 13.9 KB gzipped, and every kernel peer dependency is now optional.
presignPut takes tagging and contentLength, both inside the signature, so a browser can write an object that is already labelled.
BunS3Helper takes endpoint: { default, public? }; the default host is what this process talks to, and the public host is what a browser is handed in signed URLs.
The container can count what it hands out, so an application can list registrations that nothing ever read.
GET /health/stats now declares x-health-key in its OpenAPI definition, so the API reference offers an input for the key.
@inject({ target }) takes a function returning the class, so a class a barrel makes unreachable at module load is still nameable.
BaseComponent stores the options from application.component(Ctor, { options }) on this.configuredOptions before binding() runs, and StaticAssetComponent takes its options that way.
configs.discoverArtifacts: true registers every decorated class in the import graph, so a decorator is the whole declaration.
stats.enable true with no secretKey stays legal, and now logs one warning naming the route and the environment.
A present-but-empty env line now falls back to defaultValue, and two env names nothing ever read are deleted from EnvironmentKeys.
validateEnvs no longer refuses to boot over an empty environment value; set ALLOW_EMPTY_ENV_VALUE to false or 0 to turn the check back on.
RedisClusterHelper gains the autoConnect option that single and sentinel already had, and your own clusterOptions still wins.
Ten framework reads of process.env no longer treat an empty line as a value, and a new blankToUndefined helper is exported.
A new ignis-build-info command stamps a build, GET /health gains a timestamp, GET /health/stats reports build, process and memory behind a gate, and the datasource env variables that never selected anything are removed.
The Atlas MCP server recognises any @venizia/<family>-workspace repository, so a sibling framework can run the same Atlas over its own docs.
You can declare ordered @configuration classes that run before datasources and components, and pass typed options to application.component() and application.dataSource().
@inject({ target: SomeService }) resolves a dependency by class, and an artifact must now register under a usable namespace.
UrlIngest.fetchGuarded refuses non-public addresses, re-checks every redirect hop and caps the body; AssetIngest.fromUrl stores a remote object without buffering it, and IStorageHelper gains writeStream.
Your logs now show each reason inside an AggregateError instead of one generic sentence.
IStorageHelper methods take { bucket, object } instead of { bucket, name }, presign expiry takes an IDuration instead of a seconds number, and IFileStat.metadata declares mimetype.
A stored upload no longer renders on your API origin, a missing object answers 404, MinioHelper is deprecated, and BunS3Helper gains provider options, byte ranges and bounded concurrency.
BindingNamespaces.createNamespace now throws on a name with a dot, whitespace or nothing, instead of silently losing the binding.
WorkerApplication accepts an optional projectRoot, and three BaseKafkaHelper members become protected so a subclass can extend it.
IStorageHelper adds presignPut, presignGet, getObjectTags and replaceObjectTags, so you no longer need a hand-written S3 class for presigned uploads and tags.
Atlas can now list what shipped between two versions of a package and tell you whether an installed tree is behind.
The Atlas symbol tool answers where an export is declared, with its package, import specifier, kind, signature and source file:line, and search adds a symbol field for a single identifier.
Atlas no longer mistakes a repository that copies the docs/wiki and .agents/knowledge layout for the IGNIS checkout, so it starts there instead of exiting.
A process that holds both the ESM and CommonJS build of @venizia/ignis-helpers now sees one applicationEnvironment and one ModuleUtility registry, and a non-string configs.path.base fails at construction.
A subclass decorated with a bare @repository() reuses its parent's model and datasource, the helpers console fallback warns on the first logged line, and the ignis-artifacts CLI runs quietly.
BaseRestController.setListHeaders accepts offset and total beside range, and toContentRange is exported from @venizia/ignis-kernel, so routes stop formatting Content-Range by hand.
The ignis-docs-mcp and ignis-knowledge MCP servers are retired; one package, @venizia/ignis-atlas, answers search and get over the wiki, the changelogs and the knowledge bundle.
BullMQHelper takes queueOptions and workerOptions, KafkaConsumerHelper adds onStreamError and onReconnectError, and its members become protected, so you extend the class instead of forking it.
@venizia/ignis-helpers now declares @hono/zod-openapi as a peer, and ignis-artifacts writes the real command flags into the generated index header.
ignis-artifacts generate and check print one stderr line for each decorated class that an --ignore pattern leaves out of the index; exit codes do not change.
IServerApplicationConfigs gains projectRoot, so an application that overrode getProjectRoot() only to return __dirname deletes the override.
An entry of configs.artifacts can carry a when condition, so a worker or migration run keeps controllers and components out of the container without a hand-written filter.
IServerApplicationConfigs gains a server group with idleTimeout and maxRequestBodySize, so you no longer copy startBunModule to change one Bun.serve option.
ignis-artifacts check ignores the first line of the generated index, so changing CLI flags alone no longer reports the file as stale.
Every list endpoint answers with Content-Range, X-Response-Count and X-Response-Format through one respond call on BaseRestController, and POST /search now sends them too.
Installing @venizia/ignis no longer installs @venizia/ignis-boot, so an application that runs the ignis-artifacts generator declares it as its own devDependency.
configs.bootChecks.binding lets a boot prove that every service and repository resolves, that no hand registration sits beside the generated index, and that no two registrations silently share a key.
Every @venizia/* package now declares its newest compatible dependency versions, and the audit drops from 126 advisories to six that are named with the reason each stays.
boot(), bootOptions, IBootReport, IBootableApplication and BindingNamespaces.BOOTERS are removed from @venizia/ignis and @venizia/ignis-boot, so code that still uses them now fails to compile.
Decorate a class, generate one index at build time and pass it in the config, so application.ts lists nothing; Bootstrapper, booters and boot() are gone.
An IGNIS app built with bun build or bun build --compile now starts, reads NODE_ENV at run time through Environment.ambient, and logs through the provider you registered.
An application now fails at startup, naming the model, when settings.scopeFilter is declared on a search-backed model or while asyncContext.enable is false.
The authorization adapter now builds the casbin domain token from domain_type and domain_id, the policy builder no longer writes the domain column, and you drop that column.
The concatenated policy domain token becomes a typed column pair like subject and target; this release adds and backfills the columns while domain stays the read source.
EventBus retries now jitter every delay, each registration can set its own bounded retry window, and handler replaces handlerBindingKey with a tagged reference that also accepts a function.
An opt-in branded string type, so passing a name, code or email where an entity id belongs is a compile error instead of a silent lookup that returns nothing.
TWhere<T> now rejects a value that does not fit its column's type; before, every value was typed any.
TreeWalker and TreeBuilder walk and build in-memory trees, and RecursiveTreeSql builds a depth-bounded, injection-safe WITH RECURSIVE query.
Meilisearch getHealth() now resolves { ok: false } instead of throwing, Typesense importDocuments() keeps partial progress on every failure, and Typesense collectionExists() no longer reports a failure as absence.
A new @model settings.scopeFilter narrows every relational read and write, including restore() and included relations, to the caller's rows, and matches nothing when the scope cannot be resolved.
extraPolicyDefinitionColumns takes an extraVariants option so an app can store its own edge kinds in PolicyDefinition, while apps that declare nothing see no change.
A new Hash class (digests and HMACs) replaces the removed hash() function, so every hash() call site must migrate, and AES gains an optional per-deployment key salt.
A route with authorize() declared but no enforcer registered used to allow every request; it now denies, honoring defaultDecision.
A role assignment or domain membership declared at a parent domain now reaches its child domains too, the same way a grant already did, with no new configuration.
FilterQuerySchema and WhereQuerySchema replace the query object every custom route was rebuilding by hand.
The console transport now colorizes only in a development NODE_ENV, so production, staging and uat log files no longer store ANSI escape codes.
A built-in service strategy where each caller signs one short-lived Ed25519 assertion per request, verified against the caller's own published key.
A route can name any authentication strategy you register, and a JWT can now be issued and verified with issuer and audience claims.
SharedBffTransport runs one Worker per origin instead of one per tab, and a framework audit fixes defects including HTTPS certificate verification and unbounded limits.
OpaqueUidHelper mints short, prefixed IDs from a chosen alphabet, as the counterpart to SnowflakeUidHelper, which is sortable but reveals when it was minted.
Every IGNIS package a browser can use now publishes real ESM, so a bundler needs no workarounds, and the server and browser Worker share one default middleware stack and one request-id rule.
The half of IGNIS that never needed a server now lives in its own package, @venizia/ignis-kernel, and every import you already write keeps working.
A %j log argument with a cycle now prints its real fields, redacts secret keys, and caps depth, instead of collapsing to the single token [Circular].
Large filters no longer fail, pages over 250 hits work, and an arbitrary skip works, because every Typesense search now goes through /multi_search.
Dotted fields like merchantName.en can now be filtered and sorted, and an unknown order field is a 400 naming the field instead of an engine error.
A search collection can declare the fields a keyword search matches once with defaultQueryBy, so query_by stops being repeated at every call site.
AES keys now derive with PBKDF2 and ciphertext carries a key id for rotation, so data written by an earlier IGNIS must be read with LegacyAES or re-encrypted.
An empty `or` in a search filter now matches nothing instead of everything, and search dialects gain a compiled where-result, field checking, and a published operator table.
You can now run IGNIS on embedded SQLite through @venizia/ignis/sqlite, or on Postgres in-process through PGliteDriver, with no database server.
The SQL repository tier gains an engine-neutral @venizia/ignis/relational export, ten relational names are renamed to their Postgres spellings, and findById now accepts options.retry.
The filter shape, operators and query schemas now ship as @venizia/ignis-filter, usable in a browser without the server framework, and applications on @venizia/ignis need no changes.
Error log lines are now short, lead with the status code and root cause, and getError takes a logLevel so an expected 404 stays out of the error log.
BaseFilteredAdapter now works with a datasource that has not resolved its connector yet, and fails with a named error when it has no connector at all.
A new fromError turns the error response the server sends back into a live ApplicationError, so one catch block handles server and local failures alike.
ScopedCasbinAdapter now loads a principal's policy in one round of four queries with no cache; drop the structuralCache option if you passed it, and add the documented indexes.
You can now grant a subject any subset of operations with one policy row, and planGrant builds the smallest correct set of rows for you.
find, findOne and findById accept an opt-in retry option that re-reads until a predicate passes, fixing read-after-write staleness behind a replicated pool.
The logger is rebuilt behind an ILogger contract with five levels, two swappable providers loaded one at a time, a reworked HfLogger and a redaction kill-switch.
Dependencies are bumped (TypeScript held at 6), helpers drops unused dependencies, optional property injection works, and the inert @injectable decorator is removed.
Compiling an app with Bun.build no longer needs node-vault or @dotenvx/dotenvx installed or listed as external; apps that use a vault provider in a compiled binary must ship the peer next to it or inject the client.
Log files no longer contain ANSI codes, APP_ENV_LOGGER_LEVEL sets a real level floor, file logging is opt-in, custom loggers cache correctly, and a failed UDP send can no longer crash the process.
A definition, a getError input and a normalized response now share one {text, code, args} shape; messageCode and extra.messageArgs are removed and the error middleware is now a class.
A pluggable Secrets provider family for HashiCorp Vault, Dotenv Vault and system env, with boot-time hydration, dynamic leases and restart-free credential rotation.
Every error carries a normalized message ready for translation, you can declare reusable error definitions in a catalog, and cause now reaches Error.cause.
Datasources now name their Postgres driver as a class, so a bundler packages only the driver you use; this needs a small config change.
A SQL injection in array filters and two ways to bypass a default filter are closed, hidden fields no longer leak from search results, and several errors, logging, upload and boot bugs are fixed.
The registration mixin functions are removed in favor of BaseApplication methods, the default-filter merge now narrows instead of replacing, and there is a new isApplicationError guard.
The Postgres connector supports two interchangeable drivers, ships a Supabase submodule, and makes failed commit() and rollback() throw instead of silently succeeding.
Strict find() and findOne() everywhere, engine tuning moved to engineParams, the memory connector removed, SwaggerComponent renamed, and filter and correctness fixes across Postgres, Typesense and Meilisearch.
The Typesense connector adds vector, semantic and hybrid search, multi-search across collections, declarative synonyms and a search controller factory.
The persistence layer splits into an engine-neutral base plus Postgres, Typesense and memory connectors; existing Postgres code keeps working almost unchanged.
Redis helpers are reorganized by topology with renamed classes, an IRedisHelper interface, a Sentinel helper and a createRedisHelper factory.
The auth controller adds GET /me and a withUserInformation flag on /who-am-i, backed by the optional IAuthService.getUserInformation.
Validation errors carry a stable messageCode from the schema, database errors classify more correctly, and production responses no longer leak database internals.
The authorize module is rebuilt around one PolicyDefinition edge table, a scoped Casbin model, a per-request enforcer pool and a Redis-only cache; DrizzleCasbinAdapter and the in-memory cache driver are removed.
CasbinAuthorizationEnforcer can register a domain matching function so wildcard or pattern domains in grouping policies work.
Set a default query limit per model with settings.defaultLimit, used by top-level find() and by to-many relations.
The Casbin policy adapter now qualifies its tables with a configurable schema name (default "public") instead of relying on the Postgres search_path.
Repositories now reject null/undefined ids and where clauses that resolve to no condition, which used to update or delete every row.
To-many relations included in a query are now capped at DEFAULT_LIMIT (10) whether or not the scope has an order.
Turn generated CRUD routes on or off per controller, get type-checked context.json() responses, and avoid a TS7056 declaration error.
The generated auth controller now has a JWT-protected POST /token/refresh route backed by an optional IAuthService.refreshToken.
Error responses now include the error's messageCode and any extra fields you attach to it.
The shared compiler config moves to TypeScript 6 and ES2024, adds a lint rule, and the mail component no longer fails at startup when an unused transporter's optional package is missing.
Repository read operations can now lock rows with a new lock option, inside a transaction.
IGNIS can now serve unary gRPC endpoints through ConnectRPC next to REST, and the controller base classes are split into REST and gRPC versions.
The Kafka helpers gain health tracking, graceful shutdown, message and consumer group callbacks, lag monitoring, transactions and a schema registry helper.
The Kafka producer, consumer and admin helpers are now thin wrappers around @platformatic/kafka v1.30.0, so existing Kafka code must be migrated.
A filter with offset now applies it, and queries without skip or offset no longer get an implicit offset of 0.
JWT payload fields can now use custom codecs for AES encryption, arrays and objects no longer get corrupted, and existing AES-encrypted tokens stop working.
Declare a model's authorization principal in its @model settings and read it back from the model or the MetadataRegistry.
Authentication now supports asymmetric JWKS tokens for microservices, AES payload encryption is optional, token errors no longer leak internals, and JWT setup needs a few migration changes.
@venizia/ignis no longer re-exports the runtime helpers of @venizia/ignis-helpers, so import them from @venizia/ignis-helpers directly.
IGNIS now has a pluggable authorization system with role shortcuts, voters and Casbin support, and route configs use a new IAuthRouteConfig type.
WebSocket authentication payloads, client metadata and callbacks can now be typed with generics, with no change needed in existing code.
The WebSocket server can now encrypt messages per client through an outbound transformer and an ECDH handshake, and delivers them to rooms and broadcasts concurrently.
AES and RSA now take a single options object like ECDH, and ECDH joins the common crypto type hierarchy, which needs a small code update.
The WebSocket server now disconnects clients that stop responding at the application level, and the default maximum message size drops from 16MB to 128KB.
SocketIOComponent now starts after the server is up and works on both Node and Bun, with room validation and several renamed types.
The Logger is faster, gains method-scoped logging and configurable file rotation and format, and a new HfLogger serves performance-critical code.
CRUD controller routes can now customize the request (query, headers, params, body) and the response through request and response options.
IGNIS can now authenticate API requests with HTTP Basic authentication.
find() can return the data together with its start, end and total, ready for an HTTP Content-Range header.
Models can define a default filter, such as soft delete or tenant isolation, that repositories apply to every query unless you skip it.
String IDs now use a text column with an optional custom generator instead of the PostgreSQL uuid type.
Filters can now reach into JSON/JSONB fields with dot notation, use PostgreSQL array operators, and exclude a range with notBetween, all without raw SQL.
Models can hide properties from every repository query, field selection accepts arrays, and results can be ordered by a path inside a JSON column.
New SnowflakeUidHelper generates unique, time-sortable IDs as short Base62 strings for distributed systems.
Datasources that a component registers during configure() are now configured.
Repositories can start explicit transactions that you pass between services and repositories, with a choice of isolation level.
Repository include filters now work at any depth, and repository methods accept a generic return type.
The repository decorator is validated strictly, filters reject unknown columns, two filter security holes are closed, and IREGEXP and a log option are added.
Simple repository find() queries are about 15-20 percent faster and the repository layer allocates less, with no API change.
The dependency injection system now ships as its own package, @venizia/ignis-inversion, and the old deep import path is gone.
Models now carry their own schema and relations, repositories bind a model to a datasource with one decorator, and datasources find their schema on their own.