@opensaas/stack-storage 0.43.0 → 0.44.0-alpha.2

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +451 -0
  2. package/README.md +62 -30
  3. package/dist/.build-hash +1 -0
  4. package/dist/fields/index.d.ts +9 -8
  5. package/dist/fields/index.d.ts.map +1 -1
  6. package/dist/fields/index.js +376 -153
  7. package/dist/fields/index.js.map +1 -1
  8. package/dist/providers/local.d.ts +8 -0
  9. package/dist/providers/local.d.ts.map +1 -1
  10. package/dist/providers/local.js +56 -5
  11. package/dist/providers/local.js.map +1 -1
  12. package/dist/runtime/index.d.ts +29 -0
  13. package/dist/runtime/index.d.ts.map +1 -1
  14. package/dist/runtime/index.js +244 -29
  15. package/dist/runtime/index.js.map +1 -1
  16. package/dist/utils/asset-references.d.ts +13 -0
  17. package/dist/utils/asset-references.d.ts.map +1 -0
  18. package/dist/utils/asset-references.js +40 -0
  19. package/dist/utils/asset-references.js.map +1 -0
  20. package/dist/utils/image.d.ts +17 -0
  21. package/dist/utils/image.d.ts.map +1 -1
  22. package/dist/utils/image.js +69 -22
  23. package/dist/utils/image.js.map +1 -1
  24. package/dist/utils/metadata-trust.d.ts +30 -0
  25. package/dist/utils/metadata-trust.d.ts.map +1 -0
  26. package/dist/utils/metadata-trust.js +57 -0
  27. package/dist/utils/metadata-trust.js.map +1 -0
  28. package/dist/utils/multi-column.d.ts +7 -7
  29. package/dist/utils/multi-column.d.ts.map +1 -1
  30. package/dist/utils/multi-column.js +17 -34
  31. package/dist/utils/multi-column.js.map +1 -1
  32. package/dist/utils/upload.d.ts +58 -0
  33. package/dist/utils/upload.d.ts.map +1 -1
  34. package/dist/utils/upload.js +144 -14
  35. package/dist/utils/upload.js.map +1 -1
  36. package/package.json +20 -9
  37. package/.turbo/turbo-build.log +0 -4
  38. package/CLAUDE.md +0 -528
  39. package/src/config/index.ts +0 -30
  40. package/src/config/types.ts +0 -92
  41. package/src/fields/index.ts +0 -531
  42. package/src/index.ts +0 -14
  43. package/src/providers/index.ts +0 -1
  44. package/src/providers/local.ts +0 -79
  45. package/src/runtime/index.ts +0 -244
  46. package/src/runtime/registry.ts +0 -106
  47. package/src/utils/image.ts +0 -95
  48. package/src/utils/index.ts +0 -3
  49. package/src/utils/multi-column.ts +0 -425
  50. package/src/utils/upload.ts +0 -95
  51. package/tests/field-zod-schema.test.ts +0 -133
  52. package/tests/image-utils.test.ts +0 -498
  53. package/tests/local-provider.test.ts +0 -364
  54. package/tests/multi-column-fields.test.ts +0 -393
  55. package/tests/multi-column.test.ts +0 -453
  56. package/tests/opensaas-image-file-write-validation.test.ts +0 -294
  57. package/tests/provider-registry.test.ts +0 -201
  58. package/tests/upload-utils.test.ts +0 -313
  59. package/tsconfig.json +0 -9
  60. package/vitest.config.ts +0 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,456 @@
1
1
  # @opensaas/stack-storage
2
2
 
