Skip to content

Releases: astoilkov/main-thread-scheduling

v0.9.0

08 Nov 06:51

Choose a tag to compare

This new major release brings 3 new utilities:

  • afterFrame(callback) — like requestAnimationFrame() but called after the frame has rendered (not before)
  • queueTask(callback) — like queueMicroTask() but for Tasks
  • Deferred — extends Promise with resolve() and reject() methods and a state property

v8.0.0...v9.0.0

v8.0.0

22 Oct 07:43

Choose a tag to compare

  • ✨ never yield in a Web Worker
  • ✨ never yield in a testing environment

v7.1.0...v8.0.0

7.1.0

23 Sep 12:35

Choose a tag to compare

  • 🔀 it's never time to yield in Node.js 9787a7a

v7.0.0...v7.1.0

7.0.0

23 Sep 12:13

Choose a tag to compare

  • ✨ add support for Node.js and testing environments, resolves #3 4515914

6.0.0

20 Jun 12:58

Choose a tag to compare

A library rewrite that introduced some benefits:

  • Improved app performance for user-visible tasks because we always use MessageChannel.postMessage() and this way we ensure scheduled tasks are run at least once per frame.
  • Improved performance consistency by measuring tasks execution time from the first completed yield and not from the start of the frame.
  • More future-proof. The new implementation will allow some new future features be implemented easier.

v5.0.1...v6.0.0

6.0.0-0

17 Jun 07:12

Choose a tag to compare

6.0.0-0 Pre-release
Pre-release

A library rewrite that introduced some benefits:

  • Improved app performance for user-visible tasks because we always use MessageChannel.postMessage() and this way we ensure scheduled tasks are run at least once per frame.
  • Improved performance consistency by measuring tasks execution time from the first completed yield and not from the start of the frame.
  • More future-proof. The new implementation will allow some new future features be implemented easier.

v5.0.1...v6.0.0-0

5.0.1

20 May 09:50

Choose a tag to compare

  • 🐎 🔀 ensure user-visible tasks are called at least once per frame 4c87470

v5.0.0...v5.0.1

5.0.0

03 Feb 08:50

Choose a tag to compare

  • 🐎 improve performance in Safari 6b5627e

v4.0.3...v5.0.0

v4.0.3

02 Feb 21:16

Choose a tag to compare

  • 🐛 use idle phase start when requestIdleCallback isn't available 209e617
  • ✅ 🐛 fix wrong test 63d3bad

v4.0.2...v4.0.3

4.0.2

02 Feb 21:02

Choose a tag to compare

  • 🐛 better way for handling idle phase tracking of MessageChannel 4a580ec
  • 🐛 call requestLaterMicrotask() before waiting for the next task 74a2910

v4.0.1...v4.0.2