ngx-scanner icon indicating copy to clipboard operation
ngx-scanner copied to clipboard

Can we upgrade to rxjs 7?

Open rvalitov opened this issue 2 years ago • 10 comments

Current dependency is fixed to version 6. Is it possible to move to version 7?

rvalitov avatar Oct 20 '21 13:10 rvalitov

Yes please! Thank you for all your work so far!

lazmeister avatar Feb 01 '22 01:02 lazmeister

RxJS 7 has breaking changes toward RxJS 6. @rvalitov do you see any possibility to support 6 and 7?

werthdavid avatar Feb 01 '22 08:02 werthdavid

Found this https://medium.com/volosoft/whats-new-in-rxjs-7-a11cc564c6c0

lazmeister avatar Feb 01 '22 15:02 lazmeister

RxJS 7 has breaking changes toward RxJS 6. @rvalitov do you see any possibility to support 6 and 7?

If not, would you have to have a build for rxjs7? I know other repos have done this.

lazmeister avatar Feb 01 '22 15:02 lazmeister

I just did a clone and saw that line 659 on zxing-scanner.component.ts is the only line I can see that needs updating.

if (!this.scanError.observers.some(x => Boolean(x))) {

I also found some spelling errors and translations that needed fixing. Should I push a PR? I have not updated the line yet.

lazmeister avatar Feb 01 '22 16:02 lazmeister

PR is much appreciated! Thank you!

werthdavid avatar Feb 02 '22 07:02 werthdavid

PR is much appreciated! Thank you!

Great, sent up PR. I am not fully educated on RXJS so I won't be able to tackle the switch over but it looks like it should be simple if someone on your end could look at line 659!

lazmeister avatar Feb 03 '22 00:02 lazmeister

PR is much appreciated! Thank you!

@werthdavid Are you able to fix line 659 to be compatible with RXJS 7? Would the observers become subscriber instead? Sorry I don't have too much knowledge of RXJS just yet.

lazmeister avatar Feb 06 '22 21:02 lazmeister

Can someone have a look at https://github.com/zxing-js/ngx-scanner/pull/466

werthdavid avatar Feb 07 '22 07:02 werthdavid

3.5.0 is ready for testing

werthdavid avatar Feb 09 '22 18:02 werthdavid