All Versions
20
Latest Version
Avg Release Cycle
35 days
Latest Release
325 days ago

Changelog History
Page 1

  • v5.0.1

    July 16, 2019

    🛠 Fixed

    • Minor typescript definition fix.
  • v5.0.0

    April 22, 2019

    ➕ Added

    • It's now possible to give the Switch any prop (such as aria-* props or tabIndex) and it will automatically be passed to the nested input-element.
    • 👌 Improved Typescript compatibility by using exports:named option in rollup. This could possibly be breaking for some obscure setups.

    🔄 Changed

    • ⚡️ Replaced deprecated componentWillReceiveProps lifecycle hook with componentDidUpdate, which means it now works in strict mode.

    🛠 Fixed

    • Now works properly with right-to-left languages.
  • v4.1.0

    February 17, 2019

    ➕ Added

    • ➕ Add support for name attribute
  • v4.0.0

    January 30, 2019

    🔄 Changed

    • The switch now includes a hidden nested checkbox input, which creates an expience more akin to a normal checkbox - clicking on the label will now cause a toggle, and the VoiceOver screen reader will now reliably read the label.
    • The switch will now always fire the onChange event if the dragStop event occurs <250ms after the dragStart event since that feels like a click.
    • Aria role changed from "checkbox" to "switch".
    • Pressing enter no longer activates the switch (spacebar still does)

    ➕ Added

    • ➕ Add new tabIndex prop

    🛠 Fixed

    • 🛠 Fix glitch where the clicking the handle wouldn't trigger onChange event when browser window was out of focus on Windows.
  • v3.0.3

    June 15, 2018

    🛠 Fixed

    • Fix glitch where the switch would disintegrate if it had a parent with text-align set to center or right
  • v3.0.2

    June 07, 2018

    🔄 Changed

    • ➕ Add the correct gzip badge.
  • v3.0.1

    June 07, 2018

    🔄 Changed

    • Some more byte shaving.
  • v3.0.0

    June 07, 2018

    🔄 Changed

    • Shave off some extra bytes by setting interop: false in rollup config.

    🛠 Fixed

    • 🛠 Fix peculiar glitch when used with preact-compat.
  • v3.0.0-beta.0

    June 06, 2018

    🔄 Changed

    • Project structure was completely revamped to reduce bundle size:
    1. Use rollup to bundle the different source files.
    2. Use buble instead of babel for transpiling since it produces tinier output. 🚚 3. Remove prop-types from production mode. Prop-types are still there in development mode so developer experience is unchanged.
    3. Mangle property names with uglify by putting a \$-sign at the start of the properties that are safe to mangle.

    🛠 Fixed

  • v2.3.2

    April 20, 2018

    🛠 Fixed

    • Corrected dead links in README