-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider rename observable symbol $$observable => observable #2415
Comments
@benlesh can you take a look please? async pipe is broken for rollup users because of this.
|
@DzmitryShylovich Ugh. I see the problem. It sucks a little because I'm not sure what we'd do for a deprecation path for this. There's no way to detect if someone is using the "wrong" one via direct import, AFAICT. |
To migrate the code follow the example bellow: Before: import { $$observable } from 'rxjs/symbol/observable'; After: import { observable } from 'rxjs/symbol/observable'; Closes ReactiveX#2415
ping @benlesh it also affects es5 users :) |
To migrate the code follow the example bellow: Before: import { $$observable } from 'rxjs/symbol/observable'; After: import { observable } from 'rxjs/symbol/observable'; Closes ReactiveX#2415
…ort Babel UMD and others To migrate the code follow the example bellow: Before: import { $$observable } from 'rxjs/symbol/observable'; After: import { observable } from 'rxjs/symbol/observable'; Closes ReactiveX#2415
…ort Babel UMD and others To migrate the code follow the example bellow: Before: import { $$observable } from 'rxjs/symbol/observable'; After: import { observable } from 'rxjs/symbol/observable'; Closes ReactiveX#2415
…ort Babel UMD and others To migrate the code follow the example bellow: Before: import { $$observable } from 'rxjs/symbol/observable'; After: import { observable } from 'rxjs/symbol/observable'; Closes ReactiveX#2415
…o work with Babel UMD exporting (#2435) * fix(symbol/observable): will be exported as observable to better support Babel UMD and others To migrate the code follow the example bellow: Before: import { $$observable } from 'rxjs/symbol/observable'; After: import { observable } from 'rxjs/symbol/observable'; Closes #2415 * fix(symbol/iterator): will be exported as iterator to better support Babel UMD and others To migrate the code follow the example bellow: Before: import { $$iterator } from 'rxjs/symbol/iterator'; After: import { iterator } from 'rxjs/symbol/iterator'; * fix(symbol/rxSubscriber): will be exported as rxSubscriber to better support Babel UMD and others To migrate the code follow the example bellow: Before: import { $$rxSubscriber } from 'rxjs/symbol/rxSubscriber'; After: import { rxSubscriber } from 'rxjs/symbol/rxSubscriber';
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Actual behavior:
I use transform-es2015-modules-umd Babel plugin. And I need to map
import {$$observable} from 'rxjs/symbol/observable';
Observable symbol is exported as
Rx.Symbol.observable
but exported symbol fromrxjs/symbol/observable
is called$$observable
. Because symbols have different names I cannot just map it like"rxjs/symbol/observable": "Rx.Symbol"
Expected behavior:
I see 3 possible solutions:
$$observable
=>observable
so it will be possible to do"rxjs/symbol/observable": "Rx.Symbol"
$$observable
fromRx
as is =>Rx.$$observable
$$observable
fromRx.Symbol
=>Rx.Symbol.$$observable
I can also accomplish it by changing import
import {$$observable} from 'rxjs/symbol/observable';
=>import {Symbol} from 'rxjs/Rx';
but I don't want to import the whole lib :)The text was updated successfully, but these errors were encountered: