Skip to content

Releases: Cysharp/UniTask

Ver.2.5.0

02 Nov 05:16
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • In this version, AsyncOperation.completed handler is used to determine the completion of an AsyncOperation. Previously, AsyncOperation.isDone was used in PlayerLoop. This change may result in slightly different timing for await completion.
  • For some AsyncEnumerable factories that use PlayerLoop. When MoveNextAsync is canceled, ObjectDisposableException was not thrown before, but now it is to throw it.

New Contributors

Full Changelog: 2.4.1...2.5.0

Ver.2.4.1

21 Sep 03:45
Compare
Choose a tag to compare

What's Changed

  • Fix a bug in Dotween after returning to the pool of CancellationToken.Register by @hadashiA in #509

Full Changelog: 2.4.0...2.4.1

Ver.2.4.0

14 Sep 08:00
Compare
Choose a tag to compare

What's Changed

Features

Bug fixes

  • Fix problem with finally in UniTaskAsyncEnumerable.Create not being executed by @hadashiA in #484
  • Add check if UnityWebRequest was destroyed by @hadashiA in #494
  • Add check to that AutoResetUniTaskSource already returned to the pool by @hadashiA in #503
  • Fix conditions for UniTaskCompletionSourceCore.TrySet* to be true by @hadashiA in #499
  • AsyncReactiveProperty
  • DOTween
    • Fix a problem in dotween where an extra update would run after canceling by @hadashiA in #485

Breaking changes

  • Add EndOfFrame implementation using UnityEngine.Awaitable by @hadashiA in #496
  • Use innerException for Task.AsUniTask by @hadashiA in #486
  • Use always innerException for Task.AsUniTask by @hadashiA in #500
  • Earlier intialization for Unitask, depending on unity version by @Merglasch in #489

Improvements

New Contributors

Full Changelog: 2.3.3...2.4.0

Ver.2.3.3

01 Nov 11:47
Compare
Choose a tag to compare

What's Changed

  • doc:provide simple chinese readme by @wqaetly in #374
  • Fix UnityEventHandlerAsyncEnumerator cancellation by @adarapata in #418
  • Fix Naming conflict with ZString #401

New Contributors

Full Changelog: 2.3.2...2.3.3

Ver.2.3.2

24 Oct 13:06
Compare
Choose a tag to compare

What's Changed

  • Support Unity 2023.1.0a15(remove UniTask AsyncOperation.GetAwaiter, use AwaitableCoroutine.GetAwaiter instead)
  • Breaking changes, UniTask.WaitForFixedUpdate wait at LastFixedUpdate #377
  • Fix AwaitForAllAssets stackoverflow #394
  • UnityEvent.AsAsyncEnumerable handle cancel correctly #365
  • if UNITY_2022_2_OR_NEWER, use destroyCancellationToken instead of AsyncDestroyTrigger
  • Fix for issue #368 UnityWebRequestException extra line in exception message by @nolimet in #369
  • feat: use Cysharp/Actions reusable workflows/actions by @guitarrapc in #381
  • re-define UNITASK_ADDRESSABLE_SUPPORT for supporting Addressables.CN by @fpagyu in #385
  • Typo in TaskPool.cs annotation internaly -> internally by @Ryuu-64 in #392
  • fix: prevent NullReferenceException in TimeoutController by @shiena in #399
  • Diagnostics helper null check by @kroonhorstdino in #395
  • Fix cancellation token forwarding by @battleroy in #413

New Contributors

Full Changelog: 2.3.1...2.3.2

Ver.2.3.1

02 Mar 23:12
Compare
Choose a tag to compare

Breaking Changes

  • Fixed typo TweenCancelBehaviour.CompleteWithSeqeunceCallbackAndCancelAwait ->TweenCancelBehaviour.CompleteWithSequenceCallbackAndCancelAwait
  • UniTask.Run is now obsolete, use UniTask.RunOnThreadPool or UniTask.Create instead.
  • UniTask.WaitForEndOfFrame is now obsolete, use UniTask.WaitForEndOfFrame(MonoBehaviour) instead.

What's Changed

  • Fix UniTask.DelayFrame run on UnityEditor correctly
  • Fix IObservable.ToUniTask does not propagate unobserved exception
  • Add UniTask.WaitForEndOfFrame(MonoBehaviour)
  • Fix wording and code instructions for -batchmode usage by @oktomus in #266
  • chore: remove setup-dotnet by @guitarrapc in #284
  • chore: add intellisense xml to nuget by @guitarrapc in #285
  • Update README.md by @cjaligaga in #327
  • [DoTween]: fix "AwaitFor~" extensions ignore original callback by @yellowisher in #280
  • Fix BadImageFormatException when StackTrace captured on UniTaskTracker by @satanabe1 in #300
  • Fix exceptions never being reported when UniTask is executed without await and Forget() by @SolidAlloy in #323

New Contributors

Full Changelog: 2.2.5...2.3.1

Ver.2.2.5

06 Apr 04:40
Compare
Choose a tag to compare
  • Fix: UniTaskAsyncEnumerable.Prepend does not work correctly
  • Changed: Add strong-named signing to UniTask.NetCore

2021/08/27 experimental release:
UniTaskAnalayzer.dll that checks pass CancellationToken.

image

How to use analyzer on Unity, see: Roslyn analyzers and ruleset files document and Cysharp/CsProjModifier.

Ver.2.2.4

12 Mar 07:43
Compare
Choose a tag to compare
  • Add: PlayerLoopTimer
  • Improvement: CancellationTokenSource.CancelAfterSlim returns IDisposable, it enables terminate cancellation timer
  • Improvement: TimeoutController accepts DelayType and PlayerLoopTiming, add int millisecondsDelay overload
  • (Breaking Changes): TimeoutController's default DelayType changed from Realtime to DeltaTime
  • (Breaking Changes): CancellationTokenSource.CancelAfterSlim when canceled before timeout, changed from dispose CancellationTokenSource to do not

Ver.2.2.3

02 Mar 06:26
Compare
Choose a tag to compare

Fix: ToObservable of non-generic UniTask does not propagate an exception of a faulted task #239

Ver.2.2.2

02 Mar 02:14
Compare
Choose a tag to compare
  • Add: UniTask.Yield(CancellationToken) overload
  • Add: UniTask.NextFrame(CancellationToken) overload.
  • (Breaking Changes): Yield and NextFrame does not use optional parameter.