@getstrata/core 3.0.7 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -873
- package/README.md +20 -57
- package/dist/core/database/definitions.d.ts +8 -2
- package/dist/core/database/driverPorts.d.ts +1 -1
- package/dist/core/database/index.d.ts +3 -2
- package/dist/core/database/model.d.ts +19 -4
- package/dist/core/database/modelAuthoring.d.ts +64 -0
- package/dist/core/database/modelRegistry.d.ts +5 -1
- package/dist/core/database/modelRelationTypes.d.ts +14 -0
- package/dist/core/database/ormInternal.d.ts +2 -1
- package/dist/core/database/ormRuntime.d.ts +2 -1
- package/dist/core/http/index.d.ts +2 -2
- package/dist/core/http/parseMultipartUpload.d.ts +1 -0
- package/dist/core/http/streamingUpload.d.ts +20 -0
- package/dist/core/http/uploadContent.d.ts +6 -0
- package/dist/core/media/imageTransform.d.ts +25 -1
- package/dist/entries/database/bindings.js +34 -11
- package/dist/entries/database/definitions.js +6 -0
- package/dist/entries/database/ownedReadOnlyObservation.js +3 -1
- package/dist/entries/http/parseMultipartUpload.js +408 -20
- package/dist/entries/media/imageTransform.js +110 -20
- package/dist/framework/public-api.d.ts +4 -3
- package/dist/index.js +70 -102
- package/dist/internal/ormRuntime.js +173 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,880 +1,17 @@
|
|
|
1
1
|
# @getstrata/core changelog
|
|
2
2
|
|
|
3
|
-
## 3.0
|
|
3
|
+
## 3.1.0
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- Simplify public documentation and add one AGENTS.md for framework contributors and coding agents.
|
|
6
|
+
- Add bounded streaming multipart uploads and a single-use `UploadedFile` with explicit storage, cancellation and partial-write cleanup. The buffered helper uses the same bounded parser; both paths validate supported binary signatures and UTF-8 text. Multipart helpers now reject extra files and malformed framing; see docs/MEDIA.md for adoption details.
|
|
7
|
+
- Add native Bun image transforms with typed size/fit/format/quality options, input-format verification and decode/output limits. Preserve the existing resize helper's output selection and enlargement behavior.
|
|
8
|
+
- Add class-based model authoring with one typed field declaration, inferred record types, instance relationship methods and application-owned default repositories. Preserve low-level definition APIs and explicit session/transaction selection.
|
|
9
|
+
- Add typed class relationship results, model-targeted effects and immutable table metadata access without global connection state. Keep neutral definition factories independent of the ORM implementation.
|
|
6
10
|
|
|
7
|
-
|
|
11
|
+
### Adoption
|
|
8
12
|
|
|
9
|
-
-
|
|
10
|
-
- Add `defineMigration` authoring, Bun-backed local/S3 streaming storage, structural mail/storage ports and application-owned notification channels.
|
|
11
|
-
- Share form-request validation, parse bodies by Content-Type, require explicit authorization and reject malformed integer query parameters. Require atomic tagged-cache loading; preserve notification HTML and validate database notification IDs.
|
|
12
|
-
- Preserve exact oversized MySQL integers without changing safe numeric IDs. Keep `mysql2` as the qualified optional MySQL adapter; it remains lazily loaded.
|
|
13
|
-
- Prevent closed MySQL connections from reopening, drain admitted transactions through both SQL entrypoints, and seal raw MySQL/PostgreSQL pool admission while native cleanup is pending. Concurrent close shares one cleanup result.
|
|
14
|
-
- Drain synchronous and asynchronous production queue jobs, including jobs that initiate shutdown, while preserving dispatch failures. Fix immediate outbox worker start/stop admission races.
|
|
15
|
-
- Bind password-confirmation signatures to their purpose. Require matching browser state for OAuth callbacks and add dedicated secure SAML state-cookie helpers; OIDC retains its PKCE binding.
|
|
16
|
-
- Keep valid short JWT lifetimes, reject malformed numeric settings and name the correct session TTL setting in validation errors. Narrow consumer capabilities and move test controls to `@getstrata/core/testing`.
|
|
13
|
+
Existing low-level model definitions remain supported. New class models must be registered in the application's model list; package installation does not rewrite app files. Upload helpers now accept one file and validate declared content types against supported signatures/UTF-8 text. Read [upload limits and migration guidance](https://github.com/EyK-26/strata/blob/main/docs/MEDIA.md) before adopting stricter validation.
|
|
17
14
|
|
|
18
|
-
|
|
15
|
+
## 3.0.8
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- Fixed SQLite queries returning no rows when SQL begins with comments, including VALUES, PRAGMA, EXPLAIN, and compact RETURNING statements.
|
|
23
|
-
- Aligned memory and Redis cache expiration. Added put and forever to ordinary, tagged, and execution-scoped caches. Zero or negative TTLs now remove entries; invalid numeric TTLs are rejected before effects.
|
|
24
|
-
- Fixed stale cache loaders overwriting newer writes and empty cache keys bypassing memory limits.
|
|
25
|
-
- Fixed internal redirect validation bypasses and preserved repeated query parameters.
|
|
26
|
-
- Fixed malformed intended-URL and flash cookies throwing errors.
|
|
27
|
-
- Fixed CI package dry-runs failing when the package version was already published.
|
|
28
|
-
|
|
29
|
-
**Migration:** Replace Redis TTL 0 used for permanent storage with forever(). For a permanent configured default, use `null`. TTL units remain milliseconds.
|
|
30
|
-
|
|
31
|
-
## 3.0.4
|
|
32
|
-
|
|
33
|
-
Restore workspace-based npm publication and remove custom archive packing/recovery. Skip confirmed existing versions, stop on registry lookup failures, and accept successful npm uploads without requiring immediate registry visibility. Retain release quality gates, pinned npm, provenance and publication dry-runs. The v3.0.3 attempt published only @getstrata/core before its visibility check failed.
|
|
34
|
-
|
|
35
|
-
## 3.0.3
|
|
36
|
-
|
|
37
|
-
Remove the separate successful-main-CI prerequisite; the release workflow still requires its own full quality gate before publication.
|
|
38
|
-
|
|
39
|
-
Fix npm publication of local release archives by resolving paths absolutely, avoiding GitHub shorthand interpretation. Exercise archive publication dry-runs in CI and before live publication. Preserve the failed v3.0.2 tag; its first publish failed before any package was published.
|
|
40
|
-
|
|
41
|
-
## 3.0.2
|
|
42
|
-
|
|
43
|
-
Complete the SOLID contract audit: storage deletion is idempotent `Promise<void>` across local and S3 drivers; model misses and required authentication use transport-neutral errors with HTTP 404/401 translation. Middleware accepts only the authentication capability it calls. These API changes and migration steps are documented in `docs/architecture/target-api-migration.md`.
|
|
44
|
-
|
|
45
|
-
Reconcile completed framework ownership and retirement documentation. Clarify the exact-commit main CI prerequisite, early-tag retry procedure, and maintainer release handoff; improve the release admission diagnostic without changing its checks.
|
|
46
|
-
|
|
47
|
-
Remove unused internal renderer/build compatibility helpers and migrate their test imports. Refresh v3 application, auth, discovery, queue, tracing and lifecycle guidance; clearly label retained 2.x qualification evidence.
|
|
48
|
-
|
|
49
|
-
## 3.0.1
|
|
50
|
-
|
|
51
|
-
Fix release archive packing for npm 12 package-keyed JSON output while retaining npm 11 compatibility. Validate archive identity and integrity, pin the publication toolchain, and exercise actual release packing in CI. The v3.0.0 tag remains unchanged; its failed workflow published no npm packages.
|
|
52
|
-
|
|
53
|
-
## 3.0.0
|
|
54
|
-
|
|
55
|
-
Breaking application-owned runtime, typed authorization and persistence, immutable starter plans, isolated adapters and authenticated queue handoffs.
|
|
56
|
-
|
|
57
|
-
## 2.2.60
|
|
58
|
-
|
|
59
|
-
- Preserve failed-job payloads as PostgreSQL JSONB objects by letting the native driver encode them once. Retain SQLite/MySQL JSON text mapping and readable legacy JSONB strings; timestamps, projections and replay admission/deletion ordering are unchanged.
|
|
60
|
-
- Add real PostgreSQL restricted-role persistence and replay regression coverage, including an independent stored-type oracle and legacy-string recovery.
|
|
61
|
-
|
|
62
|
-
## 2.2.59
|
|
63
|
-
|
|
64
|
-
- Reject unsupported SQLite column-level uniqueness during ADD COLUMN compilation, before any statement in a Schema.run plan executes. Use the existing nullable column plus table.unique() API; populated rows, duplicate rejection, CREATE behavior and PostgreSQL/MySQL SQL are preserved. #371
|
|
65
|
-
- Retain defineModel's declared record/key as repository() generic defaults, preserving explicit generics, inherited/custom-key models and legacy overrides. Runtime upsert and Model.repository behavior are unchanged. #372
|
|
66
|
-
- Initialize the default mailer on first successful access so custom MailDriver instances can load without configuring unused SMTP. Actual SMTP use still validates configuration; successful singleton identity, failure propagation and cancellation remain intact. #373
|
|
67
|
-
- Read existing migration history without DDL from getMigrationStatus(). Missing or inaccessible history now reports the native database error; explicit migration operations still initialize history. #374
|
|
68
|
-
|
|
69
|
-
## 2.2.58
|
|
70
|
-
|
|
71
|
-
PostgreSQL runtime privilege fix: Replace broad table/sequence grants with explicit CRUD and sequence usage/read permissions. Repair legacy helper-managed grants that allowed TRUNCATE across RLS tenant boundaries. Preserve provisioning locks and transactional rollback. Resolves #364 through #370.
|
|
72
|
-
UUID schema columns: Add table.uuid() with PostgreSQL native UUID, MySQL CHAR(36) and SQLite TEXT. Supports explicit constraints and application-supplied identifiers; existing schemas remain unchanged. #365
|
|
73
|
-
Model and view generators: Add make:model for declarative models with automatic repositories, and make:view for escaped Eta templates. Support nested names and explicit model metadata, with path validation and overwrite protection. Migrations remain explicit and separate. #368
|
|
74
|
-
Repeated form values: Add opt-in { preserveRepeated: true } parsing through core form helpers and WebFormRequest, retaining repeated text and files in order. Existing parsing defaults remain unchanged; applications retain responsibility for duplicate validation. #366
|
|
75
|
-
Mail extension documentation and coverage: Qualify existing injected MailDriver integrations, including HTTPS providers, cancellation, deadlines, error propagation and provider-controlled idempotency. This adds tests and guidance without changing stock mail transports. #367
|
|
76
|
-
|
|
77
|
-
## 2.2.57
|
|
78
|
-
|
|
79
|
-
Add opt-in CsrfOptions.targetOrigin with strict request Host/URL authority and source-origin validation while retaining signed cookie/token checks and existing defaults. Preserve native Request identity and ignore forwarding claims. Fall back safely to JSON error formatting for malformed native URL metadata.
|
|
80
|
-
|
|
81
|
-
## 2.2.56
|
|
82
|
-
|
|
83
|
-
- Stop adding schema CREATE to PostgreSQL runtime roles; keep USAGE, existing object/default grants and both catalog/ACL concurrency protocols. Existing grants, PUBLIC privileges, memberships and ownership are not revoked automatically; restricted deployments can use the documented public schema-only migration runner.
|
|
84
|
-
- Require Bun >=1.4.4 and retain the native SQL timer regression matrix. Preserve ORM/transaction behavior while removing two redundant private guards; strengthen error, empty-data and adapter-metadata coverage without changing public or protected APIs.
|
|
85
|
-
|
|
86
|
-
## 2.2.55
|
|
87
|
-
|
|
88
|
-
- Align the lockstep version with the starter startup-cleanup correction. Core runtime, ORM, lifecycle policy and public/protected APIs are unchanged.
|
|
89
|
-
|
|
90
|
-
## 2.2.54
|
|
91
|
-
|
|
92
|
-
- Align the lockstep version with the bootstrap native parameter own-key correction; core runtime, ORM and public/protected contracts are unchanged.
|
|
93
|
-
|
|
94
|
-
## 2.2.53
|
|
95
|
-
|
|
96
|
-
- Align the lockstep version with the bootstrap native-route parameter correction; core runtime, ORM and public/protected contracts are unchanged.
|
|
97
|
-
|
|
98
|
-
## 2.2.52
|
|
99
|
-
|
|
100
|
-
- Attach eager relations to offset pages; apply to-many limits/offsets per owner with bounded window queries while retaining scopes and repository dispatch.
|
|
101
|
-
- Persist static-create observer edits while retaining resolved initial casts before observers; transform only changed fields again, preserving unchanged values, forced attributes and cancellation.
|
|
102
|
-
- Preserve immutable protected write-hook outputs by merging observer changes into framework-owned values rather than mutating extension-owned results.
|
|
103
|
-
- Fence invalidated array-cache fills and share one request correlation ID between context, logs and response middleware.
|
|
104
|
-
- Expose optional one-based job attempts and encode/hydrate failed-job JSON/timestamps at the repository storage boundary for durable cross-driver recovery.
|
|
105
|
-
- Hydrate only selected recovery columns so projection results retain their exact field shape.
|
|
106
|
-
|
|
107
|
-
## 2.2.51
|
|
108
|
-
|
|
109
|
-
- Decode static URL pathnames exactly once while preserving generic filesystem path semantics, malformed/traversal rejection and literal percent/space names.
|
|
110
|
-
- Load explicit nested polymorphic paths using their concrete model and nested relation owners, batching by constructor identity while preserving flat eager records, flat lazy models, private state and visibility scopes.
|
|
111
|
-
- Preserve retrieved-observer invalidation/materialization and once-per-hydration callback getter dispatch; cache bookkeeping inspects only the existing observer list.
|
|
112
|
-
|
|
113
|
-
## 2.2.50
|
|
114
|
-
|
|
115
|
-
- Align the lockstep version with the bootstrap HTTP-only drain-reporting correction. Core runtime, ORM, transaction, lifecycle coordinator and public/protected APIs are unchanged.
|
|
116
|
-
|
|
117
|
-
## 2.2.49
|
|
118
|
-
|
|
119
|
-
- Restore documented protected dirty-attribute write hooks and related-model forwarding types, preserving custom repositories, transactional events, scopes and serialization behavior.
|
|
120
|
-
- Separate private model attribute/registration/query/projection state and relation SQL compilation. Keep existing public/protected entrypoints, driver behavior and eager-loading runtime semantics.
|
|
121
|
-
- Release exporter-owned audit SQL scopes before HTTP delivery and acknowledge only the accepted snapshot; preserve caller-owned transactions, pending failures and at-least-once delivery.
|
|
122
|
-
- Move Redis list/Streams/cache/scheduler Lua protocols and SMTP MIME/address assembly into private owners without changing script/wire bytes, leases, fencing, retries, socket behavior or public imports.
|
|
123
|
-
|
|
124
|
-
## 2.2.48
|
|
125
|
-
|
|
126
|
-
- Validate complete integer environment values instead of accepting partial numeric strings; retain documented defaults, signs and minimum checks.
|
|
127
|
-
- Add the protected `BaseRepository.cloneWithConnection()` construction hook for custom repositories with native private state. Keep the default legacy rebinding behavior and avoid rerunning application constructors implicitly; concrete subclasses own their construction override.
|
|
128
|
-
- Separate database connection capability contracts and membership lookup internals while retaining existing exports, constructors and service identity.
|
|
129
|
-
- Report synchronous dependency-resolution cycles with their service path and clean resolution state after failure, preserving singleton and transient behavior.
|
|
130
|
-
|
|
131
|
-
## 2.2.47
|
|
132
|
-
|
|
133
|
-
- Align the package version with the starter/CLI correction batch; no core runtime behavior changes.
|
|
134
|
-
|
|
135
|
-
## 2.2.46
|
|
136
|
-
|
|
137
|
-
- Preserve GuestGuard credential identity through named guards; resolve development tenancy without account tables and permit non-cookie writes only for actual, explicitly enabled development identities. Keep anonymous, session-CSRF and staging/production refusal intact.
|
|
138
|
-
|
|
139
|
-
- Add `validateSpaPrefix` for canonical, dedicated SPA URL namespaces; reject API, asset and platform-probe collisions while preserving existing prefix normalization.
|
|
140
|
-
|
|
141
|
-
## 2.2.45
|
|
142
|
-
|
|
143
|
-
Offer optional Adminer consistently in Docker and Mix wizard modes when the selected database is in Compose. Generate debug-profile startup commands and complete database login instructions; correct noninteractive Docker documentation while preserving existing flag behavior. Add prompt/CLI regressions and real isolated MySQL/Postgres Adminer profile and login acceptance tests without removing assertions.
|
|
144
|
-
|
|
145
|
-
## 2.2.44
|
|
146
|
-
|
|
147
|
-
Generate JSON registration, verification/resend, reset and password-confirmed MFA for API/SPA cookie starters; share guarded MFA persistence with HTML, reject malformed TOTP secrets, and extend installed-app SMTP, replay, revocation and compiler coverage without changing HTML contracts.
|
|
148
|
-
|
|
149
|
-
Preserve private/no-store headers when the tenancy boundary maps an HTTP error to JSON, without changing its status/body or transaction rollback. Rebuild the starter in standalone generated-app verification to prevent stale output from producing false green results.
|
|
150
|
-
|
|
151
|
-
Honor the explicit API JSON error context during password confirmation even when a client sends HTML/HTMX headers; preserve automatic HTML behavior outside that context.
|
|
152
|
-
|
|
153
|
-
Use the shared JSON parser for signed password reset so malformed input is a controlled 400 and does not consume the reset proof.
|
|
154
|
-
|
|
155
|
-
## 2.2.43
|
|
156
|
-
|
|
157
|
-
Add `afterCommit` for process-local effects after the outermost managed transaction, sharing savepoint rollback and tenant replay with model events. Generated auth SMTP uses this boundary even inside RLS request transactions; callback failures propagate after commit without undoing persisted accounts. Durable delivery still requires the SQL outbox.
|
|
158
|
-
|
|
159
|
-
Fix MySQL verification/reset and session-revocation timestamps through the shared SQL dialect; make signup account and verification-token persistence atomic with SMTP after commit; initialize no-tenancy seed connections; add installed starter auth/SMTP/MFA/rollback journeys for every database and frontend, plus generated TypeScript profiles.
|
|
160
|
-
|
|
161
|
-
## 2.2.42
|
|
162
|
-
|
|
163
|
-
Generate auth JSON and forms with explicit private, no-store cache policy. Add privateJsonResponse and typed view namespace header defaults while preserving normal public defaults, native cookies, per-response overrides and HTMX representation behavior. Cover packed APIs and actual generated cookie/token/JWT/CSRF/profile/form HTTP responses.
|
|
164
|
-
|
|
165
|
-
Use the canonical error serializer for core JSON admission denials so authentication, policy/admin/ability, verification, password confirmation and body-limit failures retain no-store. Preserve exact status/message contracts, keep checker details private and retain HTML redirects/throws and successful response headers. Add packed producer regressions and a native detail-projection case.
|
|
166
|
-
|
|
167
|
-
## 2.2.41
|
|
168
|
-
|
|
169
|
-
Make framework HTML/JSON error responses non-storeable, including configured/fallback renderers and custom-body 404 responses; retain success-response cache policy and add packed header regressions.
|
|
170
|
-
|
|
171
|
-
Fix packaged error wrappers ignoring the configured application error renderer; preserve API JSON precedence and add packed configured/default rendering regressions.
|
|
172
|
-
|
|
173
|
-
Fix packaged membership middleware and default service ignoring the configured application lookup. Use the canonical membership context while preserving explicit service injection and request isolation. Add mandatory packed external-app coverage for concurrent users, replacement configuration and propagated lookup failures.
|
|
174
|
-
|
|
175
|
-
## 2.2.40
|
|
176
|
-
|
|
177
|
-
Fix shared DNS fixture state in packaged outbound consumers. safeFetch and GitHub OAuth now use the canonical safeUrl resolver while retaining DNS pinning, private-address validation and request deadlines. Add mandatory packed external-app regressions for resolver replacement and private-target refusal; document controlled-provider qualification limits.
|
|
178
|
-
|
|
179
|
-
## 2.2.39
|
|
180
|
-
|
|
181
|
-
Fix published HTTP metrics registry identity: share root/subpath Prometheus state and preserve registry, class and bucket exports. Keep generated middleware/exporter observations consistent and extend installed Postgres/SQLite/MySQL HTTP regressions; no app bridge, schema change or collector-policy change.
|
|
182
|
-
|
|
183
|
-
## 2.2.38
|
|
184
|
-
|
|
185
|
-
Qualify packed OIDC and SAML callbacks across Postgres, SQLite and MySQL. Fix explicitly non-migrating local bootstrap provisioning, dialect-safe transactional SAML replay, verified bearer ACS recipient binding, and independent SAML Response Destination validation through a maintained parser. Fix owned listener/client address mismatches with typed generated native options and optional CLI HOST, retaining default production binding. Preserve existing generated auth, production guards, compiler/runtime assertions and coverage gates; live provider and deployment qualification remain separate.
|
|
186
|
-
|
|
187
|
-
## 2.2.37
|
|
188
|
-
|
|
189
|
-
Fix MySQL repository entity-returning mutations with transaction-pinned readback, persisted keys/defaults, honest null and deletion outcomes, complete model event payloads and injected connection ownership. Preserve native Postgres/SQLite RETURNING and conditional affected-row metadata. Close owned generated OpenAPI and failed-job command applications on success and failure before exit; retain both command and cleanup errors. Add mandatory packaged MySQL production column-tenancy CLI and HTTP auth/SCIM acceptance with an owned DML-only account, unchanged route/spec/SDK contracts, native ORM regressions and cleanup tests. Records dogfood issues #232 and #233 without application SQL workarounds.
|
|
190
|
-
|
|
191
|
-
## 2.2.36
|
|
192
|
-
|
|
193
|
-
Add a mandatory installed-package SQLite column-tenancy CLI/OpenAPI/HTTP profile, including cookie/token/JWT/Basic and repeated SCIM isolation, while preserving existing Postgres security, route inventories, compiler combinations and Docker gates. Reconcile observability/rotation trackers against shipped capabilities and remaining operational qualification.
|
|
194
|
-
|
|
195
|
-
Fix declared default exports missing from nine published core subpaths. Preserve defaults in generated non-shared entries and alias the shared BaseRepository default to its canonical root constructor, retaining named exports and singleton/class identity. Extend declaration/runtime verification with value-default and type-only-default regressions; compile all nine imports across the existing 18 generated compiler combinations and execute them in every installed candidate app. Records the published 2.2.35 reproduction from Q01 dogfooding; no shop adapter or node_modules patch.
|
|
196
|
-
|
|
197
|
-
## 2.2.35
|
|
198
|
-
|
|
199
|
-
Retire checked-in HiroApp applications after preserving security, CLI/OpenAPI/HTTP, source, migration and Docker acceptance in generated candidate-package fixtures. Keep all 23 security cases, 40 runtime operations, 22 API/protocol operations, three-engine migration cases and 18 compiler combinations. Make the private root CLI fixture-only, isolate post-commit HTTP databases, and validate the generated production image with restricted runtime credentials, Redis recovery and graceful shutdown. Remove obsolete app regeneration/selectors and update contributor, generator and deployment documentation; retain compatible example preset IDs and explicit application-owned deployment boundaries. Regenerate the sample SDK from the API-only snapshot and verify it against the installed candidate package. Core coverage retains 136 enforced files at 100%; remove only the two deleted private-entrypoint exemptions (272 remaining).
|
|
200
|
-
|
|
201
|
-
## 2.2.34
|
|
202
|
-
|
|
203
|
-
Complete opt-in persisted account-state adoption: atomic SCIM suspension/reactivation and credential revocation, serialized generated password/SSO issuance, version-bound session/MFA/confirmation proofs, safe optional credential-table handling and malformed-cookie rejection. Includes explicit schema migration and upgrade instructions; installing packages alone does not rewrite existing apps.
|
|
204
|
-
|
|
205
|
-
The admission and persistence foundations from #219/#221 are included: optional live status/epoch contracts, guarded additive users/session migrations, atomic epoch advancement, optional-table revocation fixes (#220) and malformed-cookie handling (#218). Legacy directories without metadata keep their admission contract. Epoch-aware revocation requires all custom issuers and security writers to participate in the documented protocol.
|
|
206
|
-
|
|
207
|
-
## 2.2.33
|
|
208
|
-
|
|
209
|
-
Fix shared tenant lookups in generated SQLite column-tenancy apps through typed repositories. Generated SCIM rejects unsupported status/profile mutations before writing and runs mutations in explicit transactions, including immediate observer rollback. Add actual SQLite and restricted Postgres HTTP regressions; full account deactivation remains unsupported and explicit.
|
|
210
|
-
|
|
211
|
-
## 2.2.32
|
|
212
|
-
|
|
213
|
-
Generated JSON and HTML email verification now atomically consumes the one-time link with the account update and immediate observers, including SQLite/non-RLS apps. Failed verification remains retryable. Adds actual signed HTTP rollback, purpose/expiry/admission, concurrency and replay regressions while preserving existing response contracts.
|
|
214
|
-
|
|
215
|
-
## 2.2.31
|
|
216
|
-
|
|
217
|
-
Preserve JWT issuance precision across millisecond revocation cutoffs without changing expiration. Generated MFA setup rejects stale concurrent state changes and atomically commits credential revocation in SQLite/non-RLS as well as Postgres RLS. Adds real HTTP initial/replacement races, revocation rollback and withheld-success recovery regressions; intentional fresh replacement remains supported.
|
|
218
|
-
|
|
219
|
-
## 2.2.30
|
|
220
|
-
|
|
221
|
-
Basic authentication resolution is reused only within the same Request and unchanged credentials, preventing middleware/controller lookups from consuming MFA recovery proofs twice. Adds real HTTP replay/concurrency and credential/guard invalidation regressions.
|
|
222
|
-
|
|
223
|
-
## 2.2.29
|
|
224
|
-
|
|
225
|
-
MFA recovery-code persistence atomically claims the validated snapshot and rejects stale requests before credential issuance. Basic authentication fails closed and consumes under the verified RLS identifier scope. Adds native SQLite/Postgres/MySQL concurrency and restricted-role regressions.
|
|
226
|
-
|
|
227
|
-
## 2.2.28
|
|
228
|
-
|
|
229
|
-
Generated JSON and HTML password resets validate input before consuming signed links and atomically commit token consumption, password updates and credential revocation. Adds real generated-app failure, retry, replay and cookie/token/JWT revocation regressions.
|
|
230
|
-
|
|
231
|
-
## 2.2.27
|
|
232
|
-
|
|
233
|
-
Storage distinguishes missing objects from filesystem, authorization, missing-bucket and transport failures; S3 reads use a single native GET. Adds native Bun protocol regressions and documents failure/reconciliation contracts.
|
|
234
|
-
|
|
235
|
-
## 2.2.26
|
|
236
|
-
|
|
237
|
-
- Integer validation checks complete safe values instead of accepting numeric prefixes. Whole signed decimal form strings, optional values and existing error messages remain supported; `allowNumericStrings: false` requires JSON numbers. Validated strings are not implicitly cast. Invalid range bounds reject at configuration time.
|
|
238
|
-
- `SqlOutbox.getDelivery(eventId, listenerName)` provides bounded read-only status/attempt inspection under the caller's active connection and RLS scope. It returns no payloads, owner tokens or provider errors, never establishes bypass, and remains an advisory snapshot distinct from atomic replay.
|
|
239
|
-
- Repository and fluent `sumBy(groupColumn, column)` return typed groups with database textual totals, preserving precision without implicit JavaScript number conversion. Bound/protected predicates, soft deletes and transaction/RLS scopes are preserved; unsupported transformations reject explicitly. Native Postgres, MySQL and SQLite regressions cover precision, null groups, rollback and overflow behavior.
|
|
240
|
-
|
|
241
|
-
## 2.2.25
|
|
242
|
-
|
|
243
|
-
Queue worker run loops recover native Redis connection closure with bounded backoff and a fresh connection. Uncertain Redis mutations are not replayed; retained reservations and retries use normal recovery. Explicit closure remains terminal and non-connection errors remain fatal. Native poll/ack closure regressions cover Streams and list transports.
|
|
244
|
-
|
|
245
|
-
## 2.2.24
|
|
246
|
-
|
|
247
|
-
Fix Redis cache recovery after transport failures and command deadlines: retire failed connections, abort active fills, and lazily reconnect for later operations without replaying uncertain commands; preserve permanent explicit closure and shared invalidation fencing.
|
|
248
|
-
|
|
249
|
-
## 2.2.23
|
|
250
|
-
|
|
251
|
-
Fix native SMTP hangs with bounded whole-send deadlines, cancellation, buffered multiline replies, complete writes and verified implicit TLS. Preserve known final DATA acceptance through cleanup failures. Correct DATA transparency, CRLF, UTF-8 MIME/header encoding and long-line framing; reject incomplete AUTH and unsupported SMTPUTF8 envelopes explicitly. Generate documented SMTP timeout and TLS defaults. Real socket/TLS/protocol regressions cover outages, cancellation, accepted sends and framing; SMTP delivery before final acknowledgement remains uncertain.
|
|
252
|
-
|
|
253
|
-
## 2.2.22
|
|
254
|
-
|
|
255
|
-
Preserve caller auth, credential sources, request metadata and application async stores through cold/queued native transaction callbacks. Serialize Postgres privilege grants with full provisioning using atomic database-scoped batches, retaining delegated-admin permissions and rollback/retry safety. Add real constrained-pool JSON/HTML bearer/session-CSRF and concurrent grant/atomicity regressions; no automatic workers, auth bypass or production runtime provisioning.
|
|
256
|
-
|
|
257
|
-
## 2.2.21
|
|
258
|
-
|
|
259
|
-
Make registered queue/outbox workers discoverable in CLI help and generated startup guidance. Announce polling after boot and when it stops without claiming dependency health, printing secrets, or starting workers automatically. Preserve explicit process ownership, delivery semantics and graceful lifecycle; cover idle, boot/runtime/cleanup failures and real SIGTERM draining.
|
|
260
|
-
|
|
261
|
-
## 2.2.20
|
|
262
|
-
|
|
263
|
-
Validate complete migration definitions before callbacks, locks or database effects; reject malformed exports and duplicate names with source diagnostics. Refuse fresh with missing applied definitions and rollback with incomplete latest batches; preserve partial forward migration and remove blanket history deletion. Cover physical schema/data/history preservation and reset recovery on real Postgres, MySQL and SQLite, plus loader and preflight regressions; document safe missing-file recovery and unchanged atomicity limits.
|
|
264
|
-
|
|
265
|
-
## 2.2.19
|
|
266
|
-
|
|
267
|
-
Fix explicit development fresh resets with unfinished outbox deliveries while preserving ordinary rollback guards. Record each completed reset down immediately so later refusal leaves recoverable migration progress; document partial-DDL/crash limits and old-history reconciliation. Add independent outbox-state and reset failure/migrate/retry regressions on real Postgres, MySQL and SQLite, history-write/reapplication fault injection, and a documented stateful regression review flow.
|
|
268
|
-
|
|
269
|
-
## 2.2.18
|
|
270
|
-
|
|
271
|
-
Add optional typed guardMigrationRollback for application-owned rollback history predicates; skip history reads only during explicit development fresh resets, propagate predicate failures, and reuse the contract for encryption-checkpoint archival protection. Document guard placement and unchanged reset/rollback safety; cover type, runner and real SQLite history regressions.
|
|
272
|
-
|
|
273
|
-
## 2.2.17
|
|
274
|
-
|
|
275
|
-
Add explicit development-only migration reset context while preserving guarded rollback and encryption archival; align generated fresh entries and reject production/staging or unsupported reset arguments before provisioning. Replace CSP-blocked error-page JavaScript navigation with safe same-origin links, and correct ambiguous Postgres/SQLite foreign-key messages without changing their HTTP status.
|
|
276
|
-
|
|
277
|
-
## 2.2.16
|
|
278
|
-
|
|
279
|
-
Allow managed outbox workers to reuse a configured instance, preserving application tenant resolution, listener registration and delivery settings. Keep generated listeners-only defaults compatible, reject ambiguous worker sources, and cover configured SQL delivery, cancellation, cleanup and TypeScript contracts.
|
|
280
|
-
|
|
281
|
-
## 2.2.15
|
|
282
|
-
|
|
283
|
-
- Batch legacy list-queue priority polling while retaining recovery and ownership contracts.
|
|
284
|
-
- Batch dialect-portable pivot writes with framework transaction/savepoint composition and consistent numeric/string ID toggle semantics. Noncanonical or textual IDs use sequential database comparisons to preserve coercion and collation behavior.
|
|
285
|
-
- New Redis scaffolds explicitly select Streams; existing unset transport settings continue to select lists.
|
|
286
|
-
- Generate the SQL outbox migration, listener registry and managed worker command. Durable publication and cache-invalidation activation remain explicit.
|
|
287
|
-
|
|
288
|
-
- Primary-key ascending `chunk` queries reuse the existing keyset walk, including default primary-key ordering; projections, joins, grouping, locks and other orders retain OFFSET behavior.
|
|
289
|
-
- Empty filtered pagination totals skip the row query. Nonempty page-number pagination preserves OFFSET semantics and its count-plus-row-query budget; explicit cursor/keyset APIs remain available for deep traversal.
|
|
290
|
-
- Independent hashed write casts run concurrently. Deterministic regressions prove concurrent start, complete awaiting and failure before model observers or SQL writes; hydration and existing-hash behavior are preserved.
|
|
291
|
-
- Streams workers poll retry promotion, pending recovery and new delivery across priorities in one bounded Redis script, preserving priority, ownership fencing and at-least-once delivery contracts.
|
|
292
|
-
- Clarify historical 2.1.0–2.2.13 release notes and database/queue documentation. Remove the consolidated 1.x-to-2.x migration guide; existing projects are upgraded individually.
|
|
293
|
-
|
|
294
|
-
## 2.2.14
|
|
295
|
-
|
|
296
|
-
Complete the scoped HTML rendering starter adoption: generated apps inject ViewRenderer through createViewProvider instead of copying renderPage; welcome pages opt into HTMX fragments with full-page fallbacks, auth retains existing contracts, and CORS preserves representation Vary headers. Includes generator, runtime auth and cache-header regressions.
|
|
297
|
-
|
|
298
|
-
Add optional typed resourceRoutes and strict mergeRouteMaps composition, preserving native Bun routing and app-owned middleware. Add explicit ViewRenderer.namespace prefixes with unchanged layout/Response/HTMX contracts; generated auth controllers use the namespace. Includes native HTTP, compile-time, rendering isolation and generator regressions.
|
|
299
|
-
|
|
300
|
-
## 2.2.13
|
|
301
|
-
|
|
302
|
-
- Add a typed per-app HTML renderer on top of the native response path.
|
|
303
|
-
- Add explicit HTMX page and fragment responses. A fragment can fall back to the full page. Layout and auth response contracts stay the same.
|
|
304
|
-
|
|
305
|
-
## 2.2.12
|
|
306
|
-
|
|
307
|
-
- Require Bun >=1.4.3; align CI, generated/existing example runtime pins and Docker stages to 1.4.3, with bun-types >=1.4.3 behind the official @types/bun shim.
|
|
308
|
-
|
|
309
|
-
Add identified field-encryption keyrings, reader-first email/MFA configuration, and explicit transactional maintenance rotation for ciphertext and lookup keys with durable checkpoints, RLS scopes, fresh retirement audits and backup/rollback guidance. Fix SQLite primary-key compilation for non-generated keys. Preserve legacy auth defaults; no automatic data migration.
|
|
310
|
-
|
|
311
|
-
## 2.2.11
|
|
312
|
-
|
|
313
|
-
Add independently interruptible read-only SQLite and MySQL observations; extend bounded failed-job and outbox metrics to file-backed SQLite and URL-backed MySQL with schema/index guards, real-engine regressions and three-process consistency tests. Preserve Postgres RLS and business transaction behavior.
|
|
314
|
-
|
|
315
|
-
## 2.2.10
|
|
316
|
-
|
|
317
|
-
- Add bounded OpenTelemetry SDK health observations and selected native transaction-acquisition histograms through explicit metrics options.
|
|
318
|
-
- Add bounded Postgres failed-job counts using ORM ID projections, with schema guards, native acquisition deadlines and read-only collector draining.
|
|
319
|
-
- Observe Streams retry promotion lateness using Redis time; cancellation cleanup sentinels omit unavailable age instead of reporting age since epoch.
|
|
320
|
-
- Generate typed runtimeMetrics opt-in and provider-owned SQL collector draining, including startup cleanup; HTTP-only defaults and borrowed tracing ownership remain intact.
|
|
321
|
-
- Keep additional SQL observation dialects, sustained operational qualification and encryption rotation explicit follow-up work.
|
|
322
|
-
|
|
323
|
-
## 2.2.9
|
|
324
|
-
|
|
325
|
-
- Pool checkout can be cancelled. `reserve({ signal })` on the native driver aborts while it is still waiting for a connection. Drivers without that method are not given a fake one.
|
|
326
|
-
|
|
327
|
-
## 2.2.8
|
|
328
|
-
|
|
329
|
-
- Add bounded, read-only Postgres outbox metrics.
|
|
330
|
-
- Add bounded, opt-in Redis queue metrics. List and Streams depth stay separate.
|
|
331
|
-
|
|
332
|
-
## 2.2.7
|
|
333
|
-
|
|
334
|
-
- `ORDER BY` accepts explicit `nulls: "first" | "last"`. Postgres and SQLite emit `NULLS FIRST` / `NULLS LAST`. MySQL has no `NULLS FIRST` / `NULLS LAST` clause, so it orders nulls with an `IS NULL` discriminator and leaves the rest of the sort unchanged.
|
|
335
|
-
|
|
336
|
-
## 2.2.6
|
|
337
|
-
|
|
338
|
-
- The CLI, when it supervises the app or worker as a child, forwards shutdown signals to that child and waits for it. The container launcher no longer exits while the child is still running.
|
|
339
|
-
|
|
340
|
-
## 2.2.5
|
|
341
|
-
|
|
342
|
-
- Container readiness no longer means the API is admitting traffic. Database readiness no longer provisions roles or creates a missing database. A failed configured admin connection does not fall back to a generated password.
|
|
343
|
-
|
|
344
|
-
## 2.2.4
|
|
345
|
-
|
|
346
|
-
- Composite keyset pages on Postgres seek with a row comparison (`(a, b) > (cursor)`), so the planner can start at the index bound instead of expanding the cursor into a chain of OR predicates.
|
|
347
|
-
|
|
348
|
-
## 2.2.3
|
|
349
|
-
|
|
350
|
-
- Add scoped composite keyset pagination. The order must end with the primary key. Global scopes and caller filters stay in force across the cursor. Joins, grouping, and offset queries are rejected.
|
|
351
|
-
|
|
352
|
-
## 2.2.2
|
|
353
|
-
|
|
354
|
-
- Schema `bigId` emits an explicit 64-bit generated identity.
|
|
355
|
-
- Repository writes can be conditional and set-based.
|
|
356
|
-
- Repositories and models can take a typed row lock inside the current transaction.
|
|
357
|
-
- Generated Postgres query handles keep tagged-SQL typing.
|
|
358
|
-
|
|
359
|
-
## 2.2.1
|
|
360
|
-
|
|
361
|
-
- Opt-in Redis Streams (`QUEUE_REDIS_TRANSPORT=streams`). Lists stay the default. Streams adds consumer-group recovery, persisted retry schedules, total job deadlines, opt-in cancellation, and a stable job id across replay. Conversion from lists is a stopped maintenance step.
|
|
362
|
-
- Failed jobs stay recorded until retry admission succeeds. Manual replay keeps `failed_job.job_id` when the row has one.
|
|
363
|
-
- Public reads and tenant host selection are separate. Unknown hosts fail closed. Forwarded hosts are accepted only from configured trusted proxies.
|
|
364
|
-
- Generated apps can provision one initial administrator with `auth:provision-admin` and a one-time claim migration. Demo seeding stays explicit and is rejected in production and staging.
|
|
365
|
-
- Quota and in-memory throttle docs match the code: memory throttles stay process-local, and a Redis failure does not fall back to them.
|
|
366
|
-
|
|
367
|
-
## 2.2.0
|
|
368
|
-
|
|
369
|
-
Consistent model scopes.
|
|
370
|
-
Changed-field model writes.
|
|
371
|
-
Awaited provider startup.
|
|
372
|
-
Shared cache correctness.
|
|
373
|
-
Native HTTP controls and body limits.
|
|
374
|
-
Graceful lifecycle.
|
|
375
|
-
Validated async discovery.
|
|
376
|
-
Stronger model input types.
|
|
377
|
-
OpenTelemetry tracing.
|
|
378
|
-
Distributed scheduler ownership.
|
|
379
|
-
App-owned quota policy.
|
|
380
|
-
Bounded memory throttling.
|
|
381
|
-
|
|
382
|
-
## Unreleased
|
|
383
|
-
|
|
384
|
-
- Coordinate scheduled minute occurrences with renewable Redis ownership, overlap exclusion, completion retention and lease-loss cancellation. Production defaults to Redis without local fallback; direct task callbacks now accept ownership context. Share appSchedule across root/subpath imports. See SCHEDULER.md for explicit local mode and replay limits.
|
|
385
|
-
|
|
386
|
-
- Use maintained OpenTelemetry tracing with W3C propagation, consistent identities/epoch timestamps, bounded batching, sampling, error status and lifecycle-owned flush/shutdown. Raw URL/exception secrets are omitted; debug x-trace-id no longer overrides identity.
|
|
387
|
-
|
|
388
|
-
- Strengthen declared model write/filter/identifier contracts and add typed plain-record projections with model casts and existing scope/RLS semantics. Source compatibility: use `query().select(...)` instead of partial selects on model-returning helpers, `whereDynamic` for qualified/dynamic predicates, and `newFromTrustedRecord` for deliberate partial driver hydration. Database defaults and mass-assignment rules remain runtime concerns.
|
|
389
|
-
|
|
390
|
-
- Accept awaited provider hooks and explicit cleanup registration; expose optional closure of owned Redis cache/queue clients.
|
|
391
|
-
|
|
392
|
-
- Persist only changed attributes on existing model saves, skip no-op updates and unchanged write casts, and restore retryable snapshots after transaction/savepoint rollback.
|
|
393
|
-
|
|
394
|
-
- Apply related target model scopes and composed filters to lazy/eager/existence/count reads; retain batched connection reuse, isolate morph targets by type and ID, and use dialect-aware through/pivot read parameters.
|
|
395
|
-
|
|
396
|
-
- Compose repeated query predicates and protect global model scopes from caller OR branches; preserve scopes in chunks/cursor pages and intersect cursor bounds with existing filters.
|
|
397
|
-
|
|
398
|
-
- Add typed `defineModel(table)` bases and two-phase model startup; preserve explicit repository overrides and share model identity across package import paths.
|
|
399
|
-
|
|
400
|
-
## 2.1.0
|
|
401
|
-
|
|
402
|
-
- Generated apps reuse the shared config store and base repositories instead of a copied stack.
|
|
403
|
-
- Password casts are awaited before the write reaches SQL or observers. Hydration does not hash.
|
|
404
|
-
- Model queries keep the concrete model type in their results. Service tokens, route handlers, and the starter's generated infrastructure were tightened in the same release.
|
|
405
|
-
|
|
406
|
-
## 2.0.9
|
|
407
|
-
|
|
408
|
-
- fix(starter): remove demo credentials from public login defaults
|
|
409
|
-
|
|
410
|
-
## 2.0.8
|
|
411
|
-
|
|
412
|
-
- fix(schema): preserve constraints and generate builder migrations
|
|
413
|
-
|
|
414
|
-
## 2.0.7
|
|
415
|
-
|
|
416
|
-
- Fix concurrent Postgres role provisioning across databases
|
|
417
|
-
|
|
418
|
-
## 2.0.6
|
|
419
|
-
|
|
420
|
-
- Dispatch registered Bun route preflights through CORS
|
|
421
|
-
|
|
422
|
-
## 2.0.5
|
|
423
|
-
|
|
424
|
-
- Allow explicitly approved application headers in CORS
|
|
425
|
-
|
|
426
|
-
## 2.0.4
|
|
427
|
-
|
|
428
|
-
- Place cache rollout guidance beside outbox docs without overlapping API additions
|
|
429
|
-
|
|
430
|
-
## 2.0.3
|
|
431
|
-
|
|
432
|
-
- Persist transactional events with leased tenant-aware SQL outbox workers
|
|
433
|
-
|
|
434
|
-
## 2.0.2
|
|
435
|
-
|
|
436
|
-
- Adopt TypeScript 7.0.2 in framework and generated apps; preserve tested TypeScript 5.9 and 6.x consumer compatibility.
|
|
437
|
-
- Verify six generated app configurations against three compiler versions and typecheck/build React SPA and hybrid frontends.
|
|
438
|
-
- Declare Bun-supported CSS imports in the SPA scaffold for TypeScript 7.
|
|
439
|
-
|
|
440
|
-
## 2.0.1
|
|
441
|
-
|
|
442
|
-
- Fix release lockfile drift and CLI 2.x peer compatibility
|
|
443
|
-
|
|
444
|
-
## 2.0.0
|
|
445
|
-
|
|
446
|
-
- Strata 2.0: compose business transactions and tenant scopes
|
|
447
|
-
|
|
448
|
-
## Unreleased
|
|
449
|
-
|
|
450
|
-
- 2.0 Redis throttle keys use application, tenant and registered route identities; atomic counter/expiry consumption repairs missing TTLs. API and login throttles fail closed with 503 on store errors or deadlines and recreate failed owned connections. Memory pruning and app quota policies remain follow-up work.
|
|
451
|
-
|
|
452
|
-
- 2.0 metrics contract: HTTP middleware uses registered route templates and an unmatched bucket. Fixed duration histograms, bounded method/status labels, escaping, and a 4,096-series cap plus aggregate overflow bound retention and scrape work. Removed `normalizeMetricPath()`; expose storage statistics for operational checks.
|
|
453
|
-
|
|
454
|
-
- 2.0 transaction contract: implicit repository queries use the active transaction; nested scopes use SQL savepoints without requiring a driver-specific helper. Cross-tenant nesting and concurrent sibling savepoints are rejected. Nested bypass scopes restore tenant, bypass, and identifier settings on the same connection.
|
|
455
|
-
|
|
456
|
-
- `runWithTenantDatabase()` / `runInTransaction()` roll back when `withJsonErrorHandling()` (or `requestTransactionRollback()`) turns a thrown error into a response. Nested tenant scopes use a savepoint and restore `app.tenant_id` on the way out.
|
|
457
|
-
- Redis workers atomically reserve jobs with unique reservation IDs and renewable owner leases. Recovery and acknowledgement are atomic and ownership checked; a failed failure-record write retains the reservation. Invalid/unregistered payloads are quarantined for inspection. Stop old workers before rollout. `QUEUE_VISIBILITY_MS` defaults to 60s and must be at least 30ms. Handlers must be idempotent; Streams and persisted retries remain follow-up work.
|
|
458
|
-
|
|
459
|
-
## 1.1.9
|
|
460
|
-
|
|
461
|
-
- Defer model events until the surrounding transaction commits
|
|
462
|
-
|
|
463
|
-
## Unreleased
|
|
464
|
-
|
|
465
|
-
- Model events from `BaseRepository` writes wait for the surrounding `runInTransaction` / `runWithTenantDatabase` / `runWithMigrationBypass` callback to commit. A rollback drops the queued events. Nested transactions promote to the outer commit. Listeners run with the tenant that was active when the write happened.
|
|
466
|
-
|
|
467
|
-
## 1.1.8
|
|
468
|
-
|
|
469
|
-
- Exclude HTML and SPA routes from generated OpenAPI specs
|
|
470
|
-
|
|
471
|
-
## 1.1.7
|
|
472
|
-
|
|
473
|
-
- Fix generated webhook SQL, billing hook, and hybrid SPA smoke
|
|
474
|
-
|
|
475
|
-
## 1.1.6
|
|
476
|
-
|
|
477
|
-
- Add optional OIDC cookie login and loopback discovery
|
|
478
|
-
|
|
479
|
-
## Unreleased
|
|
480
|
-
|
|
481
|
-
- `sealOidcPkceCookie()` / `readOidcPkceCookie()` on `@getstrata/core/security/oauthState` store the OIDC PKCE handshake in the `oidc_pkce` cookie, bound to the signed OAuth state.
|
|
482
|
-
- OIDC discovery, token, and JWKS fetches allow loopback issuers outside production. `OIDC_ALLOW_PRIVATE=true` allows other private hosts and is ignored in production.
|
|
483
|
-
- `OidcProvider.getAuthorizationUrl()` still throws. Call `createAuthorization()`.
|
|
484
|
-
|
|
485
|
-
## 1.1.5
|
|
486
|
-
|
|
487
|
-
- Close dogfood gaps: webhook docs, starter extras, signing helper
|
|
488
|
-
|
|
489
|
-
## Unreleased
|
|
490
|
-
|
|
491
|
-
- `signWebhookBody(secret, body)` and `signedWebhookHeaders()` on `@getstrata/core/security/webhookSignature` sign outbound JSON using `webhookSignatureHeader()`.
|
|
492
|
-
- CSRF skips `POST /billing/webhooks/*` by path (Stripe-style inbound webhooks), same as SAML ACS and `/scim/`.
|
|
493
|
-
|
|
494
|
-
## 1.1.4
|
|
495
|
-
|
|
496
|
-
- Publish http/uploads, validateUploadFile, migration-adoption docs
|
|
497
|
-
|
|
498
|
-
## 1.1.3
|
|
499
|
-
|
|
500
|
-
- Eager with() arrays, OpenAPI mkdir, public-read/auth docs
|
|
501
|
-
|
|
502
|
-
## 1.1.2
|
|
503
|
-
|
|
504
|
-
- Product CLI helpers, file migrations, and job discovery.
|
|
505
|
-
|
|
506
|
-
## Unreleased
|
|
507
|
-
|
|
508
|
-
- `Job` tracks `static jobName` on construct so `queue.dispatch(new FooJob(), payload)` resolves a registry name.
|
|
509
|
-
- The core migration runner is dialect-aware (placeholders, upsert, returning, timestamp column) so sqlite and mysql product apps can use `framework_migrations`. Import it from `@getstrata/core/database/migrations`.
|
|
510
|
-
|
|
511
|
-
## 1.1.1
|
|
512
|
-
|
|
513
|
-
Fix generated app boot
|
|
514
|
-
|
|
515
|
-
## 1.1.0
|
|
516
|
-
|
|
517
|
-
Breaking security hardening. Claims below match the code.
|
|
518
|
-
|
|
519
|
-
### Migration
|
|
520
|
-
|
|
521
|
-
- JWT without `exp` is rejected.
|
|
522
|
-
- Non-expiring `signedUrl()` is now invalid on verify. `signedUrl()` without `expires` always fails verification.
|
|
523
|
-
- Existing API tokens hashed with unpeppered SHA256 will not match HMAC pepper hashes. Re-issue tokens after setting `TOKEN_HASH_PEPPER`.
|
|
524
|
-
- CSRF and session secret fallbacks are gone. `ADMIN_API_TOKEN` is no longer a session or CSRF secret.
|
|
525
|
-
- CORS no longer defaults to `*` outside production. Unset CORS is `APP_URL` locally and same-origin in production.
|
|
526
|
-
- CSRF cookie is HttpOnly. JavaScript cannot read it.
|
|
527
|
-
- Missing `emailVerifiedAt` now means unverified. This is a break for JWT and tokens that omitted the field.
|
|
528
|
-
- Failed Bearer no longer authenticates via the session cookie.
|
|
529
|
-
- `/ready` no longer returns checks unless `APP_DEBUG=true`.
|
|
530
|
-
- Staging `/metrics` requires a token or returns 404.
|
|
531
|
-
- Seed password is `StrataDemo!ChangeMe`.
|
|
532
|
-
- SAML `saml:email:name` stub is gone.
|
|
533
|
-
- MFA is when enrolled. Password login does not force enrollment.
|
|
534
|
-
- `signedUrl()` without `expires` always fails verification.
|
|
535
|
-
- SAML requires `SAML_IDP_ISSUER`. ACS compares assertion issuer to that value. Signed responses are required; production boot rejects `SAML_WANT_RESPONSE_SIGNED=false`.
|
|
536
|
-
- OIDC ID tokens must be RS256 with JWKS. HS256 ID tokens are rejected.
|
|
537
|
-
- Generated login tokens and JWTs mint `[]` abilities. SQL `api_tokens.abilities` default stays `[]`.
|
|
538
|
-
- `--tenancy=rls` FORCE RLS is on `notes` and `users`. Auth directory lookups and cookie session loads use `runWithMigrationBypassForIdentifier`, which sets `app.bypass_identifier`. The helper does not rewrite SQL.
|
|
539
|
-
- `GET /health`: `createHealthRoutes` without `pingOnHealth` is always 200 JSON and does not read notes. HiroApp `/health` is `schemaReady` (empty notes 200, unreadable not 200). Docker HEALTHCHECK fetches `/health`.
|
|
540
|
-
|
|
541
|
-
### Controls
|
|
542
|
-
|
|
543
|
-
- SAML ACS verifies HMAC RelayState (no SameSite cookie). Replay defaults to SQL `auth_saml_assertions.assertion_id` (unique insert). Tests may use an in-memory store. Both drop IDs after 1 hour (longer than typical assertion lifetime plus `acceptedClockSkewMs` 5000). ACS rejects a signed assertion whose issuer does not match `SAML_IDP_ISSUER`. Signed assertions and signed responses are required. AuthnContext is requested. JIT uses `currentTenantId()` and is skipped when `FEATURE_REGISTRATION=false`. `GET /auth/saml` does not set an unused OAuth state cookie. Enrolled MFA still challenges after SAML ACS.
|
|
544
|
-
- `completePasswordLogin` runs on HTML password POST, HTML MFA POST, API token, JWT, and Basic mint paths, and cookie JSON password login. Recovery-code consumption is persisted on those paths. `verifyCredentials` returns null when `mfa_enabled` is true. Basic `verifyCredentials` fallback still runs TOTP when the directory record is enrolled. MFA is when enrolled, not on every password login. JwtGuard does not run TOTP on each request; it requires a directory and rejects `iat` before `session_valid_after`. SAML ACS redirects enrolled users to `/login/mfa`. MFA enroll revokes sessions and API tokens.
|
|
545
|
-
- Password reset and email verify consume one-time tokens with `UPDATE ... consumed_at IS NULL`. Cookie sessions compare aliased `sessions.created_at` (`session_created_at`) to `session_valid_after`. Reset deletes `sessions` and `api_tokens` (missing tables only are swallowed). JwtGuard looks up the user and rejects tokens whose `iat` is before `session_valid_after`. Verify GET does not sign the visitor in.
|
|
546
|
-
- `--tenancy=rls` ENABLE+FORCE RLS is on `notes` and `users`. `sessions`, `api_tokens`, and `auth_one_time_tokens` get a user-join policy plus an `app.bypass_identifier` pin on the real key columns. Session create/destroy, token mint, password/email/MFA user writes, and one-time token insert/consume wrap `runWithMigrationBypassForIdentifier()`, which `SET LOCAL app.bypass_identifier` and does not rewrite SQL. `ForIdentifier(user id)` may see that user's sessions and tokens; that is the session-create pin, not a one-row-only policy. Consume passes `hashOneTimeToken(token)`. Notes honour unbounded `app.bypass_rls()` or tenant id only. SCIM isolation is tenant GUC plus `WHERE tenant_id`. `currentTenantId()` and generated SCIM `tenantId()` throw if ALS is missing. `createHealthRoutes` without `pingOnHealth` is always 200 JSON. HiroApp `/health` is `schemaReady` (empty notes 200, unreadable not 200). `runWithMigrationBypass()` always opens its own transaction and remains for migrate/seed/audit. Generated Compose still creates a `postgres` superuser for volume init, GRANT, migrate, and `migrate:fresh` DROP (tables are owned by that superuser). Runtime `DATABASE_URL` / HiroApp `APP_DATABASE_URL` use `strata_app` (`NOBYPASSRLS`), including `--no-docker` and host e2e via `with-host-env.sh`. `db/ensure-postgres-app-role.sql` is repeatable on an existing volume. Live `pg_roles` runs on every rls runtime pool after it is open. Username `postgres`/`root` is the URL denylist fast path. Named superuser (`deploy`) is the live inspect. The HiroApp e2e denylist test is the postgres URL fast path. The live inspect e2e is `assertRlsLiveDatabaseRole()` on the `strata_app` pool. `assertProductionSecrets()` stays production-only.
|
|
547
|
-
- SMTP rejects CR/LF. Envelope `MAIL FROM` / `RCPT TO` use the bare address. Display names stay on headers only. `MAIL_USERNAME` and `MAIL_PASSWORD` are checked before AUTH LOGIN writes. There is no SMTP e2e (`MAIL_DRIVER=log` in HiroApp e2e).
|
|
548
|
-
- SSRF blocks non-canonical IPv4 (including leading-zero / octal / hex forms), integer hosts, and mapped IPv6. DNS resolve defaults on. `safeFetch` then connects to a resolved public IP and sends the original Host plus TLS server name. `allowPrivate: true` skips DNS only outside production.
|
|
549
|
-
- API CSRF middleware runs on guest and session mutating requests. `POST /api/v1/auth/login` and `POST /api/auth/token` require double-submit CSRF. Session-mutating API (logout after cookie login) requires CSRF. `GET /api/v1/auth/csrf` Set-Cookies the HttpOnly CSRF cookie and returns that same token in JSON (it does not mint a second cookie). Nested API CSRF (`buildModuleRoutes` plus `wrap("api")`) reuses the first issued token. CSRF failures on the API group are JSON 403. Failed Bearer does not skip CSRF when `credentialSource` is null (`tests/unit/csrf.test.ts` `failed Bearer header does not skip CSRF when credentialSource is null`). Failed Bearer does not resolve a session or guest user (`tests/unit/authGuard.test.ts` `failed bearer does not fall back to a session or guest guard`). HiroApp e2e `cookie login requires CSRF and ignores garbage Bearer` is garbage Bearer still requiring CSRF on POST `/login`. Successful skip is `successful bearer or basic skips CSRF`. SCIM and SAML ACS skip CSRF by path. CORS allowlists `X-CSRF-Token` and, when reflecting a specific origin, sets `Access-Control-Allow-Credentials`. CSRF and session cookies stay `SameSite=Lax`. A foreign or missing `Origin` on a cookie mutating request is rejected even if the CSRF header matches. Cross-site SPAs stay on Bearer.
|
|
550
|
-
- OIDC `getAuthorizationUrl()` throws. Use `createAuthorization()` and pass the handshake to `exchangeCode()`. Authorization, token, and JWKS URLs come from discovery. Inbound OIDC ID tokens are verified RS256 via discovery JWKS (`iss` / `aud` / `azp` / `at_hash` / `exp` / `nbf` / `nonce`). App JWTs stay HS256 (`signJwt`). Multi-valued `aud` requires `azp` equal to the client id. `at_hash` is verified when present; omitted `access_token` plus `at_hash` throws. Missing or unverified email throws. JWKS is refetched once when the token `kid` is missing from the cache. GitHub OAuth uses `safeFetch`, always reads `/user/emails`, and throws when no verified address exists (no `{login}@users.noreply.github.com`; unverified `profile.email` is ignored).
|
|
551
|
-
- `protectMfaSecret` always encrypts and requires `KMS_ENCRYPTION_KEY`. Local and dogfood with `FEATURE_MFA=true` must set the key. When a KMS key is set, `revealMfaSecret` never returns plaintext. Production still refuses non-`enc:v1:`. Local without a key may still return plaintext. `verifyTotp` compares every window slot with `timingSafeCompareString`.
|
|
552
|
-
- Safer defaults: `FEATURE_PUBLIC_READS`, `FEATURE_SIEM_EXPORT`, and `APP_DEBUG` default off. `DEFAULT_TENANT.plan` is `free`. SQL token-ability default is `[]`. Generated token login and JWT mint insert `[]`.
|
|
553
|
-
- Token hashes are HMAC-peppered. Recovery codes are 16 bytes. bcrypt cost is 12.
|
|
554
|
-
- Identity **response** headers `x-authenticated-user-id`, `x-tenant-id`, and `x-tenant-region` are never set. CORS still allowlists `X-Authenticated-User-Id`, `X-Authenticated-User-Role`, and `X-Tenant-Id`.
|
|
555
|
-
- `GuestGuard`: production (`isProductionEnv`, including staging) is always null even when `AUTH_DEV_HEADERS=true`. Local `AUTH_DEV_HEADERS=true` still reads request headers.
|
|
556
|
-
- Postgres unique-violation `detail` is logged, not returned. Client JSON is a generic conflict message with no constraint name.
|
|
557
|
-
- Local disk paths go through `assertPathUnderRoot`.
|
|
558
|
-
- Client `x-trace-id` is ignored unless `APP_DEBUG=true` and the value is 32 hex characters.
|
|
559
|
-
- OpenAPI documents registered routes only. Generated `docs/API.md` lists the layer's live paths and does not include leftover `/webhooks` or `/billing` strings.
|
|
560
|
-
- Root Compose Redis requires `dev-redis-change-me`. Root Compose Postgres uses `dev-postgres-change-me`. Root Compose MySQL uses `dev-mysql-change-me`. Host helper `scripts/with-host-env.sh` uses those passwords and points HiroApp `APP_DATABASE_URL` at `strata_app` / `dev-strata-app-change-me`. Fixture `DATABASE_URL` stays fixture admin for `bun_testing_test`. Production Compose Redis requires `REDIS_PASSWORD` and requires `APP_ENV` to be set. Production Compose `app`/`worker` runtime `DATABASE_URL` and `APP_DATABASE_URL` are `strata_app` after the split. `MIGRATION_DATABASE_URL` stays `${POSTGRES_USER}` for migrate. `STRATA_APP_PASSWORD` is required the same way `REDIS_PASSWORD` is. Bind stays `127.0.0.1:3000`. `127.0.0.1:54329` / `6379` / `33061` stay published. Adminer is debug-profile only. Prod compose file test plus HiroApp live-role e2e. This CI does not compose-up `docker-compose.prod.yml`.
|
|
561
|
-
|
|
562
|
-
## 1.0.9
|
|
563
|
-
|
|
564
|
-
Label HiroApp as internal e2e dogfood and seed notes via Model
|
|
565
|
-
|
|
566
|
-
## 1.0.8
|
|
567
|
-
|
|
568
|
-
- Container image starts and ships production dependencies only.
|
|
569
|
-
|
|
570
|
-
## 1.0.7
|
|
571
|
-
|
|
572
|
-
## 1.0.6
|
|
573
|
-
|
|
574
|
-
- Query `pluck` and `value` on `RepositoryQuery`, `ModelQuery`, and relation queries. `pluck(column)` returns `T[]`; `pluck(column, keyBy)` returns a `Map`. Models apply `$casts` and skip hydration/observers. Generated apps and lockstep packages move to `^1.0.6`.
|
|
575
|
-
|
|
576
|
-
## 1.0.5
|
|
577
|
-
|
|
578
|
-
- `@getstrata/core/database/mysqlConnection` re-exports the barrel so the barrel and the subpath share one lazy `mysql2` load. Importing both in one process no longer starts two independent loaders.
|
|
579
|
-
- npm publish uses GitHub Actions OIDC trusted publishing and provenance. Configure trusted publishers on all five packages before tagging `v1.0.5`. A failed or partial publish can be retried with Actions, Release, Run workflow; versions already on npm are skipped. The GitHub Release waits until npm succeeds.
|
|
580
|
-
|
|
581
|
-
## 1.0.4
|
|
582
|
-
|
|
583
|
-
- `isProductionEnv()` treats `APP_ENV` or `NODE_ENV` `production` as production (case-insensitive), treats `staging` as production, and default-denies unrecognized `APP_ENV` values such as `prod`.
|
|
584
|
-
- `envFlagEnabled()` is true only for the exact string `true`.
|
|
585
|
-
- JWT, session, CSRF, flash, signed-URL, OAuth-state, and token-pepper resolvers throw outside development when the secret is unset. They no longer derive a secret from the app name.
|
|
586
|
-
- `runWithMigrationBypass()` uses a transaction and `SET LOCAL` so `app.bypass_rls` cannot leak across pooled connections.
|
|
587
|
-
- `@getstrata/core/view` (and related singleton subpaths) re-export the main bundle so `configureWebErrorView` is shared.
|
|
588
|
-
- Shared subpath shims re-export the barrel. Subpath-only helpers such as `assertSafeOutboundUrl`, `webErrorResponse`, and `renderWebErrorHtml` are now on the public API so those imports work at runtime, not only in `.d.ts` files.
|
|
589
|
-
|
|
590
|
-
## 1.0.3
|
|
591
|
-
|
|
592
|
-
- `eta` and `mysql2` are optional peers, loaded with `import()` on first use. SQLite and Postgres apps no longer install `mysql2` through core. If a package is missing, the error names `bun add` for that package.
|
|
593
|
-
- Breaking: `createMysqlPool(url)` returns a `Promise` because it lazy-loads `mysql2`. It shipped synchronous in 1.0.1 and 1.0.2; `await` it. `createMysqlConnection(url)` stays synchronous and opens the pool on the first query.
|
|
594
|
-
- `createMysqlConnection()` shares one pool across concurrent first queries by caching the pending promise. Before this fix, three requests arriving together opened three pools and `close()` ended only the last one. A failed load is retried on the next query, and a query after `close()` opens a fresh pool.
|
|
595
|
-
- The MySQL helpers stay exported from `@getstrata/core` and `@getstrata/core/database`. Importing either barrel does not install `mysql2`; the barrel bundle carries the lazy `import("mysql2/promise")` and evaluates it only when a MySQL pool is opened.
|
|
596
|
-
|
|
597
|
-
## 1.0.2
|
|
598
|
-
|
|
599
|
-
- Lockstep with `create-strata` 1.0.2. No runtime changes.
|
|
600
|
-
|
|
601
|
-
## 1.0.1
|
|
602
|
-
|
|
603
|
-
- Publish the `contracts/authUserDirectory` subpath. Generated cookie and token apps import `AuthUserDirectory` from it, and without the export their `tsc --noEmit` failed with TS2307.
|
|
604
|
-
- `SqlDialect` gains `timestampValue()`, plus a `sqlTimestamp()` helper. MySQL `DATETIME` rejects the ISO-8601 `T` separator and trailing `Z`, which broke cookie session inserts on MySQL.
|
|
605
|
-
- `DatabaseConnection.close?()` now returns `void | Promise<void>`, matching the synchronous `close()` on the SQLite connection it is supposed to describe.
|
|
606
|
-
- `engines.bun` is declared.
|
|
607
|
-
- MySQL pools are UTC end to end: `createMysqlConnection()` passes `timezone: "Z"` to mysql2 and runs `SET time_zone = '+00:00'` on every new connection. Before, `DATETIME` values written as UTC by `timestampValue()` were read back shifted by the host offset, and `expires_at > NOW()` depended on the server time zone. `createMysqlPool(url)` exposes the configured raw pool.
|
|
608
|
-
- SQLite `nowExpression()` is `strftime('%Y-%m-%dT%H:%M:%fZ', 'now')` instead of `CURRENT_TIMESTAMP`, matching the ISO-8601 text that `timestampValue()` writes. With `CURRENT_TIMESTAMP` the `T` separator sorted after the space, so an expired session compared as valid until the next UTC day.
|
|
609
|
-
- Unknown exceptions map to `InternalServerError` (500, generic message) instead of a 400 that echoed the raw error text. SQLite (`SQLITE_CONSTRAINT_*`) and MySQL (`ER_DUP_ENTRY`, `ER_NO_REFERENCED_ROW_2`, `ER_ROW_IS_REFERENCED_2`, `ER_BAD_NULL_ERROR`, `ER_CHECK_CONSTRAINT_VIOLATED`) constraint errors map to 409/422/400 like Postgres SQLSTATEs. 5xx responses are logged with the original message and stack.
|
|
610
|
-
- Client IP: `readClientIp()` falls back to the socket address the web server records in the request context, and with `TRUST_FORWARDED_FOR=true` takes the rightmost public `X-Forwarded-For` hop instead of the first (client-controlled) one. Throttles no longer collapse every client into an `unknown` bucket.
|
|
611
|
-
- CORS: with `CORS_ALLOWED_ORIGINS` unset, production sends no `Access-Control-Allow-Origin` (same-origin only) instead of reflecting any origin; outside production the default stays `*`. Listed origins are reflected; unlisted ones get no header.
|
|
612
|
-
- `TENANCY_DRIVER` must be `none`, `column`, or `rls`. Unknown values throw instead of enabling rls.
|
|
613
|
-
- SQLite connections enable WAL, `busy_timeout = 5000`, and `synchronous = NORMAL` for file databases.
|
|
614
|
-
- New subpath `runtime/appEnv` with `isProductionEnv()` (`APP_ENV` or `NODE_ENV`), used for the cookie `Secure` flag and for hiding 500 messages in HTML.
|
|
615
|
-
|
|
616
|
-
## 1.0.0
|
|
617
|
-
|
|
618
|
-
- First stable release of the public `@getstrata/core` API.
|
|
619
|
-
|
|
620
|
-
## 0.7.5
|
|
621
|
-
|
|
622
|
-
- `TENANCY_DRIVER=column`: tenant ALS without Postgres `SET LOCAL` / `set_config`. `isRlsTenancy()` is the RLS-only check.
|
|
623
|
-
- `AuthUserRecord` may include `name` and optional MFA columns used by generated starters.
|
|
624
|
-
|
|
625
|
-
## 0.7.4
|
|
626
|
-
|
|
627
|
-
- Default database pool and query handles live on `globalThis`, so the published `@getstrata/core` bundle and `src/core` share one pool in the same process.
|
|
628
|
-
|
|
629
|
-
## 0.7.3
|
|
630
|
-
|
|
631
|
-
- `JsonResource.whenLoaded` returns `null` when a relation is loaded but empty. It does not call the transform, so `new PositionResource(value).toArray()` cannot crash on a missing belongsTo.
|
|
632
|
-
|
|
633
|
-
## 0.7.2
|
|
634
|
-
|
|
635
|
-
- `withJsonErrorHandling` always maps thrown errors to JSON. `requestPrefersJson` treats `/api/` as JSON even when `Accept` is HTML, so hybrid HTML cannot remap JSON API errors.
|
|
636
|
-
|
|
637
|
-
## 0.7.1
|
|
638
|
-
|
|
639
|
-
- `readSpaPrefix` / `normalizeSpaPrefix` own `SPA_PREFIX` (default `/app`). Apps set the env value. They do not copy a second static-file server.
|
|
640
|
-
- The log mail driver records `htmlBytes` instead of dumping the HTML document onto stdout.
|
|
641
|
-
|
|
642
|
-
## 0.7.0
|
|
643
|
-
|
|
644
|
-
- `FRONTEND_MODE=hybrid` turns on HTML at `/` and a SPA under `SPA_PREFIX` together. Views are on for `server-htmx` and `hybrid`. The SPA is on for `spa-react` and `hybrid`.
|
|
645
|
-
- `parseFrontendMode`, `FRONTEND_MODES`, and `FRONTEND_MODE_PATTERN` are the allowed-value list. Apps should reuse that pattern in env schemas.
|
|
646
|
-
- Named database connections: `registerNamedConnection`, `runOnNamedConnection`, SQLite (`bun:sqlite`), and MySQL (`mysql2`). `runWithSqlDialect` keeps the dialect across `await` via AsyncLocalStorage.
|
|
647
|
-
- New subpaths: `database/namedConnections`, `database/sqliteConnection`, `database/mysqlConnection`, `database/connectionContext`.
|
|
648
|
-
- OpenAPI treats unauthenticated login routes as public.
|
|
649
|
-
|
|
650
|
-
## 0.6.0
|
|
651
|
-
|
|
652
|
-
- **Breaking:** cookie session signatures use HMAC-SHA256. Existing HMAC cookies signed with the previous digest will not verify. Rotate `SESSION_SECRET` or sign users in again.
|
|
653
|
-
- **Breaking:** default `MEMBER_ABILITIES` are profile and token scopes (`profile:read`, `auth:tokens:*`), not org/project/task. Apps replace the catalog with `configureAbilityCatalog`. Generated HiroApp maps admin / member.
|
|
654
|
-
- Named auth guards: opaque Bearer tokens, JWT HS256, HTTP Basic, and cookie sessions. `AuthManager` picks a guard from the `Authorization` scheme. CSRF is skipped for Bearer and Basic.
|
|
655
|
-
- OpenAPI treats HiroApp login and JWT mint (`POST /api/auth/token`) as unauthenticated. Partner ping and audit export require credentials.
|
|
656
|
-
- SQL dialect helpers (`pgsql`, `mysql`, `sqlite`) for placeholders, quoting, `ILIKE`/`LIKE`, `RETURNING`, and `NULLS LAST`. Full-text `tsMatch` stays Postgres-only and throws on other engines.
|
|
657
|
-
- HiroApp is the in-repo generated example. The leftover `src/db` schema is a test fixture, not a second app.
|
|
658
|
-
- New subpaths: `auth/jwt`, `auth/jwtGuard`, `auth/basicAuthGuard`, `auth/tokenAbilityChecker`, `database/dialect`, `http/statelessAuth`.
|
|
659
|
-
|
|
660
|
-
## 0.5.101
|
|
661
|
-
|
|
662
|
-
- Tenant middleware falls back with explicit branches when a member, admin, or guest tenant lookup misses, so the request still scopes to the default tenant.
|
|
663
|
-
|
|
664
|
-
## 0.5.100
|
|
665
|
-
|
|
666
|
-
HiroApp dogfood of 0.5.99: eager `with()` / nested `load("a.b")` missed related rows when a Postgres int4 PK arrived as a JS `number` and an int8 FK as a `bigint`. Map matching used `===`.
|
|
667
|
-
|
|
668
|
-
- Relation indexers and eager attach compare keys with `relationMatchKey` (`1`, `1n`, `"1"` match).
|
|
669
|
-
- Sequential `load("position")` / `application.position()` already used SQL `get()` and were unaffected.
|
|
670
|
-
- `registerModelRepository(User, users)` already names `User` and `$morphClass`. Do not also call `registerModelClass("User", User)`. `registerModelClass` is only for an alias that is neither `constructor.name` nor `$morphClass`.
|
|
671
|
-
|
|
672
|
-
Still non-conforming (honest): Bun cannot infer `morphTo()` method names. `hashed` cast is a no-op. `Factory.has()` without a bound model still needs an explicit FK.
|
|
673
|
-
|
|
674
|
-
## 0.5.99
|
|
675
|
-
|
|
676
|
-
HiroApp dogfood of 0.5.98 found lookalike APIs. This release matches the existing call shape and SQL, not just export names.
|
|
677
|
-
|
|
678
|
-
- Relation queries are thenable: `await user.applications()` delegates to `get()`.
|
|
679
|
-
- `Model.with()` / `where()` / `whereHas()` return a `ModelQuery` that hydrates models and chains into `where` / `find` / `findOrFail` / `first` / `get`. `first()` / `find()` use `LIMIT` / PK lookup.
|
|
680
|
-
- `belongsTo.where()` threads constraints into `whereHas` EXISTS (HiroApp application search).
|
|
681
|
-
- `{ ilike }` uses the value as-is. Pass `%term%` yourself; the operator no longer wraps extra `%`.
|
|
682
|
-
- Morph type defaults to `$morphClass` / class name, not `table.name`. Override with `$morphClass = "App\\Models\\User"` or the last `morphMany` argument. `morphTo()` no longer silently defaults to `imageable_*`.
|
|
683
|
-
- `primaryKey()` defaults to the table PK (`id`).
|
|
684
|
-
- Nested `load("a.b")` / `with("a.b")` skip already-loaded heads and batch the next level.
|
|
685
|
-
- `count()` is `COUNT(*)` (relations and `RepositoryQuery`).
|
|
686
|
-
- `belongsToMany` eager-loads in two queries; `toggle()` and `withPivotValues()` exist. `hasMany.save($model)` sets the FK and saves.
|
|
687
|
-
- Factory `for(parent)` infers `user_id` from a Model parent. Bound `model` uses `Model.create()` so observers fire.
|
|
688
|
-
- `JsonResource.collection().toResponse()` wraps once: `{ data: [...] }`.
|
|
689
|
-
- Observers: `saving` / `saved` / `retrieved`. Integer casts: `integer` / `int`.
|
|
690
|
-
- `hasMany("Application")` / `() => Application` / `registerModelClass()` for ESM cycles.
|
|
691
|
-
|
|
692
|
-
Still non-conforming (honest): Bun cannot infer `morphTo()` method names (`debug_backtrace` equivalent is empty). `hashed` cast is a no-op (bcrypt is async). `Factory.has()` without a model class still needs an explicit FK.
|
|
693
|
-
|
|
694
|
-
## 0.5.98
|
|
695
|
-
|
|
696
|
-
- Model relations: `this.hasMany(Related)` returns a relation query (`get`/`where`/`create`/`attach`). `load()` / `loaded()` and `Model.with()` load related rows. `whereHas`/`has`/`doesntHave`, morph* methods, and nested `with("a.b")` are supported.
|
|
697
|
-
- Model `$hidden`/`$visible`/`$appends`, `toArray()`/`toJSON()`, `makeHidden`/`makeVisible`/`append`, and `observe()`.
|
|
698
|
-
- `Model.where()`, `firstOrNew()`, `firstOrCreate()`, and `updateOrCreate()`.
|
|
699
|
-
- Factory `count`/`state`/`sequence`/`for`/`has`/`recycle` plus `afterMaking`/`afterCreating`.
|
|
700
|
-
- `JsonResource` (`wrap`, `whenLoaded`, `additional`, `collection`).
|
|
701
|
-
- Convenience aliases: container `make`/`instance`, EventBus `on`/`emit`, query `whereNull`/`whereIn`/`whereExists`.
|
|
702
|
-
- Parity audit reports design score separately. Queue dashboards, admin UIs, and CLI stay Bun-native.
|
|
703
|
-
|
|
704
|
-
## 0.5.97
|
|
705
|
-
|
|
706
|
-
- `mapDatabaseError()` recognizes HTTP errors by `status` + `message`, not only `instanceof HttpError`. Subpath builds duplicate the class, so a thrown `ForbiddenError` was remapped to `400 Bad Request`.
|
|
707
|
-
|
|
708
|
-
## 0.5.92
|
|
709
|
-
|
|
710
|
-
- Re-export `resolveMembershipLookup` and `runWithMembershipContext` from the public barrel. Shared subpath shims re-export that barrel, so published `@getstrata/bootstrap` can import `@getstrata/core/auth/membershipContext` without a missing-export boot failure.
|
|
711
|
-
|
|
712
|
-
## 0.5.91
|
|
713
|
-
|
|
714
|
-
- `Schedule.command()` accepts any expression `Bun.cron.parse` understands. `dueTasks()` uses the next fire time in the current minute instead of a `*/N` whitelist.
|
|
715
|
-
- `Factory.create()` persists `make()` through subclass `persist()` and strips a placeholder `id` of `0`. No states, sequences, or relationships.
|
|
716
|
-
|
|
717
|
-
## 0.5.90
|
|
718
|
-
|
|
719
|
-
- **Breaking identity defaults:** `appKeyPrefix()` is `strata` and `appDisplayName()` is `Strata` when `APP_KEY_PREFIX` / `APP_NAME` are unset (were `strata` / `HiroApp`). HiroApp pins those env vars.
|
|
720
|
-
- `Schedule.command()` rejects cron strings other than `* * * * *` and `*/N * * * *` instead of silently never running them.
|
|
721
|
-
- OpenAPI marks `GET /users/me/*` as bearer-authenticated.
|
|
722
|
-
- OpenAPI `/users/me/current-organization` summaries no longer say team invitations.
|
|
723
|
-
|
|
724
|
-
## 0.5.89
|
|
725
|
-
|
|
726
|
-
- **Breaking:** removed `@getstrata/core/jobs/dispatchWebhookJob`. Import `DispatchWebhookJob` from the app webhook module (`src/modules/webhook/dispatchWebhookJob.ts`).
|
|
727
|
-
|
|
728
|
-
## 0.5.88
|
|
729
|
-
|
|
730
|
-
- Exported cookie name constants (`SESSION_COOKIE`, `CSRF_COOKIE`, `FLASH_COOKIE`, `INTENDED_URL_COOKIE`, `PASSWORD_CONFIRM_COOKIE`) are `appCookieName(...)` so they match the default prefix instead of a hardcoded `strata_` string.
|
|
731
|
-
- `@getstrata/core/jobs/dispatchWebhookJob` is a deprecated compatibility re-export of the HiroApp webhook job.
|
|
732
|
-
|
|
733
|
-
## 0.5.87
|
|
734
|
-
|
|
735
|
-
- `AuthUserDirectory.hasActiveBrowserSession?(userId, issuedAt)` is optional. `SessionGuard` calls it after `session_valid_after` and rejects the HMAC cookie when it returns false so HiroApp can revoke a single browser session by deleting the `sessions` row.
|
|
736
|
-
|
|
737
|
-
## 0.5.86
|
|
738
|
-
|
|
739
|
-
- `createSessionCookieDetails()` returns the HMAC session header plus `issuedAt` / `ttlSeconds` so apps can persist team invitations browser-session rows without changing the cookie format.
|
|
740
|
-
|
|
741
|
-
## 0.5.85
|
|
742
|
-
|
|
743
|
-
- `applicationRegistry` prefers the latest `Symbol.for("@getstrata/applicationContext")` on `globalThis` so a stale module-local context cannot hide the bootstrapped app after `build:framework`.
|
|
744
|
-
|
|
745
|
-
## 0.5.84
|
|
746
|
-
|
|
747
|
-
- `eventBus` is a `Symbol.for("@getstrata/eventBus")` process singleton so model writes from a built `@getstrata/core/database/baseRepository` bundle reach app listeners that imported a different copy of `@getstrata/core/events` (GitHub Actions `build:framework` before tests).
|
|
748
|
-
|
|
749
|
-
## 0.5.83
|
|
750
|
-
|
|
751
|
-
- `MEMBER_ABILITIES` includes `auth:tokens:delete` so team invitations-style personal access token revoke works for members (`DELETE /auth/tokens/:id`). HTML `/account/tokens/:id/revoke` was already authenticated-only.
|
|
752
|
-
- `buildOtpauthUrl()` defaults the issuer through `appDisplayName()` (`APP_NAME`).
|
|
753
|
-
|
|
754
|
-
## 0.5.82
|
|
755
|
-
|
|
756
|
-
- `MEMBER_ABILITIES` includes `organizations:create` so team invitations-style extra teams work for members (HTML `POST /organizations` and JSON `POST /organizations`). `OrganizationPolicy.create` already allowed any authenticated user.
|
|
757
|
-
|
|
758
|
-
## 0.5.81
|
|
759
|
-
|
|
760
|
-
- `@getstrata/core/auth/intendedUrlCookie` (`createIntendedUrlCookie`, `readIntendedUrl`, `clearIntendedUrlCookie`, `createIntendedUrlCookieFromRequest`). HTML auth intended URL after HTML email verification: register with `redirect=` and verified HTML redirects stash `${APP_KEY_PREFIX}_intended` (`INTENDED_URL_COOKIE_NAME`, default `strata_intended`; TTL `INTENDED_URL_TTL_SECONDS`, default 86400s). `GET /verify-email` honors and clears it.
|
|
761
|
-
|
|
762
|
-
## 0.5.80
|
|
763
|
-
|
|
764
|
-
- `appCookieName()` / `appDevSecret()` on `@getstrata/core/runtime/appKeyPrefix`. HMAC session, CSRF, flash, password-confirm, signed-URL, OAuth-state, and token-pepper fallbacks follow `APP_KEY_PREFIX` (HiroApp defaults unchanged).
|
|
765
|
-
|
|
766
|
-
## 0.5.79
|
|
767
|
-
|
|
768
|
-
- `readSession()` returns `{ userId, issuedAt }` from the HMAC session cookie. `isSessionInvalidated(issuedAt, session_valid_after)` lets `SessionGuard` reject cookies issued before `AuthUserRecord.session_valid_after` (team invitations logout-other-devices / password change).
|
|
769
|
-
|
|
770
|
-
## 0.5.78
|
|
771
|
-
|
|
772
|
-
- OpenAPI treats `POST /auth/two-factor-challenge` as a public operation (no bearer), including when routes are registered under `API_PREFIX`.
|
|
773
|
-
|
|
774
|
-
## 0.5.77
|
|
775
|
-
|
|
776
|
-
- `@getstrata/core/security/recoveryCodes` (`generateRecoveryCodes`, `hashRecoveryCode`, `recoveryCodeMatches`). HTML auth-style one-time MFA backup codes (`abcd-efgh`).
|
|
777
|
-
|
|
778
|
-
## 0.5.76
|
|
779
|
-
|
|
780
|
-
- `createSessionCookie(userId, { remember })` issues a longer HMAC session (default 30 days, `SESSION_REMEMBER_TTL_SECONDS`). Remember cookies embed the TTL in the signed payload so they stay valid after the default 7-day session lifetime. `SESSION_TTL_SECONDS` overrides the short session.
|
|
781
|
-
|
|
782
|
-
## 0.5.75
|
|
783
|
-
|
|
784
|
-
- Password confirm: `@getstrata/core/auth/passwordConfirmCookie` (`createPasswordConfirmCookie`, `hasFreshPasswordConfirmation`, `clearPasswordConfirmCookie`) and `createRequirePasswordConfirmMiddleware()` (HTML 302 `/confirm-password`, JSON 423). Cookie name `PASSWORD_CONFIRM_COOKIE_NAME` (default `strata_password_confirmed`), TTL `PASSWORD_CONFIRM_TIMEOUT` (default 10800s).
|
|
785
|
-
|
|
786
|
-
## 0.5.74
|
|
787
|
-
|
|
788
|
-
- `AuthUser.emailVerifiedAt` and `@getstrata/core/auth/emailVerification` (`isEmailVerificationRequired`, `hasVerifiedEmail`). `null` means unverified; missing is treated as verified (GuestGuard / legacy).
|
|
789
|
-
- `createRequireVerifiedMiddleware()` requires a verified email (HTML 302 `/email/verify`, JSON 403).
|
|
790
|
-
|
|
791
|
-
## 0.5.73
|
|
792
|
-
|
|
793
|
-
- OpenAPI treats `POST /auth/email/verification-notification` as a public operation (no bearer).
|
|
794
|
-
|
|
795
|
-
## 0.5.72
|
|
796
|
-
|
|
797
|
-
- OpenAPI treats `POST /auth/forgot-password` and `POST /auth/reset-password` as public operations (no bearer).
|
|
798
|
-
|
|
799
|
-
## 0.5.71
|
|
800
|
-
|
|
801
|
-
- OpenAPI treats `POST /auth/login` and `POST /auth/register` as public (no bearer), including when routes are registered under `API_PREFIX`.
|
|
802
|
-
- Route summaries look up `PUBLIC_ROUTE_DESCRIPTIONS` after stripping `API_PREFIX`.
|
|
803
|
-
|
|
804
|
-
## 0.5.70
|
|
805
|
-
|
|
806
|
-
- `OAuthProvider.getAuthorizationUrl` / `exchangeCode` accept an optional `redirectUri` so HTMX login can use `/oauth/:provider/callback` while the API keeps `OAUTH_REDIRECT_URI`.
|
|
807
|
-
|
|
808
|
-
## 0.5.69
|
|
809
|
-
|
|
810
|
-
- `MembershipLookup.updateMemberRole(organizationId, userId, role)` is required. The uninitialized lookup throws until `configureMembershipLookup()` is called. `MembershipService.updateMemberRole` delegates to the adapter.
|
|
811
|
-
|
|
812
|
-
## 0.5.68
|
|
813
|
-
|
|
814
|
-
- Published core no longer imports HiroApp `src/config`. Frontend mode, queue retries, CORS, and upload limits read env (`FRONTEND_MODE`, `QUEUE_*`, `CORS_ALLOWED_ORIGINS`, `MAX_UPLOAD_BYTES`).
|
|
815
|
-
- `@getstrata/core/runtime/frontendMode` exports `readFrontendMode` / `isViewsEnabled` / `isSpaEnabled`.
|
|
816
|
-
|
|
817
|
-
## 0.5.67
|
|
818
|
-
|
|
819
|
-
- OpenAPI title, server URLs, and generated SDK class name come from `APP_NAME` / `APP_URL` / `API_PREFIX` / `APP_SDK_CLASS` instead of importing HiroApp `src/config/app`.
|
|
820
|
-
- `appEnv()`, `appUrl()`, `apiPrefix()`, and `sdkClientClassName()` live on `@getstrata/core/runtime/appKeyPrefix`. SIEM export, HSTS, and `safeFetch` DNS resolve use `appEnv()` instead of HiroApp `appConfig`.
|
|
821
|
-
|
|
822
|
-
## 0.5.66
|
|
823
|
-
|
|
824
|
-
- `createValidateSignatureMiddleware()` on `@getstrata/core/http/signedUrl` rejects invalid or expired signed links with `ForbiddenError`.
|
|
825
|
-
|
|
826
|
-
## 0.5.65
|
|
827
|
-
|
|
828
|
-
- Identity helpers on `@getstrata/core/runtime/appKeyPrefix` (`smtpEhloHost`, `siemEventType`, `appUserAgent`, `otelServiceName`, `appDisplayName`, `webhookSignatureHeader`) so sibling apps are not stuck with HiroApp SMTP/SIEM/OTEL/OAuth names.
|
|
829
|
-
- SIEM `event_type` and CEF vendor follow `SIEM_EVENT_TYPE` / `APP_NAME` (defaults stay `strata.audit` / `HiroApp`).
|
|
830
|
-
|
|
831
|
-
## 0.5.64
|
|
832
|
-
|
|
833
|
-
- `APP_KEY_PREFIX` (default `strata`) namespaces Redis cache, queue, and throttle keys so sibling apps do not share HiroApp's keyspace.
|
|
834
|
-
- `DispatchWebhookJob` implementation lives in the HiroApp webhook module. `@getstrata/core/jobs/dispatchWebhookJob` remains a compatibility re-export.
|
|
835
|
-
|
|
836
|
-
## 0.5.63
|
|
837
|
-
|
|
838
|
-
- Flash cookies honor `FLASH_COOKIE_NAME` (default `strata_flash`) so sibling apps do not inherit HiroApp's cookie name.
|
|
839
|
-
|
|
840
|
-
## 0.5.62
|
|
841
|
-
|
|
842
|
-
URL signing, Bun-native markdown mail, and session-auth cleanup.
|
|
843
|
-
|
|
844
|
-
- `temporarySignedUrl` / `signedUrl` / `hasValidSignature` / `assertValidSignature` on `@getstrata/core/http/signedUrl`. HMAC uses `SIGNED_URL_SECRET` or `SESSION_SECRET`. Paths must be same-origin (`/` only; reject `//` and `://`).
|
|
845
|
-
- `markdownToHtml()` uses `Bun.markdown.html()` plus `sanitizeMailHtml` (allowlist). Scripts, `javascript:` links, and unknown tags are stripped.
|
|
846
|
-
- `ExportAuditLogsJob` (`@getstrata/core/jobs/exportAuditLogsJob`) wraps SIEM export so the scheduler can dispatch a real job.
|
|
847
|
-
- `DispatchWebhookJob` reads `APP_ENV` and `WEBHOOK_SIGNATURE_HEADER` instead of HiroApp `appConfig`.
|
|
848
|
-
- `createRequireWebAuthMiddleware` runs the handler inside `runWithAuthUser` so `currentAuthUser()` works on HTMX session routes.
|
|
849
|
-
- `generateTotpSecret()` / `buildOtpauthUrl()` on `@getstrata/core/security/totp`.
|
|
850
|
-
- `createRequireAbilityMiddleware` rethrows `ForbiddenError` for HTML views so HTMX routes render a styled 403 instead of JSON.
|
|
851
|
-
|
|
852
|
-
## 0.5.61
|
|
853
|
-
|
|
854
|
-
HTMX HTML kernel gaps that sibling apps could not work around without weakening CSP or duplicating the framework.
|
|
855
|
-
|
|
856
|
-
- `createSecurityHeadersMiddleware({ csp | htmlCsp | directives })` and `configureContentSecurityPolicy()` extend the HTMX baseline. Defaults now allow YouTube/Vimeo embeds, `https:` media, `data:`/`https:` images, the HTMX 2.0.4 indicator style hash, and a per-request nonce on `script-src`/`style-src`. API JSON stays `default-src 'none'`. Do not add `'unsafe-inline'` to `script-src`.
|
|
857
|
-
- `configureWebErrorView` / `notFoundHtmlResponse()` render styled HTML 404/403/500 (app `errors/*.eta` or kernel chrome with `/assets/app.css`). Production 5xx messages do not leak stacks.
|
|
858
|
-
- `EtaViewEngine` passes `Request` into `resolveLayoutData`. `configureWebLayoutData({ loadUser })` receives that request as the second argument. Layout data includes `cspNonce`.
|
|
859
|
-
- `securedBindRouteModelByKey` treats a null model as `NotFoundError`. GET ETags are skipped for HTML and composite objects unless `etag: true`.
|
|
860
|
-
- Login redirects keep `pathname + search` after a same-origin safe-path check (`/forum?page=2` → `/login?redirect=%2Fforum%3Fpage%3D2`).
|
|
861
|
-
|
|
862
|
-
## 0.5.60
|
|
863
|
-
|
|
864
|
-
- `@getstrata/core/database/boundConnection` publishes `getBoundDatabaseConnection` and `resetBoundDatabaseConnection` on the JS entry (not only the types file). Tests can reset the bound pool after `closeDatabase()` without a postinstall patch.
|
|
865
|
-
- `bindBunSql` / `createBunSqlPool` on `@getstrata/core/database/bunSql` create a Bun `SQL` pool and register it as the bound connection plus default pool.
|
|
866
|
-
- `xmlResponse` accepts `{ contentType }`. `rssResponse` sends `application/rss+xml`.
|
|
867
|
-
- Memory throttle buckets are per middleware instance. `resetMemoryThrottleForTests()` clears every instance map so nested HTTP tests do not leak.
|
|
868
|
-
|
|
869
|
-
## 0.5.59
|
|
870
|
-
|
|
871
|
-
Sibling HTMX apps can consume published packages without HiroApp-only glue.
|
|
872
|
-
|
|
873
|
-
- Emit `@getstrata/core/facades` types at `dist/core/facades/index.d.ts` (CI checks every `exports.*.types` path after build).
|
|
874
|
-
- Session and CSRF cookie names are configurable (`SESSION_COOKIE_NAME`, `CSRF_COOKIE_NAME`). Defaults remain `strata_session` and `strata_csrf` for HiroApp.
|
|
875
|
-
- Split `CORE_ABILITY_CHECKER_TOKEN` and `CORE_AUTH_USER_DIRECTORY_TOKEN` from `CORE_TOKEN_SERVICE_TOKEN`. HttpKernel prefers the ability-checker token; HMAC `SessionGuard` / layout data prefer the user directory. A compatibility shim uses `CORE_TOKEN_SERVICE_TOKEN` only when the bound value matches the requested type.
|
|
876
|
-
- `configureWebLayoutData` lets apps choose `currentUser` vs `authUser`, a custom user loader, and extra template fields. HiroApp still gets `{ authUser, csrfToken, flash }`.
|
|
877
|
-
- `redirectResponse`, `notFoundHtmlResponse`, `textResponse`, and `xmlResponse` join `htmlResponse` / `isHtmxRequest` on `@getstrata/core/view`.
|
|
878
|
-
- `LOGIN_RATE_LIMIT_WINDOW_MS` is a deprecated alias for `LOGIN_RATE_LIMIT_WINDOW_SECONDS`.
|
|
879
|
-
|
|
880
|
-
HMAC `SessionGuard` is unchanged for HiroApp API/token apps. Sibling HTMX apps should use `@getstrata/bootstrap` `CookieSessionStore` + `createCookieSessionAuthManager`.
|
|
17
|
+
Synchronize packages and correct installed starter template discovery. Both generator entrypoints include their selected templates in published packages.
|