The React OneSignal NPM package currently lacks several OneSignal WebSDK functions. The package is also currently dependent on an initialization helper set-up hook. This ensures OneSignal is ready to execute the functions before doing so. The initialization function is also different from our WebSDK initialization. It would be nice to have consistency.
2.0 Release
This release addresses the above points by adding all supported functions, changing the initialization function, and removing the need for the set-up hook.
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.
Additionally, the release includes some clean-up:
restructures repository so the package is at the top level
removes unneeded files
updates the README
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.
This release also adds full Typescript support for all functions.
Context
The React OneSignal NPM package currently lacks several OneSignal WebSDK functions. The package is also currently dependent on an initialization helper set-up hook. This ensures OneSignal is ready to execute the functions before doing so. The initialization function is also different from our WebSDK initialization. It would be nice to have consistency.
2.0 Release
This release addresses the above points by adding all supported functions, changing the initialization function, and removing the need for the set-up hook.
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.
Additionally, the release includes some clean-up:
The
events
object is no longer needed either. In its place, the event handlers can now be added directly via theon
function to match the WebSDK 1:1.This release also adds full Typescript support for all functions.
Learn more here