Skip to content

Latest commit

 

History

History
72 lines (45 loc) · 2.4 KB

File metadata and controls

72 lines (45 loc) · 2.4 KB

@cipherstash/schema

2.2.0

Minor Changes

  • b0e56b8: Upgrade protect-ffi to 0.21.0 and enable array_index_mode for searchable JSON

    • Upgrade @cipherstash/protect-ffi to 0.21.0 across all packages
    • Enable array_index_mode: 'all' on STE vec indexes so JSON array operations (jsonb_array_elements, jsonb_array_length, array containment) work correctly
    • Delegate credential resolution entirely to protect-ffi's withEnvCredentials
    • Download latest EQL at build/runtime instead of bundling hardcoded SQL files

2.1.0

Minor Changes

  • 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' and queryType: 'steVecTerm' for advanced use cases
    • JSONB path utilities (toJsonPath, buildNestedObject, parseJsonbPath) for building encrypted JSON column queries

2.0.2

Patch Changes

  • 532ac3a: Corrected types documentation in README to match Typedoc. int -> number text -> string

2.0.1

Patch Changes

  • ff4421f: Expanded typedoc documentation

2.0.0

Major Changes

  • 9005484: Include EQL 2.1.8 in package distribution

1.1.0

Minor Changes

  • d8ed4d4: Exported all types for packages looking for deeper integrations with Protect.js.

1.0.0

Major Changes

  • 788dbfc: Added JSON and INT data type support and update FFI to v0.17.1 with x86_64 musl environment platform support.

    • Update @cipherstash/protect-ffi from 0.16.0 to 0.17.1 with support for x86_64 musl platforms.
    • Add searchableJson() method to schema for JSON field indexing (the search operations still don't work but this interface exists)
    • Refactor type system: EncryptedPayload → Encrypted, add JsPlaintext
    • Add comprehensive test suites for JSON, integer, and basic encryption
    • Update encryption format to use 'k' property for searchable JSON
    • Remove deprecated search terms tests for JSON fields
    • Simplify schema data types to text, int, json only
    • Update model helpers to handle new encryption format
    • Fix type safety issues in bulk operations and model encryption

0.1.0

Minor Changes

  • d0b02ea: Released initial package for CipherStash Encrypt schemas.