Skip to content

Releases: cs-util-com/cscore

1.8.3

17 Jul 15:04
f109906
Compare
Choose a tag to compare

Most relevant changes:

  • Added a test scene and the NotoEmoji icon font for testing rendering icons with minimal app size footprint
  • Added optional parameters for xUnit Fact
  • Found a few useful new links for the material icon font
  • Bugfix to prevent singleton from being destroyed on app start (which would reset singleton config otherwise)
  • Added Button extension method to set the normal color tinting value
  • Changed potential error in datetime automatic parsing from server values to a warning
  • Added another icon example from the material font
  • Added sidebar example that uses toggles to indicate which tab is currently active in the UI
  • Added more components around radio button groups (groups of xor toggles)
  • Added example usage of OpenAI API
  • AppSecrets concept added which allows to use secrets like API keys, default implementation for local dev testing included
  • Removed restriction of type parameter for GetComponent methods to allow also requesting interfaces
  • Introduced IToggleGroupListener interface and using it in ToggleListener now to allow different ToggleGroupListener implementations
  • Added a countdown timer that uses a task and a stopwatch and can be connected to a IProgress and created a few usage examples in the tests

All changes can be seen here:
v1.8.2...v1.8.3

1.8.2

20 May 07:15
ad7bcf3
Compare
Choose a tag to compare

Most relevant changes:

All changes can be seen here:
v1.8.1...v1.8.2

1.8.1

15 May 10:45
5e5795f
Compare
Choose a tag to compare

Most relevant changes:

  • Added a dirEntry.ClearAllEntries method
  • Added the option to pass a custom cancellation token source to the BackgroundTaskQueue.Run method to allow cancelling specific tasks
  • Spitted the redux store tests into separate test files (only moved code, no changes)
  • Added a test that ensures that Actions dispatched from a middleware do not arrive in the incorrect order
  • Unity Update to 2022.2.0a13
  • Improvements in dialog UI examples
  • Bugfix for user input math if canvas is in screenspace overlay mode
  • Extended the toast UI test to ensure that the Unity singleton logic works as expected
  • Introducing a new interface IsDisposable that can be used eg by the injection logic to not return disposed singletons
  • Added logic to not return disposed singletons and dispose the singleton injectors automatically when detected
  • Refactoring of names of new classes
  • Added pure xunit tests to validate that the new disposable singleton logic works correctly for its given purpose

All changes can be seen here:
v1.8.0...v1.8.1

1.8.0

01 May 10:05
3f5d46f
Compare
Choose a tag to compare

Most relevant changes:

  • Updated https://github.com/xoofx/zio from 0.14.0 to 0.15.0
  • Adding unit tests to improve code coverage
  • ColorMath.InvertHue bugfix and added a test to demonstrate usage
  • Added helper methods to get the variance and standard deviation (+relative standard deviation) for an ienumeratable (only doubles for now)
  • Fix for reported bug in Redux store to ensure synchronous middleware logic for dispatch 1 is completed before dispatch 2 is started in callback logic of dispatch 1
  • Added an iEnumerable.SequenceReferencesEqual(otherEnumerable) extension method
  • Added a few more variants for AddStateChangeListener that allow easy unregistration of the listener by returning a bool flag to indicate if the listener should still stay in the store
  • Added a multithreading test to the redux store and small change to threadlock logic of the store based on this new test

All changes can be seen here:
v1.7.1...v1.8.0

1.7.1

23 Apr 19:41
4ccc6a9
Compare
Choose a tag to compare

Most relevant changes:

  • Smaller fixes in error logging of xunit test runner
  • Improved error logging of actions that can't be parsed into json
  • Reformatting of statemachine code to improve error logging
  • Added an extension method to detect if the current context is a thrown exception and added a demonstration how to use this in an IDisposable to get debugging information if dispose was called because of an exception
  • Now logging in .LogMethodDone() if the method was left due to an exception
  • TrackEvent now does not interrupt the application flow if an exception happens inside of the AppFlowTracker
  • Added some cleanup logic so that singletons that were disposed remove themselves as the singleton accessible via the injection system
  • Updated https://github.com/xoofx/zio from 0.7.6 to 0.14.0
  • Modification to cscore code due to updated zio library including removing the PysicalFileSystemV2

All changes can be seen here:
v1.6.0...v1.7.1

1.6.0

12 Apr 04:38
Compare
Choose a tag to compare

