Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## 25.0.0

* Added: `ClientAuth` interface returned by static factory constructors
* Added: Static factory constructors `Client.from`, `Client.fromSession`, `Client.fromDevKey`, and `Client.fromImpersonation`
* Added: Endpoint scheme validation in factory setup (rejects non-`http(s)`/`ws(s)` URLs)
* Added: `Realtime` and generated services accept factory-created `ClientAuth` clients
* Deprecated: `Client()` constructor and setter pattern remain for backwards compatibility but are marked deprecated where the analyzer supports it
* Updated: Consolidated realtime IO and browser implementations into the shared client

## 24.1.1

Comment on lines +3 to 13

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Breaking change not documented: Service.client field removed

The old Service class exposed a public final Client client field that subclasses and any downstream code could access directly (e.g., myService.client). This PR removes that field entirely — Service is now const Service(ClientAuth _) with no stored reference. Each service subclass now holds its own private _client field. Any app-layer code or third-party integration that relied on aService.client will fail to compile at 25.0.0. The CHANGELOG lists six bullet points for this release but does not mention this breaking removal, which is a significant omission for a public-API change.

* Fixed: Removed `Advisor` service and `Insight`, `InsightCTA`, `InsightList`, `Report`, `ReportList` models (admin-only endpoints, not intended for client SDKs)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Add this to your package's `pubspec.yaml` file:

```yml
dependencies:
appwrite: ^24.1.1
appwrite: ^25.0.0
```

You can install packages from the command line:
Expand Down
1 change: 1 addition & 0 deletions lib/appwrite.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import 'dart:convert';

import 'src/enums.dart';
import 'src/service.dart';
import 'src/client.dart';
import 'src/input_file.dart';
import 'models.dart' as models;
import 'enums.dart' as enums;
Expand Down
Loading