Git Product home page Git Product logo

sourcefuse / loopback4-notifications Goto Github PK

View Code? Open in Web Editor NEW
34.0 15.0 14.0 2.6 MB

An extension for setting up various notification mechanisms in loopback4 application, vis-a-vis, Push notification, SMS notification, Email notification

License: MIT License

JavaScript 7.62% TypeScript 90.95% Shell 0.25% EJS 1.18%
loopback4 loopback-next loopback4-extension push-notifications email-notification sms-notifications pubnub aws-ses aws-sns arcbysf

loopback4-notifications's Issues

Remove support for node v14

Is your feature request related to a problem? Please describe.
Node v14 reaching its end of life this month. Loopback removes support for node v14 in all of its packages we depend on.

Sourceloop packages/services also currently have v12 and v14 as the supported versions.

Describe the solution you'd like
Remove the support for node v14 and v12. And add the support for the latest LTS version v18.

Describe alternatives you've considered
__

Additional context
__

Package Update - loopback4-notifications

Describe the bug
remove all current vilnenrability of loopback4-notifications.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Semantic Release

Is your feature request related to a problem? Please describe.
Adding semantic release for automatic release of packages.

Describe the solution you'd like
Using npm semantic-release

Describe alternatives you've considered

Additional context

Support for Apple Push Notification service

Is your feature request related to a problem? Please describe.
There should be a way to send notifications through APNS.

Describe the solution you'd like
Can create a new provided similar to the FCM provider, using the node-apn or any other equivalent library to send notifications through APNS.

Additional context
There is already a way to send APNS based notifications using Pubnub but that requires Pubnub, there should be an independent way to send such notifications like there is for FCM based notifications.

Says aws-sdk missing even when I just need to use the Pubnub Notifications.

Describe the bug
After installing the package and running the project, it says 'aws-sdk' is missing.

To Reproduce
Steps to reproduce the behavior:

  1. Install the 'loopback4-notifications' package.
  2. Follow the readme usage steps for Pubnub notifications.
  3. Run the application.
  4. It throws an error saying 'aws-sdk' is required.

Expected behavior
It should not ask to install 'aws-sdk' when I don't need it.

Update all dependencies

  • update all dependencies ( including dev and peer dependencies)
  • use node version 16 for the same

Setup Release Process via GH Actions

Is your feature request related to a problem? Please describe.
After the sourceloop release processes regression on jenkins the release of packages needs to be done locally.

Describe the solution you'd like
Set up a manually dispatch-able github action to publish releases.

Describe alternatives you've considered
The possible alternate is to publish packages locally but that requires keeping the credentials environment already setup.

Additional context
__

loopback version updates

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Stale Bot missing in the repository

Describe the bug
Currently the issues and PR never closed even if inactive.
They should be closed automatically.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new issue/Pr
  2. Observe it.
  3. Even after no activity it stays open.

Expected behavior
Inactive issues/Pr should be closed automatically.

Need twilio support for SMS/Whatsapp

Is your feature request related to a problem? Please describe.
Need to send SMS via twilio

Describe the solution you'd like
Twilio as a provider for SMS

Describe alternatives you've considered
AWS SNS is not a good option for SMS as its delivery is unreliable

Additional context
Add any other context or screenshots about the feature request here.

Create the PR template

Describe the bug
The PR template is missing in this repo

To Reproduce
When we create a PR no template is used

Expected behavior
There should be a PR template

PushNotification is not exported using any main or /push

Describe the bug
to use PushNotification, we need to import it like :

import {PushNotification} from 'loopback4-notifications/dist/providers/push/index';

Expected behavior
It must be like :
import {PushNotification} from 'loopback4-notifications/push'

Error [ConfigError]: Missing region in config

Describe the bug
When trying to send SMS I am getting this error

To Reproduce
Follow the steps in the documentation of this repository. Include the required keys and region in .env file.

code
await this.notificationProvider.publish({ body: 'OTP:' + authOtp.otp, receiver: {to: [{id: '9876543210/*replaced the actual phone number*/'}]}, sentDate: new Date(), type: MessageType.SMS }).catch(smsError => { console.log(smsError); });

Expected behavior
No error.

Screenshots
image

Additional context

loopback version updates

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Generate Changelog

Is your feature request related to a problem? Please describe.
After the release process has been moved to github action changelog is not being generated.

Describe the solution you'd like
Invoke the release notes js file for changelog generation.

Describe alternatives you've considered
Using the same approach as used during jenkins release process

Test case coverage lacking

Describe the bug
Test case coverage missing and not up to the mark

To Reproduce
We should have at least 75% unit test case coverage for this package.

Correct the changelog Format

Describe the bug
Right now Issue description is not visible in the changelog
To Reproduce
Steps to reproduce the behavior:

  1. Release a new version
  2. check the changelog
  3. Issue Description not visible
  4. Issue link not clickable

semantic-release : patch release for chore

Describe the bug
Changes for semantic-release
when dependencies are updated with chore type new version is not released

To Reproduce
try updating the dependencies using chore(deps)

Expected behavior
when dependencies are updated with chore type new version must be released

Request for more detailed and customizable changelog

Is your feature request related to a problem? Please describe.
Right now the changelog created for releases is not well in detail and informative.
Request to generate detailed changelog.

Describe the solution you'd like
Can use different npm packages available

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.