Skip to content

Releases: gmpassos/shared_map

v1.1.8

05 Jan 07:53
24cc4f0
Compare
Choose a tag to compare
Merge v1.1.8 - onInitialize + onAbsent


 - `SharedMap`:
   - Add `onInitialize` and `onAbsent` callback:

 - New `SharedMapExtension`:
   - Added `isAuxiliaryInstance`, `isMainInstance`, `isSharedObject`, `asSharedObject`.

 - test: ^1.24.9
 - coverage: ^1.7.2

v1.1.7

03 Dec 20:30
1415042
Compare
Choose a tag to compare
Merge v1.1.7 - optimize

v1.1.7 - optimize

 - `SharedObjectField`:
   - Expose getter `instanceHandler` to allow implementation override.
   - Optimize `sharedObject` resolution.

v1.1.6

01 Dec 23:15
1b6b82c
Compare
Choose a tag to compare
Merge v1.1.6 - SharedMap.update


 - `SharedMap`:
   - Added `update` method.

v1.1.5

30 Nov 07:36
Compare
Choose a tag to compare
- lints: ^3.0.0

v1.1.4

30 Nov 07:21
Compare
Choose a tag to compare
- Dart CI: Added `test_chrome`.
- `shared_map_generic.dart`:
  - Fixed `createSharedMap` with a `NotSharedStore`.

v1.1.3

30 Nov 07:00
267882c
Compare
Choose a tag to compare
Merge v1.1.3 - Async resolution

v1.1.3 - Async resolution

 - `SharedStore`:
   - Added `getSharedObject`, `getSharedObjectReference` and `registerSharedObject`.
 - `SharedObjectField`:
   - Added `sharedObjectAsync` and `isResolvingReference`.
 - `SharedMap`:
   - Shared to asynchronous "constructors" (static methods): `fromID`, `fromUUID`, `from`.

v1.1.2

29 Nov 22:55
c8183c3
Compare
Choose a tag to compare
Merge v1.1.2 - SharedObjectField



 - New `SharedObjectReferenceable`: `SharedObject` + `ReferenceableType`
 - `SharedObjectIsolate` now implements `SharedObjectReferenceable<R>`.
 - New `SharedReferenceIsolate`.
 - New `SharedFieldInstanceHandler` and `SharedObjectField`.
 - `SharedStoreField` and `SharedMapField`:
   - Now extends `SharedObjectField` to reuse `SharedObjectField` implementation.
 - `ReferenceableType`:
   - Added `getSharedObject`, `getOrCreateSharedObject` and `disposeSharedObject`.
 - Improve documentation.

v1.1.1

27 Nov 05:20
Compare
Choose a tag to compare
- `SharedStoreIsolateAuxiliary`: fix initialization.

v1.1.0

27 Nov 04:49
5a8897d
Compare
Choose a tag to compare
Merge v1.1.0 - expose `SharedObjectIsolate`



 - Expose `SharedObject` implementation using `Isolate`:
   - `SharedObjectIsolate`:
     - Implementations: `SharedObjectIsolateMain` and `SharedObjectIsolateAuxiliary`.
   - New `SharedObjectIsolateMessage`.
     - Implementations: `SharedObjectIsolateRequestMessage` and `SharedObjectIsolateResponseMessage`.

 - New libraries:
   - 'package:shared_map/shared_object.dart'
   - 'package:shared_map/shared_object_isolate.dart'

 - `SharedObject`:
   - Renamed `isIsolateCopy` to `isAuxiliaryInstance`.
 - Renamed `SharedType` to `ReferenceableType`.
 - Renamed `SharedStoreIsolateServer` to `SharedStoreIsolateMain`.
 - Renamed `SharedStoreIsolateClient` to `SharedStoreIsolateAuxiliary`.
 - Renamed `SharedMapIsolateServer` to `SharedMapIsolateMain`.
 - Renamed `SharedMapIsolateClient` to `SharedMapIsolateAuxiliary`.

v1.0.10

24 Nov 04:09
49914e5
Compare
Choose a tag to compare
Merge v1.0.10 - async-call-cache

 - `SharedMapCached`:
   - Introduces async call caching for `get`, `keys`, `values`, `entries` and `length` operations,
     to avoid simultaneous asynchronous calls (fetching) for the same operation. 

 - `SharedStoreIsolateServer`:
   - Fix  call to `getSharedMap<K,V>()` with correct `K` and `V` casting when requested by `SharedStoreIsolateClient`.

 - Improve `SharedMap.toString` implementations.