Skip to content

2.0.0

Compare
Choose a tag to compare
@rgomezp rgomezp released this 18 Aug 23:17
9ee9d12

2.0.0 Release

🚧 Includes breaking changes 🚧

If migrating from a 1.0+ version, read the migration guide.


The React OneSignal NPM package previously lacked several OneSignal WebSDK functions. The package was also dependent on an initialization helper set-up hook. This ensured OneSignal was ready to execute the functions before doing so. The initialization function was also different from our WebSDK initialization.

This release addresses the above points by:

  • adding all supported functions
  • changing the initialization function
  • removing the need for the set-up hook

Additionally, the release includes some clean-up:

  • restructures repository so the package is at the top level
  • removes unneeded files
  • updates the README

We hope the changes will greatly simplify the package and improve usability. We also want to ensure adopters have access to all of the most up-to-date functions and features provided by OneSignal.

Events

The events object is no longer needed either. In its place, the event handlers can now be added directly via the on function to match the WebSDK 1:1.

Typescript Support

This release also adds full Typescript support for all functions.