Urigo / meteor-rxjs

Exposing Mongo Cursor as RxJS Observable
MIT License
120 stars 38 forks source link

Does this work with RxJS 6? #211

Closed janKir closed 6 years ago

janKir commented 6 years ago

I'm thinking about to migrate my Angular-Meteor app to Angular 6 and hence RxJS 6, so I'm wondering if this library is compatible? Regarding to the RxJS Update Guide, the rxjs-compat package in milestone 2 works for all libraries which depend on rxjs 5.5. Unfortunately, this library has a peer dependency of only rxjs 5.4.

Is it still possible to migrate to RxJS 6 or when will this library support it?

Thanks!

ymchun commented 6 years ago

same question here

janKir commented 6 years ago

I believe it would only need a pipable zone() method to be compatible. Should not be too hard to implement, I guess...

ymchun commented 6 years ago

@janKir yes, also need to fix rxjs import

ardatan commented 6 years ago

Incompability issues with RxJS and RxJS-Compat package is solved in the new release. Feel free to open a new issue if you are still experiencing this problem. Thank you!

ymchun commented 6 years ago

@ardatan your fix save my day! I've tried new release but still got this error Property 'zone' does not exist on type 'ObservableCursor<>'. Did you mean '_zone'?

Thanks a lot

ardatan commented 6 years ago

@ymchun Your welcome! Try to use zoneOperator like this;

  import { zoneOperator } from 'meteor-rxjs';
  whateveritwas.pipe(zoneOperator())