Skip to content

feat: Flutter SDK update for version 25.3.0#325

Merged
ChiragAgg5k merged 4 commits into
mainfrom
dev
Jul 13, 2026
Merged

feat: Flutter SDK update for version 25.3.0#325
ChiragAgg5k merged 4 commits into
mainfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Jul 13, 2026

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 25.3.0.

What's Changed

  • Added: Client.setBearer() method for OAuth access token authentication
  • Added: Query.vectorDot, Query.vectorCosine, Query.vectorEuclidean vector similarity query methods
  • Added: appwrite value to OAuthProvider enum
  • Added: Locale model fields: city, timeZone, postalCode, latitude, longitude, ISP and connection details
  • Updated: Log model docs now include hidden user type

@greptile-apps

greptile-apps Bot commented Jul 13, 2026

Copy link
Copy Markdown

Greptile Summary

This PR bumps the Flutter SDK to version 25.3.0, adding OAuth bearer token authentication, three vector similarity query methods, an appwrite OAuth provider enum value, and eleven new optional fields on the Locale model.

  • setBearer(): Added to Client, ClientBase, ClientBrowser, and ClientIO; both platform implementations correctly set the Authorization: Bearer <token> header.
  • Vector queries: vectorDot, vectorCosine, and vectorEuclidean follow the same [vector] wrapping convention used by existing geo query methods (intersects, crosses, etc.), producing the expected nested JSON structure via toJson().
  • Locale model: New fields (city, timeZone, postalCode, latitude, longitude, ASN/ISP/connection details) are all nullable with consistent ?.toString() / ?.toDouble() parsing in fromMap.

Confidence Score: 5/5

The PR is safe to merge — all changes are additive, follow established conventions, and no existing behaviour is altered.

Changes are purely additive: new methods, new enum value, new nullable model fields, and a version bump. Each implementation follows the exact same pattern as its nearest neighbour in the codebase, and the Bearer prefix is correctly formatted in both client implementations.

No files require special attention.

Important Files Changed

Filename Overview
lib/query.dart Adds vectorDot, vectorCosine, and vectorEuclidean query methods; follows the same [vector] wrapping pattern as existing geo query methods (intersects, crosses, etc.).
lib/src/client_base.dart Adds abstract setBearer(value) override; follows existing untyped-parameter pattern used throughout this file.
lib/src/client_browser.dart Implements setBearer with correct "Bearer $value" Authorization header; also bumps x-sdk-version to 25.3.0.
lib/src/client_io.dart Implements setBearer with correct "Bearer $value" Authorization header; also bumps x-sdk-version to 25.3.0.
lib/src/models/locale.dart Adds 11 new optional fields (city, timeZone, postalCode, lat/long, ASN, ISP, connection info); all correctly typed as nullable with appropriate fromMap/toMap handling.
lib/src/enums/o_auth_provider.dart Adds appwrite OAuth provider in correct alphabetical position in the enum.
lib/src/models/log.dart Doc-only change: adds 'hidden' to the list of possible userType values.
pubspec.yaml Version bumped from 25.2.0 to 25.3.0; consistent with changes in README.md, client headers, and CHANGELOG.
test/src/models/execution_list_test.dart Adds missing import for enums.dart; no logic changes.
CHANGELOG.md Documents all 25.3.0 additions accurately.

Reviews (2): Last reviewed commit: "Commit from GitHub Actions (Format and p..." | Re-trigger Greptile

Comment thread lib/src/client_browser.dart
Comment thread lib/src/client_io.dart
Comment thread lib/src/client_base.dart
@ChiragAgg5k ChiragAgg5k merged commit 02bdcd4 into main Jul 13, 2026
3 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