Skip to content

feat: SDK update for version 24.1.0 - #348

Merged
ChiragAgg5k merged 3 commits into
masterfrom
dev
Jul 30, 2026
Merged

feat: SDK update for version 24.1.0#348
ChiragAgg5k merged 3 commits into
masterfrom
dev

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 24.1.0.

What's Changed

  • Added: previousKey on an attribute or column renames it in place on push
  • Fixed: client --endpoint reuses or switches an existing session instead of minting an unauthenticated stub
  • Fixed: client --reset asks for confirmation before signing out signed-in accounts
  • Fixed: Commands that need a session now list signed-in accounts and suggest login --switch
  • Fixed: Regional cloud endpoints match their canonical host when resolving a session
  • Fixed: push updates attributes in place instead of recreating them where the API allows it
  • Fixed: push resizes a string attribute in place instead of recreating it
  • Fixed: push no longer recreates indexes whose attributes were renamed
  • Fixed: push aborts on a failed attribute update instead of continuing past it
  • Fixed: push waits for index deletion to finish before recreating indexes
  • Fixed: push leaves encrypt untouched when the config omits it
  • Fixed: logout signs out the selected account instead of the current session id
  • Fixed: Table output wraps long reasons instead of truncating them mid-word
  • Updated: Project policy limits for password history, session duration, session count, and users

Note on the @appwrite.io/console pin

package.json, package-lock.json, and bun.lock pin @appwrite.io/console@15.8.0, applied by hand rather than coming from the generator template, which still pins 15.7.0. The generated CLI calls tablesdb create/update with syncMode, which 15.7.0 does not declare, so tsc fails against it.

The template fix is open as appwrite/sdk-generator#1708 and should land before the next CLI generation, otherwise the next run will revert this pin.

Verified locally: npm ci, bun install --frozen-lockfile, tsc, and all three esbuild bundles pass.

master received 24.0.0 as a squash merge (#347), so the same change exists
under a different commit on each branch. The trees are identical, so dev's
tree is kept as-is.
@greptile-apps

greptile-apps Bot commented Jul 30, 2026

Copy link
Copy Markdown

Greptile Summary

Updates the CLI SDK to version 24.1.0.

  • Adds in-place attribute and column renaming, resizing, update failure handling, and index-deletion synchronization during push.
  • Improves account selection, endpoint matching, logout behavior, and reset confirmation.
  • Adds dedicated database replication sync-mode flags and updates project policy limits.
  • Updates output wrapping, package dependencies, documentation, and release installers.

Confidence Score: 5/5

The PR appears safe to merge, with no concrete changed-code defects identified.

The updated session management, schema reconciliation, polling, generated command wiring, and release metadata remain internally consistent across the reviewed call paths.

Important Files Changed

Filename Overview
lib/commands/utils/attributes.ts Reworks schema diffing and execution to support renames and in-place updates while waiting for destructive operations to complete.
lib/commands/push.ts Reconciles renamed attribute and column references in index snapshots before index diffing.
lib/commands/utils/pools.ts Adds paginated index-deletion polling and corrects attribute-deletion key handling.
lib/auth/session.ts Adds endpoint-aware session lookup, authenticated-session classification, and signed-in account discovery.
lib/commands/generic.ts Improves client endpoint switching, reset confirmation, logout targeting, and recoverable authentication guidance.
lib/config.ts Adds canonical matching for regional Cloud endpoints and trailing-slash variants.
lib/commands/config.ts Adds the local-only previousKey rename hint to collection attributes and table columns.
lib/commands/config-validations.ts Validates previousKey uniqueness and prevents ambiguous or self-referential rename hints.
lib/commands/services/tablesdb.ts Adds sync-mode options to dedicated database create and update commands.
lib/parser.ts Makes table rendering ANSI-aware and wraps long cell content at word boundaries.
package.json Bumps the CLI to 24.1.0 and pins the console SDK version needed by the generated command signatures.

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

@ChiragAgg5k
ChiragAgg5k merged commit 32c1fbb into master Jul 30, 2026
2 checks passed
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