Releases: inorganik/countUp.js
2.9.0
2.8.2
Added types to exports in package.json, thanks to @thinkasany
2.8.1
2.8.0
2.7.0
2.6.2
When revamping the build, I tried to resolve a rollup warning that had been occurring on the build for a long time:
"(!) `this` has been rewritten to `undefined`
It occurs because of typescript's Object.assign polyfill, which uses this on the global scope. If you set context: 'window' in the rollup config, it will silence the warning, but it will cause issues if CountUp is not run in the browser. Allowing rollup to rewrite this to undefined on just the global scope is harmless and doesn't break anything, so I reverted the change.
2.6.1
2.6.0
Support animation plugins: A plugin is a class instance or object passed in options for the plugin param that implements a render method:
export declare interface CountUpPlugin {
render(elem: HTMLElement, formatted: string): void;
}The plugin's render method will be called on each frame to display the formatted value instead of CountUp's.