Releases: astoilkov/main-thread-scheduling
v14.3.0
v14.2.0
v14.1.1
v14.1.0
v14.0.0
v13.0.0
🧬 A full rewrite of the library. It will be easier to add new features and maintain the library in the future.
v12.0.1
v12.0.0
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
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.
v10.0.0
- This major version makes a breaking change by renaming
afterFrame()→requestAfterFrame(). - Other changes are related to the docs.