Skip to content

Releases: astoilkov/main-thread-scheduling

v14.3.0

07 Aug 12:27
Compare
Choose a tag to compare
  • 🐎 call requestIdleCallback() only when scheduling idle-based tasks b41e8ba
  • ✨ smaller bundle size b41e8ba

v14.2.0...v14.3.0

v14.2.0

13 Jun 12:53
Compare
Choose a tag to compare
  • 🐎 don't start the next task if input is still pending f6c956c

v14.1.1...v14.2.0

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