From c7f8d656891c0a4fa2cbf95945ab9c923d1be41b Mon Sep 17 00:00:00 2001 From: CoderGamester Date: Wed, 13 Nov 2024 02:51:38 +0000 Subject: [PATCH] **Fix**: - Fixed the unit tests for *ObservableDictionary* that was preventing some builds to run --- CHANGELOG.md | 13 +++++++++++++ Tests/Editor/ObservableDictionaryTest.cs | 2 +- package.json | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 838a2a1..9a8ad5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [0.6.4] - 2024-11-13 + +**Fix**: +- Fixed the unit tests for *ObservableDictionary* that was preventing some builds to run + ## [0.6.3] - 2024-11-02 **Fix**: @@ -11,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [0.6.2] - 2024-11-02 +**New**: - Added the *ObservableUpdateFlag* to help performance when updating subscribers to the *ObservableDictionary*. By default is set *ObservableUpdateFlag.KeyUpdateOnly* **Fix**: @@ -23,10 +29,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [0.6.0] - 2023-08-05 +**Changed**: - Improved the *ObservableResolverList* and *ObservableResolverDictionary* data types to properly resolve lists and dictionaries with different data types from the original collection. ## [0.5.1] - 2023-09-04 +**New**: - Added StructPair data type to support both object and struct type containers, improving memory usage performance. **Fix**: @@ -34,20 +42,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [0.5.0] - 2023-08-05 +**New**: - 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. ## [0.4.0] - 2023-07-30 +**New**: - Added utility methods and extensions for Unity's Object and GameObject types, enhancing the codebase's functionality. - Introduced a SerializableType struct for viewing, modifying, and saving types from the inspector, with serialization support and compatibility with filter attributes. ## [0.3.0] - 2023-07-28 +**New**: - Added support for observing field updates with previous and current values in the ObservableField class. - Introduced a UnitySerializedDictionary class that allows serialization of dictionaries in Unity. ## [0.2.0] - 2020-09-28 +**New**: - Added new *ObservableResolverList*, *ObservableResolverDictionary* & *ObservableResolverField* to allow to create observable types without referencing the collection directly - Added Unit tests to all data types in the project @@ -58,6 +70,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [0.1.1] - 2020-08-31 +**Changed**: - Renamed Assembly Definitions to match this package - Removed unnecessary files diff --git a/Tests/Editor/ObservableDictionaryTest.cs b/Tests/Editor/ObservableDictionaryTest.cs index f62a2a0..02f51b1 100644 --- a/Tests/Editor/ObservableDictionaryTest.cs +++ b/Tests/Editor/ObservableDictionaryTest.cs @@ -191,7 +191,7 @@ public void InvokeUpdateCheck() _dictionary.InvokeUpdate(_key); _caller.DidNotReceive().Call(Arg.Any(), Arg.Any(), Arg.Any(), ObservableUpdateType.Added); - _caller.Received(2).Call(_key, 0, 0, ObservableUpdateType.Updated); + _caller.Received().Call(_key, 0, 0, ObservableUpdateType.Updated); _caller.DidNotReceive().Call(Arg.Any(), Arg.Any(), Arg.Any(), ObservableUpdateType.Removed); } diff --git a/package.json b/package.json index 9d8f9f3..ba47160 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "com.gamelovers.dataextensions", "displayName": "Unity Data Type Extensions", "author": "Miguel Tomas", - "version": "0.6.3", + "version": "0.6.4", "unity": "2022.3", "license": "MIT", "description": "This package extends various sets of data types to be used in any type of data containers or persistent serializable data",