@cipherstash/protect@10.5.0
·
294 commits
to main
since this release
Minor Changes
-
db72e2c: Add
encryptQueryAPI for encrypting query terms with explicit query type selection.- New
encryptQuery()method replacescreateSearchTerms()with improved query type handling - Supports
equality,freeTextSearch, andorderAndRangequery types - Deprecates
createSearchTerms()- useencryptQuery()instead - Updates drizzle operators to use correct index selection via
queryTypeparameter
- New
-
e769740: Add encrypted JSONB query support with
searchableJson()(recommended).- New
searchableJson()schema method enables encrypted JSONB path and containment queries - Automatic query operation inference: string values become JSONPath selector queries, objects/arrays become containment queries
- Also supports explicit
queryType: 'steVecSelector'andqueryType: 'steVecTerm'for advanced use cases - JSONB path utilities (
toJsonPath,buildNestedObject,parseJsonbPath) for building encrypted JSON column queries
- New
Patch Changes
- Updated dependencies [e769740]
- @cipherstash/schema@2.1.0