Skip to content

feat: SDK update for version 19.1.0#303

Merged
ChiragAgg5k merged 1 commit intomasterfrom
dev
Apr 27, 2026
Merged

feat: SDK update for version 19.1.0#303
ChiragAgg5k merged 1 commit intomasterfrom
dev

Conversation

@ChiragAgg5k
Copy link
Copy Markdown
Member

@ChiragAgg5k ChiragAgg5k commented Apr 27, 2026

This PR contains updates to the SDK for version 19.1.0.

What's Changed

  • Added --where, --sort-asc, --sort-desc, --limit, --offset, --cursor-after, and --cursor-before flags on list commands across services
  • Added --select flag on databases list-documents, tablesdb list-rows, and other row/document list commands
  • Added a hint after query-related errors that points to the new flag-based filters
  • Updated --queries description to mark it as the legacy raw-JSON option, recommending the new flag-based filters for common cases
  • Updated bundled examples to demonstrate --limit on list commands

@ChiragAgg5k ChiragAgg5k changed the title feat: Command Line SDK update for version 19.1.0 feat: SDK update for version 19.1.0 Apr 27, 2026
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 27, 2026

Greptile Summary

This PR bumps the CLI SDK to version 19.1.0 and introduces a new lib/commands/utils/query.ts utility that adds ergonomic --where, --sort-asc, --sort-desc, --limit, --offset, --cursor-after, and --cursor-before flags to every list command across all services, replacing the need to hand-craft raw Appwrite JSON query strings. A printQueryErrorHint helper is also added to parser.ts to surface a human-readable tip when the server returns query-related errors.

Confidence Score: 4/5

Safe to merge; all findings are P2 style/clarity issues with no logic bugs or security concerns.

The core buildQueries / parseWhereQuery logic is correct — operator precedence is right, numeric edge cases (Infinity/NaN) are handled, and the pre-serialized where values flow correctly into the SDK calls. Only minor issues were found: a misleading internal comment, an unexposed select field, and duplicative help text.

lib/commands/utils/query.ts — unexposed select field and misleading comment worth cleaning up before the pattern spreads.

Important Files Changed

Filename Overview
lib/commands/utils/query.ts New utility providing parseWhereQuery, buildQueries, and collectQueryValue helpers; logic is sound but select field is dead code and a comment is misleading
lib/parser.ts Adds printQueryErrorHint to surface a human-readable tip when Appwrite returns query-related error messages; placed correctly in all three error-handling branches
lib/commands/services/databases.ts All list commands wired to new buildQueries helper with --where/--sort-asc/--sort-desc/--limit/--offset/--cursor-* flags; --queries help text is redundant
lib/commands/services/tables-db.ts Mirrors databases.ts changes for the TablesDB service; same patterns applied consistently
lib/commands/services/messaging.ts List commands updated with ergonomic query flags; log/pagination-only endpoints correctly receive only --limit/--offset
lib/constants.ts Version bumped from 19.0.0 to 19.1.0
install.sh Download URL version bumped to 19.1.0
install.ps1 Windows download URLs bumped to 19.1.0 for both x64 and arm64
package.json Version bumped to 19.1.0; tmp package override added to 0.2.5
scoop/appwrite.config.json Scoop manifest URLs and version updated to 19.1.0

Reviews (1): Last reviewed commit: "chore: update Command Line SDK to 19.1.0" | Re-trigger Greptile

Comment thread lib/commands/utils/query.ts
Comment thread lib/commands/utils/query.ts
Comment thread lib/commands/services/databases.ts
@ChiragAgg5k ChiragAgg5k merged commit 9f704c2 into master Apr 27, 2026
2 checks passed
@ChiragAgg5k ChiragAgg5k deleted the dev branch April 27, 2026 05:45
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.

2 participants