3
+ ## 0.44.0-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2123](https://github.com/OpenSaasAU/stack/pull/2123) [`e4aef82`](https://github.com/OpenSaasAU/stack/commit/e4aef824332f679a62d626d36f67290f2da30c10) Thanks [@borisno2](https://github.com/borisno2)! - `acceptedExtensions` is now checked against the extensions of the effective MIME type (what the file is stored under), not the client filename, so `[".pdf"]` no longer admits an executable declared as `cv.pdf`. Behaviour change: a file whose filename extension disagrees with its declared type is now judged by the type.
8
+
9
+ ## 0.44.0-alpha.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#2110](https://github.com/OpenSaasAU/stack/pull/2110) [`73c2474`](https://github.com/OpenSaasAU/stack/commit/73c24742119e111ea82863c8dc4ce5ea22ce3782) Thanks [@borisno2](https://github.com/borisno2)! - With `generateUniqueFilenames: false`, `image()` now claims every transformation variant key with the original and refuses a name another row's original or variant already owns; cleanup keeps variants another row still references.
14
+
15
+ ## 0.44.0-alpha.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#1674](https://github.com/OpenSaasAU/stack/pull/1674) [`e39a4b5`](https://github.com/OpenSaasAU/stack/commit/e39a4b5f9983fae97738bcba0afe6e59ba1358b4) Thanks [@borisno2](https://github.com/borisno2)! - Fix a stored-XSS vulnerability: `acceptedMimeTypes` was checked against the client-declared MIME type, and every provider stored the upload under the client's own filename extension — an `.html` file declared `application/pdf` passed a PDF-only field and was served same-origin as `text/html`.
20
+
21
+ `file()` and `image()` now validate and store under the **effective** MIME type — the declared type (or the type looked up from the filename when none is declared) for `file()`, and the bytes sharp actually decodes for `image()`, ignoring whatever the client claimed. The stored extension and the content type handed to the storage provider always derive from that effective type, never from the client's filename:
22
+
23
+ ```typescript
24
+ // x.html declared as application/pdf is now stored as `<name>.pdf` with
25
+ // mimeType: 'application/pdf' — never served back as .html.
26
+ await context.db.Post.create({
27
+ data: { attachment: new File([bytes], 'x.html', { type: 'application/pdf' }) },
28
+ })
29
+ ```
30
+
31
+ Active content types (`text/html`, `image/svg+xml`, `application/xhtml+xml`, `text/xml`, `application/xml`, and the JavaScript MIME types) are now **refused by default**, even for a `file()`/`image()` field with no `validation` config at all. Opt in explicitly per field to accept one:
32
+
33
+ ```typescript
34
+ richTextUpload: file({
35
+ storage: 'files',
36
+ validation: { acceptedMimeTypes: ['text/html'] },
37
+ }),
38
+ ```
39
+
40
+ No sniffing was added for `file()` — the declared type is still trusted, since the extension/content-type fix above means a false declaration now only produces a correctly-typed, inert file. `image()` already reads the bytes to get dimensions, so it uses that same read to determine the effective type instead of trusting the declared one.
41
+
42
+ - [#1420](https://github.com/OpenSaasAU/stack/pull/1420) [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03) Thanks [@borisno2](https://github.com/borisno2)! - `file()`, `image()` and `richText()` describe their columns and their TypeScript face through the contract-shaped field-builder surface
43
+
44
+ Each builder now carries `getContractField`, which is what `opensaas generate` reads to derive the Contract, and declares its TypeScript face through `outputType`/`inputType`. The `getTypeScriptType`/`getTypeScriptImports`/`resultExtension` members these replace are removed from the field-builder contract in this same release.
45
+
46
+ `image()`/`file()` in Keystone-parity multi-column mode return the `kind: 'columns'` variant, so one logical field still emits its per-part physical columns:
47
+
48
+ ```ts
49
+ image({ storage: 'images', db: { columns: 'keystone' } })
50
+ // image_url text, image_width int, image_height int, image_filesize int,
51
+ // image_contentType text, image_contentDisposition text, image_pathname text
52
+ ```
53
+
54
+ The `db.map`, `db.isNullable` and `db.nativeType` overrides the single-column backing documents now reach the emitted column; previously they were declared but dropped. Two of them are a **schema change for a config that already sets them**:
55
+
56
+ - **`db.isNullable: false` now emits a NOT NULL column**, and the field's TypeScript face and validation follow it: `outputType`/`inputType` lose their `| null`, `null` is rejected, and the key becomes required on create (still omittable on update). A config that set `isNullable: false` while relying on the previously-nullable column must drop the override, or backfill the column before migrating.
57
+ - **`db.nativeType: 'Json'` now emits a `json` column, not `jsonb`.** The override was a no-op before, so the column was always `jsonb`; it is now honoured literally. `json` and `jsonb` differ in equality and indexing semantics, and the change generates a type-altering migration on an existing table. Set `nativeType: 'Jsonb'` (or drop the override) to keep the previous column type.
58
+
59
+ A `db.nativeType` value outside the Postgres types the contract carries is now a `opensaas generate` error naming the list and field, where it was previously ignored.
60
+
61
+ **`db.isNullable` alongside `db.columns` is now refused at generate time.** Multi-column mode has no single column for it to constrain — every part column is nullable, and an all-NULL row reads back as `null` — so `db: { isNullable: false, columns: 'keystone' }` could only ever be taken and dropped. It is now an `opensaas generate` error naming the list, the field and the fix, rather than a silently ignored option. Remove `db.isNullable`, or remove `db.columns` to use the single-`Json?` column the override applies to. `isNullable: true` alongside `db.columns` still passes, and single-column mode is unaffected.
62
+
63
+ **Bug fix: a multi-column `file()` with a `parts` subset wrote to columns its schema does not carry.** `splitFileMetadata` seeded `filename`, `filesize` and `url` before consulting `parts`, so a field configured as `db: { columns: { mode: 'keystone', parts: ['url', 'contentType'] } }` emitted a write payload naming `<field>_filename` and `<field>_filesize` — columns the generated schema never declared, which Prisma rejects as unknown fields. This affects released `@opensaas/stack-storage`; only a `file()` in multi-column mode with a non-default `parts` is reachable, and `image()` and default-`parts` fields were never affected. Writes now name exactly the opted-in part columns, so such a field works without changing your config.
64
+
65
+ `@opensaas/stack-tiptap` re-exports Tiptap's `JSONContent`, and `richText()` reads and writes as that type instead of `any`:
66
+
67
+ ```ts
68
+ const article = await context.db.article.findFirst()
69
+ // `null` here is "no row, or the Access Filter denied it" — guard before reading.
70
+ article?.body // import('@opensaas/stack-tiptap').JSONContent | null | undefined
71
+ ```
72
+
73
+ - [#1420](https://github.com/OpenSaasAU/stack/pull/1420) [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03) Thanks [@borisno2](https://github.com/borisno2)! - Rewrite each package README against the Prisma 8 surface
74
+
75
+ The READMEs now document the API the packages actually ship, replacing the
76
+ Prisma 7 spellings that no longer resolve.
77
+
78
+ Reads compose on `context.db` keyed by the list's PascalCase config key and end
79
+ in a terminal, rather than calling a Prisma delegate:
80
+
81
+ ```ts
82
+ const posts = await context.db.Post.where({ status: { equals: 'published' } })
83
+ .orderBy({ createdAt: 'desc' })
84
+ .limit(20)
85
+ .all()
86
+
87
+ const post = await context.db.Post.where({ id }).first()
88
+ if (!post) return null
89
+ ```
90
+
91
+ `findMany`, `findUnique`, `findFirst` and `count()` are gone; the terminals are
92
+ `all()`, `first()`, `aggregate()` and `nearest()`. A denied read is silent, so
93
+ every `first()` result is a null check.
94
+
95
+ Writes take an args object with an identity-only `where`, and a relationship is
96
+ set with `connect` or cleared with `null`:
97
+
98
+ ```ts
99
+ const updated = await context.db.Post.update({
100
+ where: { id },
101
+ data: { title, author: { connect: { id: authorId } } },
102
+ })
103
+ ```
104
+
105
+ The database config documented in each README is the one `DatabaseConfig`
106
+ carries — `provider: 'postgresql'`, `idField`, `timestamps`, `schemas`,
107
+ `extensions` and `client`. `prismaClientConstructor`, `db.url` and
108
+ `extendPrismaSchema` are gone, and the connection is resolved from the
109
+ environment rather than named in the config.
110
+
111
+ Review round two swept each README against the built `.d.ts` rather than against
112
+ another doc, and corrected what the grep-shaped sweep had missed:
113
+
114
+ - The UI README's theming block documented bare `--background`/`--primary` HSL
115
+ triplets under a `.dark` class. The shipped contract is `--color-*` tokens in
116
+ `oklch()`, resolved through `light-dark()` and switched by `data-theme` — the
117
+ stylesheet's own header says the design exists "without a duplicated `.dark`
118
+ block". Its primitives list also omitted eight real exports (`Textarea`,
119
+ `Popover`, `Calendar`, `TimePicker`, `DateTimePicker`, `Combobox`, `Badge`,
120
+ `Avatar`), and two samples read `config.lists` without awaiting `config`.
121
+ - The tiptap README reused a filter-returning `AccessControl` rule as
122
+ **field-level** `access.update`. `FieldAccess` types those slots as
123
+ boolean-returning, so that is a type error and a runtime
124
+ `InvalidFieldAccessResultError`, not a scoped update.
125
+ - The storage README's upload route was the last copy still casting
126
+ `formData.get(...) as string` / `as 'file' | 'image'` off a
127
+ `FormDataEntryValue | null`.
128
+ - The auth README's Account shape named `providerId: 'credentials'`; better-auth
129
+ 1.7 uses `'credential'` for email/password, and the model carries `issuer`.
130
+ - The Vercel Blob README passed `cacheControl` to `vercelBlobStorage()`. The
131
+ provider option is `cacheControlMaxAge` (a number of seconds);
132
+ `VercelBlobStorageConfig` carries an index signature, so the wrong spelling
133
+ type-checked and was silently ignored.
134
+
135
+ Round three corrected what round two's sweeps could not see, each having keyed
136
+ on where a construct sat rather than on what it was:
137
+
138
+ - The Vercel Blob README's **options listing** still named `cacheControl` 112
139
+ lines above the call site round two fixed, so the page contradicted itself and
140
+ the half a reader consults first was the wrong half.
141
+ - Sixteen hook samples across the docs and the core, cli and example READMEs
142
+ destructured a member the `delete` branch of its args union does not carry, so
143
+ the destructure failed before any in-body `operation` guard could narrow. Three
144
+ more named an argument on no branch at all: `value` and `inputValue` on
145
+ `resolveInput`/`afterOperation`, and `session` on `ResolveInputHookArgs`.
146
+ - The core README carried a third instance of the field-access class — a bare
147
+ `text({ access: … })` excerpt with no enclosing `fields: {` — plus
148
+ `query: true` where `OperationAccess.query` takes a function, a
149
+ `ValidationError` built from a string where the constructor takes `string[]`,
150
+ and a stale claim that `password()` is excluded from reads.
151
+ - The cli README's "What it does" block under `opensaas db update` described
152
+ `opensaas dev`, and called `migrate` a command group when it has no
153
+ subcommands.
154
+
155
+ - [#1420](https://github.com/OpenSaasAU/stack/pull/1420) [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03) Thanks [@borisno2](https://github.com/borisno2)! - Remove the PSL-shaped and TypeScript-face members from the field-builder contract
156
+
157
+ **Third-party field packages must migrate.** The generator emits a TypeScript
158
+ contract module, not PSL (ADR-0040), and reads a field's TypeScript face from
159
+ `outputType`/`inputType` (ADR-0052). Nothing consulted the PSL-shaped members
160
+ any more, so they are gone from `BaseFieldConfig` and from every builder:
161
+
162
+ - `getPrismaType`
163
+ - `getPrismaColumns`
164
+ - `getPrismaRelation`
165
+ - `getTypeScriptType`
166
+ - `getTypeScriptImports`
167
+ - `resultExtension`
168
+ - `VirtualField.outputType` (the required `string` narrowing; the optional
169
+ `outputType: TypeDescriptor` on `BaseFieldConfig` is what a virtual field
170
+ declares now)
171
+
172
+ The `PrismaRelationResult`, `MultiColumnPrismaResult` and `ResultExtensionConfig`
173
+ types they were shaped by are removed with them.
174
+
175
+ Migrating a field builder — describe the column instead of the PSL line:
176
+
177
+ ```ts
178
+ // Before
179
+ export function slug(options?: Omit<SlugField, 'type'>): SlugField {
180
+ return {
181
+ type: 'slug',
182
+ ...options,
183
+ getZodSchema: () => z.string().optional(),
184
+ getPrismaType: () => ({ type: 'String', modifiers: '? @unique' }),
185
+ getTypeScriptType: () => ({ type: 'string', optional: true }),
186
+ }
187
+ }
188
+
189
+ // After
190
+ export function slug(options?: Omit<SlugField, 'type'>): SlugField {
191
+ return {
192
+ type: 'slug',
193
+ ...options,
194
+ getZodSchema: () => z.string().optional(),
195
+ getContractField: (fieldName) => ({
196
+ kind: 'column',
197
+ name: fieldName,
198
+ type: { pack: 'pg', type: 'text' },
199
+ nullable: true,
200
+ unique: true,
201
+ }),
202
+ }
203
+ }
204
+ ```
205
+
206
+ A field whose TypeScript face differs from its column's codec type declares it
207
+ directly, rather than through `resultExtension` or `getTypeScriptType`:
208
+
209
+ ```ts
210
+ // Before
211
+ resultExtension: { outputType: "import('@my/pkg').Metadata | null" },
212
+ getTypeScriptType: () => ({ type: 'Metadata | null', optional: true }),
213
+ getTypeScriptImports: () => [{ names: ['Metadata'], from: '@my/pkg' }],
214
+
215
+ // After — the import is inline, so no separate import declaration is needed
216
+ outputType: "import('@my/pkg').Metadata | null",
217
+ inputType: "File | import('@my/pkg').Metadata | null",
218
+ ```
219
+
220
+ A field spanning several physical columns returns `{ kind: 'columns', columns }`
221
+ from `getContractField` and keeps `getColumnNames`/`assembleColumns`/`splitColumns`.
222
+
223
+ **The generate-time gate moved with the contract.** `validateFieldConfig` now
224
+ requires `getContractField` and `getZodSchema` from a stored field (a
225
+ relationship only the former), and additionally `outputType` from a field that
226
+ has no single column to be typed from — one whose descriptor is
227
+ `kind: 'columns'` or `kind: 'computed'`. Both are read off the descriptor, so a
228
+ `computed` field carries the obligation whether or not its builder also sets the
229
+ `virtual` flag that core's own `virtual()` sets alongside it. That closes a hole
230
+ where such a field passed
231
+ the gate, generated successfully, and left every consumer reading it as
232
+ `unknown` (issue [#1292](https://github.com/OpenSaasAU/stack/issues/1292)). `FieldConfigValidationError.missingMethod` is renamed
233
+ to `missingMember` to carry `outputType` alongside the two methods.
234
+
235
+ `validateFieldConfig`'s signature changed with it: `listKey` and a new fourth
236
+ `config` argument are both **required**, because they are what
237
+ `getContractField` takes and reading the descriptor is what makes the rule
238
+ decidable. The optional `getColumnNames` is not consulted — it is a separate
239
+ member that only travels with `kind: 'columns'` by convention, so reading it
240
+ would both miss a `columns` field that does not implement it ([#1292](https://github.com/OpenSaasAU/stack/issues/1292)'s hole) and
241
+ wrongly demand `outputType` from a single-column field that does.
242
+ `FieldConfigValidationError.listKey` is likewise no longer optional.
243
+
244
+ The gate swallows a throw out of `getContractField`: that is a field's own
245
+ refusal seam (`embedding()` throws there for an impossible `dimensions`).
246
+ `opensaas generate` runs this gate first of all, and its config-surface step —
247
+ `validateDatabaseConfig` → `validateExtensionPacks` — re-reads every descriptor
248
+ straight afterwards and reports the throw as a `field-descriptor-error` refusal
249
+ carrying the field's own message, so the run still fails with
250
+ `List "<List>": fields.<field> cannot describe its contract column — <message>`
251
+ rather than a raw stack trace. Derivation is never reached.
252
+
253
+ `inputType` is never required by the generator. On a single-column field its
254
+ absence means the column's own input type; a `kind: 'columns'` field has no
255
+ single column for that to name, so it should declare `inputType` alongside
256
+ `outputType` — every multi-column field in this repo does, and what the
257
+ generator emits for one that does not is untested.
258
+
259
+ **A field-level hook's value type is resolved from the field key, and is
260
+ `unknown` when there is no single key to resolve.** `FieldHooks`'
261
+ `resolveInput`/`resolveOutput` positions used to be typed from the deleted
262
+ `getTypeScriptType`. `FieldHooks<TTypeInfo, 'title'>` now resolves to the
263
+ field's statically declared `outputType`, or else to the property the generated
264
+ `Lists.<List>.Item` carries for it.
265
+
266
+ But `BaseFieldConfig.hooks` cannot pin a field key — a builder is written
267
+ before it knows where it is mounted — so through the config surface
268
+ (`list<Lists.Post.TypeInfo>({ fields: { title: text({ hooks }) } })`) the
269
+ instantiation is `FieldHooks<TTypeInfo>`, whose key is the union of every field
270
+ on the list, and the value type is **`unknown`**: the same open type as before
271
+ this change. Resolving that union would type each field's hook by the whole
272
+ row, so a `text()` hook would accept a `Date` and reject its own `string`. An
273
+ honestly `unknown` type is better than a confidently wrong one; narrowing it
274
+ needs the field key threaded into `BaseFieldConfig`, tracked in issue [#1306](https://github.com/OpenSaasAU/stack/issues/1306).
275
+
276
+ Two related limits, for the same reason: `lists.ts` emits `Fields` as the field
277
+ _interfaces_, on which `outputType` is optional, so a declared face never
278
+ survives into a generated `TypeInfo` — the declared branch is reachable only
279
+ from a hand-authored one. And a virtual field's hook value stays `unknown`,
280
+ since it has no declared face there and no column in the stored row.
281
+
282
+ `db.keystoneCompat`'s implicit empty-string text default is now carried by
283
+ `text()`'s contract column, where the deleted `getPrismaType` used to emit it —
284
+ but only where the field's own create validator accepts **both** the omission
285
+ that default is there to fill **and** the `''` it inserts. Both questions are
286
+ asked of the schema rather than restated, so the column and the validator
287
+ cannot drift apart:
288
+
289
+ - a column default drops the column from the required half of the generated
290
+ `CreateInput`, so carrying one where the validator refuses an omission would
291
+ type-check a `create` that then threw `ValidationError`;
292
+ - and the value a column default inserts is never seen by validation — the
293
+ database supplies it — so carrying one where the validator refuses `''`
294
+ would store a row the config forbids on every omitted `create`. That is the
295
+ outcome an explicit `defaultValue: ''` already gets right: it is filled by
296
+ `applyCreateDefaults` before validation and correctly rejected. The two
297
+ spellings of "this column defaults to an empty string" now agree.
298
+
299
+ **Known limit: the flag is therefore inert for
300
+ `validation: { isRequired: true }` text — Keystone's commonest text column —
301
+ and for `validation: { length: { min: N } }` with `N` above zero.** Keystone 6
302
+ renders both as `NOT NULL DEFAULT ''`, so a migrating project sees
303
+ `DROP DEFAULT` for them in `migrate diff`. Setting `defaultValue: ''` by hand
304
+ is refused at runtime for the same reason, so the field's validation has to be
305
+ relaxed alongside it. Full parity would need the flag to relax the create
306
+ validator itself, which `getZodSchema` has no config to read; that is a
307
+ separate change. A column made non-null through `db: { isNullable: false }`
308
+ alone still gets the default, as does one carrying only a `length.max`.
309
+
310
+ Relatedly, `text()` no longer treats `validation: { length: { min: 0 } }` as
311
+ `min(1)`. A zero minimum now means no minimum, so `''` validates — which is
312
+ what the option says, and what lets such a column keep its compat default
313
+ without the column and the validator disagreeing. `isRequired` still imposes a
314
+ floor of `min(1)` on a field that declares `length: { min: 0 }` or no minimum
315
+ at all, and never lowers a larger declared one — `isRequired` with
316
+ `length: { min: 5 }` is still `min(5)`.
317
+
318
+ **Test coverage that thinned.** Three assertions were lost rather than ported,
319
+ and are recorded here so the change is not silent:
320
+
321
+ - `select()`'s "falls back to a capitalized `fieldName` when `listName` is not
322
+ provided" — `getContractField` is always given a `listKey`.
323
+ - The quoted-vs-unquoted PSL default rendering for a string versus an enum
324
+ `select()` — the contract carries one `{ kind: 'literal' }` for both.
325
+ - The per-field `getTypeScriptType` blocks in `tests/field-types.test.ts`
326
+ became `expect(field.outputType).toBeUndefined()` — "declares no override",
327
+ which is weaker than the old "text is `string`, optional when not required".
328
+ Column nullability is still asserted on the same fields, and the codec now
329
+ owns the type (ADR-0052), so the fact has moved rather than vanished.
330
+
331
+ - [#1673](https://github.com/OpenSaasAU/stack/pull/1673) [`c267d3c`](https://github.com/OpenSaasAU/stack/commit/c267d3c1aa2423374ae1f0b9e24e9b4f8bdf4b7c) Thanks [@borisno2](https://github.com/borisno2)! - Fix a critical security issue ([#1619](https://github.com/OpenSaasAU/stack/issues/1619)): `image()`/`file()` fields trusted a caller-supplied metadata-shaped value (`{ filename, url, ... }`) verbatim, so cleanup would later delete whatever path it named through whatever provider it named — arbitrary file deletion via a traversal `filename`, and cross-row deletion by copying another row's metadata.
332
+
333
+ A metadata-shaped write is now accepted only when it deep-equals the field's own currently stored value (the admin form's resubmit-unchanged case), or when the write runs under `sudo()` (seed/migration scripts pointing a new row at an already-uploaded asset):
334
+
335
+ ```typescript
336
+ // Non-sudo create with metadata-shaped input is refused — upload a File instead.
337
+ await context.db.Doc.create({ data: { attachment: someMetadata } }) // throws
338
+
339
+ // Sudo may still point a new row at an existing asset.
340
+ await context.sudo().db.Doc.create({ data: { attachment: someMetadata } })
341
+
342
+ // Non-sudo update succeeds only when the value matches what's already stored.
343
+ await context.db.Doc.update({ where: { id }, data: { attachment: row.attachment } }) // OK
344
+ await context.db.Doc.update({ where: { id }, data: { attachment: otherRowsMetadata } }) // throws
345
+ ```
346
+
347
+ Cleanup (`cleanupOnDelete`/`cleanupOnReplace`) now always deletes through the field's own configured `storage` provider, never the `storageProvider` a stored value happens to name, and `LocalStorageProvider` resolves every `filename` it's given (`upload`, `download`, `delete`, `getUrl`) against `uploadDir`, refusing anything that isn't a plain filename strictly inside it. With `generateUniqueFilenames: false`, a traversal-shaped upload name is reduced to a safe basename instead of being written verbatim.
348
+
349
+ `ImageTransformationResult` (`@opensaas/stack-core`) gains an optional `filename` field, populated from the provider's own upload result, so `deleteImage` deletes a transformation variant by the key the upload recorded rather than by parsing it out of the stored `url`.
350
+
351
+ - [#1485](https://github.com/OpenSaasAU/stack/pull/1485) [`6cfe96c`](https://github.com/OpenSaasAU/stack/commit/6cfe96c248889a268b9505178db1da9b177dafe6) Thanks [@borisno2](https://github.com/borisno2)! - Rewrite public API docblocks (and the `opensaas generate` CLI description) that still described the generator's output in Prisma-schema-language terms (`@@map`/`@@schema`/`@@unique`/`@@index`/`multiSchema`/`@default(...)`/`@db.<type>`) — the Prisma 8 pipeline emits a TypeScript contract, not a `.prisma` schema (ADR-0040), and no such attributes are ever produced. Affected options include `ListConfig.db.map`/`db.schema`/`db.indexes`/`db.nativeType`, `SelectField.db.type`/`db.enumName`/`db.isNullable`, `RelationshipField.isIndexed`/`db.isNullable`, `DatabaseConfig.schemas`/`db.timestamps`, `OpenSaasConfig.output`, `Plugin.beforeGenerate`, and the equivalent auth-plugin model config (`AuthModelConfig.tableName`/`fields`/`schema`, `AuthConfig.schema`/`rateLimit`/`betterAuthOptions`). Docs now describe what the contract actually carries: a model's `table`/`namespace`, a column's `map`/type/nullability, a declared `enums` entry, and `unique`/`index` constraints.
352
+
353
+ - [#1420](https://github.com/OpenSaasAU/stack/pull/1420) [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03) Thanks [@borisno2](https://github.com/borisno2)! - A Test context can exercise `file()` and `image()` fields
354
+
355
+ `createTestContext` built its context with no storage surface, so any write to a storage-backed field threw `No storage providers configured` — the Test context could not cover the storage package at all. It now takes one:
356
+
357
+ ```ts
358
+ import { createTestContext } from '@opensaas/stack-core/testing'
359
+ import { createStorageUtils } from '@opensaas/stack-storage/runtime'
360
+
361
+ // `config` is a promise whenever the config carries plugins, so resolve it
362
+ // once and hand the same value to both.
363
+ const resolved = await config
364
+
365
+ const harness = await createTestContext(resolved, null, {
366
+ storage: createStorageUtils(resolved),
367
+ })
368
+
369
+ const user = await harness.context.db.User.create({
370
+ data: { name: 'Ada', avatar: new File([bytes], 'avatar.png', { type: 'image/png' }) },
371
+ })
372
+ ```
373
+
374
+ `createStorageUtils(config)` is new in `@opensaas/stack-storage/runtime` and is the supported way to build that surface. `StorageUtils` types its option and metadata arguments as `unknown`, because core is this package's dependency and cannot name its types; the factory is the one place that re-narrows them, so a consumer building a context by hand no longer writes that conversion itself.
375
+
376
+ `deleteImage` **refuses** a value that is not `ImageMetadata`, naming the keys it received, rather than resolving as a silent no-op. The generated context always calls `deleteImage`, so a harness that swallowed an unrecognised shape would be quieter than the application it stands in for — the one failure mode a test surface must not have.
377
+
378
+ Omitting the option is unchanged: a config with no storage still throws on a storage-backed write, exactly as an application with none does.
379
+
380
+ Two type predicates now check every member their consumers read, rather than a subset the compiler then takes on trust:
381
+
382
+ - `isImageMetadata` checked 2 of `ImageMetadata`'s 9 required members and omitted `storageProvider`, which `deleteImage` dereferences first — a bogus value surfaced as `Storage provider 'undefined' not found in config` from inside the provider registry. It now checks all nine, plus the shape of the optional `metadata` and `transformations`.
383
+ - `isFileLike` narrows to `File` but checked only `arrayBuffer`, while the upload path also reads `name`, `type` and `size` — so a value carrying only `arrayBuffer` was stored with an `originalFilename` of `undefined`. It now checks all four.
384
+
385
+ ### Patch Changes
386
+
387
+ - [#1852](https://github.com/OpenSaasAU/stack/pull/1852) [`f1ed144`](https://github.com/OpenSaasAU/stack/commit/f1ed144dd42fa69023960838b5cc28f046f48aae) Thanks [@borisno2](https://github.com/borisno2)! - Fix `cleanupOnDelete` on `file()` and `image()` removing the stored asset when the delete's transaction rolls back; cleanup now runs after commit.
388
+
389
+ - [#1706](https://github.com/OpenSaasAU/stack/pull/1706) [`04f4249`](https://github.com/OpenSaasAU/stack/commit/04f4249576e12894420d0ed469575ffd3bdfb46a) Thanks [@borisno2](https://github.com/borisno2)! - Fix `cleanupOnReplace` and `cleanupOnDelete` never firing for `file()`/`image()` fields in multi-column (`columns: 'keystone'`) mode.
390
+
391
+ - [#2021](https://github.com/OpenSaasAU/stack/pull/2021) [`59d425f`](https://github.com/OpenSaasAU/stack/commit/59d425ffc0e474a28b540de5511e37e0ad8413a1) Thanks [@borisno2](https://github.com/borisno2)! - Refuse images over a pixel cap (`validation.maxPixels`, default 50 megapixels) on every `uploadImage`, before anything decodes them.
392
+
393
+ - [#1489](https://github.com/OpenSaasAU/stack/pull/1489) [`d94a2e3`](https://github.com/OpenSaasAU/stack/commit/d94a2e3dcd77cb289620818fa862bd3163e5ab59) Thanks [@borisno2](https://github.com/borisno2)! - Fix `createStorageUtils().uploadFile`/`uploadImage` accepting invalid `validation`/`transformations` options (e.g. a string `maxFileSize`) and silently disabling validation instead of refusing.
394
+
395
+ - [#1729](https://github.com/OpenSaasAU/stack/pull/1729) [`8d8a338`](https://github.com/OpenSaasAU/stack/commit/8d8a338ea4606b03ef859c4128b93b40a5fc9a21) Thanks [@borisno2](https://github.com/borisno2)! - Publish only `dist`, and docs; tarballs no longer include src, tests, compiled test files or build logs.
396
+
397
+ - [#2044](https://github.com/OpenSaasAU/stack/pull/2044) [`89c9bfe`](https://github.com/OpenSaasAU/stack/commit/89c9bfe4c28569c9f20028ee8c446e061e7d311c) Thanks [@borisno2](https://github.com/borisno2)! - `maxFileSize` is now enforced against the bytes actually read, not only the File-like's declared `size`.
398
+
399
+ - [#1942](https://github.com/OpenSaasAU/stack/pull/1942) [`5af6f66`](https://github.com/OpenSaasAU/stack/commit/5af6f661b6a17100c9b82952d7f86ab5d1bcde76) Thanks [@borisno2](https://github.com/borisno2)! - Fix stored XSS where a double-extension upload (`invoice.html.pdf`) with an unknown MIME type was stored as `.html` by the local provider.
400
+
401
+ - [#1897](https://github.com/OpenSaasAU/stack/pull/1897) [`7a98565`](https://github.com/OpenSaasAU/stack/commit/7a98565c7c64106b3fa7a2a86e4571de1e2c0eaa) Thanks [@borisno2](https://github.com/borisno2)! - Fix `cleanupOnReplace` not removing the old file or image (and its variants) when the field is cleared with `null`; the asset is removed only after the write commits.
402
+
403
+ - [#1688](https://github.com/OpenSaasAU/stack/pull/1688) [`00c2208`](https://github.com/OpenSaasAU/stack/commit/00c22086b1f33a126b7010f83e8087f937860119) Thanks [@borisno2](https://github.com/borisno2)! - `file()`/`image()` with `cleanupOnReplace` now delete the replaced file only after the write commits, and remove the new upload when the write is refused or rolled back.
404
+
405
+ - [#1843](https://github.com/OpenSaasAU/stack/pull/1843) [`8cca21a`](https://github.com/OpenSaasAU/stack/commit/8cca21a2e681a4afed908b93802ed260290ea319) Thanks [@borisno2](https://github.com/borisno2)! - `file()`/`image()` now compose a user `hooks.resolveInput`/`afterOperation` with the built-in ones instead of replacing them, so upload, the metadata-trust check and delete cleanup survive.
406
+
407
+ - [#1522](https://github.com/OpenSaasAU/stack/pull/1522) [`c322241`](https://github.com/OpenSaasAU/stack/commit/c322241a7a8a293ce6824df13dcb9765cd9479a2) Thanks [@borisno2](https://github.com/borisno2)! - Add a `typecheck` script to every package, covering `tests/**/*` alongside `src/**/*` (not just what `build` compiles), and fix the type errors it surfaced in existing test files.
408
+
409
+ - [#1939](https://github.com/OpenSaasAU/stack/pull/1939) [`6a843c3`](https://github.com/OpenSaasAU/stack/commit/6a843c353d59a7e228a0e9a39237310fd81d7b89) Thanks [@borisno2](https://github.com/borisno2)! - `uploadImage` now deletes the original and already-uploaded variants when a later transformation or upload fails, instead of orphaning them in storage.
410
+
411
+ - [#1420](https://github.com/OpenSaasAU/stack/pull/1420) [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03) Thanks [@borisno2](https://github.com/borisno2)! - Declare the Node >=22.18.0 floor in `engines`.
412
+
413
+ - [#1879](https://github.com/OpenSaasAU/stack/pull/1879) [`d118145`](https://github.com/OpenSaasAU/stack/commit/d118145ab7a98afef504d77c15ef0e0fc874b0c1) Thanks [@borisno2](https://github.com/borisno2)! - `image()` now throws when `db.columns` is combined with `transformations`, instead of uploading variants it never records.
414
+
415
+ - [#1860](https://github.com/OpenSaasAU/stack/pull/1860) [`501decb`](https://github.com/OpenSaasAU/stack/commit/501decb746a6b6507ac22dc61dbeb9338b6ef77f) Thanks [@borisno2](https://github.com/borisno2)! - Track every upload when two writes in one transaction share a data object, so a rollback removes them all.
416
+
417
+ - [#2017](https://github.com/OpenSaasAU/stack/pull/2017) [`fd31be5`](https://github.com/OpenSaasAU/stack/commit/fd31be5389b14c6be82bade01c97d0b9df7b06a9) Thanks [@borisno2](https://github.com/borisno2)! - Refuse stored file/image metadata `url`s that are not http(s) or absolute paths, and open them from the admin with `noopener,noreferrer`.
418
+
419
+ - [#1872](https://github.com/OpenSaasAU/stack/pull/1872) [`e42307c`](https://github.com/OpenSaasAU/stack/commit/e42307c02372991e8105d537ed1b3ae7c28a59cc) Thanks [@borisno2](https://github.com/borisno2)! - Refuse every `+xml` MIME type (e.g. `application/xslt+xml`, `application/rdf+xml`) as active content by default, not just the fixed blocklist.
420
+
421
+ - [#1525](https://github.com/OpenSaasAU/stack/pull/1525) [`7fd56ac`](https://github.com/OpenSaasAU/stack/commit/7fd56ac747df69ecdb65e728006e55cfdc122075) Thanks [@borisno2](https://github.com/borisno2)! - Add Test-context coverage against a real column for `image()`/`file()` (single-column and multi-column/keystone modes, split-on-write and assembly-on-read, field-level access on the logical key) and for `richText()`.
422
+
423
+ - [#2050](https://github.com/OpenSaasAU/stack/pull/2050) [`28938cd`](https://github.com/OpenSaasAU/stack/commit/28938cde0a12bf9586d8ea0236cc4bcfbcfee093) Thanks [@borisno2](https://github.com/borisno2)! - With `generateUniqueFilenames: false`, refuse an upload whose key another row already owns, and skip cleanup deletes of a file another row still references.
424
+
425
+ - [#1963](https://github.com/OpenSaasAU/stack/pull/1963) [`6323ede`](https://github.com/OpenSaasAU/stack/commit/6323ede4e1bbcd9c6ddb4ad7dd95b0f08c289cf5) Thanks [@borisno2](https://github.com/borisno2)! - Delete the unreferenced new upload when a user `resolveInput` hook retains the previous `file()`/`image()` asset.
426
+
427
+ - [#1534](https://github.com/OpenSaasAU/stack/pull/1534) [`bb37e04`](https://github.com/OpenSaasAU/stack/commit/bb37e04003946eea4396efc90d42d067de6276e3) Thanks [@borisno2](https://github.com/borisno2)! - Fix a field-level `resolveOutput`/`resolveInput` hook typing `value` as `unknown` at the real `list<Lists.X.TypeInfo>({...})` instantiation. `BaseFieldConfig` and every field builder now take a second `TKey` type parameter pinning the field's own key, so e.g. a `text()` field's `resolveOutput` sees `string` instead of `unknown`, and a mismatched return type is a compile error ([#1306](https://github.com/OpenSaasAU/stack/issues/1306)).
428
+
429
+ Compatibility note: a third-party field builder that hasn't adopted the new `TKey` parameter (the single-parameter `BaseFieldConfig<TTypeInfo>` shape the docs previously showed) now fails to compile — not merely loses hook precision — when mounted inside a `list<Lists.X.TypeInfo>({...})`-typed config, even with no custom `hooks` declared. The no-explicit-`TypeInfo` authoring flow (`list({ fields: {...} })`) is unaffected either way. Every field builder in this monorepo (core, tiptap, rag, storage) is already updated.
430
+
431
+ - [#1532](https://github.com/OpenSaasAU/stack/pull/1532) [`f9b4e2c`](https://github.com/OpenSaasAU/stack/commit/f9b4e2cd5ee2e6db5ad23ca3e13e07635291747d) Thanks [@borisno2](https://github.com/borisno2)! - Fail a package's vitest run with a named, actionable error when its `dist/` was not built from its current `src/`, instead of silently testing stale built output through a cross-package import or a spawned CLI binary.
432
+
433
+ - [#1499](https://github.com/OpenSaasAU/stack/pull/1499) [`bcea6de`](https://github.com/OpenSaasAU/stack/commit/bcea6dea0766f510da59188cb70fb41b2fd2573b) Thanks [@borisno2](https://github.com/borisno2)! - Add the missing `[key: string]: unknown` index member to `S3StorageConfig` so it matches `LocalStorageConfig` and `VercelBlobStorageConfig` and is assignable to core's `BaseStorageConfig`:
434
+
435
+ ```typescript
436
+ import type { BaseStorageConfig } from '@opensaas/stack-storage'
437
+ import { s3Storage } from '@opensaas/stack-storage-s3'
438
+
439
+ // Previously a type error: S3StorageConfig was not assignable to BaseStorageConfig.
440
+ const slot: BaseStorageConfig = s3Storage({ bucket: 'my-bucket', region: 'us-east-1' })
441
+ ```
442
+
443
+ `@opensaas/stack-storage` and `@opensaas/stack-storage-vercel` each gain a test pinning their own provider config's assignability to `BaseStorageConfig`, alongside the new S3 one, so a future provider can't regress this.
444
+
445
+ - [#1848](https://github.com/OpenSaasAU/stack/pull/1848) [`1c8f2a0`](https://github.com/OpenSaasAU/stack/commit/1c8f2a0b35ca2dd167151c9c68096f9b810981c3) Thanks [@borisno2](https://github.com/borisno2)! - Peer ranges on `@opensaas/stack-core`, `@opensaas/stack-storage` and `@opensaas/stack-ui` now track the release version instead of `^0`, so a mismatched minor is flagged.
446
+
447
+ - [#2042](https://github.com/OpenSaasAU/stack/pull/2042) [`2513063`](https://github.com/OpenSaasAU/stack/commit/2513063606b7ef3f8135c323b24c653415c56740) Thanks [@borisno2](https://github.com/borisno2)! - Fix image variants without a `format` being stored under a composite extension (`photo.png-thumb`); they now take the original's extension (`photo-thumb.png`).
448
+
449
+ Variant filenames now take the extension from the content type, so `jpeg` variants are named `.jpg`; dots in a variant name become underscores.
450
+
451
+ - Updated dependencies [[`2daa64f`](https://github.com/OpenSaasAU/stack/commit/2daa64f5722b6e85653a0cf834353db070541ab3), [`df052c2`](https://github.com/OpenSaasAU/stack/commit/df052c26942001262ad90670ec60139b2fbc9689), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`05fc094`](https://github.com/OpenSaasAU/stack/commit/05fc0949071feb6c69cb735a82494421e1c7c189), [`56a8ce5`](https://github.com/OpenSaasAU/stack/commit/56a8ce57c8dbde712e885655d9c8c7e786ab9e50), [`33b9c7a`](https://github.com/OpenSaasAU/stack/commit/33b9c7a103e8716fb3fb26745b79a3ff77bd83af), [`de2bd7a`](https://github.com/OpenSaasAU/stack/commit/de2bd7a035ee60fc09d0718885148eeaafecd798), [`dcf3a89`](https://github.com/OpenSaasAU/stack/commit/dcf3a891161bedcab679f79f0332176ab4bafe67), [`49e0bdc`](https://github.com/OpenSaasAU/stack/commit/49e0bdc9dc30158253c5efca7eaee55a0e91db93), [`ef3060c`](https://github.com/OpenSaasAU/stack/commit/ef3060c89a6a122bade9a6a7bb3492c4877e6ab5), [`f55128a`](https://github.com/OpenSaasAU/stack/commit/f55128ade8aff8242b4cc060a354bc970742ce1b), [`5b109f1`](https://github.com/OpenSaasAU/stack/commit/5b109f112ba7259ebc42ac4ac2598ff349e7266b), [`0ef9495`](https://github.com/OpenSaasAU/stack/commit/0ef9495d0f7f53c0a84ac6e5fd0fe3f8da183e4b), [`6e0db6b`](https://github.com/OpenSaasAU/stack/commit/6e0db6bdc39f047f4eb62523765054826327214e), [`b3b9a36`](https://github.com/OpenSaasAU/stack/commit/b3b9a3695920385a044a970d6abab68b7df39f12), [`fbd9bd5`](https://github.com/OpenSaasAU/stack/commit/fbd9bd5675f1958507da0df01f697845a9332f0c), [`a0d613f`](https://github.com/OpenSaasAU/stack/commit/a0d613fe344e7cc6eca8d1b35171bbbfc0ae2a5b), [`b7aee49`](https://github.com/OpenSaasAU/stack/commit/b7aee491198c6dc7216e7323705ff36e1646e5c5), [`274b0a5`](https://github.com/OpenSaasAU/stack/commit/274b0a57b3e2d307a9d5563b08f8a9d60b3ff7b4), [`6f1a94c`](https://github.com/OpenSaasAU/stack/commit/6f1a94c005b231ea78be8bb9ce0163937bf37fa3), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`d4c0ecd`](https://github.com/OpenSaasAU/stack/commit/d4c0ecd103bd2d31b2a4f459529fc200506874e2), [`5334468`](https://github.com/OpenSaasAU/stack/commit/5334468181b2716897c0fce29965fc590b1dc239), [`be9466e`](https://github.com/OpenSaasAU/stack/commit/be9466e947d04a8091030ffef2588ba5bec431b0), [`efad224`](https://github.com/OpenSaasAU/stack/commit/efad22409032faab300a566f310d4384c4f78aed), [`28795bb`](https://github.com/OpenSaasAU/stack/commit/28795bb0b39c4a6f73c860d16c1b5240aa238f8f), [`7f287d4`](https://github.com/OpenSaasAU/stack/commit/7f287d48579a815c67441c8336b1372d9f41c61e), [`2464809`](https://github.com/OpenSaasAU/stack/commit/24648098371f94ede164021bf8143f4e20102a8b), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`00c3760`](https://github.com/OpenSaasAU/stack/commit/00c3760449f890f5d365798f5b3b3e1367333762), [`17bb5d5`](https://github.com/OpenSaasAU/stack/commit/17bb5d5a3afa78007afdd80eaa5a09f27a408890), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`b79436b`](https://github.com/OpenSaasAU/stack/commit/b79436b34e1f1ad84c70efc2c4aaad1a64e27717), [`b1f838b`](https://github.com/OpenSaasAU/stack/commit/b1f838b2df2aae4e6edf2598b28b6bec2b8bfba7), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`71714f6`](https://github.com/OpenSaasAU/stack/commit/71714f6ea2859455af0203bea6fbd13371a80cb9), [`0c33f68`](https://github.com/OpenSaasAU/stack/commit/0c33f68b5d9449b4cdaecc792815bbd64afd7e9f), [`b1ada12`](https://github.com/OpenSaasAU/stack/commit/b1ada12fffb087487562000b10f8146a0fb80743), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`e5ea5b3`](https://github.com/OpenSaasAU/stack/commit/e5ea5b3bd803106ed00a892ddffcdc365f4cde1e), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`d8d5822`](https://github.com/OpenSaasAU/stack/commit/d8d58220e809ef64d7c63ee26ce9f0f491ac836d), [`d38788f`](https://github.com/OpenSaasAU/stack/commit/d38788fa5aa83308e307b25b606b8b654283fbcc), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`5aa3815`](https://github.com/OpenSaasAU/stack/commit/5aa38159fe5a54f3f0c294cc47f439ec9175d544), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`21bd0d5`](https://github.com/OpenSaasAU/stack/commit/21bd0d53860d8ad2f801c65e83637e523adc19f6), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`8d8a338`](https://github.com/OpenSaasAU/stack/commit/8d8a338ea4606b03ef859c4128b93b40a5fc9a21), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`6b40b3a`](https://github.com/OpenSaasAU/stack/commit/6b40b3aaa6174530a990a8f258778993f9501c98), [`3a60ca8`](https://github.com/OpenSaasAU/stack/commit/3a60ca85a6757ff595ab83fd770d8fb82688e4cc), [`e6a7fb2`](https://github.com/OpenSaasAU/stack/commit/e6a7fb28b57c56743537804231ed40e9d36ca4df), [`99d9870`](https://github.com/OpenSaasAU/stack/commit/99d98700398539b2e145a87b18ab6e6d4df6fac4), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`2ca5582`](https://github.com/OpenSaasAU/stack/commit/2ca5582ef53ce88bc59227526b676ab4065cbfae), [`fb6a598`](https://github.com/OpenSaasAU/stack/commit/fb6a598b7c06f39d6d9ac26a8d8d9d6ae21aa4ce), [`fb6a598`](https://github.com/OpenSaasAU/stack/commit/fb6a598b7c06f39d6d9ac26a8d8d9d6ae21aa4ce), [`f097958`](https://github.com/OpenSaasAU/stack/commit/f097958cba46015072b7b118d1ca78471700571e), [`ee0d3d3`](https://github.com/OpenSaasAU/stack/commit/ee0d3d3e20201e2ad3859f081597fb5e623518eb), [`c1b689a`](https://github.com/OpenSaasAU/stack/commit/c1b689ae2c8783426a684af19e7962346af15124), [`a1dbf13`](https://github.com/OpenSaasAU/stack/commit/a1dbf1360fd2beef632b3575d82d464db6af136a), [`2d5d159`](https://github.com/OpenSaasAU/stack/commit/2d5d159dab277af9b6e29f3b07ce69debeeacce5), [`3e298af`](https://github.com/OpenSaasAU/stack/commit/3e298af86ebfa9c359fb4fbbd8fcde4262fb84c7), [`b784cd9`](https://github.com/OpenSaasAU/stack/commit/b784cd94e44f2a34420a125aff5c099c15e21ba0), [`0a362c3`](https://github.com/OpenSaasAU/stack/commit/0a362c35ee77c90d5cbf3d0fcb24129dc4817179), [`548dd00`](https://github.com/OpenSaasAU/stack/commit/548dd0014551b07c3ff3fefccb2945bb025c6864), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`ad294d8`](https://github.com/OpenSaasAU/stack/commit/ad294d8e934bda0606870078e72e3d0c01a9c9f8), [`d5577eb`](https://github.com/OpenSaasAU/stack/commit/d5577ebc8ec82337482eb759f87913300f198567), [`c322241`](https://github.com/OpenSaasAU/stack/commit/c322241a7a8a293ce6824df13dcb9765cd9479a2), [`405951c`](https://github.com/OpenSaasAU/stack/commit/405951cd67f1127701246364c873b457e39afd04), [`d94c528`](https://github.com/OpenSaasAU/stack/commit/d94c528ab490245a081d7e84b53287559f224866), [`6b9e24e`](https://github.com/OpenSaasAU/stack/commit/6b9e24e348b711a92c9610df554f03098bde97c7), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`e70ab87`](https://github.com/OpenSaasAU/stack/commit/e70ab87f7bae9eccc0212f0d43d58b9dd427394c), [`5c23069`](https://github.com/OpenSaasAU/stack/commit/5c23069861fda7ebfd77ac0726200800b597d60a), [`558198e`](https://github.com/OpenSaasAU/stack/commit/558198e62ffbd5e58d82c97e82534e8ca8d233aa), [`2b17424`](https://github.com/OpenSaasAU/stack/commit/2b1742453308c34e8294785e48f979bee25e75a3), [`e1f93c0`](https://github.com/OpenSaasAU/stack/commit/e1f93c0a9cd2c5e0a5ccb82b8a2cfcce9ef1db0e), [`4cb0892`](https://github.com/OpenSaasAU/stack/commit/4cb0892c7ec815d8f75fd04c8f29f315e98f7c83), [`5432400`](https://github.com/OpenSaasAU/stack/commit/54324009f724168a02b3a5577b0877011748732e), [`9c226fd`](https://github.com/OpenSaasAU/stack/commit/9c226fd95272dbe9a64cd8299734da64ebbc80dc), [`f51ca12`](https://github.com/OpenSaasAU/stack/commit/f51ca12b793c2131e04f6d997af24eb42f2198f0), [`721b7c0`](https://github.com/OpenSaasAU/stack/commit/721b7c0eeca000966c7a419e3946d34cef9b2bc1), [`cae8c1e`](https://github.com/OpenSaasAU/stack/commit/cae8c1e562bf6f780bd2d870948f407dbabbf4fe), [`bc2614f`](https://github.com/OpenSaasAU/stack/commit/bc2614f3ebd662737d22d5e47bf03f26a1aca5a6), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`c3ce7b6`](https://github.com/OpenSaasAU/stack/commit/c3ce7b6f23240144ae424d47685c71c0e553b877), [`7ffacbf`](https://github.com/OpenSaasAU/stack/commit/7ffacbfe1cee35ae7d9922519e94a68c13d0b34b), [`a2c8e59`](https://github.com/OpenSaasAU/stack/commit/a2c8e59e39d303c97dbdb51875261fff0169be8d), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`4af852c`](https://github.com/OpenSaasAU/stack/commit/4af852c8d166e80e9197a7ba97779ff784f42156), [`cf575b0`](https://github.com/OpenSaasAU/stack/commit/cf575b0330f8709096c6097e0a97e9a1ba1291e2), [`e1e0831`](https://github.com/OpenSaasAU/stack/commit/e1e083177640d677bbc3865d2deeae21c718ac55), [`f06fbf4`](https://github.com/OpenSaasAU/stack/commit/f06fbf4055f51946d89c72985176d54f43af217d), [`daf9635`](https://github.com/OpenSaasAU/stack/commit/daf9635f44969051ad9ef4e30a403f7b0c2f0160), [`6d8c6c7`](https://github.com/OpenSaasAU/stack/commit/6d8c6c78d590f0dc804578fd3f8f2b32b02677ce), [`5cfa783`](https://github.com/OpenSaasAU/stack/commit/5cfa7832f48f905391c5a76b979a9ca93024d207), [`10dbc3d`](https://github.com/OpenSaasAU/stack/commit/10dbc3ddbb2df3516a4c0d0b284688276ac29de7), [`a2d6d6e`](https://github.com/OpenSaasAU/stack/commit/a2d6d6e17072f3cd9bd202f40fd1865d0ef8a41d), [`42b141b`](https://github.com/OpenSaasAU/stack/commit/42b141b644fbf90d3d976431557e15a90e9ce518), [`0a18d1f`](https://github.com/OpenSaasAU/stack/commit/0a18d1f74117a61f495870c26c975c49802a1547), [`defbeba`](https://github.com/OpenSaasAU/stack/commit/defbeba0f139501c23d63b34865dbdae43ecf16c), [`a8edbd1`](https://github.com/OpenSaasAU/stack/commit/a8edbd1e7276f8ca1e13747c2f1f4e4c354a782a), [`407c1b8`](https://github.com/OpenSaasAU/stack/commit/407c1b842a35829c4cdfc3b0f4ff99b1e62ce032), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`4435b33`](https://github.com/OpenSaasAU/stack/commit/4435b3340a7255ca63f80e53e5195a351647e299), [`c7284be`](https://github.com/OpenSaasAU/stack/commit/c7284be4eb17d27f3dd6b36feee604561df98986), [`96dfeee`](https://github.com/OpenSaasAU/stack/commit/96dfeee7648c0431cb956f15cd5ca4c2210b0afb), [`e11271b`](https://github.com/OpenSaasAU/stack/commit/e11271b523cf92f9d60236ea02715b1fa87c6028), [`3cb2d50`](https://github.com/OpenSaasAU/stack/commit/3cb2d504e90128dfc7952b19bbea49eabab13f0d), [`79c7674`](https://github.com/OpenSaasAU/stack/commit/79c76749147114d91b1c76669882509489251316), [`caf883a`](https://github.com/OpenSaasAU/stack/commit/caf883a88629ac5eeb41375e220d9c11427edaee), [`32b9afa`](https://github.com/OpenSaasAU/stack/commit/32b9afadab65cbe6445dcd15da8df54218880f7b), [`269165e`](https://github.com/OpenSaasAU/stack/commit/269165e1e6182b1e41f01c13a0e0c08ed5523644), [`8fe4ea2`](https://github.com/OpenSaasAU/stack/commit/8fe4ea2a52e2e0202c4568fca46d1da76a87652d), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`b1fec28`](https://github.com/OpenSaasAU/stack/commit/b1fec28fa5c07fe5aa8d3ba15e07f269bf1c645b), [`27d91d5`](https://github.com/OpenSaasAU/stack/commit/27d91d54fcd79122dfe695b5dea94c14572a2b98), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`477a75b`](https://github.com/OpenSaasAU/stack/commit/477a75bbfd2ee6e95ed78941b837cad7eea6a5f1), [`22f03bc`](https://github.com/OpenSaasAU/stack/commit/22f03bca2f190a9c1d854e22efe5beb3807da264), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`12bd183`](https://github.com/OpenSaasAU/stack/commit/12bd183112000abe7d34487ee0f8c874b5623507), [`53f2d20`](https://github.com/OpenSaasAU/stack/commit/53f2d202d5a58bcdb4d016aef929ae68a5151ed4), [`d40c4bb`](https://github.com/OpenSaasAU/stack/commit/d40c4bb1700bc4f52203d4082cc13fb9efaa098a), [`95cb6dc`](https://github.com/OpenSaasAU/stack/commit/95cb6dc70a6c622c70c8cd74a14abb53f25bc95f), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`04a00f4`](https://github.com/OpenSaasAU/stack/commit/04a00f4ae87611b879829b9d20fbfe9cdb656da2), [`3d0d4db`](https://github.com/OpenSaasAU/stack/commit/3d0d4db7923a75cf77f665ef8f915edcf99a408d), [`80b3e20`](https://github.com/OpenSaasAU/stack/commit/80b3e204d20f60aded2d6d10cd9a04b8da5119da), [`c267d3c`](https://github.com/OpenSaasAU/stack/commit/c267d3c1aa2423374ae1f0b9e24e9b4f8bdf4b7c), [`6eab4e2`](https://github.com/OpenSaasAU/stack/commit/6eab4e28e2a42168db2fb8bb99c94c1f22d527cd), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`c63d79f`](https://github.com/OpenSaasAU/stack/commit/c63d79fd92c6265030eddae6dcfb4a5faa4a5a69), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`105d10a`](https://github.com/OpenSaasAU/stack/commit/105d10a81700af5518ba9a4a6ca0405795fada76), [`0c5d3aa`](https://github.com/OpenSaasAU/stack/commit/0c5d3aa37230c353218a164fa7c8352bbc9f6537), [`7d00071`](https://github.com/OpenSaasAU/stack/commit/7d00071e92b195bdbb2f1c3df6219b8db90ff58d), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`604b029`](https://github.com/OpenSaasAU/stack/commit/604b029d383573e000634660e43afd36fd247cfa), [`5d0ec1b`](https://github.com/OpenSaasAU/stack/commit/5d0ec1b3961fe63fad41a33096802faa4111507d), [`d59945a`](https://github.com/OpenSaasAU/stack/commit/d59945a36ba6615823e22822f366fb2507fbad68), [`d9b4b37`](https://github.com/OpenSaasAU/stack/commit/d9b4b3740df3573d090b140eb32daaec5c319485), [`9fe6917`](https://github.com/OpenSaasAU/stack/commit/9fe6917f37f4110740e2aa9ee174355699f8b36d), [`d049f38`](https://github.com/OpenSaasAU/stack/commit/d049f3804cc2974b98c854ff4ecfd1660e6d5a75), [`2739ad8`](https://github.com/OpenSaasAU/stack/commit/2739ad8923ab3db893eefb718d21fcb2d079a519), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`bb37e04`](https://github.com/OpenSaasAU/stack/commit/bb37e04003946eea4396efc90d42d067de6276e3), [`aa9296c`](https://github.com/OpenSaasAU/stack/commit/aa9296cd3af11e3e0c1b13969d986915e7673c9a), [`3fb20e0`](https://github.com/OpenSaasAU/stack/commit/3fb20e05ce986e25d317910280cfd45abb034c8a), [`4dd1dd0`](https://github.com/OpenSaasAU/stack/commit/4dd1dd0b555a6838a989d2ee43399c676742be0c), [`7242781`](https://github.com/OpenSaasAU/stack/commit/7242781e1d27e6e7a4a08ed63d7ecb544e20db6e), [`52b79a7`](https://github.com/OpenSaasAU/stack/commit/52b79a7519eadce9a2dc812e63a32df022f3c578), [`781b819`](https://github.com/OpenSaasAU/stack/commit/781b8196064835637b93e34ec31e6a3dc959ccae), [`f9b4e2c`](https://github.com/OpenSaasAU/stack/commit/f9b4e2cd5ee2e6db5ad23ca3e13e07635291747d), [`6cfe96c`](https://github.com/OpenSaasAU/stack/commit/6cfe96c248889a268b9505178db1da9b177dafe6), [`cfb397a`](https://github.com/OpenSaasAU/stack/commit/cfb397ad72f1b27c854b0a765ebb249fbc7dab3e), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`dbb52c7`](https://github.com/OpenSaasAU/stack/commit/dbb52c79021880302e361d13570765d2fee4e4af), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`6975d3e`](https://github.com/OpenSaasAU/stack/commit/6975d3e76cb0280d9960461698e079276b56f8c0), [`eedb0f7`](https://github.com/OpenSaasAU/stack/commit/eedb0f7b4b856fea9927c2a06f827d38fc28f75c), [`a4227e9`](https://github.com/OpenSaasAU/stack/commit/a4227e9dd8097a38ec80a430b725dc5f0838f8c2), [`5cdda55`](https://github.com/OpenSaasAU/stack/commit/5cdda55589ea00c3bea0a8d586a758d50ef9dc4c), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`7ffacbf`](https://github.com/OpenSaasAU/stack/commit/7ffacbfe1cee35ae7d9922519e94a68c13d0b34b), [`b0317b4`](https://github.com/OpenSaasAU/stack/commit/b0317b475ecd2cff6f11fe42ef964c80696c60ec), [`bed0cc3`](https://github.com/OpenSaasAU/stack/commit/bed0cc3197cd4b1ab5aebf40eda6289ae8a955fd), [`0a3cba5`](https://github.com/OpenSaasAU/stack/commit/0a3cba5197d98ff780036a0805d660af84dfbc50), [`1ecc97e`](https://github.com/OpenSaasAU/stack/commit/1ecc97ec31580d778d138122f89798f4be651744), [`4f65926`](https://github.com/OpenSaasAU/stack/commit/4f65926af88e62a053ac1c795e1b9e214744267b), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`8b7eb1f`](https://github.com/OpenSaasAU/stack/commit/8b7eb1f902b73e89579f4a7ca3256c8d8a3ef950), [`7adac1b`](https://github.com/OpenSaasAU/stack/commit/7adac1bfdbce5c49c8f09a3f69bd9684a77d4cc2), [`07999bb`](https://github.com/OpenSaasAU/stack/commit/07999bb4c6e7748f8b3434ce82db780dbf6a8e9f), [`7ebd6ee`](https://github.com/OpenSaasAU/stack/commit/7ebd6ee5f78f5773b566dc6cac66d73b640c3c03), [`b84c28d`](https://github.com/OpenSaasAU/stack/commit/b84c28d2fd5088fdb56a7ba30e719e4f52b57d7d)]:
452
+ - @opensaas/stack-core@0.44.0-alpha.0
453
+
3
454
  ## 0.43.0
4
455
 
5
456
  ## 0.42.3