NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3987 most downloaded on npm
A scheduler based on requestAnimationFrame
Last release 5 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 1.8 years
Some releases are documented
notes for 7 of 13 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
13 releases · first in 2017
This project has always had an MIT license in the package.json. However, there was a missing LICENSE file. An MIT license has now been added. Thanks @
LICENSE fileThis project has always had an MIT license in the package.json. However, there was a missing LICENSE file. An MIT license has now been added. Thanks @mjchang and @PabloJomer!
Bumping all dev dependencies #19 👍
flow@0.102.0 #19One column per quarter.
Upgrade build (#18) Thanks @TrySound!!
```js const wrapped = rafSchd(console.log); const frameId: AnimationFrameId = wrapped('hi');
AnimationFrame on WrappedFn calls #12This is a breaking change 💥
const wrapped = rafSchd(console.log);
const frameId: AnimationFrameId = wrapped('hi');
// and you could do this:
cancelAnimationFrame(frameId);
// or you could have done this
wrapped.cancel();
const wrapped = rafSchd(console.log);
wrapped('hi'); // returns undefined
// now the only way to cancel the scheduled frame
wrapped.cancel();
This change brings this library in line with other rate limiting functions out there. The fact that it uses an animation frame internally is an implementation detail and does not need to leak out to the consumer. Rather than having two ways of cancelling a frame, we now just have one.
- type WrapperFn = (...args: any[]) => AnimationFrameID;
+ type WrapperFn = (...args: mixed[]) => void;
eslint to prettier #12> This has been listed as a breaking change 💥 as the paths to the bundles have changed. There is no code behaviour or api changes
We have added a number of new bundle options for your consumption pleasure!
dist/raf-schd.cjs.js CommonJS bundledist/raf-schd.esm.js ESM bundledist/raf-schd.js UMD bundle (development)dist/raf-schd.min.js UMD bundle (production)This has been listed as a breaking change 💥 as the paths to the bundles have changed. There is no code behaviour or api changes
Nothing published for this version
Nothing published for this version
Upgraded to flow version 0.68 #8
flow version 0.68 #8esm build #8Adding support for a .cancel property on the returned function to allow for simple cancelling of frames without using cancelAnimationFrame directly. #
.cancel property on the returned function to allow for simple cancelling of frames without using cancelAnimationFrame directly. #7Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →