Skip to content

Commit

Permalink
chore(deps): update Dart SDK constraints for compatibility
Browse files Browse the repository at this point in the history
Updated the minimum required Dart SDK from 3.2.0 to 3.0.0 to ensure compatibility.
  • Loading branch information
EchoEllet committed Nov 3, 2024
1 parent db8a4ed commit 500a0f8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 10.8.2

* Updated the minimum required Dart SDK from `3.2.0` to `3.0.0` for improved compatibility.

## 10.8.1

* Seperate [dart_quill_delta](https://pub.dev/packages/dart_quill_delta) version from [flutter_quill](https://pub.dev/packages/flutter_quill). Discussed in [Flutter Quill #2259](https://github.com/singerdmx/flutter-quill/issues/2259)
8 changes: 4 additions & 4 deletions lib/src/operation/operation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Operation {

/// Rich-text attributes set by this operation, can be `null`.
Map<String, dynamic>? get attributes =>
_attributes == null ? null : Map<String, dynamic>.from(_attributes);
_attributes == null ? null : Map<String, dynamic>.from(_attributes!);
final Map<String, dynamic>? _attributes;

/// Creates new [Operation] from JSON payload.
Expand Down Expand Up @@ -110,7 +110,7 @@ class Operation {
bool get isRetain => key == Operation.retainKey;

/// Returns `true` if this operation has no attributes, e.g. is plain text.
bool get isPlain => _attributes == null || _attributes.isEmpty;
bool get isPlain => (_attributes == null || _attributes!.isEmpty);

/// Returns `true` if this operation sets at least one attribute.
bool get isNotPlain => !isPlain;
Expand Down Expand Up @@ -150,9 +150,9 @@ class Operation {

@override
int get hashCode {
if (_attributes != null && _attributes.isNotEmpty) {
if (_attributes != null && _attributes!.isNotEmpty) {
final attrsHash =
hashObjects(_attributes.entries.map((e) => hash2(e.key, e.value)));
hashObjects(_attributes!.entries.map((e) => hash2(e.key, e.value)));
return hash3(key, value, attrsHash);
}
return hash2(key, value);
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: dart_quill_delta
description: "A Dart port of quill-js-delta, offering a simple and expressive JSON format for describing rich-text content and its changes."
version: 10.8.1
version: 10.8.2
homepage: https://github.com/FlutterQuill/dart-quill-delta
repository: https://github.com/FlutterQuill/dart-quill-delta
issue_tracker: https://github.com/FlutterQuill/dart-quill-delta/issues
documentation: https://github.com/FlutterQuill/dart-quill-delta

environment:
sdk: ^3.2.3
sdk: ^3.0.0

dependencies:
collection: ^1.17.0
diff_match_patch: ^0.4.1
quiver: ^3.2.1

dev_dependencies:
lints: ^4.0.0
test: ^1.24.0
lints: ^5.0.0
test: ^1.25.8

0 comments on commit 500a0f8

Please sign in to comment.