Most relevant changes:

  • Added a batch processor that uses a key value store as a cache to collect tasks and processes them in batches
  • Added a GetRange method for the key value store
  • Finished batch processor tests and added a test for the ThreadSafety helper methods
  • Added a RemoveRange method to the key value store
  • A cancellation token can now be passed to the TaskV2.Delay methods
  • Added a task.IsCompletedSuccessfull() extension method for older C# versions
  • Major rework of the AsThrottledDebounce extension methods and added one that can properly work with async code
  • Fixes to google sheets key value store based on debouncing changes
  • Ui3 datastore example demo: Small fix for initial state of model, where there is no user yet in the store
  • Improvements to the XUnit test runner in Unity
  • Making sure the xunit test tests run through in Unity by blacklisting some tests
  • Added a second variant of myDisposable.SetUpDisposeOnDestroy(someGameObject);
  • Added a main view stack so that each root canvas has a main view stack and some other additional view stacks for toasts and process uis etc
  • Added a viewStack.SwitchToView helper method that automatically hides the latest current view
  • Bugfix in back button listener logic to evaluate only screens that are active to decide which one to close
  • Updates to UI v2 context menu to use the new main view stack helper methods
  • Changed dialog logic to not use the main viewstack by default and some fixes during testing UI 9 including a fix for the canvas order on top helper
  • Added a gameObject.IsGrandChildOf(otherGameObject) method
  • Added error logging if null.GetParent() is called (continues to not throw an exception for now)
  • Clicking multiple times on a button with an async action will now only execute the first click until the task is complete

All changes can be seen here:
v1.5.8...v1.6.0

1.5.8

27 Mar 17:41
f1a7caa
Compare
Choose a tag to compare

Most relevant changes:

  • Added method to load and save CookieContainers from and to files and streams
  • Added flag to not change the DateTimeV2 diff of local time to server time with every single request by default but only for the very first request
  • Important fix in UriRestRequest to not override outer result Task
  • Added method to shuffle ILists via a Random extension
  • Added ToReadableString extension for DateTime that includes also milliseconds
  • Improvements to DateTimeV2 logic to improve automatic usage of server UTC time when possible
  • Added upload progress for file via form uploads
  • Added a taskcompletionshource to the RestRequest interface to use it for canceling internal parts of the request
  • Added a test that tests uploads via application/octet-stream
  • Applying the request headers to the single request message instead of to the client
  • Switched to a reused HttpClient (and handler) in the default RestFactory so that all requests share request ressources (See also https://www.aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/ for details)
  • Made the send rest request message a field to be able to dispose it properly

All changes can be seen here:
v1.5.7...v1.5.8

1.5.7

20 Mar 19:07
03ffa9d
Compare
Choose a tag to compare

Most relevant changes:

  • Changing which folder is being used when GetCurrentDirectory is called in Unity Editor (before a subfolder of Assets was returned (and created), now a folder in the parent of /Assets is used instead to avoid mixing test files etc with Unitys automatic Asset parsing
  • Added a package version checker to run in the Unity editor and inform the developer if there is a new cscore version available
  • Finetuning on visual regression system
  • Added an action.AsThrottledDebounce() for actions without any parameters

All changes can be seen here:
v1.5.6...v1.5.7

1.5.6

23 Feb 04:28
Compare
Choose a tag to compare

Most relevant changes:

  • Fix by @equidevium for the PointerInputHandler.cs where onClick was not always detected
  • Added a mechanism to wait for a request to be fully configured before it is being send. Now the logic waits until the async result of the request is being used before actually sending it. This also means if a request would be send without checking the result in any way this would now fail, so minimum the response code will have to be checked now
  • Added a restRequest.WithStreamContent method to send raw octet streams
  • Added extension method to add request headers in form of a Dictionary

All changes can be seen here:
v1.5.4...v1.5.6

1.5.4

19 Feb 07:31
Compare
Choose a tag to compare

Most relevant changes:

  • Based on feedback removed that the EventBus.eventHistory is filled by default now, needs to be acively enabled now to reduce risk of memory leaks
  • Some logging cleanup in Unity MainThread helper class
  • Switched in the UnitTestMono to wait for a fixed duration instead of the end of the frame (since for Unity in the start method there might not be something like a current and next frame yet and it caused problems in some Unity versions)
  • Making sure that the breadth first and depth first tree traversal return cached ienumerables so that their content does not change if used multiple times
  • Assertion cleanup from feedback, switched to logging warnings instead
  • Action bar creation does not assume anymore now that the action bar is part of a view stack
  • Improvements in ThemeColor to only force a Unity refresh of the Editor UI if the color changed
  • Changes to the UnitySetup logic to not use EventBus.SubscribeForOnePublishOrInstantInvokeIfInHistory anymore

All changes can be seen here:
v1.5.2...v1.5.4