Version Packages#490
Merged
Merged
Conversation
3566a76 to
d2b957a
Compare
a86b7e8 to
4743908
Compare
17bd5a8 to
ba40d80
Compare
calvinbrewer
approved these changes
May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@cipherstash/protect@12.0.0
Major Changes
f743fcc: Upgrade
@cipherstash/protect-ffito0.23.0and the bundled CipherStash EQL extension toeql-2.3.1.Breaking upstream changes adopted in this release:
buildEncryptConfignow emits{ v: 1, ... }(was{ v: 2, ... }). protect-ffi0.22.0started validating this field and rejects any value other than1with the newUNSUPPORTED_CONFIG_VERSIONerror code.0.23.0): the previously-conflatedEncryptedtype splits intoEncrypted(storage-only,crequired) and a newEncryptedQuery(search terms — scalarunique/match/orelookups andste_vec_selectorJSON path queries; noc). JSON containment queries (ste_vec_term) still return a storage-shapedEncryptedpayload.encryptQuery/encryptQueryBulknow returnEncrypted | EncryptedQuery, and the stack'sEncryptedSearchTerm/EncryptedQueryResultunions widen to match.decryptrejects query payloads at the type level. The DynamoDBSearchTermsOperationnarrows via'hm' in termrather thanterm.hm.modeforste_vecindexes changed fromcompattostandard. The two encodings are not cross-compatible. Existing JSON-searchable data that was indexed undercompatwill need to be re-encrypted to be queryable. The stack adopts the newstandarddefault — there is no longer a way to pincompatfrom the SDK.eql-2.3.1: the new SteVecstandardencoding requires matching support in the database EQL extension. The CLI's bundled SQL (packages/cli/src/sql/*.sql) and the@cipherstash/prisma-nextinstall bundle (migrations/20260601T0000_install_eql_bundle/ops.json+eql-install.generated.ts) are updated toeql-2.3.1. Databases installed with an older EQL extension must be reinstalled (stash db install) before containment / contained-by queries against SteVec columns will work.eql-2.3.1ships the_encrypted_check_cfix for SteVec storage payloads (cipherstash/encrypt-query-language#232).ProtectErrorCode(re-exported from@cipherstash/protect-ffi) gainsMATCH_REQUIRES_TEXTandUNSUPPORTED_CONFIG_VERSION. Exhaustive switches overProtectErrorCodewill need additional cases.matchindex validation: protect-ffi now rejectsmatchindexes on columns whosecast_asis not text-family ('text'/'string') withMATCH_REQUIRES_TEXT. The stack'sfreeTextSearch()builder is unaffected because it only targets string-typed columns.Encryptedciphertext shape: protect-ffi'sEncryptedtype is now a discriminated union keyed onk('ct'for scalars,'sv'for SteVec). SteVec storage payloads now place the root document ciphertext atsv[0].c. The stack'sisEncryptedPayloadruntime check continues to work because storage payloads still carryc(scalar) orsv(SteVec). The DynamoDB helpers (toEncryptedDynamoItem,SearchTermsOperation) now narrow onkbefore reading variant-only fields.ConfigError.ProtectError.codevalues are preserved; consumers that string-match onerr.messagefor config-validation errors must update.Patch Changes
@cipherstash/schema@3.0.0
Major Changes
f743fcc: Upgrade
@cipherstash/protect-ffito0.23.0and the bundled CipherStash EQL extension toeql-2.3.1.Breaking upstream changes adopted in this release:
buildEncryptConfignow emits{ v: 1, ... }(was{ v: 2, ... }). protect-ffi0.22.0started validating this field and rejects any value other than1with the newUNSUPPORTED_CONFIG_VERSIONerror code.0.23.0): the previously-conflatedEncryptedtype splits intoEncrypted(storage-only,crequired) and a newEncryptedQuery(search terms — scalarunique/match/orelookups andste_vec_selectorJSON path queries; noc). JSON containment queries (ste_vec_term) still return a storage-shapedEncryptedpayload.encryptQuery/encryptQueryBulknow returnEncrypted | EncryptedQuery, and the stack'sEncryptedSearchTerm/EncryptedQueryResultunions widen to match.decryptrejects query payloads at the type level. The DynamoDBSearchTermsOperationnarrows via'hm' in termrather thanterm.hm.modeforste_vecindexes changed fromcompattostandard. The two encodings are not cross-compatible. Existing JSON-searchable data that was indexed undercompatwill need to be re-encrypted to be queryable. The stack adopts the newstandarddefault — there is no longer a way to pincompatfrom the SDK.eql-2.3.1: the new SteVecstandardencoding requires matching support in the database EQL extension. The CLI's bundled SQL (packages/cli/src/sql/*.sql) and the@cipherstash/prisma-nextinstall bundle (migrations/20260601T0000_install_eql_bundle/ops.json+eql-install.generated.ts) are updated toeql-2.3.1. Databases installed with an older EQL extension must be reinstalled (stash db install) before containment / contained-by queries against SteVec columns will work.eql-2.3.1ships the_encrypted_check_cfix for SteVec storage payloads (cipherstash/encrypt-query-language#232).ProtectErrorCode(re-exported from@cipherstash/protect-ffi) gainsMATCH_REQUIRES_TEXTandUNSUPPORTED_CONFIG_VERSION. Exhaustive switches overProtectErrorCodewill need additional cases.matchindex validation: protect-ffi now rejectsmatchindexes on columns whosecast_asis not text-family ('text'/'string') withMATCH_REQUIRES_TEXT. The stack'sfreeTextSearch()builder is unaffected because it only targets string-typed columns.Encryptedciphertext shape: protect-ffi'sEncryptedtype is now a discriminated union keyed onk('ct'for scalars,'sv'for SteVec). SteVec storage payloads now place the root document ciphertext atsv[0].c. The stack'sisEncryptedPayloadruntime check continues to work because storage payloads still carryc(scalar) orsv(SteVec). The DynamoDB helpers (toEncryptedDynamoItem,SearchTermsOperation) now narrow onkbefore reading variant-only fields.ConfigError.ProtectError.codevalues are preserved; consumers that string-match onerr.messagefor config-validation errors must update.stash@0.16.0
Minor Changes
f743fcc: Upgrade
@cipherstash/protect-ffito0.23.0and the bundled CipherStash EQL extension toeql-2.3.1.Breaking upstream changes adopted in this release:
buildEncryptConfignow emits{ v: 1, ... }(was{ v: 2, ... }). protect-ffi0.22.0started validating this field and rejects any value other than1with the newUNSUPPORTED_CONFIG_VERSIONerror code.0.23.0): the previously-conflatedEncryptedtype splits intoEncrypted(storage-only,crequired) and a newEncryptedQuery(search terms — scalarunique/match/orelookups andste_vec_selectorJSON path queries; noc). JSON containment queries (ste_vec_term) still return a storage-shapedEncryptedpayload.encryptQuery/encryptQueryBulknow returnEncrypted | EncryptedQuery, and the stack'sEncryptedSearchTerm/EncryptedQueryResultunions widen to match.decryptrejects query payloads at the type level. The DynamoDBSearchTermsOperationnarrows via'hm' in termrather thanterm.hm.modeforste_vecindexes changed fromcompattostandard. The two encodings are not cross-compatible. Existing JSON-searchable data that was indexed undercompatwill need to be re-encrypted to be queryable. The stack adopts the newstandarddefault — there is no longer a way to pincompatfrom the SDK.eql-2.3.1: the new SteVecstandardencoding requires matching support in the database EQL extension. The CLI's bundled SQL (packages/cli/src/sql/*.sql) and the@cipherstash/prisma-nextinstall bundle (migrations/20260601T0000_install_eql_bundle/ops.json+eql-install.generated.ts) are updated toeql-2.3.1. Databases installed with an older EQL extension must be reinstalled (stash db install) before containment / contained-by queries against SteVec columns will work.eql-2.3.1ships the_encrypted_check_cfix for SteVec storage payloads (cipherstash/encrypt-query-language#232).ProtectErrorCode(re-exported from@cipherstash/protect-ffi) gainsMATCH_REQUIRES_TEXTandUNSUPPORTED_CONFIG_VERSION. Exhaustive switches overProtectErrorCodewill need additional cases.matchindex validation: protect-ffi now rejectsmatchindexes on columns whosecast_asis not text-family ('text'/'string') withMATCH_REQUIRES_TEXT. The stack'sfreeTextSearch()builder is unaffected because it only targets string-typed columns.Encryptedciphertext shape: protect-ffi'sEncryptedtype is now a discriminated union keyed onk('ct'for scalars,'sv'for SteVec). SteVec storage payloads now place the root document ciphertext atsv[0].c. The stack'sisEncryptedPayloadruntime check continues to work because storage payloads still carryc(scalar) orsv(SteVec). The DynamoDB helpers (toEncryptedDynamoItem,SearchTermsOperation) now narrow onkbefore reading variant-only fields.ConfigError.ProtectError.codevalues are preserved; consumers that string-match onerr.messagefor config-validation errors must update.bb9764d:
stash db pushis no longer included by default instash plan/stash implagent prompts or the wizard's post-agent step. SDK users (Drizzle, Supabase, plain PostgreSQL) no longer seestash db pushbaked into their rollout/cutover walkthroughs — the encryption config lives in app code, so the database doesn't need a copy.Pass
--proxytostash init(or answer the new interactive prompt) if you query encrypted data via CipherStash Proxy. The choice is persisted to.cipherstash/context.jsonasusesProxyand is honoured bystash plan,stash impl, and the wizard's post-agent step. Existing.cipherstash/context.jsonfiles without the field default to SDK-only.Known gap:
stash encrypt cutovercurrently requires a pending EQL config registered viastash db push, so SDK-only users running the migrate-existing-column flow will hit a "No pending EQL configuration" error from cutover. Workaround: runstash db pushonce beforestash encrypt cutover. Decoupling cutover from EQL config for SDK-only users is tracked as a follow-up to #447.Patch Changes
stash implandstash planno longer hang in non-TTY contexts (CI, pipes, automation harnesses). The agent-target picker previously read from/dev/ttyand waited forever. You can now pass--target <claude-code|codex|agents-md|wizard>to select a handoff target non-interactively, and when neither--targetnor a TTY is available the command prints a hint and exits cleanly instead of blocking.@cipherstash/prisma-next@0.3.0
Minor Changes
f743fcc: Upgrade
@cipherstash/protect-ffito0.23.0and the bundled CipherStash EQL extension toeql-2.3.1.Breaking upstream changes adopted in this release:
buildEncryptConfignow emits{ v: 1, ... }(was{ v: 2, ... }). protect-ffi0.22.0started validating this field and rejects any value other than1with the newUNSUPPORTED_CONFIG_VERSIONerror code.0.23.0): the previously-conflatedEncryptedtype splits intoEncrypted(storage-only,crequired) and a newEncryptedQuery(search terms — scalarunique/match/orelookups andste_vec_selectorJSON path queries; noc). JSON containment queries (ste_vec_term) still return a storage-shapedEncryptedpayload.encryptQuery/encryptQueryBulknow returnEncrypted | EncryptedQuery, and the stack'sEncryptedSearchTerm/EncryptedQueryResultunions widen to match.decryptrejects query payloads at the type level. The DynamoDBSearchTermsOperationnarrows via'hm' in termrather thanterm.hm.modeforste_vecindexes changed fromcompattostandard. The two encodings are not cross-compatible. Existing JSON-searchable data that was indexed undercompatwill need to be re-encrypted to be queryable. The stack adopts the newstandarddefault — there is no longer a way to pincompatfrom the SDK.eql-2.3.1: the new SteVecstandardencoding requires matching support in the database EQL extension. The CLI's bundled SQL (packages/cli/src/sql/*.sql) and the@cipherstash/prisma-nextinstall bundle (migrations/20260601T0000_install_eql_bundle/ops.json+eql-install.generated.ts) are updated toeql-2.3.1. Databases installed with an older EQL extension must be reinstalled (stash db install) before containment / contained-by queries against SteVec columns will work.eql-2.3.1ships the_encrypted_check_cfix for SteVec storage payloads (cipherstash/encrypt-query-language#232).ProtectErrorCode(re-exported from@cipherstash/protect-ffi) gainsMATCH_REQUIRES_TEXTandUNSUPPORTED_CONFIG_VERSION. Exhaustive switches overProtectErrorCodewill need additional cases.matchindex validation: protect-ffi now rejectsmatchindexes on columns whosecast_asis not text-family ('text'/'string') withMATCH_REQUIRES_TEXT. The stack'sfreeTextSearch()builder is unaffected because it only targets string-typed columns.Encryptedciphertext shape: protect-ffi'sEncryptedtype is now a discriminated union keyed onk('ct'for scalars,'sv'for SteVec). SteVec storage payloads now place the root document ciphertext atsv[0].c. The stack'sisEncryptedPayloadruntime check continues to work because storage payloads still carryc(scalar) orsv(SteVec). The DynamoDB helpers (toEncryptedDynamoItem,SearchTermsOperation) now narrow onkbefore reading variant-only fields.ConfigError.ProtectError.codevalues are preserved; consumers that string-match onerr.messagefor config-validation errors must update.Patch Changes
@cipherstash/stack@0.17.0
Minor Changes
f743fcc: Upgrade
@cipherstash/protect-ffito0.23.0and the bundled CipherStash EQL extension toeql-2.3.1.Breaking upstream changes adopted in this release:
buildEncryptConfignow emits{ v: 1, ... }(was{ v: 2, ... }). protect-ffi0.22.0started validating this field and rejects any value other than1with the newUNSUPPORTED_CONFIG_VERSIONerror code.0.23.0): the previously-conflatedEncryptedtype splits intoEncrypted(storage-only,crequired) and a newEncryptedQuery(search terms — scalarunique/match/orelookups andste_vec_selectorJSON path queries; noc). JSON containment queries (ste_vec_term) still return a storage-shapedEncryptedpayload.encryptQuery/encryptQueryBulknow returnEncrypted | EncryptedQuery, and the stack'sEncryptedSearchTerm/EncryptedQueryResultunions widen to match.decryptrejects query payloads at the type level. The DynamoDBSearchTermsOperationnarrows via'hm' in termrather thanterm.hm.modeforste_vecindexes changed fromcompattostandard. The two encodings are not cross-compatible. Existing JSON-searchable data that was indexed undercompatwill need to be re-encrypted to be queryable. The stack adopts the newstandarddefault — there is no longer a way to pincompatfrom the SDK.eql-2.3.1: the new SteVecstandardencoding requires matching support in the database EQL extension. The CLI's bundled SQL (packages/cli/src/sql/*.sql) and the@cipherstash/prisma-nextinstall bundle (migrations/20260601T0000_install_eql_bundle/ops.json+eql-install.generated.ts) are updated toeql-2.3.1. Databases installed with an older EQL extension must be reinstalled (stash db install) before containment / contained-by queries against SteVec columns will work.eql-2.3.1ships the_encrypted_check_cfix for SteVec storage payloads (cipherstash/encrypt-query-language#232).ProtectErrorCode(re-exported from@cipherstash/protect-ffi) gainsMATCH_REQUIRES_TEXTandUNSUPPORTED_CONFIG_VERSION. Exhaustive switches overProtectErrorCodewill need additional cases.matchindex validation: protect-ffi now rejectsmatchindexes on columns whosecast_asis not text-family ('text'/'string') withMATCH_REQUIRES_TEXT. The stack'sfreeTextSearch()builder is unaffected because it only targets string-typed columns.Encryptedciphertext shape: protect-ffi'sEncryptedtype is now a discriminated union keyed onk('ct'for scalars,'sv'for SteVec). SteVec storage payloads now place the root document ciphertext atsv[0].c. The stack'sisEncryptedPayloadruntime check continues to work because storage payloads still carryc(scalar) orsv(SteVec). The DynamoDB helpers (toEncryptedDynamoItem,SearchTermsOperation) now narrow onkbefore reading variant-only fields.ConfigError.ProtectError.codevalues are preserved; consumers that string-match onerr.messagefor config-validation errors must update.@cipherstash/wizard@0.3.0
Minor Changes
bb9764d:
stash db pushis no longer included by default instash plan/stash implagent prompts or the wizard's post-agent step. SDK users (Drizzle, Supabase, plain PostgreSQL) no longer seestash db pushbaked into their rollout/cutover walkthroughs — the encryption config lives in app code, so the database doesn't need a copy.Pass
--proxytostash init(or answer the new interactive prompt) if you query encrypted data via CipherStash Proxy. The choice is persisted to.cipherstash/context.jsonasusesProxyand is honoured bystash plan,stash impl, and the wizard's post-agent step. Existing.cipherstash/context.jsonfiles without the field default to SDK-only.Known gap:
stash encrypt cutovercurrently requires a pending EQL config registered viastash db push, so SDK-only users running the migrate-existing-column flow will hit a "No pending EQL configuration" error from cutover. Workaround: runstash db pushonce beforestash encrypt cutover. Decoupling cutover from EQL config for SDK-only users is tracked as a follow-up to #447.@cipherstash/protect-dynamodb@12.0.0
Patch Changes
f743fcc: Upgrade
@cipherstash/protect-ffito0.23.0and the bundled CipherStash EQL extension toeql-2.3.1.Breaking upstream changes adopted in this release:
buildEncryptConfignow emits{ v: 1, ... }(was{ v: 2, ... }). protect-ffi0.22.0started validating this field and rejects any value other than1with the newUNSUPPORTED_CONFIG_VERSIONerror code.0.23.0): the previously-conflatedEncryptedtype splits intoEncrypted(storage-only,crequired) and a newEncryptedQuery(search terms — scalarunique/match/orelookups andste_vec_selectorJSON path queries; noc). JSON containment queries (ste_vec_term) still return a storage-shapedEncryptedpayload.encryptQuery/encryptQueryBulknow returnEncrypted | EncryptedQuery, and the stack'sEncryptedSearchTerm/EncryptedQueryResultunions widen to match.decryptrejects query payloads at the type level. The DynamoDBSearchTermsOperationnarrows via'hm' in termrather thanterm.hm.modeforste_vecindexes changed fromcompattostandard. The two encodings are not cross-compatible. Existing JSON-searchable data that was indexed undercompatwill need to be re-encrypted to be queryable. The stack adopts the newstandarddefault — there is no longer a way to pincompatfrom the SDK.eql-2.3.1: the new SteVecstandardencoding requires matching support in the database EQL extension. The CLI's bundled SQL (packages/cli/src/sql/*.sql) and the@cipherstash/prisma-nextinstall bundle (migrations/20260601T0000_install_eql_bundle/ops.json+eql-install.generated.ts) are updated toeql-2.3.1. Databases installed with an older EQL extension must be reinstalled (stash db install) before containment / contained-by queries against SteVec columns will work.eql-2.3.1ships the_encrypted_check_cfix for SteVec storage payloads (cipherstash/encrypt-query-language#232).ProtectErrorCode(re-exported from@cipherstash/protect-ffi) gainsMATCH_REQUIRES_TEXTandUNSUPPORTED_CONFIG_VERSION. Exhaustive switches overProtectErrorCodewill need additional cases.matchindex validation: protect-ffi now rejectsmatchindexes on columns whosecast_asis not text-family ('text'/'string') withMATCH_REQUIRES_TEXT. The stack'sfreeTextSearch()builder is unaffected because it only targets string-typed columns.Encryptedciphertext shape: protect-ffi'sEncryptedtype is now a discriminated union keyed onk('ct'for scalars,'sv'for SteVec). SteVec storage payloads now place the root document ciphertext atsv[0].c. The stack'sisEncryptedPayloadruntime check continues to work because storage payloads still carryc(scalar) orsv(SteVec). The DynamoDB helpers (toEncryptedDynamoItem,SearchTermsOperation) now narrow onkbefore reading variant-only fields.ConfigError.ProtectError.codevalues are preserved; consumers that string-match onerr.messagefor config-validation errors must update.Updated dependencies [f743fcc]
@cipherstash/basic-example@1.2.11
Patch Changes
@cipherstash/prisma-next-example@0.0.3
Patch Changes
@cipherstash/bench@0.0.2
Patch Changes