Skip to content

Add defaultStringCollation option to supabaseCollectionOptions - #27

Open
ivasilov wants to merge 1 commit into
mainfrom
ivasilov/default-string-collation-lexical
Open

ivasilov wants to merge 1 commit into
mainfrom
ivasilov/default-string-collation-lexical

Conversation

@ivasilov

Copy link
Copy Markdown
Member

Summary

  • Exposes @tanstack/db's defaultStringCollation on SupabaseCollectionOptions and forwards it into queryCollectionOptions, so callers can control string-ordering collation for a collection.
  • Defaults to { stringSort: 'lexical' } (byte-order comparison) when not provided.
  • Documents the new option in the README's options table.

Test plan

  • pnpm typecheck passes
  • pnpm test passes (289/289)
  • Biome check clean on changed files

🤖 Generated with Claude Code

Exposes @tanstack/db's defaultStringCollation on SupabaseCollectionOptions and
forwards it to queryCollectionOptions, defaulting to { stringSort: 'lexical' }
so string ordering is predictable when a query's orderBy clause doesn't
specify its own compareOptions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant