-
Notifications
You must be signed in to change notification settings - Fork 3
Upgrade @cipherstash/protect-ffi to 0.20.1 and new encryptQuery() API #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
806593b
chore(protect): upgrade @cipherstash/protect-ffi to 0.20.1
tobyhede 55e38d0
feat(protect): add encryptQuery API for query term encryption
tobyhede 59aa419
refactor(protect): deprecate createSearchTerms in favor of encryptQuery
tobyhede b4b31c5
fix(protect): address encryptQuery code review issues
tobyhede fea303d
test(protect): expand encryptQuery test coverage from 16 to 36 tests
tobyhede 6956b39
fix(drizzle): use encryptQuery with queryType for correct index selec…
tobyhede 7691953
docs(protect): add TSDoc for encryptQuery API types and operations
tobyhede db72e2c
chore(protect): add changeset for encryptQuery API
tobyhede c03f1f0
fix(protect): address PR #276 code review feedback
tobyhede e7531ce
refactor(protect): extract shared helpers and test fixtures for encry…
tobyhede afb448a
docs(changeset): use public QueryTypeName values instead of FFI names
tobyhede 0f8cc78
fix(protect): export LockContext as value and fix typo
tobyhede a9df691
refactor(protect): migrate createSearchTerms usage to encryptQuery
tobyhede 76f0857
fix(protect): add encryptedToCompositeLiteral helper for Supabase que…
tobyhede 3395d28
feat(protect): add returnType support to encryptQuery batch API
tobyhede 921a59b
refactor(protect): address code review suggestions for returnType
tobyhede ac23cfd
fix(protect): add null guards to composite literal helpers
tobyhede a7cee20
docs(protect): deprecate encryptedToEscapedCompositeLiteral helper
tobyhede 01042d1
chore: cleanup
tobyhede 9c87c82
test(protect): assert EQL version 2 explicitly in encryptQuery tests
tobyhede d1273ef
feat(protect): validate number + match index incompatibility in encry…
tobyhede 5981406
test(protect): add test for null lockContext from getLockContext
tobyhede ec3be12
chore: remove hallucination
tobyhede 203f6a2
fix(protect): correct Result type handling in validateNumericValue re…
tobyhede File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| "@cipherstash/protect": minor | ||
| "@cipherstash/drizzle": patch | ||
| --- | ||
|
|
||
| Add `encryptQuery` API for encrypting query terms with explicit query type selection. | ||
|
|
||
| - New `encryptQuery()` method replaces `createSearchTerms()` with improved query type handling | ||
| - Supports `equality`, `freeTextSearch`, and `orderAndRange` query types | ||
| - Deprecates `createSearchTerms()` - use `encryptQuery()` instead | ||
| - Updates drizzle operators to use correct index selection via `queryType` parameter |
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.