Skip to content

Releases: astoilkov/main-thread-scheduling

v14.1.1

20 Mar 05:13
Compare
Choose a tag to compare
  • 🐛 fix error when requestIdleCallback is not supported a499ff5

v14.1.0...v14.1.1

v14.1.0

18 Mar 12:02
Compare
Choose a tag to compare
  • ✨ new scheduleTask() method that mimics scheduler.postTask() API 5c1ed84
  • 🔀 set 3 seconds max wait time for the idle callback based strategy dc1370a

v14.0.0...v14.1.0

v14.0.0

01 Mar 11:05
Compare
Choose a tag to compare
  • ✨ Continue running scheduled tasks when page is hidden bb4366a
  • signal option for canceling scheduled tasks, resolve #4 6c2a5aa
  • 🔥 Remove all utility functions 447e4a2

v13.0.0...v14.0.0

v13.0.0

06 Feb 07:39
Compare
Choose a tag to compare

🧬 A full rewrite of the library. It will be easier to add new features and maintain the library in the future.

v12.0.1...v13.0.0

v12.0.1

22 Jan 10:43
Compare
Choose a tag to compare
  • 🐛 error when building a project with Vite, resolve #12 b47a61b

v12.0.0...v12.0.1

v12.0.0

17 Jan 11:22
Compare
Choose a tag to compare

BREAKING CHANGE: The browser user-blocking, user-visible, and background didn't fit well in what main-thread-scheduling was doing. Also, it was confusing for users to see the same values as scheduler.postTask() but observe different behavior between the two. This is why the library renamed the concept of scheduling priority to scheduling strategy and the new values are interactive, smooth, and idle. These values represent better what's happening when we yield to the main thread and what main-thread-scheduling is actually doing. I feel the new values are more intuitive. You can think of them like you are completing this sentence: "Scheduling the task keeps the page interactive/smooth/idle."

v11.0.0...v12.0.0

v11.0.0

17 Jan 08:04
Compare
Choose a tag to compare

BREAKING CHANGE: The priority user-visible is now called user-blocking. user-visible has changed it runs for less time before yielding and you can use it even if an animation is running in the background.

  • 🐎 improve the performance of isTimeToYield() d9ab933
  • ✨ new exported type: SchedulingPriority that includes user-blocking, user-visible, and background priorities b20053d
  • ✏️ add postTask() implementation example using main-thread-scheduling in the readme 7017c2d

v10.0.0...v11.0.0

v10.0.0

10 Nov 14:19
Compare
Choose a tag to compare
  • This major version makes a breaking change by renaming afterFrame()requestAfterFrame().
  • Other changes are related to the docs.

v9.0.0...v10.0.0

v0.9.0

08 Nov 06:51
Compare
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
Compare
Choose a tag to compare
  • ✨ never yield in a Web Worker
  • ✨ never yield in a testing environment

v7.1.0...v8.0.0