Spin.js v3.0.0 Release Notes

Release Date: 2017-11-09 // over 6 years ago
  • ➕ Added

    • 👌 Support for Content Security Policy style-src 'self'; option (issue [#115] and issue [#229]).
    • [CONTRIBUTING.md](CONTRIBUTING.md) file.

    🔄 Changed

    • Rewritten in TypeScript.
    • Replaced dynamic CSS keyframe animations with requestAnimationFrame.
    • 💻 Unified animation logic in all browsers.
    • 🚚 Moved internal functions out of Spinner instance.
    • Website now uses native range inputs rather than a polyfill, and doesn't depend on jQuery.
    • Distributed as a standard ES6 module (closes [#341]).

    🛠 Fixed

    • Janky animation appearance in Microsoft Edge (issue [#342]).
    • Missing line with trail set to 100 in Internet Explorer (issue [#327]).
    • Spinner is not defined error in Angular (issue [#340]).

    ✂ Removed

    • 👉 Useless hwaccel option.
    • 👍 IE 6-8 support and VML fallback since it isn't needed for IE 9+.
    • Minified files from bundle.
    • 🔌 jQuery plugin (closes [#325]).
    • 👍 Bower/composer/component/spm support. Install from npm instead (recommended), or save spin.js file in your repo.

    Note: version 3.0 does not change the public Spinner API, so if you are ⬆️ already using a module bundler such as Webpack or Rollup, upgrading should be as easy as adding the following ES6 module import:

    import {Spinner} from 'spin.js';