Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-switch

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-switch - npm Package Versions

234

7.0.0

Diff

Changelog

Source

[7.0.0 - 2022-06-09]

Changed

  • Export package as ESM, fixes incompatibility with Rollup/Vite and makes output slightly smaller (@Niputi)
yogaboll
published 7.0.0-experimental.0 •

yogaboll
published 6.1.0 •

Changelog

Source

[6.1.0 - 2022-06-08]

Added

  • Add react@18 as a peerDependency (@smhg)

Changed

  • Replace Enzyme with React testing library (@smhg)
yogaboll
published 6.0.0 •

Changelog

Source

[6.0.0 - 2021-01-06]

Added

  • Add custom handle icons (@morinted)
  • Add aria-checked attribute (@monicahung)
  • Add borderRadius prop

Fixed

  • Prevent setState from being called after component is unmounted (@smhg)

Changed

  • When the checked state is not changed in the onChange callback, the switch will now go back to its previous position instead of getting stuck halfway. This means the switch will move back and forth if the onChange callback changes the state after an asynchronous operation.
  • Support react and react-dom 17 as peer dependencies
  • Update all dev depencies
yogaboll
published 6.0.0-beta.0 •

yogaboll
published 5.0.1 •

Changelog

Source

[5.0.1 - 2019-07-16]

Fixed

  • Minor typescript definition fix.
yogaboll
published 5.0.0 •

Changelog

Source

[5.0.0 - 2019-04-22]

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.
yogaboll
published 5.0.0-beta.0 •

yogaboll
published 4.1.0 •

Changelog

Source

[4.1.0 - 2019-02-17]

Added

  • Add support for name attribute
yogaboll
published 4.0.1 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc