stomp-js / ng2-stompjs

Angular 6 and 7 - Stomp service over Websockets
https://stomp-js.github.io/
Apache License 2.0
182 stars 32 forks source link

"Encourage the library authors to publish an Ivy distribution." #251

Open EnricoVogt opened 2 years ago

EnricoVogt commented 2 years ago

During the build of a project, angular issues the following message:

- @stomp/ng2-stompjs [es2015/esm2015] (git+https://github.com/stomp-js/ng2-stompjs.git) Encourage the library authors to publish an Ivy distribution.

jbakoc1 commented 2 years ago

is this project deprecated? As I recall it's not updated from Angular 8

kum-deepak commented 2 years ago

The answer is a bit long, I will add more details in a couple of days.

kum-deepak commented 2 years ago

A bit of history:

The current challenge is to support the widest range of Angular versions. Since this code is very simple, releasing more than one npm package with different names is not worth the effort.

Please voice your opinions and suggestions.

kum-deepak commented 2 years ago

In the meanwhile please check https://github.com/stomp-js/ng2-stompjs/tree/develop/src/app. Other than https://github.com/stomp-js/ng2-stompjs/blob/develop/src/app/rx-stomp-service-factory.ts (which is 7-8 lines), all has 2 lines of code each.

jbakoc1 commented 2 years ago

@kum-deepak it's clear now. Correct me if I am wrong, all the work is done from the 2 other deps and the ng2-stompjs uses rx-stomp which is a wrapper of stompjs. image Maybe there can be 2 versions ivy/viewengine?

kum-deepak commented 2 years ago

Yes, your understanding is correct; all the work is done by the underlying library rx-stomp. rx-stomp, while a wrapper over stompjs, adds important functionality.

As the first step, I will update the Angular sample to use rx-stomp directly and find out the extent of change needed.

Dinika commented 2 years ago

@kum-deepak Are there any updates on this (I am open to contributing if needed)?

kum-deepak commented 2 years ago

I have written a guide https://stomp-js.github.io/guide/rx-stomp/ng2-stompjs/ng2-stompjs-to-rx-stomp.html, please check and see if it works for you.