v0.4.2
Latest$ npx @axiljs/cli@latest create
Release
- Maintenance release: every
@axiljs/*package is published at 0.4.2 with internal ranges set to^0.4.2, andaxil createwrites^0.4.2into new projects. No API changes since 0.4.0.
Release notes for every AxilJS release, with breaking changes and upgrade steps. All @axiljs/* packages share one version number.
@axiljs/* package is published at 0.4.2 with internal ranges set to ^0.4.2, and axil create writes ^0.4.2 into new projects. No API changes since 0.4.0.@axiljs/* package at 0.4.1 with internal ranges set to ^0.4.1. No API changes since 0.4.0.@tSensitive fields are tracked once the ORM loads them. If one reaches a response, log entry, event, queue job or AI request that has not been allowed, the runtime reports a violation: in development the request fails before anything is sent. Allow intended exits with allowSensitive() or configureLineage(). Docs app.serveOpenAPI('/openapi.json') generates an OpenAPI 3.1 document from your routes and validate() schemas, including mount prefixes, path and query parameters, request bodies and bearer security for routes protected by @axiljs/auth. Docs axil generate client turns that document into one dependency-free, fully typed TypeScript client. Docs toJSONSchema(). Docs axil migrate --check analyzes pending migrations without running them and exits with code 1 when a statement would lock a large table or break running code. axil migrate up --safety=block checks before migrating. Docs @axiljs/runtime and return a @tSensitive field in a response now get a violation for it. Allow the exit, mask the field with redact(), or set AXIL_INTENT_MODE=warn while migrating. Docs ^0.3.x does not include 0.4. Update every @axiljs/* package together, for example npm install @axiljs/core@latest for each one you use.useStores() installs the stores behind tIdempotent, tCache, tLock and tRateLimit in one call. Any object with the matching methods works, so Redis or your own backend plugs in the same way. Docs createSqlStores(fromConnection(db)) builds every SQL store with one table prefix, plus ensureSchema() and close(). Use lock: 'advisory' for PostgreSQL advisory locks. Docs SqlBudgetStore keeps AI budgets from withBudget in the database, so token, cost and request limits hold across servers. Docs saas-api and high-scale-api open a DATABASE_URL connection, install the SQL stores, call wireAll(), expose the Studio Intent view in development only and close everything on shutdown. Docs SqlQueueBackend lets several servers share one job table. Jobs are claimed with FOR UPDATE SKIP LOCKED, locks are renewed while a job runs and stale jobs return to the queue. Docs analyzeMigration() and MigrationRunner#check() flag statements that take heavy locks or break running code, and suggest the safe alternative. safety: 'block' stops a dangerous migration. Docs axil verify lists the decorators you use, which ones the runtime enforces and classes that are never wired, then runs your tests with AXIL_INTENT_MODE=enforce. Docs expectIdempotent, expectTenantIsolated and expectNoIntentViolations turn declared intent into tests. Docs withBudget enforces token, cost and request limits per tenant before the model is called. withRedaction masks or tokenizes e-mail addresses, card numbers, API keys and more before prompts leave your server. recordingProvider and replayProvider make AI tests deterministic and offline. Docs tReadOnly blocks writes before they reach the database, tPure forbids side effects, tTenantIsolated rejects other tenants' rows, tIdempotent runs once per key and tSlo tracks latency percentiles. Modes: enforce, warn and off. Docs tCircuitBreaker, tFallback, tBulkhead, tConcurrency, tMutex, tLock, tDedupe, tHedge, the tCache family, tRateLimit, tThrottle and tDebounce now execute. The runtime enforces 26 decorators, up from 3. Docs FileQueueStore keeps queued jobs on disk, so a restart loses nothing. Docs ClusterStore shares rate-limit counters across cluster workers. Docs emit(type, payload, { broadcast: true }) delivers events to other worker processes. Docs serve(factory, { onPrimary }) installs primary-side services before workers start. Docs CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md and a sponsor button.server.trustProxy now defaults to false. Clients could forge X-Forwarded-For to dodge per-IP rate limits. Behind a load balancer, set trustProxy to the number of proxy hops. Docs v.number() converts numeric strings to numbers, and rejects blank strings (an empty ?page= used to pass as 0). Docs 2t − 1. Docs getContext(), tRetry / tTimeout / tAudit interceptors, andtRedact / tSensitive redaction for responses and logs. Docs axil.scaling.json, a capacity planner, a built-in load generator and a multi-process readiness scan. Docs axil create opens a template picker: ↑↓ to move, ←→ for categories, space to pick, / to search. The project name is asked for when you leave it out. Docs axil capacity checks whether your machine or deployment can carry a target load, and reports what to change. Docs axil deploy sizes Kubernetes manifests from axil.scaling.json: replicas, autoscaler, pod resources, worker count, and HOST=0.0.0.0 for containers. Docs @axiljs/studio, so axil run opens Studio straight away.Ctrl K), a page address for every view, and a mobile layout. It now runs fully offline, with no CDN fonts or scripts. Docs import of @axiljs/cloud from ES modules works (the package pointed at a file that didn't exist).req.rawBody, so webhook signatures can be verified.describe() work, and string bodies are no longer encoded twice.logger / logging option.axil command.npm install @axiljs/core@0.3.3 (and the same for each @axiljs/* package you use).server.trustProxy.npx still shows an old CLI, run npx @axiljs/cli@latest or npm install -g @axiljs/cli@latest.