Skip to content

Commit d7fc7ca

Browse files
authored
chore: Update to latest drift packages (#239)
1 parent 546215c commit d7fc7ca

File tree

9 files changed

+237
-99
lines changed

9 files changed

+237
-99
lines changed

examples/tasks/celest/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ environment:
88
dependencies:
99
celest: ^1.0.0
1010
celest_core: ^1.0.0
11-
drift: '>=2.21.0 <2.22.0'
11+
drift: '>=2.25.0 <2.26.0'
1212
drift_hrana: ^1.0.2
1313
meta: ^1.12.0
1414

@@ -26,6 +26,6 @@ dependency_overrides:
2626

2727
dev_dependencies:
2828
build_runner: ^2.4.13
29-
drift_dev: '>=2.21.0 <2.22.0'
29+
drift_dev: '>=2.25.0 <2.26.0'
3030
lints: ^4.0.0
3131
test: ^1.25.0

packages/celest/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies:
1919
collection: ^1.18.0
2020
convert: ^3.1.1
2121
crypto_keys: ^0.3.0
22-
drift: '>=2.21.0 <2.22.0'
22+
drift: '>=2.25.0 <2.26.0'
2323
drift_hrana: ^1.0.2
2424
file: ^7.0.1
2525
fixnum: ^1.1.0
@@ -44,7 +44,7 @@ dev_dependencies:
4444
build_runner: ^2.4.13
4545
celest_lints:
4646
path: ../celest_lints
47-
drift_dev: '>=2.21.0 <2.22.0'
47+
drift_dev: '>=2.25.0 <2.26.0'
4848
process: ^5.0.2
4949
pub_semver: ^2.1.4
5050
stream_transform: ^2.1.0

services/celest_cloud_auth/lib/src/database/auth_database.drift.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// dart format width=80
12
// ignore_for_file: type=lint
23
import 'package:drift/drift.dart' as i0;
34
import 'package:celest_cloud_auth/src/database/schema/users.drift.dart' as i1;

services/celest_cloud_auth/lib/src/database/schema/auth.drift.dart

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// dart format width=80
12
// ignore_for_file: type=lint
23
import 'package:drift/drift.dart' as i0;
34
import 'package:celest_cloud_auth/src/crypto/crypto_key_model.dart' as i1;
@@ -10,6 +11,8 @@ import 'package:celest_cloud_auth/src/database/schema/converters/auth_converters
1011
as i6;
1112
import 'package:drift/internal/modular.dart' as i7;
1213
import 'dart:async' as i8;
14+
import 'package:celest_cloud_auth/src/database/schema/cedar.drift.dart' as i9;
15+
import 'package:celest_cloud_auth/src/database/schema/users.drift.dart' as i10;
1316

1417
typedef $CryptoKeysCreateCompanionBuilder = i3.CryptoKeysCompanion Function({
1518
required i2.Uint8List cryptoKeyId,
@@ -1875,30 +1878,30 @@ class Cork extends i0.DataClass implements i0.Insertable<i3.Cork> {
18751878
/// The unique identifier for the cork and its root key.
18761879
final i2.Uint8List corkId;
18771880

1878-
/// This is typically derived from the organization's root key.
1879-
///
18801881
/// The ID of the HMAC key used to sign the cork.
1882+
///
1883+
/// This is typically derived from the organization's root key.
18811884
final i2.Uint8List cryptoKeyId;
18821885

1883-
/// For example, `Celest::User` or `Celest::ServiceAccount`.
1884-
///
18851886
/// The Cedar type of the bearer entity.
1887+
///
1888+
/// For example, `Celest::User` or `Celest::ServiceAccount`.
18861889
final String? bearerType;
18871890

18881891
/// The unique identifier of the bearer entity.
18891892
final String? bearerId;
18901893

1891-
/// For example, `Celest::Service` or `Celest::Api`.
1892-
///
18931894
/// The Cedar type of the audience entity.
1895+
///
1896+
/// For example, `Celest::Service` or `Celest::Api`.
18941897
final String? audienceType;
18951898

18961899
/// The unique identifier of the audience entity.
18971900
final String? audienceId;
18981901

1899-
/// For example, `Celest::Organization` or `Celest::Service`.
1900-
///
19011902
/// The Cedar type of the issuer entity.
1903+
///
1904+
/// For example, `Celest::Organization` or `Celest::Service`.
19021905
final String? issuerType;
19031906

19041907
/// The unique identifier of the issuer entity.
@@ -2525,4 +2528,6 @@ class AuthDrift extends i7.ModularAccessor {
25252528
i7.ReadDatabaseContainer(attachedDatabase).resultSet<i3.Corks>('corks');
25262529
i3.OtpCodes get otpCodes => i7.ReadDatabaseContainer(attachedDatabase)
25272530
.resultSet<i3.OtpCodes>('otp_codes');
2531+
i9.CedarDrift get cedarDrift => this.accessor(i9.CedarDrift.new);
2532+
i10.UsersDrift get usersDrift => this.accessor(i10.UsersDrift.new);
25282533
}

0 commit comments

Comments
 (0)