OneSignal is a push notification service for web and mobile apps. This SDK makes it easy to integrate your website with OneSignal Push Notifications. https://onesignal.com
Upgrade dependencies, fix type errors, and update build configurations to align with the main branch.
Description
Dependency Updates
Upgraded outdated dependencies to align the player-model version with the user-model version.
Fixed type errors that appeared after updating dependencies.
Build Script Updates
Updated build scripts to match those on the main branch.
Created stylesheet.js to use new webpack loaders for importing SCSS files.
Configuration Updates
Adjusted tsconfig.json to correctly handle ES5 as a valid target but not as a module type.
Updated sdk.config.js, page-sdk-es6.config.js, serviceworker.config.js, and webpack.config.js to incorporate new webpack plugins and align with the main branch.
Revised yarn scripts for better alignment with the main branch.
Other
Applied SCSS lint fixes as auto-run by VSCode.
Systems Affected
[x] WebSDK
[ ] Backend
[ ] Dashboard
Checklist
[ ] All the automated tests pass or I explained why that is not possible
[x] I have personally tested this on my machine or explained why that is not possible
[ ] I have included test coverage for these changes or explained why they are not needed
Programming Checklist
Interfaces:
[x] Don't use default export
[x] New interfaces are in model files
Functions:
[x] Don't use default export
[x] All function signatures have return types
[x] Helpers should not access any data but rather be given the data to operate on.
Typescript:
[x] No Typescript warnings
[x] Avoid silencing null/undefined warnings with the exclamation point
Other:
[x] Iteration: refrain from using elem of array syntax. Prefer forEach or use map
[x] Avoid using global OneSignal accessor for context if possible. Instead, we can pass it to function/constructor so that we don't call OneSignal.context
Description
One line summary
Upgrade dependencies, fix type errors, and update build configurations to align with the main branch.
Description
Dependency Updates
Build Script Updates
stylesheet.js
to use new webpack loaders for importing SCSS files.Configuration Updates
tsconfig.json
to correctly handle ES5 as a valid target but not as a module type.sdk.config.js
,page-sdk-es6.config.js
,serviceworker.config.js
, andwebpack.config.js
to incorporate new webpack plugins and align with the main branch.Other
Systems Affected
Checklist
Programming Checklist Interfaces:
Functions:
Typescript:
Other:
elem of array
syntax. PreferforEach
or usemap
context
if possible. Instead, we can pass it to function/constructor so that we don't callOneSignal.context
Related Tickets
https://app.asana.com/0/1207499441939378/1207762224893595
This change is