Skip to content

Commit 907a81d

Browse files
committed
Upgrade minimum SDK to 3.4 as stack_trace will need it anyway.
1 parent 9daf08c commit 907a81d

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 3.4.9
44

55
- Better exception stacktraces (in some cases) using `package:stack_trace`.
6+
- With that dependency, upgraded minimum SDK to `3.4`.
67

78
## 3.4.8
89

lib/src/messages/client_messages.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ class StartupMessage extends ClientMessage {
6666
(e('client_encoding'), buffer.encodingName),
6767
(e('database'), e(_databaseName)),
6868
(e('TimeZone'), e(_timeZone)),
69-
if (_username != null) (e('user'), e(_username!)),
69+
if (_username != null) (e('user'), e(_username)),
7070
if (_replication != ReplicationMode.none.value)
7171
(e('replication'), e(_replication)),
7272
if (_applicationName != null)
73-
(e('application_name'), e(_applicationName!)),
73+
(e('application_name'), e(_applicationName)),
7474
];
7575

7676
final propertiesLength = properties

lib/src/v3/connection.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ class _PgResultStreamSubscription
844844
StackTrace _trace() => Chain([
845845
Trace.current(1),
846846
_callerTrace,
847-
if (_parentTrace != null) _parentTrace!,
847+
if (_parentTrace != null) _parentTrace,
848848
]);
849849

850850
@override

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ topics:
99
- postgres
1010

1111
environment:
12-
sdk: '>=3.0.0 <4.0.0'
12+
sdk: '>=3.4.0 <4.0.0'
1313

1414
dependencies:
1515
buffer: ^1.2.2

0 commit comments

Comments
 (0)