Skip to content
This repository was archived by the owner on May 13, 2023. It is now read-only.

chore: publish v1.3.0 #168

Merged
merged 2 commits into from
Jan 10, 2023
Merged
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
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
## [1.3.0]

- fix: handle update and delete on record that wasn't found properly using stream [#167](https://github.com/supabase/supabase-dart/pull/167)
- feat: update gotrue to v1.4.0
- add support for [MFA](https://supabase.com/docs/guides/auth/auth-mfa)
```dart
// Start the enrollment process for a new Multi-Factor Authentication (MFA) factor
final res = await client.mfa
.enroll(issuer: 'MyFriend', friendlyName: 'MyFriendName');

// Prepares a challenge used to verify that a user has access to a MFA factor.
final res = await client.mfa.challenge(factorId: factorId1);

// Verifies a code against a challenge.
final res = await client.mfa
.verify(factorId: factorId1, challengeId: challengeId, code: getTOTP());
```
Read more about MFA with Supabase [here](https://supabase.com/docs/guides/auth/auth-mfa)
- paginate `admin.listUsers()`
```dart
auth.admin.listUsers(page: 2, perPage: 10);
```
- feat: update postgrest to v1.2.1
- fix: update realtime to v1.0.2
- export realtime presence
- feat: update storage to v1.2.0
- add transform option to `createSignedUrl()`, `getPublicUrl()`, and `.download()` to transform images on the fly
```dart
final signedUrl = await storage.from(newBucketName).createSignedUrl(uploadPath, 2000,
transform: TransformOptions(
width: 100,
height: 100,
));
final publicUrl = storage.from(bucket).getPublicUrl(path,
transform: TransformOptions(width: 200, height: 300));
final file = await storage.from(newBucketName).download(uploadPath,
transform: TransformOptions(
width: 200,
height: 200,
));
```


## [1.2.0]

- feat: add storage retry option to enable storage to auto retry failed upload attempts [(#163)](https://github.com/supabase/supabase-dart/pull/163)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const version = '1.2.0';
const version = '1.3.0';
10 changes: 5 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: supabase
description: A dart client for Supabase. This client makes it simple for developers to build secure and scalable products.
version: 1.2.0
version: 1.3.0
homepage: 'https://supabase.io'
repository: 'https://github.com/supabase/supabase-dart'

Expand All @@ -9,11 +9,11 @@ environment:

dependencies:
functions_client: ^1.0.0
gotrue: ^1.2.0
gotrue: ^1.4.0
http: ^0.13.4
postgrest: ^1.1.1
realtime_client: ^1.0.0
storage_client: ^1.1.0
postgrest: ^1.2.1
realtime_client: ^1.0.2
storage_client: ^1.2.0
rxdart: ^0.27.5

dev_dependencies:
Expand Down