Skip to content

Commit

Permalink
v1.1.5
Browse files Browse the repository at this point in the history
- lints: ^3.0.0
  • Loading branch information
gmpassos committed Nov 30, 2023
1 parent b6c832e commit 81285ff
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.5

- lints: ^3.0.0

## 1.1.4

- Dart CI: Added `test_chrome`.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/shared_map_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ class SharedStoreField extends SharedObjectField<SharedStoreReference,
SharedStoreField._fromID(super.sharedObjectID, {super.sharedObjectReference})
: super.fromID(instanceHandler: _instanceHandler);

SharedStoreField._fromIDGeneric(String id)
: super.fromID(id, instanceHandler: _instanceHandlerGeneric);
SharedStoreField._fromIDGeneric(super.id)
: super.fromID(instanceHandler: _instanceHandlerGeneric);

factory SharedStoreField(String id) => _instanceHandler.fromID(id);

Expand Down
4 changes: 2 additions & 2 deletions lib/src/shared_map_generic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class SharedStoreGeneric implements SharedStore {
if (ref != null) {
var prev = ref.target;
if (prev == null) {
sharedObjects.remove(ref);
sharedObjects.remove(id);
} else {
return prev as O;
}
Expand Down Expand Up @@ -101,7 +101,7 @@ class SharedStoreGeneric implements SharedStore {
if (ref != null) {
var prev = ref.target;
if (prev == null) {
sharedObjects.remove(ref);
sharedObjects.remove(id);
} else {
if (identical(prev, o)) {
return;
Expand Down
6 changes: 3 additions & 3 deletions lib/src/shared_map_isolate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mixin _SharedStoreIsolate implements SharedStore {
if (ref != null) {
var prev = ref.target;
if (prev == null) {
sharedObjects.remove(ref);
sharedObjects.remove(id);
} else {
return prev as O;
}
Expand All @@ -59,7 +59,7 @@ mixin _SharedStoreIsolate implements SharedStore {
if (ref != null) {
var prev = ref.target;
if (prev == null) {
sharedObjects.remove(ref);
sharedObjects.remove(id);
} else {
if (identical(prev, o)) {
return;
Expand All @@ -83,7 +83,7 @@ enum _SharedStoreIsolateOperation {
class _SharedStoreIsolateMain
extends SharedObjectIsolateMain<SharedStoreReferenceIsolate>
with _SharedStoreIsolate {
_SharedStoreIsolateMain(String id) : super(id) {
_SharedStoreIsolateMain(super.id) {
_setupInstance();
}

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: shared_map
description: Offers a versatile, synchronized Map for efficient sharing between Dart application parts, including Isolates or external apps.
version: 1.1.4
version: 1.1.5
repository: https://github.com/gmpassos/shared_map

environment:
Expand All @@ -10,7 +10,7 @@ environment:
# collection: ^1.18.0

dev_dependencies:
lints: ^2.1.1
lints: ^3.0.0
test: ^1.24.4
dependency_validator: ^3.2.2
coverage: ^1.2.0
5 changes: 2 additions & 3 deletions test/shared_object_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,11 @@ class MyCounterField

final SharedStoreField _sharedStoreField;

MyCounterField._fromID(String id, SharedStoreReference sharedStoreReference,
MyCounterField._fromID(super.id, SharedStoreReference sharedStoreReference,
{super.sharedObjectReference})
: _sharedStoreField =
SharedStoreField.from(sharedStoreReference: sharedStoreReference),
super.fromID(id,
instanceHandler: _instanceHandler(sharedStoreReference));
super.fromID(instanceHandler: _instanceHandler(sharedStoreReference));

SharedStore get sharedStore => _sharedStoreField.sharedStore;
}

0 comments on commit 81285ff

Please sign in to comment.