Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .changeset/init-placeholder-eql-v3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
'stash': patch
---

`stash init` now scaffolds an EQL **v3** encryption client, matching the EQL v3
database it installs.

The placeholder client (`DRIZZLE_PLACEHOLDER` / `GENERIC_PLACEHOLDER`) and the
introspection-driven client generator previously emitted EQL v2 authoring
patterns — `Encryption({ schemas })`, `encryptedColumn(...).equality().freeTextSearch()`,
and `encryptedType<T>('x', { equality: true })`. Since init installs a v3
database, this handed the customer's coding agent v2 guidance against a v3
schema (follow-up to #732 / #705).

Scaffolds now teach the v3 surface: `EncryptionV3` from `@cipherstash/stack/v3`,
the concrete-domain `types.*` factories (`types.TextSearch`, `types.IntegerOrd`,
`types.Text`, `types.Json`, …), and the `@cipherstash/stack-drizzle/v3` entry
(`extractEncryptionSchemaV3`) for Drizzle. The `encryptionClient` export shape
and the empty-schema "no schemas yet" error path are unchanged.
Loading
Loading