Skip to content

Commit c7f8d65

Browse files
committed
**Fix**:
- Fixed the unit tests for *ObservableDictionary* that was preventing some builds to run
1 parent 81d8cac commit c7f8d65

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ All notable changes to this package will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.6.4] - 2024-11-13
8+
9+
**Fix**:
10+
- Fixed the unit tests for *ObservableDictionary* that was preventing some builds to run
11+
712
## [0.6.3] - 2024-11-02
813

914
**Fix**:
1015
- Fixed the compilation issues of *ObservableDictionary*
1116

1217
## [0.6.2] - 2024-11-02
1318

19+
**New**:
1420
- Added the *ObservableUpdateFlag* to help performance when updating subscribers to the *ObservableDictionary*. By default is set *ObservableUpdateFlag.KeyUpdateOnly*
1521

1622
**Fix**:
@@ -23,31 +29,37 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2329

2430
## [0.6.0] - 2023-08-05
2531

32+
**Changed**:
2633
- Improved the *ObservableResolverList* and *ObservableResolverDictionary* data types to properly resolve lists and dictionaries with different data types from the original collection.
2734

2835
## [0.5.1] - 2023-09-04
2936

37+
**New**:
3038
- Added StructPair data type to support both object and struct type containers, improving memory usage performance.
3139

3240
**Fix**:
3341
- Fixed the dispose extension methods for GameObject and Object, removing pragma directives and adding null reference check in GetValid method to avoid unwanted exceptions
3442

3543
## [0.5.0] - 2023-08-05
3644

45+
**New**:
3746
- Added **floatP**, a deterministic floating-point number type, enhancing precision and predictability in mathematical operations. Including arithmetic and comparison operators for floatP to support complex calculations and conversion methods between floatP and float types.
3847

3948
## [0.4.0] - 2023-07-30
4049

50+
**New**:
4151
- Added utility methods and extensions for Unity's Object and GameObject types, enhancing the codebase's functionality.
4252
- Introduced a SerializableType struct for viewing, modifying, and saving types from the inspector, with serialization support and compatibility with filter attributes.
4353

4454
## [0.3.0] - 2023-07-28
4555

56+
**New**:
4657
- Added support for observing field updates with previous and current values in the ObservableField class.
4758
- Introduced a UnitySerializedDictionary class that allows serialization of dictionaries in Unity.
4859

4960
## [0.2.0] - 2020-09-28
5061

62+
**New**:
5163
- Added new *ObservableResolverList*, *ObservableResolverDictionary* & *ObservableResolverField* to allow to create observable types without referencing the collection directly
5264
- Added Unit tests to all data types in the project
5365

@@ -58,6 +70,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
5870

5971
## [0.1.1] - 2020-08-31
6072

73+
**Changed**:
6174
- Renamed Assembly Definitions to match this package
6275
- Removed unnecessary files
6376

Tests/Editor/ObservableDictionaryTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public void InvokeUpdateCheck()
191191
_dictionary.InvokeUpdate(_key);
192192

193193
_caller.DidNotReceive().Call(Arg.Any<int>(), Arg.Any<int>(), Arg.Any<int>(), ObservableUpdateType.Added);
194-
_caller.Received(2).Call(_key, 0, 0, ObservableUpdateType.Updated);
194+
_caller.Received().Call(_key, 0, 0, ObservableUpdateType.Updated);
195195
_caller.DidNotReceive().Call(Arg.Any<int>(), Arg.Any<int>(), Arg.Any<int>(), ObservableUpdateType.Removed);
196196
}
197197

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "com.gamelovers.dataextensions",
33
"displayName": "Unity Data Type Extensions",
44
"author": "Miguel Tomas",
5-
"version": "0.6.3",
5+
"version": "0.6.4",
66
"unity": "2022.3",
77
"license": "MIT",
88
"description": "This package extends various sets of data types to be used in any type of data containers or persistent serializable data",

0 commit comments

Comments
 (0)